var g_adv1_index = -1;
function showADV1(){
	var strBuffer = '';
	if (aryAdvPic.length == 0){
		return false;
	}
	g_adv1_index++;
	if (g_adv1_index >= aryAdvPic.length){
		g_adv1_index = 0;
	}
	
	if (aryAdvPic[g_adv1_index] != ""){
		strBuffer = aryAdvPic[g_adv1_index];
	}
	if (aryAdvLink[g_adv1_index] != ""){
		strBuffer = '<a href="' + aryAdvLink[g_adv1_index] + '"' + aryAdvTarget[g_adv1_index] + '>' + strBuffer + '</a>';
	}
	document.getElementById('bannerphotos').innerHTML = strBuffer;
	if (aryAdvPic.length > 1){
		setTimeout("showADV1()", 8000);
	}
}
showADV1();
