$(document).ready(function(){
	if( $('div.main1').width() > 100 ){
		$('div.footer').width($('div.main1').width()+"px");
	}
	if ($.browser.msie) {
		$('div.menu1 a').css('width','250px');
		$('div.main1').css('margin-right','0');
		
	}
	$('div.menu li').hover(
		function() { //mouse in
			var a = $(this).find('a:first');
			var d = $(this).find('div.sub');
			p = a.offset();
			if( a && d && p ){
				
				a.attr('class','sel');
				d.fadeIn(200);
				if( d.width() < a.width() ){
					d.width(($(this).width()-4)+'px');
				}
				d.css({ position : "absolute", top : (p.top)+"px", left : (p.left)+"px" });
				
			}
		},
		function() { //mouse out
			$(this).find('a:first').attr('class','');
			$(this).find('div.sub').fadeOut(200);
		});
	Cufon.replace('span.black', {
		color: '-linear-gradient(#2a3a3f, 0.45=#2a3a3f, 0.45=#2a3a3f, #2a3a3f)'
	});
	Cufon.replace('span.blue', {
		color: '-linear-gradient(#103849, 0.45=#0082f0, 0.45=#0082f0, #0082f0)'
	});
});
$(window).resize(function(){
	
});