<!-- SVN ID: $Id: ovicopy.js 3557 2007-08-10 16:46:16Z sstarke $ -->
<!--

	function getPDFCatalogWindowStyle() {
		var fullScreen= 'width=' + screen.availWidth + ',height=' + screen.availHeight + ', left=0, top=0, ';
		return  fullScreen + 'toolbar=no, scrollbars=yes,resizable=yes';
	}

	function bookmarksite(title, url){ 
		if (document.all) window.external.AddFavorite(url, title); 
		else if (window.sidebar) window.sidebar.addPanel(title, url, "") 
	} 

	function additionalInfo(boxid) {
		buttonid = "but_" + boxid;
		buttonsrc = document.getElementById(buttonid).src;
		button = new String(buttonsrc);
	
		if (document.getElementById(boxid).style.display == 'block') {
			document.getElementById(boxid).style.display = 'none';
			document.getElementById(buttonid).src = button.replace("-up.gif",".gif");
		} else {
			document.getElementById(boxid).style.display = 'block';
			document.getElementById(buttonid).src = button.replace(".gif","-up.gif");
		}
	}

	var theEvent = window.event;
		
	function EnableLayer(theEvent, theName) {
		if(navigator.userAgent.indexOf("Firefox") > -1) {
			document.getElementById("info_layer_" + theName).style.top = (theEvent.pageY + 5) + "px";
			document.getElementById("info_layer_" + theName).style.left = (theEvent.pageX) + "px";
		} else {
			var scrollPosY, scrollPosX;

			if (typeof window.pageYOffset != 'undefined')
				scrollPosY = window.pageYOffset;
			else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
				scrollPosY = document.documentElement.scrollTop;
			else if (typeof document.body != 'undefined')
				scrollPosY = document.body.scrollTop;

			if (typeof window.pageXOffset != 'undefined')
				scrollPosX = window.pageXOffset;
			else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
				scrollPosX = document.documentElement.scrollLeft;
			else if (typeof document.body != 'undefined')
				scrollPosX = document.body.scrollLeft;

			document.getElementById("info_layer_" + theName).style.top = (theEvent.y + scrollPosY + 5) + "px";
			document.getElementById("info_layer_" + theName).style.left = (theEvent.x + scrollPosX) + "px";
		}
		document.getElementById("info_layer_" + theName).style.z_index = "11";
		document.getElementById("info_layer_" + theName).style.visibility = "visible";
	}

	function DisableLayer(theName) {
		document.getElementById("info_layer_" + theName).style.visibility = "hidden";
	}
	
	function EnablePreviewLayer(theEvent, theName, srcImg) {
		
		document.getElementById("PreviewImage_" + theName).src = srcImg;
		
		if(navigator.userAgent.indexOf("Firefox") > -1) {
			document.getElementById("prod_img_preview_layer_" + theName).style.top = (theEvent.pageY + 5) + "px";
			document.getElementById("prod_img_preview_layer_" + theName).style.left = (theEvent.pageX) + "px";
		} else {
			var scrollPosY, scrollPosX;

			if (typeof window.pageYOffset != 'undefined')
				scrollPosY = window.pageYOffset;
			else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
				scrollPosY = document.documentElement.scrollTop;
			else if (typeof document.body != 'undefined')
				scrollPosY = document.body.scrollTop;

			if (typeof window.pageXOffset != 'undefined')
				scrollPosX = window.pageXOffset;
			else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
				scrollPosX = document.documentElement.scrollLeft;
			else if (typeof document.body != 'undefined')
				scrollPosX = document.body.scrollLeft;

			document.getElementById("prod_img_preview_layer_" + theName).style.top = (theEvent.y + scrollPosY + 5) + "px";
			document.getElementById("prod_img_preview_layer_" + theName).style.left = (theEvent.x + scrollPosX) + "px";
		}
		document.getElementById("prod_img_preview_layer_" + theName).style.z_index = "11";
		document.getElementById("prod_img_preview_layer_" + theName).style.visibility = "visible";
	}
	
	function DisablePreviewLayer(theName) {
		document.getElementById("prod_img_preview_layer_" + theName).style.visibility = "hidden";
	}

	function HideArticleListFilter() {
		document.getElementById('articlelistfilter').style.visibility = 'hidden';
		EnableStatusLayer();
	}

	function EnableStatusLayer(layername) {
	    if (layername == null)
	    {
	    	layername = "status_layer";
	    }
		SetStatusLayerPosition();
		document.getElementById(layername).style.z_index = "50";
	  	document.getElementById(layername).style.visibility = "visible";
	}

	function SetStatusLayerPosition() {
	
		imgWidth = 380;
		imgHeight = 135;
		winWidth = Fensterweite();
		winHeight = Fensterhoehe();
		
		xPos = Math.round((winWidth-imgWidth)/2);
		yPos = Math.round((winHeight-imgHeight)/2);
	
	
		if(navigator.userAgent.indexOf("Firefox") > -1) {
			// set the position as fixed, so that even scrolling has no effect on the position
			document.getElementById("status_layer").style.position = "fixed";
		} else {
			// determine the scrolling values
			var scrollPosY, scrollPosX;
			if (typeof window.pageYOffset != 'undefined')
				scrollPosY = window.pageYOffset;
			else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
				scrollPosY = document.documentElement.scrollTop;
			else if (typeof document.body != 'undefined')
				scrollPosY = document.body.scrollTop;

			if (typeof window.pageXOffset != 'undefined')
				scrollPosX = window.pageXOffset;
			else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat')
				scrollPosX = document.documentElement.scrollLeft;
			else if (typeof document.body != 'undefined')
				scrollPosX = document.body.scrollLeft;
				
			// add the scrolled pixels to the x and y position
			xPos = xPos + scrollPosX;
			yPos = yPos + scrollPosY;
		}
		// set the new position
		document.getElementById("status_layer").style.top = yPos+"px";
		document.getElementById("status_layer").style.left = xPos+"px";
	}
	
	function OnWindowResizeHandler() {
		if (Weite != Fensterweite() || Hoehe != Fensterhoehe()) {
			Weite = Fensterweite();
			Hoehe = Fensterhoehe();
			SetStatusLayerPosition();
		}
	}

	function Fensterweite () {
	    if (window.innerWidth) {
	        return window.innerWidth;
	    } else {
	        if (window.document.documentElement && window.document.documentElement.clientWidth) 
	        {
	            return window.document.documentElement.clientWidth;
	        }
	        return window.document.body.offsetWidth;
	    }
	}
	
	function Fensterhoehe () {
	    if (window.innerHeight) {
	        return window.innerHeight;
	    } else {
	        if (window.document.documentElement && window.document.documentElement.clientHeight) 
	        {
	            return window.document.documentElement.clientHeight;
	        }
	        return window.document.body.offsetHeight;
	    }

	}

	/* Resize-Ueberwachung von Netscape initialisieren */
	if (!window.Weite && window.innerWidth) {
	  window.onresize = OnWindowResizeHandler;
	  Weite = Fensterweite();
	  Hoehe = Fensterhoehe();
	}

	function sendArticleNoToClipboard (text) {
		var ns = (document.layers)? true:false;
		var ie = (document.all)? true:false;
      
		if (ie&&(window.event.button==2))
		{
			//alert("rechte Taste");
		} else {
			//alert("linke Taste");
		}
      
		if( window.clipboardData && clipboardData.setData )
		{
			// replace all non-alphanumeric characters (\W) with empty string
			//text = text.replace(/\W/g,"");
			clipboardData.setData("Text", text);
			gettrailobj().display="none";
			window.status=text + ' Clipboard a kopyalandı.';
		}
		/*
		else
		{
			alert("Internet Explorer required");
		}
		*/
	}
	
	function articleNoMouseOver(thisObject) {
		if (window.clipboardData && clipboardData.setData) {
			thisObject.style.backgroundColor='#c3d2e3';
			gettrailobj().display="";
			window.status='kopyalamak için tıklayın';
			return true;
		}
	}

	function articleNoMouseOut(thisObject) {
		if (window.clipboardData && clipboardData.setData) {
			thisObject.style.backgroundColor='transparent';
			gettrailobj().display="none";
			window.status='';
			return true;
		}
	}

	/* functions for the maouse-follow layer (copy articleNo to clipboard) */
	function gettrailobj(){
	    if (document.getElementById) {
	        return document.getElementById("trailimageid").style
	    } else if (document.all) {
	        return document.all.trailimagid.style
	    }
	}
	function truebody(){
	    return (!window.opera && document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	}
	function followmouse(e){
	    var xcoord=ofsm[0]
	    var ycoord=ofsm[1]
	    if (typeof e != "undefined"){
	        xcoord+=e.pageX
	        ycoord+=e.pageY
	    } else if (typeof window.event !="undefined"){
	        xcoord+=truebody().scrollLeft+event.clientX
	        ycoord+=truebody().scrollTop+event.clientY
	    }
	    var docwidth=document.all? truebody().scrollLeft+truebody().clientWidth : pageXOffset+window.innerWidth-15
	    var docheight=document.all? Math.max(truebody().scrollHeight, truebody().clientHeight) : Math.max(document.body.offsetHeight, window.innerHeight)
	    if (xcoord+trailimage[1]+3>docwidth || ycoord+trailimage[2]> docheight) {
	        gettrailobj().display="none"
	    }
	    /*
	     else {
	        gettrailobj().display=""
	    }
	    */
	    gettrailobj().left=xcoord+"px"
	    gettrailobj().top=ycoord+"px"
	}
	
	
	/****** Start wait for DetermineJavaVersionApplet *****/
	var javaVersion = "";
	var javaVendor = "";

	function waitForAppletInit()
	// diese Funktion wartet, bis das Applet geladen wurde
	{
		if (navigator.javaEnabled()) {
			try {
				if (document.DetermineJavaVersionApplet && document.DetermineJavaVersionApplet.isActive()) {
					javaVersion = document.DetermineJavaVersionApplet.getJavaVersion();
					javaVendor = document.DetermineJavaVersionApplet.getJavaVendor();
				}
			}
			catch (e) {
				waitForAppletInit();
			}
		}
	}

	/****** End wait for DetermineJavaVersionApplet *****/
//-->