sponsorObj = new Object();theOpacity = 0;fadeamount = .1;lowhiOpacity = 0;hiloOpacity = 100;firstrun = true;currentSponsor = 1;function loadSponsor(){sponsor = new Object();sponsor = document.getElementById('sponsorbox');//thisRandomNumber = Math.round((Math.random(1000)*10000)+100);thisLogo = sponsorart[currentSponsor-1]; //'http://promedia.travel/adserver/www/delivery/avw.php?zoneid=116&amp;cb=' + thisRandomNumber + '&amp;n=a435df50';thisSponsorImage = '<img src="' + thisLogo + '" border="0" hspace="0" vspace="0">';//alert(thisSponsorImage);thisSponsorLink = sponsorlinks[currentSponsor-1]; //'<a href="http://promedia.travel/adserver/www/delivery/ck.php?n=a435df50&amp;cb=' + thisRandomNumber + '" target="_blank">'; thisSponsorTag = '<a href="' + thisSponsorLink + '" target="_blank">' + thisSponsorImage + '</a>';//alert('test');//alert(thisSponsorTag);sponsor.innerHTML = thisSponsorTag;//sponsor.style.opacity = 1;sponsorObj = sponsor;if (firstrun){rotateSponsor();}}function rotateSponsor(){				if (!firstrun){		loadSponsor();		}else{		firstrun = false;		}currentSponsor++;if (currentSponsor > sponsorcount){currentSponsor = 1;}		fadein();}function fadein(){theOpacity += fadeamount;sponsorObj.style.opacity = theOpacity;	if(theOpacity <= 1){	setTimeout("fadein()",5);	}else{		if (sponsorcount > 1){		fadeitin = false;		setTimeout("fadeout()",4000);		}	}	}function fadeout(){theOpacity -= fadeamount; sponsorObj.style.opacity = theOpacity;	if(theOpacity >= 0){	setTimeout("fadeout()",5);	}else{	rotateSponsor();		}}