var CCmap_flag=false;
		$(document).ready(function(){

			$("a").focus(function(){
				$(this).blur();
			});
			


/*
			if(navigator.appVersion.indexOf("MSIE 6.0") >0){
				$('<div></div>').html("<font style='color:#000;'>This page may not be displayed correctly in this browser(IE6).</font>").activebar();
				//alert("You are on the world's crappiest browser. Please use another browser whatever except IE6.");
			}
*/
//			tmp=$(".menu_active").css('backgroundPosition');
//			alert(tmp);
			$(".menu_bar_li").mouseenter(function(){
				//alert($(this).children("a").html());
				if($(this).children("a").hasClass("menu_active")==false){
					//$(this).children("a").css( "backgroundImage","url(images/bg_nav_.png)");
					$(this).children("a").stop().fadeTo(500,0.1);
					$("ul.menu_sub_ul",this).css("display","block");
					//$("div.menu_sub_div",this).stop().fadeIn(300,function(){$(this).css("opacity","").css("display","block");});
				}
			});
			$(".menu_bar_li").mouseleave(function(){
				if($(this).children("a").hasClass("menu_active")==false){
					//$(this).children("a").css( "backgroundImage","url(images/bg_nav.png)");
					$(this).children("a").stop().fadeTo(200,1);
					$("ul.menu_sub_ul",this).stop().fadeOut(200,function(){$(this).css("opacity","");});
				}
			});

			$('#HomeSlideshow').bxSlider({
				mode: 'fade',
				speed: 2000,
				pause: 5000,
				auto: true,
				controls: true,
				auto_direction: 'left',
				width: 1014
			});

//			$('.whtDraw').invertcolor();


			$("#CCSlideBox").scrollable({size:3,loop:true,clickable:false,vertical:false,next:".CCslider_next",prev:".CCslider_prev"}).circular().autoscroll({interval:3000});
			$(".CCslider_prev").pngFix();
			$(".CCslider_next").pngFix();


			$("#SOSlideBox").scrollable({size:3,loop:true,clickable:false,vertical:false,next:"#SOSlideBoxNext",prev:"#SOSlideBoxPrev"}).circular().autoscroll({interval:3000});


			$(".slider_prev").fadeTo(0,0.2);
			$(".slider_prev").mouseenter(function(){
				$(this).stop().fadeTo(300,1);
			});
			$(".slider_prev").mouseleave(function(){
				$(this).stop().fadeTo(200,0.2);
			});

			$(".slider_next").fadeTo(0,0.2);
			$(".slider_next").mouseenter(function(){
				$(this).stop().fadeTo(300,1);
			});
			$(".slider_next").mouseleave(function(){
				$(this).stop().fadeTo(200,0.2);
			});

			$(".slider_prev").pngFix();
			$(".slider_next").pngFix();

			$("#BTNMAP").click(function(){
				$("#map").css("display","none");
				$("#CCSlideBox").css("display","none");
				$("#map2").css("display","block");
				$("a.map_close").css("display","block");

				if( CCmap_flag==false){
					CCmap_flag=true;
					map2 = new GMap2(document.getElementById("map2"));
					map2.setCenter(point, 8);
					map2.addOverlay(marker);
					marker.openInfoWindowHtml(s);
					map2.addControl(new GOverviewMapControl());
					map2.addControl(new GLargeMapControl());
					$("#map2").before("<a class='map_close'>[CLOSE] &nbsp;&nbsp;</a>");
				}

				$("a.map_close").click(function(){
					$(this).css("display","none");
					$("#map2").css("display","none");
					$("#map").css("display","block");
					$("#CCSlideBox").css("display","block");
				});

			});

			$("#HeadLogo").click(function(){
				document.location.href="http://www.dorf.com.au";
			});
/*
			if($("#IntroFlash").html()!=null){
				var fo = new SWFObject("/files/intro.swf", "flashMovie", "100%", "100%", "8", "#000000");
				fo.addParam("quality", "high");
				fo.addParam("menu", "false");
				fo.addParam("allowScriptAccess", "always");
//				fo.addParam("wmode", "transparent");	
				fo.write("IntroFlash");
			}
*/

			//$(".techdraw").pixastic("invert");
/*
			$("#techdraw").load(function(){
				alert(1);
				Pixastic.process(document.getElementById("techdraw"), "invert");
			});
*/
		});

function invert_img(){
	Pixastic.process(document.getElementById("techdraw"), "invert");
}