/*
	copyright minisystems gbr 2000-2007
*/


/*
	auf allen Seiten
*/
self.focus();
function changeCSS(LinkObject, newCSS) {
   LinkObject.className = newCSS;
}
function openPage(URL){
	window.open(URL);
}


/*
	öffnet Popup zur Anzeige von zusätzlichen Artikelbildern im Onlineshop
*/
function showepicture(url,epicid,width,height) {
	//aufrufenden Link deaktivieren
	var t_href = document.getElementById("epic_"+epicid).href;
	var t_target = document.getElementById("epic_"+epicid).target;
	document.getElementById("epic_"+epicid).href = "#1";//document.URL;
	document.getElementById("epic_"+epicid).target = "";//document.URL;
	
	//Popup öffnen
	popup = window.open(url , "variable", "width=" + width + ",height=" + height + ",scrollbars=yes,resizable=yes");
	popup.resizeTo(width,height);
	// Popup offen?
	if(!window.popup){
		// Link in neuem fenster öffnen
		document.getElementById("epic_"+epicid).href = t_href;
		document.getElementById("epic_"+epicid).target = t_target;
	}else{
		window.popup.focus();
		return false;
	}
}




/*
	inc/artikel_inc_templatename.php
	öffnete Warenkorbpopup
*/
// Global variables
		var xMousePos = 0; // Horizontal position of the mouse on the screen
		var yMousePos = 0; // Vertical position of the mouse on the screen
		
        if (document.layers) { // Netscape
		    document.captureEvents(Event.MOUSEMOVE);
		    document.onmousemove = captureMousePosition;
		} else if (document.all) { // Internet Explorer
		    document.onmousedown = captureMousePosition;
		} else if (document.getElementById) { // Netscape 6
		    document.onmousedown = captureMousePosition;
		}
        
        function changecsshigh(LinkObject, newclass){
			LinkObject.className = newclass;
		}

        function towarenkorb(loc, artid, tabid, katid, struc, WKfrom, sess, origLink){
           document.getElementById(artid).href = "#1";//document.URL;
           var popOffsetx=335;
		   var popOffsety=110;
		   
		   var x=y=0;
		   x = xMousePos-popOffsetx;
		   y = yMousePos-popOffsety;
		   
           var url= loc+"?WKARTID="+artid+"&NavKatID="+katid+"&NavTabID="+tabid+"&Navstruc="+struc+"&WKfrom="+WKfrom+"&"+sess;
		   var prop= "width=350, height=80, screenX="+x+",screenY="+y+",left="+x+",top="+y+", status=no , menubar=no ,resizable=yes";
		   
		   wkwindow = window.open(url,"WARENKORB",prop);
		   if(!wkwindow){
		      this.location.href = this.location.hostname + origLink;
		   }
		   else wkwindow.focus();
		   return false;
		}
		
		function captureMousePosition(e) {
            if (document.layers) {
				xMousePos = e.screenX;
		        yMousePos = e.screenY;
		    } else if (document.all) {
				xMousePos = window.event.screenX;
		        yMousePos = window.event.screenY;
		    } else if (document.getElementById) {
                xMousePos = e.screenX;
		        yMousePos = e.screenY;
		    }
		}