//GENERIC HEADER INFO
try { eval(pageTitle.length); 	}catch(exception){ pageTitle=" "; }
try{ eval(frameenv); 	}catch(exception){ frameenv=false; }
try{ eval(scriptPath.length); 	}catch(exception){ scriptPath="../../scripts/"; }
try{ eval(imagePath.length); 	}catch(exception){ imagePath="../../images/"; }

document.write("<title>QBE :: "+pageTitle+"</title>");
self.status = "QBE :: " + pageTitle;

//document.onclick = closePopup;
document.onkeypress = closePopup;

window.resizeTo(screen.width*0.8,screen.height*0.8);
window.moveTo(screen.width*0.1,screen.height*0.1);

function closePopup(){
	self.close();
}

function buildMainMenu(){}

//SCRIPTS
document.write('<script language="javascript" src="'+scriptPath+'qbebrowserdetect.js"></script>');
document.write('<script language="javascript" src="'+scriptPath+'qbelinkhandling.js"></script>');

//STYLESHEETS
document.write('<link rel="stylesheet" href="'+imagePath+'stylesheets/qbegeneric.css" type="text/css">');
document.write('<link rel="stylesheet" href="'+imagePath+'stylesheets/qbemodalpopups.css" type="text/css">');
document.write('<link rel="stylesheet" href="'+imagePath+'stylesheets/qbe'+screenColor+'.css" type="text/css">');

