
/**************************************
	Main Navigation Rollover
**************************************/

	$(document).ready(function(){
		$("#mainNavigation a[id*=mN]:not('.selected')").fadeTo("fast", 0);
	
		$("#mainNavigation a[id*=mN]:not('.selected')").hover(function(){
			$(this).stop().fadeTo("slow", 1.0); // This should set the opacity to 100% on hover
		},function(){
			$(this).stop().fadeTo("slow", 0); // This should set the opacity back to 0% on mouseout
		});
	});




/**************************************
	Photo Gallery Rollover
**************************************/

	$(document).ready(function(){
		$("#bodyGallery a img").fadeTo("fast", 0.7);
	
		$("#bodyGallery a img").hover(function(){
			$(this).stop().fadeTo("slow", 1.0);
		},function(){
			$(this).stop().fadeTo("slow", 0.7);
		});
	});




/**************************************
	Feature Content Hover
**************************************/

	$(document).ready(function(){
		$("#featureContent li").click(function(){
			window.location=$(this).find("a").attr("href"); return false;
		});
	});
	
	
	$(document).ready(function(){
		$("#featureContent li").hover(function(){
			$(this).css("height","auto");
			$(this).css("width","234px");
		},function(){
			$(this).css("height","275px");
			$(this).css("width","235px");
		});
	});




/*********************************
		Dropdown Menu (IE Support)
*********************************/
	<!--//--><![CDATA[//><!--

	startList = function() {
		if (document.all&&document.getElementById) {
			navRoot = document.getElementById("mainNavigation");
			for (i=0; i<navRoot.childNodes.length; i++) {
				node = navRoot.childNodes[i];
				if (node.nodeName=="LI") {
					node.onmouseover=function() {
						this.className+=" over";
					}
					node.onmouseout=function() {
						this.className=this.className.replace(" over", "");
					}
				}
			}
		}
	}
	window.onload=startList;
	
	//--><!]]>




/*********************************
		Tooltip: Image Gallery
*********************************/
	this.tooltip = function(){	
		/* CONFIG */		
			xOffset = 10;
			yOffset = 20;		
			// these 2 variable determine popup's distance from the cursor
			// you might want to adjust to get the right result		
		/* END CONFIG */		
		$("#bodyGallery img").hover(function(e){											  
			this.t = this.alt;
			this.alt = "";									  
			$("body").append("<p id='tooltip'>"+ this.t +"</p>");
			$("#tooltip")
				.css("top",(e.pageY - xOffset) + "px")
				.css("left",(e.pageX + yOffset) + "px")
				.fadeIn("fast");		
	    },
		function(){
			this.alt = this.t;		
			$("#tooltip").remove();
	    });	
		$("#bodyGallery img").mousemove(function(e){
			$("#tooltip")
				.css("top",(e.pageY - xOffset) + "px")
				.css("left",(e.pageX + yOffset) + "px");
		});			
	};

	// starting the script on page load
	$(document).ready(function(){
		tooltip();
	});




/*********************************
		Tooltip: Australian Locations
*********************************/
	this.tooltip2 = function(){	
		/* CONFIG */		
			xOffset = 20;
			yOffset = 20;		
			// these 2 variable determine popup's distance from the cursor
			// you might want to adjust to get the right result		
		/* END CONFIG */		
		$("#gfxLocations a").hover(function(e){											  
			this.t2 = this.title;
			this.title = "";									  
			$("body").append("<p id='tooltip'>"+ this.t2 +"<br /><span>(View Contact Information)</span>"+"</p>");
			$("#tooltip")
				.css("top",(e.pageY + xOffset) + "px")
				.css("left",(e.pageX - yOffset) + "px")
				.fadeIn("fast");		
	    },
		function(){
			this.title = this.t2;		
			$("#tooltip").remove();
	    });	
		$("#gfxLocations a").mousemove(function(e){
			$("#tooltip")
				.css("top",(e.pageY + xOffset) + "px")
				.css("left",(e.pageX - yOffset) + "px");
		});			
	};

	// starting the script on page load
	$(document).ready(function(){
		tooltip2();
	});




/*********************************
		Open Popup Browser
*********************************/
	function MM_openBrWindow(theURL,winName,features) {
		window.open(theURL,winName,features);
	}





