// JavaScript Document

function PicBox(layer,w,h)
{
	layer.style.width=w+"px";
	layer.style.height=h+"px";
	//Mac-Safari
	if(navigator.platform=="MacPPC")
	{
		setTimeout('box.style.display="none";',100);
		setTimeout('box.style.display="block";',200);
	}
}

function showBox(layer, picurl)
{ // show pers. card
	layer.style.border="1px solid #000099";
	layer.style.backgroundImage="url("+picurl+")";
	layer.style.zIndex=300;
	PicBox(layer,283,255);
}

function hideBox(layer, picurl)
{  //hide card and show eye
	layer.style.border="0px solid #ffffff";
	layer.style.backgroundImage="url("+picurl+")";
	layer.style.zIndex=0;
	PicBox(layer,17,15);
}

function showPic(picname,width,height)
{
	var wndname = picname.replace(/img\//,'');
	wndname = wndname.replace(/.jpg/, '');
	var size = "width="+width+",height="+height;
	wnd = window.open('showpic.html',picname, size);
	wnd.focus();
	return false;
}

function switchbox(boxid) {
	if(document.getElementById('box_'+boxid).style.display=='none') {
		document.getElementById('box_'+boxid).style.display='block';
		document.getElementById('img_'+boxid).src='img/zu.jpg';
	}
	else {
		document.getElementById('box_'+boxid).style.display='none';
		document.getElementById('img_'+boxid).src='img/eye.jpg';
	}
}


