/**
* (co) 2002 - 2005 Copyright: tn34.de
*
* @package    lib
* @name       $RCSfile: include2.js,v $
* @version    $Revision: 1.1 $
* @date       $Date: 2007/03/22 10:01:23 $
* @author     $Author: bohlig $
*/
var isNav=false;
var isIE=false;

var BrowserVer = 0;
BrowserVer = parseInt(navigator.appVersion);

if( BrowserVer >= 4){
    if(navigator.appName == "Netscape"){
        isNav = true;
    } else {
        isIE = true;
    }
}

//------------------------------------------------//
function dummy(){
}
 
function ShowWindow(url, w, h){
	var winWidth  = w ;
	var winHeight = h ;
	dummy = window.open(url,"","resizable=no,scrollbars=yes,toolbar2=no,menubar2=no,location=no,width="+winWidth+",height="+winHeight);
	//dummy = window.open(url,"","width="+winWidth+",height="+winHeight);
	if (dummy != null){
		dummy.moveTo(0,0);
		dummy.focus();
	}
}
function printer(url) {
	dummy = window.open(url,"","resizable=yes,scrollbars=yes,toolbar2=no,menubar2=no,location=no,width=600,height=650");
	dummy.moveTo(0,0);
	dummy.focus();
}
function ShowWindowScroll(url, w, h){
	var winWidth  = w ;
	var winHeight = h ;
	var dummy;
	dummy = window.open(url,"","resizable=yes,scrollbars=yes,toolbars=no,menubars=no,location=no,width="+winWidth+",height="+winHeight);
	if (dummy != null){
		try{
		    dummy.moveTo(0,0);
		    dummy.focus();
		}catch(e){/*Nothing to do*/}
	}
}

function ShowHelp(url, w, h){
	var winWidth  = w ;
	var winHeight = h ;
	dummy = window.open(url,"HelpWindow","resizable=yes,scrollbars=yes,toolbars=no,menubars=no,location=no,width="+winWidth+",height="+winHeight);
	if (dummy != null){
		try{
		    dummy.focus();
		}catch(e){/*Nothing to do*/}
	}
}

function ShowDebugWindow(url, w, h){
	var winWidth  = w ;
	var winHeight = h ;
	var dummy;
	dummy = window.open(url,"DebugWindow","resizable=yes,scrollbars=yes,toolbars=no,menubars=no,location=no,width="+winWidth+",height="+winHeight);
	if (dummy != null){
		try{
		    dummy.moveTo(0,0);
		    //dummy.focus();
		}catch(e){/*Nothing to do*/}
	}
	this.focus();
}

function PopupWindow(url, w, h){
	//alert(url);
	var winWidth  = w ;
	var winHeight = h ;
	var dummy;
	dummy = window.open(url,"","resizable=yes,scrollbars=yes,toolbars=no,menubars=no,location=no,width="+winWidth+",height="+winHeight);
	if (dummy != null){
		try{
		    dummy.moveTo(0,0);
		    dummy.focus();
		}catch(e){/*Nothing to do*/}
	}
}

/* Navigationsbilder */
function hover(id,classname,image){
	//alert(id+" "+classname);
	hover_ico(id,image);
	try{
		document.getElementById("text"+id).className = classname;
	}catch(e){}
}
function hover_ico(id,image){
	//alert(id+" "+classname);
	if(image != ''){
		var imagepath = dataUrl+'images/'+image;
		try{
			document.getElementById("icon"+id).src = imagepath;
		}catch(e){}
	}
}

