//Default browsercheck, added to all scripts!
function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5) && !this.ie4mac
	return this
}
bw=new checkBrowser()

if(!bw.bw) location.href="/nojs/"

vars=location.search
nointro=vars?1:0
function init(){
	page=new makePageCoords()
	oDiv=new Array()
	oLine=new Array()
	for(i=0;i<=3;i++){
		oDiv[i]=new makeObj('div'+i)
		oDiv[i].img=new Array()
		oDiv[i].img[0]=new makeObj('divImg'+i+'_0','div'+i)
		oDiv[i].img[0].moveIt(0,-50)
		oDiv[i].img[1]=new makeObj('divImg'+i+'_1','div'+i)
		oDiv[i].img[1].moveIt(0,35)
		oDiv[i].ex=new makeObj('divEx'+i)
		oDiv[i].i=0.5;
		oDiv[i].clipTo(35,60,35,60);
		if(bw.ie4 || bw.dom)oDiv[i].css.overflow="hidden"
		oDiv[i].moveIt(page.x+20,page.y+20+(100*i))
		if(i==0 || i==2) oDiv[i].ex.moveIt(oDiv[i].x+130,oDiv[i].y+40)
		else oDiv[i].ex.moveIt(oDiv[i].x+130,oDiv[i].y)		
		if(i<3)	oLine[i]=new makeObj('divLine'+i)
	}
	bottom = page.y2
	if (bottom < 430) bottom=470;
	oLine[0].moveIt(page.y,page.x)
	oLine[1].moveIt(page.y,page.x)
	oLine[2].moveIt(page.y,page.x)
	oLine[2].clipTo(page.y,page.x+170,bottom,page.x+1,1)
	oLine[0].clipTo(page.y,page.x+1,bottom,page.x,1)
	oLine[1].clipTo(page.y,page.x+171,bottom,page.x+170,1)

	oBratta=new makeObj('divSLOtechs')
	oBratta.moveIt((page.x2-page.x)/2,5)
        
	move()
	if(!nointro){
            		setTimeout("oLine[2].showIt(); oLine[2].clipIt(page.y,page.x+80,bottom,page.x+75,5,'oLine[2].clipTo(page.y,page.x+80,bottom,page.x+80,1); oLine[2].css.zIndex=2; for(i=0;i<oDiv.length;i++){oDiv[i].showIt(); oDiv[i].clipIt(3,125,81,0,5,1)}','',1)",500)
	}else{
        oLine[2].clipTo(page.y,page.x+80,bottom,page.x+80,1)
		oLine[2].showIt(); 
		oLine[2].css.zIndex=2
		for(i=0;i<oDiv.length;i++){oDiv[i].showIt(); oDiv[i].clipTo(3,130,81,0)}
	}
	oBratta.showIt()
	window.onresize=resized;
}
function resized(){
	page2=new makePageCoords()
	if(page2.x2!=page.x2 || page2.y2!=page.y2) if(!nointro) location.href=location.href+"?1"
	else location.href=location.href
}
function mmover(num){oDiv[num].ex.showIt();oDiv[num].over=true}
function mmout(num){oDiv[num].ex.hideIt();oDiv[num].over=false}

function move(){
	for(i=0;i<oDiv.length;i++){
		if(oDiv[i].img[0].y<-85)oDiv[i].img[0].moveIt(oDiv[i].img[1].x,oDiv[i].img[1].y+85)
		if(oDiv[i].img[1].y<-85)oDiv[i].img[1].moveIt(oDiv[i].img[1].x,oDiv[i].img[0].y+85)
		oDiv[i].img[0].moveBy(0,-oDiv[i].i); oDiv[i].img[1].moveBy(0,-oDiv[i].i)	
		if(oDiv[i].i>1 && !oDiv[i].over) oDiv[i].i--
		else if(oDiv[i].i<50 && oDiv[i].over) oDiv[i].i++
	}
	setTimeout("move()",50)
}

onload=init;

