
function querySt(ji) {
	hu = window.location.search.substring(1);
	gy = hu.split("&");
	for (i=0;i<gy.length;i++) {
		ft = gy[i].split("=");
		if (ft[0] == ji) {
			return ft[1];
		}
	}
}

/**
var tabId = querySt("tabId");
var file = rightFromSubStringToEndOfFullString(location.href, "/");

if (tabId == "1" || file == "Hem.aspx") {
	document.getElementById("menu_link_1").className = "topmenuselected";
	document.getElementById('menu_img_1_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_1_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "2" || file.indexOf("ppettider.aspx") >= 0) {
	document.getElementById("menu_link_2").className = "topmenuselected";
	document.getElementById('menu_img_2_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_2_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "3" || file == "Meny.aspx") {
	document.getElementById("menu_link_3").className = "topmenuselected";
	document.getElementById('menu_img_3_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_3_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "4" || file == "Cateringmeny.aspx") {
	document.getElementById("menu_link_4").className = "topmenuselected";
	document.getElementById('menu_img_4_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_4_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "5" || file.indexOf("r%20finns%20vi.aspx") >= 0) {
	document.getElementById("menu_link_5").className = "topmenuselected";
	document.getElementById('menu_img_5_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_5_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "6" || file == "Systrarna.aspx") {
	document.getElementById("menu_link_6").className = "topmenuselected";
	document.getElementById('menu_img_6_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_6_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "7" ||  file.indexOf("hr.aspx") >= 0) {
	document.getElementById("menu_link_7").className = "topmenuselected";
	document.getElementById('menu_img_7_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_7_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "8" || file == "Kontakt.aspx") {
	document.getElementById("menu_link_8").className = "topmenuselected";
	document.getElementById('menu_img_8_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_8_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "9" || file == "Bilder.aspx") {
	document.getElementById("menu_link_9").className = "topmenuselected";
	document.getElementById('menu_img_9_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_9_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "10" ||  file.indexOf("nkar.aspx") >= 0) {
	document.getElementById("menu_link_10").className = "topmenuselected";
	document.getElementById('menu_img_10_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_10_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else if (tabId == "11" ||  file.indexOf("Nyhetsbrev.aspx") >= 0) {
	document.getElementById("menu_link_11").className = "topmenuselected";
	document.getElementById('menu_img_11_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_11_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";	
}
else {
	document.getElementById("menu_link_1").className = "topmenuselected";
	document.getElementById('menu_img_1_1').src = "/lantcafe/Upload/Images/left_menu_s.gif";
	document.getElementById('menu_img_1_2').src = "/lantcafe/Upload/Images/right_menu_s.gif";
}

function rightFromSubStringToEndOfFullString(fullString, subString) { 
	if (fullString.lastIndexOf(subString) == -1) { 
		return ""; 
	} else { 
		return fullString.substring(fullString.lastIndexOf(subString)+1, fullString.length); 
	} 
}
*/
