window.onerror=new Function("return true;")

var bannerAD=new Array();
var bannerADlink=new Array();

function showbannerAD(f,url,w,h){
	if (url!==""){
		document.write ('<a href="'+url+'" target="_blank"><img src="'+f+'" width="'+w+'" height="'+h+'" border="0"></a>')
	}
	else{
		document.write ('<img src="'+f+'" width="'+w+'" height="'+h+'" border="0">')
	}
}

var adNum=0;var adrun=0;var adKey=0;var oldNum=1;var theSkipTimer;
for (var i=0;i<bannerAD.length;i++){
	if(typeof(bannerAD[adNum])!="undefined"){
		if (bannerAD[adNum]!=""){(new Image()).src = bannerAD[i];}
	}
}

function runBannerAd(id){if(adrun==0){var o=MM_findObj("bannerADrotator");
if (adKey==0){adKey=1;}else{
clearTimeout(theSkipTimer);
if(document.all){o.filters.revealTrans.Transition=Math.floor(Math.random()*23);
o.filters.revealTrans.apply();o.filters.revealTrans.play();}}
if (id!=''){adNum=id;}else{adNum=(adNum<=(bannerAD.length-1))?(adNum+1):1;}
if (typeof(bannerAD[adNum])!="undefined"){
	o.src=bannerAD[adNum];
	document.getElementById('pic'+adNum).style.background='#6F0B41';
	if(oldNum!=adNum){document.getElementById('pic'+oldNum).style.background='#9B8080';oldNum=adNum;}
	theSkipTimer=setTimeout("runBannerAd('')",8000);
}
else{
	clearTimeout(theSkipTimer);
	theSkipTimer=setTimeout("runBannerAd('')",300);
}
}
else{
	clearTimeout(theSkipTimer);
	theSkipTimer=setTimeout("runBannerAd('')",8000);
	}
}

function openurl(t){var hlink=bannerADlink[adNum];if(hlink != ''&&hlink!=null){if(t==''||t==null){parent.document.location.href=hlink;}else{window.open(hlink,t);}}}
function stopad(v){adrun=v;}
