/**
	javascript-definitions & function for the homepage from 10-Haaft
	copyright 2003 by van Loock eBusiness Solutions
	autor: andreas van loock / bonnerstrasse 28 / 50677 koeln
	
	last modified:
	
	2002-07-25 erstellung der datei
	
**/
	
	/**
		Preload Overimages for Navigation
	**/
	navLow      = new Image();
	navLow.src  = "../images/misc/trans.gif";
    navHigh     = new Image();
	navHigh.src = "../images/icons/navIcon.gif";
    
	/**
		Where is the UserAgent?
	**/
	var ns4 = (document.layers)? 1 : 0;
	var ie4 = (document.all)? 1 : 0;
	var w3c = ((document.getElementById) && (!ie4))?1:0; // ie5 's got getElementbyId as well

	/**
		Declare Variables
	**/
	var isFalse, isTrue;
	
	/**
		this function will open an new window
	**/
	function pc_openWindow(url, name, width, height, preferences) {
		
		var winHeight;
		var winWidth;
		var popupWindow;
		var preferences = preferences + ",width="+width+",height="+height;
						
		//winHeight = screen.availHeight;
		//winWidth  = screen.availWidth;
		
		popupWindow = window.open(url, name, preferences);
		popupWindow.focus();
		popupWindow.moveTo((screen.availWidth-width)/2,(screen.availHeight-height)/2);
	}
	
	/**
		this function will open a window within the homepage in printmode
	**/
	function pc_printScreen() {
		
		if ((!ns4) && (!w3c)){
			// Focus auf den Frame lenken welcher gedruckt werden soll              
			parent.content.focus();
			// BrowserObject ,,Print Box,, anlegen
			var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
			document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
			WebBrowser1.ExecWB(6, 2); //Use a 1 vs. a 2 for a prompting dialog box 
			WebBrowser1.outerHTML = "";             
		} else {
			parent.content.focus();
			parent.frames['content'].print();
		}
	}
	
	/**
		this function will check if the user has fillout the search inputform
	**/
	function pc_checkSearchBox() {
	
	}
	
	/**
		Highlight the MouseOver when coming
	*/
	function butRubber (PicName,PicObj){
		if (PicName != isTrue){
			window.document.images[PicName].src = PicObj.src;
		}
		return;
	}
	
	/**
		Stop the MouseOver if User is klicking a link
	*/
	function stopRubber (PicName,PicObj){
		if (isFalse == false){
			window.document.images[isTrue].src = butLow.src;
		} 
		window.document.images[PicName].src = PicObj.src;
		isTrue  = PicName;
		isFalse = false;
		return;
	}
	
	
/**
	end of document
**/
