function toggleView(n){
	$("#cmm_list_"+n).siblings().filter('[@class=tabshow]').css("display","none");
	$("#cmm_list_"+n).css("display","block");
	return false;
}
$(document).ready(function() {
		$("ul.nav").superfish();
		$(".nav > li").mouseover(function(){
     		$(this).addClass("current");
			$(this).siblings().removeClass("current");
		});
		/*remove the last banner underline*/
		$("#new-suggest ul li:last-child").addClass("lastchild");
		$("body").append("<div id='extraContent'><div class='repeatable-bg'></div></div>");
			var x,y;
			if (self.innerHeight) // all except Explorer
			{
				x = self.innerWidth;
				y = self.innerHeight;
			}
			else if (document.documentElement && document.documentElement.clientHeight)
				// Explorer 6 Strict Mode
			{
				x = document.documentElement.clientWidth;
				y = document.documentElement.clientHeight;
			}
			else if (document.body) // other Explorers
			{
				x = document.body.clientWidth;
				y = document.body.clientHeight;
			}
			if(x < 1003 && self.screen.width >= 1024 ){ window.resizeTo(1003,y+100) }
			else if(self.screen.width <1024 ){$("html").css("overflow-x","auto")}
 		$("#page-container").append("<div id='right-extra'><div id='char'><div></div></div></div> ");
                $("#quicklinks .toptitle").html("<a href='../index.html'></a>");
		$(".selectlist").click(function(){ $(".selectlist ul").css("display","block")})
		$(".selectlist").blur(function(){ window.setTimeout("$('.selectlist ul').css('display','none')",300)})
		$("input").focus(function(){ $(this).addClass("focus")})
		$("input").blur(function(){ $(this).removeClass("focus")})
		$(".imgFrame,.imgFrame2").append("<div class='highlight'></div>")
		$(".frame-gold").append("<div class='ft-warp b_ft'><div class='ft'></div></div>")
		$(".frame-gold").prepend("<div class='hd-warp b_hd'><div class='hd'></div></div>")
		$(".downmovielist li:even,.topiclist li:even").addClass("even")
		$(".community .cmm_tab a").click( function(){ $(this).addClass('current'); $(this).siblings().removeClass('current'); return false;} )
		$("#account .slice-left li").mouseover( function(){ $(this).addClass('mo'); $(this).siblings().removeClass('mo');} )
});


