//
// site wide scripts
//

function MM_openBrWindow(theURL,winName,features) {
  var oWin = window.open(theURL,winName,features);
  if (! oWin) {
    var str = "You have popup windows blocked in your browser\n";
	 str += "which is often done to block unwanted advertisement.\n";
	 str += "This site uses these popup windows for ease of navigation\n";
	 str += "and not for advertisement.\n";
	 str += "Therefore please allow popup windows for this site\n";
	 str += "to view the content behind this link.\n\n"
	 str += "In the Google toolbar this is done by clicking on the pop-blocker button;\n";
	 str += "and in Firefox you can add this site to the allowed sites under \n";
	 str += "Tools -> Options -> Web Features.\n";
	 str += "For other 'Ad-Blockers' please see it's documentation.\n\n\n";
	 str += "Thank you!";
	 alert (str);
     }
  else {
	 oWin.focus();
     }
  return false;
}

function OpenPop() {
   MM_openBrWindow ("", "PopWin",
                    "height=700,width=700,scrollbars=yes,resizable=yes," + 			
                    "statusbar=no,menubar=no,toolbar=no,dependent=yes");
	} // OpenPop
	
function OpenPopHelp() {
   MM_openBrWindow ("", "PopHelp",
                    "height=700,width=700,scrollbars=yes,resizable=yes," + 			
                    "statusbar=no,menubar=no,toolbar=no,dependent=yes");
	} // OpenPopHelp
	
function OpenPopMaterial() {
   MM_openBrWindow ("", "PopMaterial",
                    "height=700,width=700,scrollbars=yes,resizable=yes," + 			
                    "statusbar=no,menubar=no,toolbar=no,dependent=yes");
	} // OpenPopMaterial
	
function OpenPopSlideShow(url) {
   MM_openBrWindow (url, "PopSlideSchow",
                    "height=660,width=660,scrollbars=no,location=no,resizable=yes," + 			
                    "status=no,menubar=no,toolbar=no,dependent=yes,navigation=no");
   					return false;
	} // OpenPopSlideShow
	
function OpenPopCal() {
   MM_openBrWindow ("", "PopCal",
                    "height=700,width=900,scrollbars=yes,resizable=yes," + 			
                    "statusbar=no,menubar=no,toolbar=no,dependent=yes");
	} // OpenPopCal
	
function OpenPopFriends() {
   MM_openBrWindow ("", "PopFriends",
                    "height=700,width=700,scrollbars=yes,resizable=yes," + 			
                    "statusbar=no,menubar=no,toolbar=no,dependent=yes");
	} // OpenPopFriends
	
function OpenBig(url) {
	MM_openBrWindow (url, "PopBig",
                    "height=800,width=950,scrollbars=yes,resizable=yes," + 			
                    "statusbar=no,menubar=no,toolbar=no");
	return false;
	} // OpenPop

function OpenInfo(url) {
	MM_openBrWindow (url, "PopInfo",
                    "height=650,width=650,scrollbars=yes,resizable=yes," + 			
                    "statusbar=no,menubar=no,toolbar=no,dependent=yes");
	return false;
	} // OpenPop

function whenloading() {
	} // dummy function whenloading
	
function ShowPop(id) {
	document.getElementById(id).style.visibility = "visible";
	} // ShowPop
	
function HidePop(id) {
	document.getElementById(id).style.visibility = "hidden";
	} // HidePop


// ---- that's it ------------------------------------------------------

