function shopbigimg(url,w,h) {
    var left = (screen.width - w) / 2;
    var top = (screen.height - h) / 2;
    popupwin = window.open("about:blank","window","width="+w+",height="+h+",left="+left+",top="+top+",scrollbars=0,resizable=0");
    setTimeout( 'shopbigimgupdate(\''+url+'\')',10);
}
function shopbigimgupdate(url) {
    popupwin.document.write("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/transitional.dtd'><html><head><title>pop<\/title><\/head><body style=\"cursor:pointer;margin:0px;\"><img onclick=\"window.close()\" src=\""+url+"\" alt=\"\" \/><\/body><\/html>");
    popupwin.document.write("<script>window.onblur=function(){self.close();}<\/script>");
    popupwin.document.close();
}

DOM = (document.getElementById) ? 1 : 0;
NS4 = (document.layers) ? 1 : 0;
// We need to explicitly detect Konqueror
// because Konqueror 3 sets IE = 1 ... AAAAAAAAAARGHHH!!!
Konqueror = (navigator.userAgent.indexOf('Konqueror') > -1) ? 1 : 0;
// We need to detect Konqueror 2.2 as it does not handle the window.onresize event
Konqueror22 = (navigator.userAgent.indexOf('Konqueror 2.2') > -1 || navigator.userAgent.indexOf('Konqueror/2.2') > -1) ? 1 : 0;
Konqueror30 =
	(
		navigator.userAgent.indexOf('Konqueror 3.0') > -1
		|| navigator.userAgent.indexOf('Konqueror/3.0') > -1
		|| navigator.userAgent.indexOf('Konqueror 3;') > -1
		|| navigator.userAgent.indexOf('Konqueror/3;') > -1
		|| navigator.userAgent.indexOf('Konqueror 3)') > -1
		|| navigator.userAgent.indexOf('Konqueror/3)') > -1
	)
	? 1 : 0;
Konqueror31 = (navigator.userAgent.indexOf('Konqueror 3.1') > -1 || navigator.userAgent.indexOf('Konqueror/3.1') > -1) ? 1 : 0;
// We need to detect Konqueror 3.2 and 3.3 as they are affected by the see-through effect only for 2 form elements
Konqueror32 = (navigator.userAgent.indexOf('Konqueror 3.2') > -1 || navigator.userAgent.indexOf('Konqueror/3.2') > -1) ? 1 : 0;
Konqueror33 = (navigator.userAgent.indexOf('Konqueror 3.3') > -1 || navigator.userAgent.indexOf('Konqueror/3.3') > -1) ? 1 : 0;
Opera = (navigator.userAgent.indexOf('Opera') > -1) ? 1 : 0;
Opera5 = (navigator.userAgent.indexOf('Opera 5') > -1 || navigator.userAgent.indexOf('Opera/5') > -1) ? 1 : 0;
Opera6 = (navigator.userAgent.indexOf('Opera 6') > -1 || navigator.userAgent.indexOf('Opera/6') > -1) ? 1 : 0;
Opera56 = Opera5 || Opera6;
IE = (navigator.userAgent.indexOf('MSIE') > -1) ? 1 : 0;
IE = IE && !Opera;
IE5 = IE && DOM;
IE4 = (document.all) ? 1 : 0;
IE4 = IE4 && IE && !DOM;


menuTopShift = 6;
menuRightShift = 7;
menuLeftShift = 2;

var thresholdY = 5;
var abscissaStep = 140;

toBeHidden = new Array();
toBeHiddenLeft = new Array();
toBeHiddenTop = new Array();

listl = ['L1','L2','L12','L23','L30','L34','L40','L49','L54','L61'];
var numl = listl.length;

father = new Array();
for (i=1; i<=65; i++) {
	father['L' + i] = '';
}
father_keys = ['L2','L3','L4','L5','L6','L7','L8','L9','L10','L11','L12','L13','L14','L15','L16','L17','L18','L19','L20','L21','L24','L25','L26','L27','L28','L31','L32','L35','L36','L37','L38','L41','L42','L43','L44','L45','L46','L47','L50','L51','L52','L55','L56','L57','L58','L59','L62','L63','L64','L65'];
father_vals = ['L1','L2','L2','L2','L2','L2','L2','L2','L2','L2','L1','L12','L12','L12','L12','L12','L12','L12','L12','L12','L23','L23','L23','L23','L23','L30','L30','L34','L34','L34','L34','L40','L40','L40','L40','L40','L40','L40','L49','L49','L49','L54','L54','L54','L54','L54','L61','L61','L61','L61'];
for (i=0; i<father_keys.length; i++) {
	father[father_keys[i]] = father_vals[i];
}

lwidth = new Array();
var lwidthDetected = 0;

function moveLayers()
{
	if (!lwidthDetected) {
		for (i=0; i<numl; i++) {
			lwidth[listl[i]] = getOffsetWidth(listl[i]);
		}
		lwidthDetected = 1;
	}
	if (IE4) {
		for (i=0; i<numl; i++) {
			setWidth(listl[i], abscissaStep);
		}
	}
	var menu480f3ca1c0f75TOP = getOffsetTop('menu480f3ca1c0f75L1');
	var menu480f3ca1c0f75HEIGHT = getOffsetHeight('menu480f3ca1c0f75L1');
	setTop('L1', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L1', 'menu480f3ca1c0f75');
	setTop('L23', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L23', 'menu480f3ca1c0f75');
	setTop('L30', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L30', 'menu480f3ca1c0f75');
	setTop('L34', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L34', 'menu480f3ca1c0f75');
	setTop('L40', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L40', 'menu480f3ca1c0f75');
	setTop('L49', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L49', 'menu480f3ca1c0f75');
	setTop('L54', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L54', 'menu480f3ca1c0f75');
	setTop('L61', menu480f3ca1c0f75TOP + menu480f3ca1c0f75HEIGHT);
	moveLayerX1('L61', 'menu480f3ca1c0f75');

}

back = new Array();
for (i=1; i<=65; i++) {
	back['L' + i] = 0;
}


function showBox(e) {
  box = document.getElementById("boks").style;
  var valueleft = ((e.clientX) ? e.clientX : e.pageX)+document.documentElement.scrollLeft-215+"px";
  if(valueleft<="0") {
    valueleft = ((e.clientX) ? e.clientX : e.pageX)+document.documentElement.scrollLeft+25+"px";
  }
  box.left = valueleft;
  box.top = ((e.clientY) ? e.clientY : e.pageY)+document.documentElement.scrollTop-115+"px";
  box.display = "block";  }
  
  function hideBox() {
          document.getElementById("boks").style.display="none";
  }
