var yPosition = 116;
var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";


	  //new ypSlideOutMenu("number menu", "slide position", left, top, width, height)
		new ypSlideOutMenu("menu1", "down", 0, yPosition, 112, 136)
		new ypSlideOutMenu("menu2", "down", 57, yPosition, 112, 85)
		new ypSlideOutMenu("menu3", "down", 175, yPosition, 112, 80)
		if (OSName=="MacOS") {
			new ypSlideOutMenu("menu4", "down", 262, yPosition, 112, 320) }
		else {
			new ypSlideOutMenu("menu4", "down", 262, yPosition, 112, 344) }
		if (OSName=="MacOS") {
			new ypSlideOutMenu("menu5", "down", 395, yPosition, 112, 109) }
		else { 
			new ypSlideOutMenu("menu5", "down", 395, yPosition, 112, 121) }
	    new ypSlideOutMenu("menu6", "down", 341, yPosition, 112, 63)
		new ypSlideOutMenu("menu7", "down", 552, yPosition, 112, 109)
		new ypSlideOutMenu("menu8", "down", 685, yPosition, 112, 208)
	
	    if (document.images) {            // Active Images
	            abouton = new Image();      
	            abouton. src="/images/about1_on.gif"; 
	            forumson = new Image(); 
	            forumson. src="/images/forums1_on.gif"; 
	            resourceson = new Image();
	            resourceson. src="/images/resources1_on.gif";
				eventson = new Image();
				eventson. src="/images/events1_on.gif";	            
				discussionson = new Image();
				discussionson. src="/images/discussions1_on.gif";            
				bookson = new Image();
				bookson. src="/images/books2_on.gif";
				k12on = new Image();
				k12on. src="/images/k121_on.gif";
				featureson = new Image();
				featureson. src="/images/features_on.gif";
				timelineon = new Image();
				timelineon. src="/images/timeline1_on.gif";
	            archiveon = new Image();
	            archiveon. src="/images/archive1_on.gif";
					                
	            aboutoff = new Image(); 
	            aboutoff. src="/images/about1_off.gif"; 
				forumsoff = new Image();          
	            forumsoff. src="/images/forums1_off.gif"; 
	            resourcesoff = new Image();
	            resourcesoff. src="/images/resources1_off.gif";	
	            eventsoff = new Image();
	            eventsoff. src="/images/events1_off.gif";	
	            discussionsoff = new Image();
	            discussionsoff. src="/images/discussions1_off.gif";
	            booksoff = new Image();
	            booksoff. src="/images/books2_off.gif";
	            k12off = new Image();
	            k12off. src="/images/k121_off.gif";	
	            featuresoff = new Image();
	            featuresoff. src="/images/features_off.gif";
	            timelineoff = new Image();
	            timelineoff. src="/images/timeline1_off.gif";	
	            archiveoff = new Image();
	            archiveoff. src="/images/archive1_off.gif"          	
	        }
			
			// Function to 'activate' images.
			function imgOn(imgName) {
			        if (document.images) {
			            document[imgName].src = eval(imgName + "on.src");
			        }
			}
			
			// Function to 'deactivate' images.
			function imgOff(imgName) {
			        if (document.images) {
			            document[imgName].src = eval(imgName + "off.src");
			        }
			}
	
	//function to open popup window
        function pop_up(pURL, features){ 
			new_window = window.open(pURL, "popup_window", features);
			new_window.focus();
		} 
