$(window).load(function () {
	rw_NavControl('home');
});

//main_holder

//THIS IS THE FUNCTION THAT MOVES DIVS
function crw_travel(rw_X, rw_Y, contentTarget){
	 $('.popup_screen').fadeOut('fast');
	
	 //alert("im in the crw script");
	 $("#main_holder").animate({"left": -(rw_X) ,"top": -(rw_Y)},1000,function() {
			//PLACE THE ACTION TO EXECUTE AFTER ANIMATION IS COMPLETE
			//$("#nav2_content").slideDown("slow");
			$("div[id*="+contentTarget+"]").slideDown("slow");
	
		
													     
	});
	return false;
	    
}//END FUNCTION RW_TRAVEL

//THIS IS THE FUNCTION THAT SCROLLS THE WINDOW
function crw_travel_scroller(rw_X, rw_Y, contentTarget){
   
   $("html:not(:animated),body:not(:animated)").animate({ scrollLeft: rw_X-30},2000, function() {
	//PLACE THE ACTION TO EXECUTE AFTER ANIMATION IS COMPLETE
	//$("#nav2_content").slideDown("slow");
	$("div[id*="+contentTarget+"]").slideDown("slow");
	
		
													     
	});
													         
  return false;
}//END FUNCTION RW_TRAVEL_SCROLLER




function RW_FitPic() {
			if((navigator.appName=='Netscape')) {
				iWidth = window.innerWidth;
				iHeight = window.innerHeight;
			} else {
				iWidth = document.body.clientWidth;
				iHeight = document.body.clientHeight;
			}
				iWidth = 1150 - iWidth;
				iHeight = 670 - iHeight;
				window.resizeBy(iWidth+40, iHeight+40);
				self.focus();
};
