//初始载入
$(function(){ 
//表单菜单样式
$(".sub_page_text").focus(function(){
$(this).addClass("text_bg_after"); 
}).blur(function(){
				 $(this).removeClass("text_bg_after"); 
					});
//隐藏菜单
//DD_belatedPNG.fix('*');


//内容链接样式
 $(".cont_link").addClass("link_col");
 $(".cont_link").mouseover(function(){
$(this).addClass("link_co1_hover");
}).mouseout(function(){
	$(this).removeClass("link_co1_hover");
	}); 
					 
					 });
//子菜单样式
function  submenustyle(preid){
	   $("."+preid).mouseover(function(){
	   $(this).addClass(preid+"_visited");
	   }).mouseout(function(){
			$(this).removeClass(preid+"_visited");
		   });
							 }
//网页foot的位置
//function bottom_bg_h(){
//	document.getElementById("bottom_bg_h").style.display="block";
//    document.getElementById("bottom_bg_h").style.top=(document.documentElement.scrollTop+document.body.clientHeight-300)+"px";
//} 
//flash 插入函数
function swfObject(swfurl,w,h){
	var swfcontent='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  width="'+w+'" height="'+h+'" id="'+new Date().getTime() +'"><param name="movie" value="'+swfurl+'.swf" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /><embed src="'+swfurl+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" id="'+new Date().getTime() +'" wmode="transparent" allowscriptaccess="always"></embed></object>';
	document.write(swfcontent);
	}
//子页面标题鼠标点击样式
var sub_title_visited=null;
function  sub_title_style(id ,urlid){

location.href=urlid; 
		 }
//跳转页面

function Tourl(url){

	location.href=url;
	}
//获得url参数
function request(paras){ 
var url = location.href;  
var paraString = url.substring(url.indexOf("?")+1,url.length).split("&");  
var paraObj = {}  
for (i=0; j=paraString[i]; i++){  
paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] = j.substring(j.indexOf("=")+1,j.length);  
}  
var returnValue = paraObj[paras.toLowerCase()];  
if(typeof(returnValue)=="undefined"){  
return "";  
}else{  
return returnValue; 
}}
//服务器选择

function expTotml(w,h,url,top){
	dilotopsh=top+"px";//全局top sh
	CreatNode(w,h,url);
	}

//选择服务器
//function selectserver(){
//	expTotml('398px','388px','/home/select_server/select_server.html',120);
//}
//关闭浏览器警告提示
function closebrowser(){
	$(".warn").hide();
	}
//取消提示
function cancerwarn(){
	SetCookie('browserName','2');
	closebrowser();
	}
//写cookies函数
function SetCookie(name,value)//两个参数，一个是cookie的名子，一个是值
{
    var Days = 30; //此 cookie 将被保存 30 天
    var exp  = new Date();    
    exp.setTime(exp.getTime() + Days*24*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name)//取cookies函数        
{
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
     if(arr != null) return unescape(arr[2]); return null;

}


