$(function() {
 	$("body").addClass("js")
	
	var logos_pos = 0, $logos;
	function logos_next(){
		window.setTimeout(function(){
			$logos.eq( logos_pos++ ).fadeOut(500, function(){
				if(logos_pos == $logos.length){ logos_pos = 0; }
				$logos.eq( logos_pos ).fadeIn(500, logos_next )
			})
		},2000);
	};
	$logos = $("#top_box img");
	$logos.eq(logos_pos).fadeIn(500, logos_next );
	
	
	if ($.browser.msie && $.browser.version < 7) {
		$('img[@src$=.png]').ifixpng();
	}
	
	$("#navigation a").css({position:"relative",left:"0px"}).hover(function() { $(this).animate({left:"4px"},200) },function() { $(this).animate({left:"0px"},200) })
	
	$("div.gown").each(function() {
		$(this).children("div.gown_content").css({left:"-2246px"});
		$(this).bind('mouseover click',function() {
			$("div.gown_content").css({left:"-2246px"});
			$(this).children("div.gown_content").css({left:"246px"});
		});
	});

	$("a[title^='New Window: ']").each(function(){
		var newtitle = String($(this).attr('title')).substring(String("New Window: ").length);
		$(this).attr('title',newtitle);
		$(this).click(function(){ var newwin = window.open($(this).attr('href'),'newbinkcentralwin'); newwin.focus(); return false; });
	});
	

})
