// Show/Hide functions for non-pointer layer/objects
if(document.layers) {ver = "ns4"}	
if(!document.all && document.getElementById){ver = "ns6"}
if(document.all) {ver = "ie"}

function show2(id) {
			if (ver == "ie")
				{
				document.all[id].style.display = "block";
				document.all[id].style.visibility = "visible";			
				}
			else if (ver == "ns4")
				{
				document.layers[id].display = "block";
				document.layers[id].visibility = "show";								
				}
			else //(ver == "ns6")
				{
				document.getElementById(id).style.display="block";
				document.getElementById(id).style.visibility="visible";		
				}
}

function hide2(id) {
			if (ver == "ie")
				{
				document.all[id].style.visibility = "hidden";		
				document.all[id].style.display = "none";
				}
			else if (ver == "ns4")
				{
				document.layers[id].visibility = "hide";		
				document.layers[id].style.display = "none";						
				}
			else //(ver == "ns6")
				{
				document.getElementById(id).style.display="none";	
				document.getElementById(id).style.visibility="hidden";		
				}		
}

function loadInFrame(target,url) {	
			frames[target].location.href = url;		
			//document.getElementById(target).src = url;
}

function doResize() {
        document.getElementById('up_iframe').style.height = document.body.clientHeight - 206;
}

function ToggleImage(objImage)
	{
	var strPics=objImage.attributes["pics"];
	if (!strPics) return false;
	var curPic=objImage.attributes["curPic"];
	if (!curPic) return false;
	strPics=objImage.attributes["pics"].value;
	curPic=objImage.attributes["curPic"].value;
	curPic=(curPic)*(-1)*(-1);
	var arrPics=strPics.split(",");
	curPic = ((curPic+1) % arrPics.length);
	objImage.src = arrPics[curPic];
	objImage.attributes["curPic"].value = (curPic+"");
	}
	
function incr(vol, amax)
	{
	if (document.getElementById(vol).value<amax)
		{
		document.getElementById(vol).value++;
		}
	}
function decr(vol)
	{
	if (document.getElementById(vol).value>1)
		{
		document.getElementById(vol).value--;
		}
	}	