");
var str = '
';
$(".footright").append(str);
//顶部右边导航
var num = $(".header-right>li").length;
$(".header-right>li").each(function(index,el){
//给倒数第二个li标签添加|符号
if(index==(num-3)){
$(el).after('
|');
}
if(index==(num-4)){
$(el).after('
|');
}
//给倒数第一个li标签添字体变红
if(index==0){
//$(el).find("a").css("color","red");
}
});
$('.dd-arrow').click(function(){
$("#lang-phone").css({
"background":"none",
"color":"#252525",
});
});
$("#lang-phone").parent("a").click(function(){
if($(this).hasclass('active')){
$("#lang-phone").css({
"background":"none",
"color":"#252525",
});
}else{
$("#lang-phone").css({
"background":"rgba(237, 115, 63, 0.9) none repeat scroll 0 0",
"color":"white",
});
}
});
//语言版本切换
zh_getlang();
var langval = getcookie('zh_choose');
switch(langval){
case 's':
showzht();break;
case 't':
showzhs();break;
default:
showzht();break;
}
$("#zh_click_s").click(function(){
showzht();
});
$("#zh_click_t").click(function(){
showzhs();
});
$("#zh_s").click(function(){
showzht();
});
$("#zh_t").click(function(){
showzhs();
});
});
function showzhs(){
$("#zh_click_s").html("简体中文");
$("#zh_s").html("简体中文");
$("#zh_click_s").parent('li').css("display","block");
$("#zh_click_t").parent('li').css("display","none");
$("#zh_s").parent('li').css("display","block");
$("#zh_t").parent('li').css("display","none");
}
function showzht(){
$("#zh_click_t").html("繁体中文");
$("#zh_t").html("繁体中文");
$("#zh_click_s").parent('li').css("display","none");
$("#zh_click_t").parent('li').css("display","block");
$("#zh_s").parent('li').css("display","none");
$("#zh_t").parent('li').css("display","block");
}