var doc=0
var sty=0

 function f_sniffer() 
{

	nameOf=navigator.appName

	if(nameOf=='Netscape')
	{
	doc='document.'
	sty=''
	}
	if(nameOf=='Microsoft Internet Explorer')
	{
	doc='document.all.'
	sty='.style'
	}
	
//change_place()
}

function change_place()
{
	if(doc==0)
	{
	f_sniffer(); 
	windowWidth=document.body.offsetWidth	
	widthRight=(windowWidth-777-22)/2
	lay3=eval(doc+"divCont"+sty)
	lay3.left=widthRight
	}
	else
	{
	windowWidth=document.body.offsetWidth	
	widthRight=(windowWidth-777-22)/2
	lay3=eval(doc+"divCont"+sty)
	lay3.left=widthRight
	}
}

function show_vanish()
{
f_sniffer(); 
lay3=eval(doc+"pic1"+sty)
if(lay3.visibility=="visible")
lay3.visibility="hidden"
else
lay3.visibility="visible"
}
var last_pic=null
function show2(new_pic)
{
if(doc!=0)
{
if (last_pic!=null)
{
lay2=eval(doc+last_pic+sty)
lay3.visibility="hidden"
}
lay3=eval(doc+new_pic+sty)
lay3.visibility="visible"
last_pic=new_pic
}
}

function vanish2(new_pic)
{
lay2=eval(doc+last_pic+sty)
lay3.visibility="hidden"
}


function change_place_menu()
{
if(doc!=0)
{
windowWidth=document.body.offsetWidth	
widthRight=(windowWidth-777-22)/2
lay3=eval(doc+"pic1"+sty)
lay3.left=widthRight+323
}
}

var tab;

function openWindow(url) {
	window.open(url,'_blank');
}

function real_reset_tabs() {
	document.getElementById('tab_1').style.background='url(../images/tab_1_off.gif)';
	document.getElementById('tab_2').style.background='url(../images/tab_2_off.gif)';
	document.getElementById('tab_3').style.background='url(../images/tab_3_off.gif)';
	document.getElementById('tab_6').style.background='url(../images/tab_6_off.gif)';
	document.getElementById('content_1').style.display='none';
	document.getElementById('content_2').style.display='none';
	document.getElementById('content_3').style.display='none';
	document.getElementById('content_6').style.display='none';
}

function reset_tabs() {
	setTimeout("real_reset_tabs()",100);
}

function body_onload() {
	for (i=1; i<7; i++) {
		document.getElementById("tab_"+i).onmouseover = function() {
			this.style.background='url(../images/'+this.id+'_on.gif)';
		}
		document.getElementById("tab_"+i).onmouseout = function() {
			if (document.tab!=this) { this.style.background='url(../images/'+this.id+'_off.gif)'; }
		}
		document.getElementById("tab_"+i).onclick = function() {
			real_reset_tabs();
			this.style.background='url(../images/'+this.id+'_on.gif)';
			document.getElementById('content_'+this.id.replace('tab_','')).style.display='block';
			document.tab = this;
		}
}
		document.getElementById("tab_4").onclick = function() {
		window.location.href("../knowledge_center/center.html");
		}	
		document.getElementById("tab_5").onclick = function() {
		window.location.href("../meet/employees.html");
	}
			document.getElementById("tab_7").onclick = function() {
		window.location.href("../banners/banner1.html");
	}
	
	document.getElementById("pop_up_close").onclick = function() {
		document.getElementById("pop_up_window").style.display="none";
	}
}
