function showhide(obj_str, t) {
	
	var obj = document.getElementById(obj_str);
		
	if (t == 0) {
		obj.style.display = 'none';
		obj.style.visibility = 'hidden';
	} else {
		obj.style.display = '';
		obj.style.visibility = 'visible';
	}		
}


function init_window() {
	Bild_Window=window.open('/showcase/e30.html','PIC','Height=470,Width=900,scrollbars=no,resizable=no,status=no,toolbar=no,directories=no,copyhistory=no,location=no,screenX=50,screenY=50');
}


function openZoom(dateiName, herst, w, h){
	Bild_Window=window.open("/open_pict.asp?p=" + dateiName + "&h=" + herst,'PIC','Height=' + h + ',Width=' + w + ',scrollbars=no,resizable=no,status=no,toolbar=no,directories=no,copyhistory=no,location=no,screenX=50,screenY=50');
}


function openSwf(dateiName, herst, wW, hW){
	Bild_Window=window.open(dateiName + "&h=" + herst,'PIC','Width=900,Height=470,scrollbars=no,resizable=no,status=no,toolbar=no,directories=no,copyhistory=no,location=no,screenX=50,screenY=50');
}



function inWk(idNummer,artType){
	//alert(idNummer + "-" + artType);
	alert("In Warenkorb legen !");
}



function img_zoom(t) {
	var obj = document.getElementById("img_zoom");
	if (t == 0) {
		obj.style.display = 'none';
		obj.style.visibility = 'hidden';
	} else {
		obj.style.display = '';
		obj.style.visibility = 'visible';
	}		
}





function checkwhere(e) {
     if (document.layers) {
	     xCoord = e.x;
    	 yCoord = e.y;

	} else if (document.all) {
     xCoord = event.clientX;
     yCoord = event.clientY;

	} else if (document.getElementById) {
     xCoord = e.clientX;
     yCoord = e.clientY;
	}

	if (fMove == true) {
	
		obj.style.left = (xCoord-60) + "px";
		obj.style.top = (yCoord-5) + "px";
		obj.style.cursor = "move";
	
	}
	
}

function fswitch() {
	if (fMove == false) {
		
		fMove=true;
	} else {
		fMove=false;
	}
}


function img_zoom(t) {
	obj = document.getElementById("img_zoom");
	if (t == 0) {
		document.onmousemove = null;
		fMove=false;
		obj.style.display = 'none';
		obj.style.visibility = 'hidden';
		obj.style.left = '176px';
	} else {
		document.onmousemove = checkwhere;
		obj.style.display = '';
		obj.style.visibility = 'visible';
	}		
}



 function openNewWind2(dateiName, w, h){
  	var newWind2 = "";
	newWind2 = window.open(dateiName,'EDIT');
}

function display_switch(id) {
  	if (document.getElementById(id).style.display == "none" ) {
    	document.getElementById(id).style.display = "block";
  	} else {
    	document.getElementById(id).style.display = "none";
	}
  }




