function fMouseOver(src,tipo) {
	if (!src.contains(event.fromElement)) {
		src.style.cursor='hand';
		src.className=tipo;
	}
	if (event.srcElement.tagName == 'TD') {
		var sHref=src.children.tags('A')[0].href;
		window.status=sHref;
		return(true);
	}
}
function fMouseOut(src,tipo) {
	if (!src.contains(event.toElement)) {
		src.style.cursor='default';
		src.className=tipo;
	}
	window.status="";
	return(true);
}
function fMouseClick(src) {
	if (event.srcElement.tagName == 'TD') {
		src.children.tags('A')[0].click();
	}
}
var bannerAD=new Array();
var bannerADlink=new Array();
var adNum=0;

bannerAD[1]="../banners/banner_ed_fyr082006.gif";	bannerADlink[1]="http://www.boliviamall.com/catalog/flowers.php?ref=4&affiliate_banner_id=2&language=es";
bannerAD[0]="../banners/promociones.gif";	bannerADlink[0]="http://www.granhotelsantacruz.com";

var preloadedimages=new Array();
for (i=1;i<bannerAD.length;i++) {
	preloadedimages[i]=new Image();
	preloadedimages[i].src=bannerAD[i];
}

function fSetTransition() {
	if (document.all) {
		bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
		bannerADrotator.filters.revealTrans.apply();
	}
}
function fPlayTransition() {
	if (document.all) {
		bannerADrotator.filters.revealTrans.play();
	}
}
function fNextAd() {
	if(adNum<bannerAD.length-1) {
		adNum++;
	} else {
		adNum=0;
	}
	fSetTransition();
	document.images.bannerADrotator.src=bannerAD[adNum];
	fPlayTransition();
	theTimer=setTimeout("fNextAd()", 20000);
}
function fJump2URL() {
	jumpUrl=bannerADlink[adNum];
	jumpTarget='_blank';
	if (jumpUrl != '') {
		if (jumpTarget != '') {
			window.open(jumpUrl,jumpTarget);
		}
	} else {
		location.href=jumpUrl;
	}
}
function fDisplayStatusMsg() {
	window.status=bannerADlink[adNum];
}
