$(window).load(function () {
						 
$('.loading_area').fadeIn();	
$('.loading_image').hide();
						 
						 
	$('.slideShow').show();	
	$('.slideShow').cycle({ 
    fx:    'fade', 
    speed:  1000,
	timeout: 6000
 });
	
	

$('.projects').show();	
$('.projects').before('<ul id="projectnav">').cycle({ 
    fx:     'fade', 
    speed:  'fast', 
    timeout: 4000, 
    pager:  '#projectnav', 
     
    // callback fn that creates a thumbnail to use as pager anchor 
    pagerAnchorBuilder: function(idx, slide) { 
        return '<li><a href="#"></a></li>'; 
    } 
});	
	
	
		$('#banner').show();	
	$('#banner').cycle({ 
    fx:    'fade', 
    speed:  1500,
	timeout: 4000
 });

	$(".imgGallery a").fancybox({ 
	'hideOnContentClick': true,
	'overlayOpacity': 0.6,
	'overlayShow': true 
	}); 

	
   	$("#topnav").lavaLamp({
		fx: "backout", 
		speed: 700
	});	
	$(document).pngFix();
	
	
});
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
