/**
 * Markup by SonicHTML
 * http://www.sonichtml.com
 * 2011-1-23
 */


/* Page Func
---------------------------------------*/
$(document).ready(function(){
	
	/*-- So --*/
	if($("#so").html()){
		$("#so .so_nav li").click(function() {
			$("#so .so_nav li").removeClass("current");
			$(this).addClass("current");
		});
	}
	/*-- tabs --*/
	if($(".JQ_tabs_box").html()){
		$(".JQ_tabs_box .tabs_nav li").click(function() {
			//$(".tabs li").removeClass("current");
			$(this).parents(".tabs_nav").find("li").removeClass("current");
			$(this).addClass("current");
			//$(".tabs_content").hide();
			$(this).parents(".JQ_tabs_box").find(".tabs_content").hide();
			var activeTab = $(this).find("a").attr("rel");
			/*
			if ($(activeTab).html() == '')
			{
				$.ajax({
					   type: "post",
					   url: "/portalcategory/"+activeTab.replace('#newsC','')+"001",
					   cache: true,
					   success: function(msg){
					   	$(activeTab).html(msg);
					   	$(activeTab).show();
					   }
				 });
			}else{
				$(activeTab).show();
			}*/
			$(activeTab).show();
		});
		//hiden IE a ouline
		$('.tabs_nav li a').bind('focus',function(){if(this.blur){this.blur();}});
	}
	/*-- .account_detail --*/
	if($(".account_detail").html()){
		$(".account_detail .modi").click(function() {
			$(".account_detail li").removeClass("current");
			$(this).parents("li").addClass("current");
		});
		$(".account_detail .hide").click(function() {
			$(this).parents("li").removeClass("current");
		});
	}
	/*-- .platform_nav --*/
	if($(".platform_nav").html()){
		$(".platform_nav .ready").hover(function() {
			$(".platform_nav .current").animate({width:"102px"},{queue:false, duration:300});
			$(".platform_nav li").removeClass("current");
			$(this).parents("li").addClass("current");
			$(this).parents("li").animate({width:"350px"},{queue:false, duration:300});
		});
	}
});



