// .js file created by:	London Design House, 2010.
// Last updated:	03 September 2010

var marqueewidth="200px"
var marqueeheight="750px"
var marqueespeed=1
var initPause=1000
var full=1
var pauseit=1

var iebreak='<p>&nbsp;</p>'
var imageloc='images/sponsors_scroll_2011/'

var marqueecontent=(
					'<a href="http://www.barclays.co.uk/" target="_blank">											<img src=" ' + imageloc + 'bar_corp_col_pos_hr.png" alt="" 	width="196" 	height="60" 	border="0" /></a>' + iebreak +
					'<a href="http://www.crazy4curry.com/" target="_blank">											<img src=" ' + imageloc + 'c4c_logo2011.png" alt="" 		width="196" 	height="125" 	border="0" /></a>' + iebreak +
					'<a href="http://www.o2.co.uk/callingcard/" target="_blank">									<img src=" ' + imageloc + 'o2callingcard.jpg" alt="" 		width="196" 	height="122" 	border="0" /></a>' + iebreak +
					'<a href="http://www.kingfisherworld.com/" target="_blank">										<img src=" ' + imageloc + 'kingfisher.jpg" alt="" 		width="180" 	height="199" 	border="0" /></a>' + iebreak +
					'<a href="http://www.lerajrestaurant.co.uk/" target="_blank">									<img src=" ' + imageloc + 'leraj.jpg" alt="Le Raj" 		width="180" 	height="58" 	border="0" /></a>' + iebreak +
					'<a href="http://www.pgprof.com/uk/index.php?page=product&pid=157" target="_blank">				<img src=" ' + imageloc + 'deepio_logo_196.jpg" alt="" 		width="196" 	height="137" 	border="0" /></a>' + iebreak +
					'<a href="http://www.westmill.co.uk/products/brands/pataks/pataks_home.html" target="_blank">	<img src=" ' + imageloc + 'pataks.jpg" alt="" 			width="177" 	height="123" 	border="0" /></a>' + iebreak +
					'<a href="http://www.kansaras.co.uk/" target="_blank">											<img src=" ' + imageloc + 'kansara.jpg" alt="" 			width="196" 	height="92" 	border="0" /></a>' + iebreak +
				//	'<a href="http://www.gandhiorientalfoods.co.uk/" target="_blank">								<img src=" ' + imageloc + 'gandhi.jpg" alt="" 			width="189" 	height="88" 	border="0" /></a>' + iebreak +
				//	'<a href="http://www.gandhiorientalfoods.co.uk/" target="_blank">								<img src=" ' + imageloc + 'gandhi-imbibe.jpg" alt="" 		width="180" 	height="241" 	border="0" /></a>' + iebreak +
				//	'<a href="http://www.gandhiorientalfoods.co.uk/" target="_blank">					            <img src=" ' + imageloc + 'guru.jpg" alt="" 			width="189" 	height="95" 	border="0" /></a>' + iebreak +
				//	'<a href="http://www.eurasiafoods.co.uk/" target="_blank">										<img src=" ' + imageloc + 'eurasia.jpg" alt="" 			width="184" 	height="111" 	border="0" /></a>' + iebreak +
				//  '<a href="http://www.lwc-drinks.co.uk/" target="_blank">										<img src=" ' + imageloc + 'shapla.png" alt="" 			width="180" 	height="210" 	border="0" /></a>' + iebreak +
					'<a href="http://www.goldstarchefs.co.uk/" target="_blank">										<img src=" ' + imageloc + 'goldstarchefs.png" alt="" 		width="189" 	height="41" 	border="0" /></a>' + iebreak +
					'<a href="http://www.pepsi.com/" target="_blank">												<img src=" ' + imageloc + 'pepsi.jpg" alt="" 			width="196" 	height="263" 	border="0" /></a>' + iebreak +
					'<a href="http://www.j2o.co.uk/" target="_blank">												<img src=" ' + imageloc + 'j20.jpg" alt="" 			width="196" 	height="252" 	border="0" /></a>' + iebreak +
					'<a href="http://www.stephensandgeorge.co.uk" target="_blank">									<img src=" ' + imageloc + 's_gl_ogo.jpg" alt="" 			width="196" 	height="131" 	border="0" /></a>' + iebreak + 
					'<a href="http://www.drinknasha.com" target="_blank">											<img src=" ' + imageloc + 'nashalogo196.jpg" alt="" 		width="196" 	height="95" 	border="0" /></a>' + iebreak +
					'<a href="http://www.westernunion.co.uk" target="_blank">										<img src=" ' + imageloc + 'western_logo.jpg" alt="" 		width="196" 	height="73" 	border="0" /></a>' + iebreak 
					);

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var iedom=document.all||document.getElementById
var actualheight=''
var cross_marquee, cross_marquee2, ns_marquee



function scrollmarquee(){

if (iedom){
if (parseInt(cross_marquee.style.top)<(actualheight*(-1)+8))
cross_marquee.style.top=(parseInt(cross_marquee2.style.top)+actualheight+8)+"px"
if (parseInt(cross_marquee2.style.top)<(actualheight*(-1)+8))
cross_marquee2.style.top=(parseInt(cross_marquee.style.top)+actualheight+8)+"px"
cross_marquee2.style.top=parseInt(cross_marquee2.style.top)-copyspeed+"px"
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
}

else if (document.layers){
if (ns_marquee.top>(actualheight*(-1)+8))
ns_marquee.top-=copyspeed
else
ns_marquee.top=parseInt(marqueeheight)+8
}
}



function populate(){


if (iedom){

var lb=document.getElementById&&!document.all? '' : iebreak
cross_marquee=document.getElementById? document.getElementById("iemarquee") : document.all.iemarquee
cross_marquee2=document.getElementById? document.getElementById("iemarquee2") : document.all.iemarquee2
cross_marquee.style.top=(full==1)? '8px' : parseInt(marqueeheight)+8+"px"
cross_marquee2.innerHTML=cross_marquee.innerHTML=marqueecontent+lb
actualheight=cross_marquee.offsetHeight
cross_marquee2.style.top=(parseInt(cross_marquee.style.top)+actualheight+8)+"px" //indicates following #1
}

else if (document.layers){

ns_marquee=document.ns_marquee.document.ns_marquee2
ns_marquee.top=parseInt(marqueeheight)+8
ns_marquee.document.write(marqueecontent)
ns_marquee.document.close()
actualheight=ns_marquee.document.height
}

setTimeout('lefttime=setInterval("scrollmarquee()",20)',initPause)
}




