﻿
	var key=0; 

	function nextAd()
	{ 
	if(adNum<j)adNum++; 
	else adNum=1; 

	if( key==0 ){ 
	key=1; 
	} else if (document.all){ 

	document.getElementById('Index_GQ1_imgInit').filters.revealTrans.Transition=Math.floor(Math.random()*22+1); 
	document.getElementById('Index_GQ1_imgInit').filters.revealTrans.apply(); 
	document.getElementById('Index_GQ1_imgInit').filters.revealTrans.play();} 

	if(document.all)
	{
	//alert(document.getElementById('imgInit'));
	document.getElementById('Index_GQ1_imgInit').src=imgUrl[adNum]; 
	document.getElementById('Index_GQ1_spanTitle').innerHTML=imgTitle[adNum];
	document.getElementById('Index_GQ1_spanIntro').innerHTML=imgIntro[adNum];
	document.getElementById('Index_GQ1_spanInto').innerHTML=imgInto[adNum];
	}
	theTimer=setTimeout("nextAd()", 6000);} 


	function goLinkUrl(){ 
	jumpUrl=imgLink[adNum]; 
	jumpTarget='_blank'; 
	if (jumpUrl != ''){ 
	if (jumpTarget != '') 
	window.open(jumpUrl,jumpTarget); 
	else location.href=jumpUrl; } } 

	function preloadPic() 

	{ ; if (document.all) { document.getElementById('Index_GQ1_imgInit').src=imgUrl[1]}; 
	if (document.all) 
	{ 
	//var imgPreload = new Image();
	//for (i=0; i<imgUrl.length; i++) 
	//{ imgPreload.src = imgUrl[i] } 
	nextAd(); } 
	else { 
	theTimer = setTimeout("preloadPic()",100); } 
	}