// JavaScript Document

function showitem(name,id,num,morestr)
{
	for(i=1;i<num+1;i++){
		document.getElementById(name+i).className = "content hideitem";
		document.getElementById(name+"tt"+i).className = "hidetitle";
		};
	document.getElementById(name+id).className ="content showitem";
	document.getElementById(name+"tt"+id).className = "showtitle";

	if (name+id == "ztbox12")
	{
		document.getElementById(name+id).className ="ztcontent showitem";}

	
	if(morestr != "" && document.getElementById(name+"more")!= null)
	{
		document.getElementById(name+"more").href = morestr;
		}
}
	
	
var currslid = 0;
var slidint;
function setfoc(id){
	document.getElementById("picadr").src = picarry[id];
	//document.getElementById("foclnk").href = lnkarry[id];
	document.getElementById("pic_link").href = lnkarry[id];
	document.getElementById("pic_link").title = ttlarry[id];
	currslid = id;

	pic_zt.style.visibility = "hidden";
	pic_zt.filters[0].Apply();
	pic_zt.filters[0].transition=23;
	pic_zt.style.visibility = "visible";


	pic_zt.filters[0].Play();
	//stopit();
}

function playnext(){
	if(currslid==piccount-1){
		currslid = 0;
	}
	else{
		currslid++;
	};
	setfoc(currslid);
	playit();
}
function playit(){
	slidint = setTimeout(playnext,15000);
}
function stopit(){
	clearTimeout(slidint);
	}
function gotourl(){
	window.open(document.getElementById("tip").childNodes[0].href,"_blank");
}
window.onload = function(){
	//playit();
	//playitsub();
	//setloc();
}	

