img1=new Image()
img1.src='/images/arrowgray2.gif'


function chng(pic_location,pic)
{
	if (PicName!=pic_location)
	document[pic_location].src=pic
}

function linking(url)
{
document.all.Mifr.src=url
}	
	
var last_one=null
function chng_div(new_one)
{
if (last_one!=null)
{
last_layer=eval('document.all.'+last_one+'.style')
last_layer.visibility='hidden'
}
new_layer=eval('document.all.'+new_one+'.style')
new_layer.visibility='visible'

last_one=new_one

}


var last_one_team=null
function chng_div_team(new_one_team)
{
if (last_one_team!=null)
{
last_layer_team=eval('document.all.'+last_one_team+'.style')
last_layer_team.visibility='hidden'
}
new_layer_team=eval('document.all.'+new_one_team+'.style')
new_layer_team.visibility='visible'

last_one_team=new_one_team

}

last_div=null
last_one_team=null

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'
	}
	if(nameOf=='Mozila')
	{
	doc='document.getElementById'
	sty=''
	}
//change_place()
}

function change_place()
{
if(doc!=0)
{
windowWidth=document.body.offsetWidth	
//alert(windowWidth)
			if(windowWidth>(760+20))
			windowWidthLeft=(windowWidth-(760+20))/2	
			else
			windowWidthLeft=0
			
	document.getElementById("aboutusbar").style.left=windowWidthLeft+265
	
//lay5=eval(doc+"aboutusbar"+sty)
//lay5.left=windowWidthLeft+265
	document.getElementById("teambar").style.left=windowWidthLeft+349
//lay6=eval(doc+"teambar"+sty)
//lay6.left=windowWidthLeft+349
	document.getElementById("portfoliobar").style.left=windowWidthLeft+410
//lay7=eval(doc+"portfoliobar"+sty)
//lay7.left=windowWidthLeft+410
	document.getElementById("advantagebar").style.left=windowWidthLeft+493
//lay8=eval(doc+"advantagebar"+sty)
//lay8.left=windowWidthLeft+493
	document.getElementById("contactbar").style.left=windowWidthLeft+606
//lay9=eval(doc+"contactbar"+sty)
//lay9.left=windowWidthLeft+606
	document.getElementById("newsbar").style.left=windowWidthLeft+606
//lay10=eval(doc+"newsbar"+sty)
//lay10.left=windowWidthLeft+650

}
}	


function change_place_home()
{
if(doc!=0)
{
windowWidth=document.body.offsetWidth	
windowHeight=document.body.offsetHeight
//alert(windowWidth)
			if(windowWidth>(760+20))
			windowWidthLeft=(windowWidth-(760+20))/2	
			else
			windowWidthLeft=0
			
			if(windowHeight>(426))
			{
			windowHeightTop=(windowHeight-(423))/2
			//alert(windowHeight)
			//alert(windowHeightTop)
			}
			else
			{
			windowHeightTop=0
			//alert(windowHeightTop)
			}
				
	document.getElementById("aboutusbar").style.left=windowWidthLeft+265
	document.getElementById("aboutusbar").style.top=windowHeightTop+157
//lay5=eval(doc+"aboutusbar"+sty)
//lay5.style.left=windowWidthLeft+265
//lay5.top=windowHeightTop+157

	document.getElementById("teambar").style.left=windowWidthLeft+349
	document.getElementById("teambar").style.top=windowHeightTop+157
//lay6=eval(doc+"teambar"+sty)
//lay6.left=windowWidthLeft+349
//lay6.top=windowHeightTop+157

	document.getElementById("portfoliobar").style.left=windowWidthLeft+410
	document.getElementById("portfoliobar").style.top=windowHeightTop+157

//lay7=eval(doc+"portfoliobar"+sty)
//lay7.left=windowWidthLeft+410
//lay7.top=windowHeightTop+157

	document.getElementById("advantagebar").style.left=windowWidthLeft+493
	document.getElementById("advantagebar").style.top=windowHeightTop+157

//lay8=eval(doc+"advantagebar"+sty)
//lay8.left=windowWidthLeft+493
//lay8.top=windowHeightTop+157

	document.getElementById("contactbar").style.left=windowWidthLeft+606
	document.getElementById("contactbar").style.top=windowHeightTop+157

//lay9=eval(doc+"contactbar"+sty)
//lay9.left=windowWidthLeft+606
//lay9.top=windowHeightTop+157
	document.getElementById("newsbar").style.left=windowWidthLeft+606
	document.getElementById("newsbar").style.top=windowHeightTop+157

//lay10=eval(doc+"newsbar"+sty)
//lay10.left=windowWidthLeft+650
//lay10.top=windowHeightTop+157




}
}	



function f_opengen(address,name,width,height)
{
window.open(address,name,"width="+width+",height="+height+",scrollbars=1,resizable=1,top=10,left=10,toolbar=0,status=0")
}
function f_opengen_ifat(address,name)
{
if (screen.width == 800)
{

window.open(address,name,"width=630,height=390,menubar=no,toolbar=no,scrollbars=yes,resizable=no,top=150,left=72")
}
else
window.open(address,name,"width=630,height=510,menubar=no,toolbar=no,scrollbars=yes,resizable=no,top=200,left=185")
}

function f_opengen_full(address,name,width,height)
{
window.open(address,name,"width="+width+",height="+height+",scrollbars=1,resizable=1,top=10,left=10,toolbar=0,status=0")
}
