function init(){	$w_width=$j(window).width();	$w_height=$j(window).height();	$img_width=1024;	$img_height=728;	$current_width=$j('div#bg img').css('width');	if($w_width > $img_width){		$new_h=($img_height * ($w_width/$img_width));		$j('div#bg img').css('height',$new_h);		$j('div#bg img').css('width',$w_width);	}else{		$j('div#bg img').css('height',$img_height);		$j('div#bg img').css('width',$img_width);	}//	$j('div#bg img').bind('load readystatechange', function(){//  		if (this.complete)//    		 $j("#bg img").fadeIn('slow');//	});	$j("#bg img").fadeIn('slow');	$d_height=$j(document).height();	$j(".wrapper").css('height',$w_height);}$j(document).ready(function(){		init();					$j("#leftMenu li").each(function(i){			//$j(this).find('a').css('width',($j(this).find('a img').attr('width')+15));		});				$j('#leftMenu li a').hover(function(){			if(!$j(this).parents().hasClass('current_page_item')){				$img=$j(this).find('img').attr('src').replace('.png','_hover.png');				$j(this).find('img').attr('src',$img);			}					},function(){			if(!$j(this).parents().hasClass('current_page_item')){				$img=$j(this).find('img').attr('src').replace('_hover.png','.png');				$j(this).find('img').attr('src',$img);			}		});});$j(window).resize(function(){		init();	});
