// Function to open new window with no tool bars
function new_window(url) {
	 window.open(url,"NEW", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=575,height=575");
}

// Detect Browser Type
NS4 = (document.layers) ;
IE4 = (document.all) ;
mac=((IE4)&&(navigator.appVersion.indexOf ("Mac")!=-1));

if(IE4)
	{
	av=navigator.appVersion;
	avi=av.indexOf("MSIE");
	if (avi==-1)
		version = parseInt (av) ;
	  else
		version = parseInt(av.substr(avi+4)) ;
	}

if (NS4 || IE4)
	{
	maxlev = 1;
	popupWidth = 120;
	levelOffset = 20;
	bord = 0;                           // Border width 
	vertSpace = 0;                      // vertical spacing
	sep = 0;
	sepFrame = false;
	openSameFrame = false;
	cntFrame = "content";
	contentFrame = "content";
	mout = true;
	iconSize = 18;
	borderCol = "white";                   // Border Colour
	menuHorizontal = true;                 // Menu Horizontal or Vertical
	}


if (document.images) {
}

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=700,left = 50,top = 60');");
}

function MM_preloadImages() { 
  if (document.images) {
    var imgFiles = MM_preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) if (imgFiles[j].charAt(0)!="#"){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}

