
function changeBG(what){inputs=document.getElementById("topmenu").getElementsByTagName("li");for(i=0;i<inputs.length;i++){inputs[i].style.backgroundColor="";}
document.getElementById(what).style.backgroundColor="#00c3bb";}
function changeBorder(what){inputs=document.getElementById("imagecount").getElementsByTagName("li")
for(i=0;i<inputs.length;i++){inputs[i].style.borderColor="";}
document.getElementById(what).style.borderColor="#00c3bb";}
function changeContact(what){inputs=document.getElementById("contact_sidnummer").getElementsByTagName("li")
for(i=0;i<inputs.length;i++){inputs[i].className="ordinary";}
document.getElementById(what).className="indent";}
var isInternetExplorer=navigator.appName.indexOf("Microsoft")!=-1;function test_DoFSCommand(command,args){var testObj=isInternetExplorer?document.all.test:document.test;if(command=="ajaxTEST"){var target="contentwrapper";getAXAH(args,target);}}
if(navigator.appName&&navigator.appName.indexOf("Microsoft")!=-1&&navigator.userAgent.indexOf("Windows")!=-1&&navigator.userAgent.indexOf("Windows 3.1")==-1){document.write('<script language=\"VBScript\"\>\n');document.write('On Error Resume Next\n');document.write('Sub test_FSCommand(ByVal command, ByVal args)\n');document.write(' Call test_DoFSCommand(command, args)\n');document.write('End Sub\n');document.write('</script\>\n');}
function getNewHttpObject(){var objType=false;try{objType=new ActiveXObject('Msxml2.XMLHTTP');}catch(e){try{objType=new ActiveXObject('Microsoft.XMLHTTP');}catch(e){objType=new XMLHttpRequest();}}
return objType;}
function getAXAH(url,elementContainer){var theHttpRequest=getNewHttpObject();theHttpRequest.onreadystatechange=function(){processAXAH(elementContainer);};theHttpRequest.open("GET",url);theHttpRequest.send(false);function processAXAH(elementContainer){if(theHttpRequest.readyState==4){if(theHttpRequest.status==200){document.getElementById(elementContainer).innerHTML=theHttpRequest.responseText;}else{document.getElementById(elementContainer).innerHTML="<p><span class='redtxt'>Error!<\/span> HTTP request return the following status message: "+theHttpRequest.statusText+"<\/p>";}}}}
function getIMAGE(page,filename,width,height,lwidth,lheight,elementContainer,ImageName,type){document.getElementById(elementContainer).innerHTML='<div id="loader">&nbsp;<img src="/images/loading.gif" alt="Loading..." /></div>';if(type=="news"){var path="news";}else{var path="pages";}
var url="/image.php?width="+width+"&height="+height+"&image=/images/"+path+"/"+page+"/"+filename
var lurl="/image.php?width="+lwidth+"&height="+lheight+"&image=/images/"+path+"/"+page+"/"+filename
var theHttpRequest=getNewHttpObject();theHttpRequest.onreadystatechange=function(){processAXAH(elementContainer);};theHttpRequest.open("GET",url);theHttpRequest.send(false);function processAXAH(elementContainer){if(theHttpRequest.readyState==4){if(theHttpRequest.status==200){document.getElementById(elementContainer).innerHTML='<div id="imagearea"><a href="'+lurl+'" rel="lightbox"><img src="'+url+'"></a></div><div id="imageName">'+ImageName+'</div>';}else{document.getElementById(elementContainer).innerHTML="<p><span class='redtxt'>Error!<\/span> HTTP request return the following status message: "+theHttpRequest.statusText+"<\/p>";}}}}
function getSWAP(url,elementContainer){var theHttpRequest=getNewHttpObject();theHttpRequest.onreadystatechange=function(){processAXAH(elementContainer);};theHttpRequest.open("GET",url);theHttpRequest.send(false);function processAXAH(elementContainer){if(theHttpRequest.readyState==4){if(theHttpRequest.status==200){document.getElementById(elementContainer).innerHTML=theHttpRequest.responseText;}else{document.getElementById(elementContainer).innerHTML="<p><span class='redtxt'>Error!<\/span> HTTP request return the following status message: "+theHttpRequest.statusText+"<\/p>";}}}}
function sendNewsletter(url,elementContainer){var theHttpRequest=getNewHttpObject();theHttpRequest.onreadystatechange=function(){processAXAH(elementContainer);};theHttpRequest.open("GET",url);theHttpRequest.send(false);function processAXAH(elementContainer){if(theHttpRequest.readyState==4){if(theHttpRequest.status==200){document.getElementById(elementContainer).innerHTML=theHttpRequest.responseText;}else{document.getElementById(elementContainer).innerHTML="<p><span class='redtxt'>Error!<\/span> HTTP request return the following status message: "+theHttpRequest.statusText+"<\/p>";}}}}
var popupstatus=0;function popup(file){document.getElementById('overlayd').style.display="block";getAXAH(file,'containerText');popupstatus=1;}
function closepop(){document.getElementById('overlayd').style.display="none";popupstatus=0;}
