function extractPageName(b){var a=b.split(".");if(a.length>=2){a=a[a.length-2].split("/");return a[a.length-1].toLowerCase()}else{return"x"}}function setActiveMenu(a,c){for(var b=0;b<a.length;b++){if(extractPageName(a[b].href)==c){if(a[b].parentNode.tagName!="DIV"){a[b].className="cur"}}}}function setPage(){hrefString=document.location.href?document.location.href:document.location;if(document.getElementById("submenu")!=null){setActiveMenu(document.getElementById("submenu").getElementsByTagName("a"),extractPageName(hrefString))}};

// You need to specify the size of your background image here (could be done automatically by some PHP code)
var FullscreenrOptions = {  width: 1000, height: 625, bgID: '#bgimg' };
// This will activate the full screen background!
jQuery.fn.fullscreenr(FullscreenrOptions);
