function konsole(){
	var KonsoleWin = window.open("../site/konsole/1/1/entrance.php", "konsolewindow", "width=1024,height=800,screenX=0,screenY=0,resizable=yes,scrollbars=yes,status=yes");
	// self.close();
	KonsoleWin.focus();
}
function AppWin(file, a_width, a_height)
{
	AppWindow = window.open(file, "app_window", "width="+a_width+",height="+a_height+",screenX=10,screenY=10,resizable=yes,scrollbars=yes,status=yes");
	AppWindow.focus();
}
function AppWin2(file, a_width, a_height, winname)
{
	AppWindow2 = window.open(file, winname, "width="+a_width+",height="+a_height+",screenX=10,screenY=10,resizable=yes,scrollbars=yes,status=yes");
	AppWindow2.focus();
}
function roll(name,obj)
{
	eval("window.document." + name + ".src = obj");	
}
// Show and hide divs

function hide(id)
{		
	document.getElementById(id).style.visibility = 'hidden';
}
function show(id)
{	
	document.getElementById(id).style.visibility = 'visible';	
}

function hide2(id1, id2)
{		
	document.getElementById(id1).style.visibility = 'hidden';
	document.getElementById(id2).style.visibility = 'visible';
}
function show2(id1, id2)
{	
	document.getElementById(id1).style.visibility = 'visible';
	document.getElementById(id2).style.visibility = 'hidden';		
}

// define browser
var agent = navigator.appVersion;

if(agent.search(/Macintosh/) != -1){
	if(agent.search(/Safari/) != -1){
		var browser = 1;
	}
	if(agent.search(/MSIE/) != -1){
		var browser = 2;
	}
	if((agent.search(/MSIE/) == -1) && (agent.search(/Safari/) == -1) && (navigator.appName == 'Netscape')){
		var browser = 3;
	}
}
else{
	var browser = 4;
}