function Go(url) {
 newurl = url;
 q = window.location.search.substr(1).toLowerCase().split("&");
 for (i=0; i<q.length; i++) {
  if (q[i].substr(0,9) == "expnodes=") {
   newurl += "&"+q[i];
   break;
  }
 }
 window.location = newurl;
}

function NewWindow(bredde,hoyde,url) {
 window.open(url,"ShowProdWindow","menubars=0,scrollbars=1,resizable=1,height="+hoyde+",width="+bredde);
}
function tipVen(bredde,hoyde,url,thisScrollbars,thisResize) {
		window.open(url,"ShowProdWindow","menubars=0,scrollbars="+thisScrollbars+",resizable="+thisResize+",height="+hoyde+",width="+bredde);
}
function getQueryVariable(variable) {
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  }
  return 999
}

function launchCenteredWin(url, name, width, height, otherfeatures)
{
  var str = "height=" + height + ",innerHeight=" + height;
  str += ",width=" + width + ",innerWidth=" + width;
  if (window.screen) {
    var ah = screen.availHeight - 30;
    var aw = screen.availWidth - 10;

    var xc = (aw - width) / 2;
    var yc = (ah - height) / 2;

    str += ",left=" + xc + ",screenX=" + xc;
    str += ",top=" + yc + ",screenY=" + yc;
  }
  newwin = window.open(url, name, str + ',' + otherfeatures);
  if(parseInt(navigator.appVersion) >= 4)
  {
	//delay a bit here because IE4 encounters errors
	//when trying to focus a recently opened window
 	setTimeout('newwin.focus();',250);
  }
}
function getManganFlashUrl()
{
	if (getQueryVariable("getmenu") == 999)
	{
		var flashUrl = "flash_content.html"
	}else
	{
		var flashUrl = "flash_content.html?getmenu=" + getQueryVariable("getmenu")
	}
}

function openLynxWindow(PageURL){
  WindowName="3f";
  settings="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=768,height=636";
  MyNewWindow=window.open(PageURL,WindowName,settings);
}