var tpc = new Array();
var transok=false;
gtimer=0;
var cfltp=1;
function doLoad() {
	ppc_cache();
	gtimer=window.setTimeout("gt_ld()",2000);
};
function gt_ld() {
	if(tpc[2].complete==true){
		clearTimeout(gtimer);
		transok=true;
		gtimer=window.setTimeout("trans_ld()",250);
	}else{gtimer=window.setTimeout("gt_ld()",250);}
};
function ppc_cache() {
	if(document.images){tpc[1]=new Image(); tpc[1].src = "media/top_2011.jpg";}
	if(document.images){tpc[2]=new Image(); tpc[2].src = "media/top_2011wi.jpg";}
};
function trans_ld() {
	if(document.images){
		if (!document.all) {
			cfltp+=1;
			if(cfltp>=3)cfltp=1;
			document.tourrow.src = tpc[cfltp].src;
			}
		else{
			cfltp+=1;
			if(cfltp>=3)cfltp=1;
			document.all.tourrow.filters.revealTrans.Apply();
			document.all.tourrow.src = tpc[cfltp].src;
			document.all.tourrow.filters.revealTrans.Play();
		}
		clearTimeout(gtimer);
		gtimer=window.setTimeout("trans_ld()",7000);
	}
};

window.onload=doLoad;
