//created by singram for designIT www.designit.com.au
//last modified 4/6/03

/* INSTURCTIONS ==============================================

- copy this file to your project's includes directory - do not overwrite it
- delete any functions you do not require to maintain clarity and consistency
- 



 =========================================================== */


// ROLLOVER LIST & FUNCTIONS
// ====================================================================
	// INSTRUCTIONS - please delete instructions once code is implemented
	// copy and paste the block of code beneath // Homepage Main Nav as many times as required
	// change img_name to the unique name attribute in your HTML
	// change .gif to .jpg if required
	// remember to comment your code where appropriate


// menu rollover functions      
        function imgOn(imgName) {
                if (document.images) {
                        document[imgName].src = eval(imgName + "_on.src");
                }
        }
        
        function imgOff(imgName) {
                if (document.images) {
                        document[imgName].src = eval(imgName + "_off.src");
                }
        }
        
	

browserName = navigator.appName;          
				browserVer = parseInt(navigator.appVersion);
				if ((browserName == "Netscape" && browserVer >= 3) || (browserName == "Microsoft Internet Explorer" && browserVer >= 4)) 
				{
				   hasImageObject = true;
				}
				else 
				{
				   hasImageObject = false;
				}
				               
				if (hasImageObject)
				{
				
				// Homepage Main Nav
				   
   				 about_off = new Image();
				   about_off.src = "images/nav_about_off.gif";
				   about_on = new Image();
				   about_on.src = "images/nav_about_on.gif";
				   
   				 speaking_off = new Image();
				   speaking_off.src = "images/nav_speaking_off.gif";
				   speaking_on = new Image();
				   speaking_on.src = "images/nav_speaking_on.gif";
				   
   				 contact_off = new Image();
				   contact_off.src = "images/nav_contact_off.gif";
				   contact_on = new Image();
				   contact_on.src = "images/nav_contact_on.gif";
				   
				}

				
		
// pop up window functions
// ====================================================================
	// INSTRUCTIONS - please delete instructions once code is implemented
	// specify the window size in the HTML of the <a href>
	// e.g. <a href="javascript:winOpen('../store/event/lp.asp','375','350');">


	// With no toolbars
	function winOpen(imageLocation)
	{
		msgWindow = window.open(imageLocation,"imageWindow","width=240,height=210,toolbar=no,directories=no,status=no,scrollbars=no,resize=no,menubar=no");
		msgWindow.focus();
	}
	

	// With toolbars
	function winOpenTool(imageLocation, imageWidth, imageHeight)
	{
		popWindow = window.open(imageLocation,"imageWindow",",width=" + imageWidth + ",height=" + imageHeight + ",directories=no,status=no,scrollbars=yes,resize=no,menubar=yes");
		popWindow.focus();
	}
	

	


// close window function
// ====================================================================
	// INSTRUCTIONS - please delete instructions once code is implemented
	// Place the onclick command within the link that you are using to close the page!
	// i.e. <a href="#" onclick="closeWindow();">Close window</a>

	
   function closeWindow() 
		{
			window.close();
		}

		
		
