// JavaScript Document
function visHeight(ob) {
x=document.getElementById("mPDiv").offsetHeight;
x+="px";
y=document.getElementById("lSide");
y.style.height=x;
//y.style.visibility="visible";
//alert(y);
}//visHeight slutt
function fSide() {
	t=165;
	z="px";
	x=document.getElementById("lSide").offsetHeight;
	x+=t;
	x+=z;
	y=document.getElementById("mainPage").style.height=x;
	yy=document.getElementById("rightSide").style.height=x;
}
//----------------------------------------------------------------
function kontHeight() {
	x=document.getElementById("showPage").offsetHeight;
	x+="px";
	y=document.getElementById("lSide").style.height=x;
}
//----------------------------------------------------------------
function visPic(ob,mOb)
{
	//viser store bilder av små i eget vindu
	//alert(ob.src);
	//alert(mOb);
	var temp=ob.src;
	var iStr=temp.indexOf("Small");
	var newStr=temp.substr(0,iStr);
	//iStr=temp.indexOf(".");
	newStr=newStr + ".png" //temp.substr(iStr,10);
	imgMain=document.getElementById(mOb).src=newStr;
	//pWin=window.open(newStr,"new_win","location=no, status=no, height=600, width=600,resizable=yes");
	//pWin.focus();
	//nWin.document.write("Testin");
	//alert(document.title);
} //function visPic ends
//----------------------------------------------------------------
var myimages=new Array()
function preloadimages(){
	for (i=0;i<preloadimages.arguments.length;i++){
	myimages[i]=new Image()
	myimages[i].src=preloadimages.arguments[i]
	/*alert(myimages[i].src);
	if ( i>5 ) {
		break
	}*/
	}
}//function ends
//-------------------------------------------------------------------------
function preButtons(ik) {
	preloadimages(ik+"bil.png",ik+"nforrigeside.png",ik+"hage.png",ik+"hest.png",ik+"kabel.png",ik+"kjore.png",ik+"kontakt.png",ik+"maskin.png",ik+"nbaath.png",ik+"nopplagshenger.png",ik+"nservice.png",ik+"nskap.png",ik+"nspesH.png",ik+"nsprengH.png",ik+"nstartside.png",ik+"nvarehenger.png",ik+"termo.png",ik+"thule_sykk.png",ik+"tilbeh.png",ik+"tilhengere.png",ik+"tilhengerUt.png");

	
}//function ends
//--------------------------------------------------------------------------
function visPicII(ob)
{
	//viser store bilder av små i eget vindu
	//alert(ob.src);
	var temp=ob.src;
	var iStr=temp.indexOf("Small");
	var newStr=temp.substr(0,iStr);
	//iStr=temp.indexOf(".");
	newStr=newStr + ".jpg" //temp.substr(iStr,10);
	pWin=window.open(newStr,"new_win","location=no, status=no, height=600, width=600,resizable=yes");
	pWin.focus();
	//nWin.document.write("Testin");
	//alert(document.title);
} //function visPic ends---------------------------------------------------------
