//左边导航开始函数
function menu_sh(tem,te)
{
 var rt_hei=(te-1)*72-10+(te-1)*5;
 var temp=document.getElementById("ct_"+te);
 tem.style.backgroundColor="#fdcdd6";
 tem.style.color="#333";
 temp.style.display="block";
 temp.style.top=rt_hei;
 switch(te)
 {    
 
  case 1:temp.innerHTML="<a href='http://www.jsqc.net/procs/proc_1.htm' target='_blank'>威娜朋香波</a> <a href='http://www.jsqc.net/procs/proc_3.htm' target='_blank'>威娜姿护发素</a> <a href='http://www.jsqc.net/procs/proc_6.htm' target='_blank'>威娜润丝特效修护焗油</a> <a href='http://www.jsqc.net/procs/proc_5.htm' target='_blank'>威娜仙露滋润焗油</a> <a href='http://www.jsqc.net/procs/proc_2.htm' target='_blank'>威娜润雅香波</a> <a href='http://www.jsqc.net/procs/proc_4.htm' target='_blank'>威娜润资护发素</a> <div class='ct_bt'></div>";break;
  
  
  case 2:temp.innerHTML="<a href='http://www.jsqc.net/procs/proc_25.htm' target='_blank'>威娜蕴露滋润香波</a> <a href='http://www.jsqc.net/procs/proc_25.htm' target='_blank'>威娜蕴露烫后香波</a> <a href='http://www.jsqc.net/procs/proc_23.htm' target='_blank'>威娜蕴露染后香波</a> <a href='http://www.jsqc.net/procs/proc_26.htm' target='_blank'>威娜蕴露滋润护发素</a> <a href='http://www.jsqc.net/procs/proc_19.htm' target='_blank'>威娜去头屑香波</a> <a href='http://www.jsqc.net/procs/proc_22.htm' target='_blank'>威娜防脱发香波</a> <a href='http://www.jsqc.net/procs/proc_19.htm' target='_blank'>威娜敏感头皮香波</a> <a href='http://www.jsqc.net/procs/proc_19.htm' target='_blank'>威娜滋润护理焗油</a> <a href='http://www.jsqc.net/procs/proc_19.htm' target='_blank'>威娜烫后护理焗油</a> <a href='http://www.jsqc.net/procs/proc_19.htm' target='_blank'>威娜染后护理焗油</a>    <div class='ct_bt'></div>";break;
  
  
  case 3:temp.innerHTML="<a href='http://www.jsqc.net/procs/proc_315.htm' target='_blank'>威娜倍欧滋养香波</a> <a href='http://www.jsqc.net/procs/proc_316.htm' target='_blank'>威娜倍欧恒彩香波</a> <a href='http://www.jsqc.net/procs/proc_316.htm' target='_blank'>威娜倍欧恒卷香波</a> <a href='http://www.jsqc.net/procs/proc_318.htm' target='_blank'>威娜倍欧顺柔香波</a> <a href='http://www.jsqc.net/procs/proc_487.htm' target='_blank'>威娜倍欧恒彩护发素</a> <a href='http://www.jsqc.net/procs/proc_319.htm' target='_blank'>威娜倍欧滋养护发素</a> <a href='http://www.jsqc.net/procs/proc_313.htm' target='_blank'>威娜倍欧恒彩发膜</a> <a href='http://www.jsqc.net/procs/proc_313.htm' target='_blank'>威娜倍欧恒卷发膜</a> <a href='http://www.jsqc.net/procs/proc_313.htm' target='_blank'>威娜倍欧滋养发膜</a> <a href='http://www.jsqc.net/procs/proc_311.htm' target='_blank'>威娜倍欧顺柔发膜</a> <a href='http://www.jsqc.net/procs/proc_489.htm' target='_blank'>威娜恒卷护发喷雾</a> <a href='http://www.jsqc.net/procs/proc_500.htm' target='_blank'>威娜倍欧滋养快速修护发膜</a>  <a href='http://www.jsqc.net/procs/proc_489.htm' target='_blank'>威娜倍欧滋养修护油</a>       <div class='ct_bt'></div>";break;
  
  
  case 4:temp.innerHTML="<a href='http://www.jsqc.net/procs/proc_49.htm' target='_blank'>威娜新创艺修护露</a> <a href='http://www.jsqc.net/procs/proc_50.htm' target='_blank'>威娜新创艺水晶造型液</a> <a href='http://www.jsqc.net/procs/proc_51.htm' target='_blank'>威娜新创艺爽发啫喱</a> <a href='http://www.jsqc.net/procs/proc_51.htm' target='_blank'>威娜新创艺泡沫发蜡</a> <a href='http://www.jsqc.net/procs/proc_53.htm' target='_blank'>威娜新创艺珍珠饰发膏</a> <a href='http://www.jsqc.net/procs/proc_54.htm' target='_blank'>威娜新创艺摩丝</a> <a href='http://www.jsqc.net/procs/proc_54.htm' target='_blank'>威娜新创艺强力固发胶</a> <a href='http://www.jsqc.net/procs/proc_54.htm' target='_blank'>威娜新创艺莹亮液</a> <a href='http://www.jsqc.net/procs/proc_57.htm' target='_blank'>威娜新创艺亚色发泥</a> <a href='http://www.jsqc.net/procs/proc_58.htm' target='_blank'>威娜新创艺丝顺亮发乳</a> <a href='http://www.jsqc.net/procs/proc_59.htm' target='_blank'>威娜新创艺丰盈润发膏</a> <a href='http://www.jsqc.net/procs/proc_62.htm' target='_blank'>威娜新创艺酷凝胶</a> <a href='http://www.jsqc.net/procs/proc_62.htm' target='_blank'>威娜新创艺蓝冰饰发啫喱</a>       <div class='ct_bt'></div>";break;
  
  
  case 5:temp.innerHTML="<a href='http://www.jsqc.net/procs/proc_62.htm' target='_blank'>威娜新唯美冷烫精N</a> <a href='http://www.jsqc.net/procs/proc_38.htm' target='_blank'>威娜新唯美冷烫精R</a> <a href='http://www.jsqc.net/procs/proc_37.htm' target='_blank'>威娜新唯美冷烫精D</a> <a href='http://www.jsqc.net/procs/proc_39.htm' target='_blank'>威娜盈美冷烫精N</a> <a href='http://www.jsqc.net/procs/proc_40.htm' target='_blank'>威娜盈美冷烫精R</a> <a href='http://www.jsqc.net/procs/proc_40.htm' target='_blank'>威娜新宾芳冷烫精N</a> <a href='http://www.jsqc.net/procs/proc_42.htm' target='_blank'>威娜新宾芳冷烫精C</a> <a href='http://www.jsqc.net/procs/proc_43.htm' target='_blank''>威娜新宾芳冷烫精R</a> <a href='http://www.jsqc.net/procs/proc_44.htm' target='_blank'>威娜新宾芳专业护理冷烫精N</a> <a href='http://www.jsqc.net/procs/proc_61.htm' target='_blank'>威娜新宾芳专业护理冷烫精R</a> <a href='http://www.jsqc.net/procs/proc_45.htm' target='_blank'>威娜新宾芳专业护理冷烫精C</a> <a href='http://www.jsqc.net/procs/proc_47.htm' target='_blank'>威娜自然直</a> <a href='http://www.jsqc.net/procs/proc_47.htm' target='_blank'>威娜直拉直膏</a>      <div class='ct_bt'></div>";break;
  
  
  case 6:temp.innerHTML="<a href='http://www.jsqc.net/procs/proc_35.htm' target='_blank'>威娜倍佳炽红染膏</a> <a href='http://www.jsqc.net/procs/proc_817.htm' target='_blank'>威娜可丽丝倍佳染膏</a>      <div class='ct_bt'></div>";break;
  
 }
}

function menu_hi(tem,te)
{
var temp=document.getElementById("ct_"+te);
temp.style.display="none";
tem.style.backgroundColor="transparent"
tem.style.color="#b34159";
}

function sh(tem)
{
tem.style.display="block";
}

function hi(tem)
{
tem.style.display="none";
}
//左边导航完毕

/*轮播广告文字初始化*/
var picarry = {};
var lnkarry = {};
var ttlarry = {};

picarry[0] = "images/01.jpg";
lnkarry[0] = "#";
ttlarry[0] = "第一张图片上面文字";

picarry[1] = "images/02.jpg";
lnkarry[1] = "#";
ttlarry[1] = "第二张图片上面文字";

picarry[2] = "images/03.jpg";
lnkarry[2] = "#";
ttlarry[2] = "第三张图片上面文字";

picarry[3] = "images/04.jpg";
lnkarry[3] = "#";
ttlarry[3] = "第四张图片上面文字";

picarry[4] = "images/05.jpg";
lnkarry[4] = "#";
ttlarry[4] = "第五张图片上面文字";

var currslid = 0;
var slidint;
function setfoc(id){
	document.getElementById("focpic").src = picarry[id];
	document.getElementById("foclnk").href = lnkarry[id];
	document.getElementById("foctitle").innerHTML = '<a href="'+lnkarry[id]+'" target="_blank">'+ttlarry[id]+'</a>';
	currslid = id;
	for(i=0;i<5;i++){
		document.getElementById("tmb"+i).className = "thumb_off";
	};
	document.getElementById("tmb"+id).className ="thumb_on";
	focpic.style.visibility = "hidden";
	focpic.filters[0].Apply();
	if (focpic.style.visibility == "visible") {
		focpic.style.visibility = "hidden";
		focpic.filters.revealTrans.transition=23;
	}
	else {
		focpic.style.visibility = "visible";
		focpic.filters[0].transition=23;
	}
	focpic.filters[0].Play();
	stopit();
}

function playnext(){
	if(currslid==4){
		currslid = 0;
	}
	else{
		currslid++;
	};
	setfoc(currslid);
	playit();
}
function playit(){
	slidint = setTimeout(playnext,4500);
}
function stopit(){
	clearTimeout(slidint);
	}
window.onload = function(){
	playit();
}
//轮播广告完毕


//选项卡开始
var obj_temp=new Array()
var a_n=0
function init(ids,cons,dis,tt){
   document.getElementById(ids).getElementsByTagName('li')[0].className='active';
document.getElementById(cons).innerHTML=document.getElementById(dis+"l1").innerHTML;
document.getElementById(ids).onmouseover=function(){onmousOver(ids,cons,dis);}
document.getElementById(ids).onmouseout=function(){timer_next=setTimeout(" next_d()",1000);}
var li_o=document.getElementById(ids).getElementsByTagName('li');
var li_n=li_o.length-1
for (var m=0;m<li_o.length;m++)if (li_o[m].id=='more')li_n--;
obj_temp[a_n]=new Array(ids,cons,dis,tt,li_n,0,1);a_n++
}
function onmousOver(ids,cons,dis){
clearTimeout(timer_next)
o = o || window.event;
var obj=o.target || o.srcElement;
if (obj.tagName=='LI'){
var id_=obj.parentElement.id;
if (obj.className=='active'||obj.id=='more')return;
var o=document.getElementById(ids).getElementsByTagName('li');
for (var i=0;i<=o.length-1;i++){if (o[i].id!='more')o[i].className='default'}
obj.className='active';
document.getElementById(cons).innerHTML=document.getElementById(dis+obj.id).innerHTML;
for (var i=0;i<=o.length-1;i++){
   if (o[i].className=='active')var a_n_=i
}

for (var kk=0;kk<=obj_temp.length-1;kk++){
if (obj_temp[kk][0]==id_){obj_temp[kk][5]=a_n_;}
}
}
}
next_d()
var timer_next
function next_d(){
for (var kk=0;kk<=obj_temp.length-1;kk++){
obj_temp[kk][6]+=1;
if (obj_temp[kk][6]>=obj_temp[kk][3]){
obj_temp[kk][6]=1;
obj_temp[kk][5]=(obj_temp[kk][5]>=obj_temp[kk][4])?0:obj_temp[kk][5]+1
li_chang(obj_temp[kk][0],obj_temp[kk][1],obj_temp[kk][2],obj_temp[kk][5]);
}
}
timer_next=setTimeout(" next_d()",1000)
}
function li_chang(ids,cons,dis,j){
var o=document.getElementById(ids).getElementsByTagName('li');
for (var i=0;i<=o.length-1;i++) if (o[i].id!='more')o[i].className='default';
o[j].className='active';
document.getElementById(cons).innerHTML=document.getElementById(dis+o[j].id).innerHTML;
}
//选项卡结束


//tb_pro开始
function g(o){return document.getElementById(o);}
if (document.attachEvent){
addEvent = function(o,evn,f){o.attachEvent("on"+evn,f)}
}
else if (document.addEventListener){
addEvent = function(o,evn,f){o.addEventListener(evn,f,false)}
}
function initTab(nid,cid,action,defaultIndex){
var ls = g(nid).getElementsByTagName('li');
var cc = g(cid).childNodes;
var c = [];
var index = defaultIndex?defaultIndex:0;
for (var i = 0 ; i < cc.length ; i ++)if(cc[i].nodeType==1)c.push(cc[i]);
if (ls.length!=c.length)
   throw({description:'菜单和内容数量不对应'});
for (var i = 0 ; i < ls.length ; i ++){
   ls[i].index = i;
   if (i==index){
     ls[i].className = 'hovertab';
     c[i].className = 'dis'
     ls[i].parentNode.last = ls[i];
   }
   addEvent(ls[i],action,function(e){
     var self = window.event?window.event.srcElement:e?e.target:null;
     if (self.parentNode.last){
       self.parentNode.last.className = 'normaltab';
       c[self.parentNode.last.index].className = 'undis';
     };
     self.className = 'hovertab';
     c[self.index].className = 'dis';
     self.parentNode.last = self;
   });
}
}
//tb_pro结束

/*pr_top*/
function secBoard(elementID,listName,n) {
var elem = document.getElementById(elementID);
var elemlist = elem.getElementsByTagName("h3");
for (var i=0; i<elemlist.length; i++) {
elemlist[i].className = "normal";
var m = i+1;
document.getElementById(listName+"_"+m).className = "normal";
}
elemlist[n-1].className = "current";
document.getElementById(listName+"_"+n).className = "current";
}
/*pr_top*/


/*去掉虚线*/
function q_xx()
{
var objAs = document.getElementsByTagName("A");var objA;for(var i=0;objA = objAs[i];i++){objA.onfocus=function(){this.blur()};}
}
/*去掉虚线*/

