
$(function() {
 	$("body").addClass("js")
 	
	if($.browser.msie && $.browser.version<7){
		var $pngs = $("img[src$='.png']");
		if($pngs.length>0){ $pngs.ifixpng(); }
	}
 	
 	//swfobject.embedSWF("test.swf", "fish_mov_swf", 320, 210, "8.0.0", null, null,{wmode:"transparent"},null,function(){ $("#fish_mov_swf_bg").hide(); });
 	
 	if($("#container").hasClass("contact_us")){
		$("#content > h2:eq(0)").before("<div id=\"map_canvas\" style=\"width:220px; height:280px;\">&nbsp;</div>");
		var latlng = new google.maps.LatLng(-32.928931,151.764784);
	    var myOptions = {
	      zoom:14,
	      mapTypeControl: true,
	      mapTypeControlOptions:{style: google.maps.MapTypeControlStyle.DROPDOWN_MENU},
	      navigationControl:true,
	      navigationControlOptions:{style:google.maps.NavigationControlStyle.SMALL},
	      center:latlng,
	      mapTypeId:google.maps.MapTypeId.ROADMAP
	    };
	    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	    var marker = new google.maps.Marker({
	        position: latlng, 
	        map: map, 
	        title:""
	    });  
	}
 	
 	$("#navigation li").each(function(){ if($(this).children("ul").length>0){ $submenu=$(this).children("ul").eq(0); $clone=$(this).clone(); $clone.prependTo($submenu).children("ul").eq(0).remove(); $("<strong></strong>").appendTo($clone); $clone.children("a").appendTo($clone.children("strong").eq(0)); }});
	$("#navigation > ul").supersubs({ minWidth: 10, maxWidth: 50, extraWidth: 1 }).superfish({delay: 500, speed: 'fast', dropShadows: false });
 	
	$("div.photo a").each(function(){
		var newtitle = String($(this).attr('title')).substring(String("New Window: ").length);
		$(this).attr({'title':newtitle,'rel':'photo'});
	});
	$("div.photo a, a[rel='photo']").colorbox({transition:'fade',speed:500,slideshow:false});
	
	$("a[title^='New Window: ']").each(function(){
		var newtitle = String($(this).attr('title')).substring(String("New Window: ").length);
		$(this).attr('title',newtitle);
		$(this).click(function(){ window.open($(this).attr('href')); return false; });
	});
	
 })
