//image preloading functions, pulled out of the templates and place in this file.

	preload('startsida_on','http://www.mtbuy.com/web/img/swe-but1f.gif')
	preload('startsida_off','http://www.mtbuy.com/web/img/swe-but1.gif')
	preload('mittmtbid_on','http://www.mtbuy.com/web/img/swe-but2f.gif')
	preload('mittmtbid_off','http://www.mtbuy.com/web/img/swe-but2.gif')
	preload('kop_on','http://www.mtbuy.com/web/img/swe-but3f.gif')
	preload('kop_off','http://www.mtbuy.com/web/img/swe-but3.gif')
	preload('salj_on','http://www.mtbuy.com/web/img/swe-but4f.gif')
	preload('salj_off','http://www.mtbuy.com/web/img/swe-but4.gif')
	preload('arkiv_on','http://www.mtbuy.com/web/img/mtbuy-but6f.gif')
	preload('arkiv_off','http://www.mtbuy.com/web/img/mtbuy-but6.gif')
	preload('eftersokt_on','http://www.mtbuy.com/web/img/swe-but6f.gif')
	preload('eftersokt_off','http://www.mtbuy.com/web/img/swe-but6.gif')
	preload('kundservice_on','http://www.mtbuy.com/web/img/swe-but7f.gif')
	preload('kundservice_off','http://www.mtbuy.com/web/img/swe-but7.gif')


//Set blockDiv to false
var blockDivOn = false;

//Check Image before performing rollover
function checkImage(layer,imgName,imgObj){
  changeImage(layer,imgName,imgObj);
}

//Show layer object
function showObject() {
	if(is.ns) document.blockDiv.visibility = "show";
	else if(is.ie) blockDiv.style.visibility = "visible"
  blockDivOn = true
}

//Hide layer object
function hideObject() {
	if (is.ns) document.blockDiv.visibility = "hide"
	else if (is.ie) blockDiv.style.visibility = "hidden"
  blockDivOn = false
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
