<!--

// array to store all promo images
rightpromoimg=new Array();

rightpromoimg[0]="images/au_VBV.gif";
rightpromoimg[1]="images/au_VBV.gif";
rightpromoimg[2]="images/au_VBV.gif";

leftpromoimg=new Array();
/*
leftpromoimg[0]="images/splash_promo_tvc.gif";
leftpromoimg[1]="images/splash_promo_tvc.gif";
leftpromoimg[2]="images/splash_promo_tvc.gif";
*/

leftpromoimg[0]="images/splash_left_promo1.jpg";
leftpromoimg[1]="images/cinema_movieoffer.gif";
leftpromoimg[2]="images/splash_left_promo1.jpg";

rightpromourl=new Array();
rightpromourl[0]=new Array("/verified/index.shtml","");
rightpromourl[1]=new Array("/verified/index.shtml","");
rightpromourl[2]=new Array("/verified/index.shtml","");

leftpromourl=new Array();

leftpromourl[0]=new Array("/rugby/index.shtml","");
leftpromourl[1]=new Array("/offers/village.shtml","");
leftpromourl[2]=new Array("/rugby/index.shtml","");


/*
for external URL please use the below as an example
rightpromourl[0]=new Array("http://www.visa-asia.com","new");

for no clickthru please use the below as an example
rightpromourl[0]=new Array("#","");
*/

var leftcurrimg=0;
var rightcurrimg=0;

function preload(){
	document.leftpromo.src=leftpromoimg[leftcurrimg];
	document.rightpromo.src=rightpromoimg[rightcurrimg];
	
	setTimeout('rotate()',3*1000);
}

var leftimgct=leftpromoimg.length;
var rightimgct=rightpromoimg.length;

function rotate(){
	if (document.images){
		if(document.leftpromo.complete){
			leftcurrimg++;
			if (leftcurrimg==leftimgct){
				leftcurrimg=0;
			}
			document.leftpromo.src=leftpromoimg[leftcurrimg];
		}
		if(document.rightpromo.complete){
			rightcurrimg++;
			if (rightcurrimg==rightimgct){
				rightcurrimg=0;
			}
			document.rightpromo.src=rightpromoimg[rightcurrimg];
		}
		setTimeout('rotate()',3*1000);
	}
}

function leftlocation(){
	if (leftpromourl[leftcurrimg][1]=="")
		document.location.href=leftpromourl[leftcurrimg][0];
	else
		window.open(leftpromourl[leftcurrimg][0]);
}

function rightlocation(){
	if (rightpromourl[rightcurrimg][1]=="")
		document.location.href=rightpromourl[rightcurrimg][0];
	else
		window.open(rightpromourl[rightcurrimg][0]);
}

// -->
