	 var adNum=0;



	 var bannerAD=new Array();
	 var bannerADlink=new Array();
	 var bannerADALT=new Array();



	var topAD = new Array();
	var topADlink = new Array();
	var topADALT = new Array();




   bannerAD[0]="http://www.myshadi.com/images/wedding_squ.gif";
   bannerADALT[0]="Indian Wedding Cards";	
   bannerADlink[0]="http://www.myshadi.com/weddings/fetchcard.php?cat=1";

   bannerAD[1]="http://www.myshadi.com/matrimony/images/advertiselink.gif";
   bannerADALT[1]="Advertise On Myshadi";	
   bannerADlink[1]="http://www.myshadi.com/matrimony/reachpeople.htm";

   bannerAD[2]="http://www.myshadi.com/matrimony/images/indianmusic.gif";
   bannerADALT[2]="Indian Wedding Music";	
   bannerADlink[2]="http://www.myshadi.com/weddings/wedmusic.htm";

   bannerAD[3]="http://www.myshadi.com/ads/listbusiness.gif";
   bannerADALT[3]="List Your Business";	
   bannerADlink[3]="http://www.myshadi.com/contact.htm";
	
 

	topAD[0]="http://www.myshadi.com/images/bhindi.gif";
	topADALT[0]="Bhindi Jewellers";	
	topADlink[0]="http://www.bhindijewellers.com/bhindi.htm";

	topAD[1]="http://www.myshadi.com/images/weddingcardbanner.gif";
	topADALT[1]="Wedding Card";	
	topADlink[1]="http://www.myshadi.com/weddings/fetchcard.php?cat=1";

	topAD[2]="http://www.myshadi.com/images/bollywoodtodaytop.gif";
	topADALT[2]="Bollywood Today";	
	topADlink[2]="http://www.myshadi.com/matrimony/bollywoodtoday.htm";

        topAD[3]="http://www.myshadi.com/ads/sabnamBanner.gif";
	topADALT[3]="Shabnam Video";	
	topADlink[3]="http://shabnamstudio.com";
		
function bannerRotate()
{
 
  while(true)
  { 
   adNum=Math.round(Math.random()*10);
   if (adNum <= 3){
	break;	}
  }

   if (adNum <= 4) { nextAd();}
}

function nextAd()
{
   document.images.bannerADrotator.src=bannerAD[adNum];
   document.images.bannerADrotator.alt=bannerADALT[adNum];	
   mylink.href=bannerADlink[adNum];

	document.images.banner.src = topAD[adNum];
	document.images.banner.alt = topADALT[adNum];
	toplink.href = topADlink[adNum];


}

 