// JavaScript Document

 function setTab(name,cursel,n){
	  for(i=1;i<=n;i++){
	  var menu=document.getElementById(name+i);
	  var con=document.getElementById("con_"+name+"_"+i);
	  menu.className=i==cursel?"mon":"";
	  con.style.display=i==cursel?"block":"none";
	} 
  }
 
 
   function setTab1(name,cursel,n){
	  for(i=1;i<=n;i++){
	  var menu=document.getElementById(name+i);
	  var con=document.getElementById("con1_"+name+"_"+i);
	  menu.className=i==cursel?"hover":"";
	  con.style.display=i==cursel?"block":"none";
	} 
  }
function pucker_show(name,no,hiddenclassname,showclassname) {
for (var i=1 ;i<8 ;i++ ){
document.getElementById(name+i).className=hiddenclassname;}
document.getElementById(name+no).className=showclassname;}

function case_show1(name,no,hiddenclassname,showclassname) {
for (var i=1 ;i<8 ;i++ ){
document.getElementById(name+i).className=hiddenclassname;}
document.getElementById(name+no).className=showclassname;}

function pucker_show2(name,no,hiddenclassname,showclassname) {
for (var i=1 ;i<6 ;i++ ){
document.getElementById(name+i).className=hiddenclassname;}
document.getElementById(name+no).className=showclassname;}



var bannerAD = new Array();
var bannerADlink = new Array();
var adNum = 0;
//修改下面的图片地址和相应的链接地址
bannerAD[0] = "/skin/images/ban.jpg";
bannerADlink[0] = "/";
bannerAD[1] = "/skin/images/ba1.jpg";
bannerADlink[1] = "/";
bannerAD[2] = "/skin/images/banner.jpg";
bannerADlink[2] = "/";
var preloadedimages = new Array();
for (i = 1; i < bannerAD.length; i++) {
    preloadedimages[i] = new Image();
    preloadedimages[i].src = bannerAD[i];
}

function setTransition() {

    if (document.all) {
        bannerADrotator.filters.revealTrans.Transition = Math.floor(Math.random() * 23);
        bannerADrotator.filters.revealTrans.apply();
    }
}

function playTransition() {
    if (document.all)
        bannerADrotator.filters.revealTrans.play()
}

function nextAd() {
    if (adNum < bannerAD.length - 1) adNum++;
    else adNum = 0;
    setTransition();
    document.images.bannerADrotator.src = bannerAD[adNum];
    document.getElementById("hrefUrl").href = bannerADlink[adNum];
    playTransition();
    theTimer = setTimeout("nextAd()", 6000);
}
function qw_on(qwbt, qwpic) {
    var divonload = new Array("qwbt1", "qwbt2", "qwbt3", "qwbt4", "qwbt5", "qwbt6")
    for (var i = 0; i < parseInt(5); i++) {
        document.getElementById(divonload[i]).className = "index_js04";
    }
    document.getElementById(qwbt).className = "index_js03";

    var divonload = new Array("qwpic1", "qwpic2", "qwpic3", "qwpic4", "qwpic5", "qwpic6")
    for (var i = 0; i < parseInt(5); i++) {
        document.getElementById(divonload[i]).style.display = "none";
    }
    document.getElementById(qwpic).style.display = "block";
}


/*
document.writeln("<link href=\"/skin/css/ad.css\" rel=\"stylesheet\" type=\"text\/css\"\/>");


var bignum=4;
	var r_div = document.getElementById('r_warp');	
	function showcont(num,url){	
		document.getElementById('r_Holder').style.width='222px';
		 r_div.innerHTML = '<ul><li class=\"r_con'+num+'\"  onmouseover="pull(\'true\');" onmouseout=" draw(\'true\')"><a href=\"'+url+'\"  target="_blank"><img src="/skin/kefu/r_Demo_'+num+'.gif"  /></a></li></ul>';
		 if(num==2)
			document.getElementById("r_action").innerHTML = '<img src="/skin/kefu/Demo2.gif" width="38" height="34" />';
		 else
			document.getElementById("r_action").innerHTML = '<img src="/skin/kefu/Demo.gif" width="38" height="34" />';					
		
		pull('false');
	}
	
	var drawit;
	var pullit;
	var step = 30;
	function regenerate(){window.location.reload()}
	function regenerate2(){if (document.layers) setTimeout("window.onresize=regenerate",400)}
	window.onload=regenerate2
	if (document.all){	  
	   themenu=document.all.r_warp.style
	   rightboundary=40
       leftboundary=-210}
	else if(document.layers){
	   themenu=document.layers.slidemenubar
	   rightboundary=100
	   leftboundary=10
	}
	
	function pull(is){
	 if(is=='false' && document.all)
	  themenu.pixelRight = leftboundary;
	  clearInterval(drawit)
	  clearInterval(pullit)
	  pullit=setInterval("pullengine()",50)
	 
	}
	function pullengine(){
		//if (document.all&&themenu.pixelLeft<rightboundary) themenu.pixelLeft+=step
		//else if(document.layers&&themenu.Left<rightboundary) themenu.Left+=step
		//alert(themenu.pixelLeft+"'"+rightboundary)
		if (document.all&&themenu.pixelLeft<rightboundary)
		themenu.pixelLeft+=step
		else if(document.layers&&themenu.left<rightboundary)
		themenu.left+=step
		else  clearInterval(pullit)
	}
	
	function draw(is){	
	  if(is=='true')document.getElementById("r_action").innerHTML = '<img src="/skin/kefu/Demo.gif" width="38" height="34" />';	
	  clearInterval(drawit)
	  clearInterval(pullit)
	  drawit=setInterval("drawengine()",50)	 
	}
	function drawengine(){
	if (document.all&&themenu.pixelLeft>leftboundary)
	themenu.pixelLeft-=step
	else if(document.layers&&themenu.left>leftboundary)
	themenu.left-=step
    else if (drawit) clearInterval(drawit)
	}
	
	//关闭层
function toggle(targetid){
	target=document.getElementById(targetid);
	if (document.all)
		target.style.visibility="hidden"
	else if (document.layers)
		document.targetid.visibility="hide"
	else
		target.style.visibility="hidden"
}

function _message_node(id){return document.getElementById(id)}function _message_child(p,c){var pdom=_message_node(p);var nodes=pdom.childNodes;var cdom=false;for(var i=0;i<nodes.length;i++){if(nodes[i].tagName==c.toUpperCase()){cdom=nodes[i];break}}return cdom}function _message_tips_pop(act){var MsgPop=_message_child("_popup_msg_container","div");var MsgPop=null==MsgPop?document.getElementById("_popup_msg_container"):MsgPop;var popH=parseInt(MsgPop.clientHeight);if(act=="up"){MsgPop.style.display="block";show=setInterval("_message_changeH('up')",2)}if(act=="down"){hide=setInterval("_message_changeH('down')",2)}}function _message_changeH(str){var MsgPop=_message_child("_popup_msg_container","div");var MsgPop=null==MsgPop?document.getElementById("_popup_msg_container"):MsgPop;var popH=parseInt(MsgPop.clientHeight);if(str=="up"){if(popH<=205){MsgPop.style.height=(popH+10).toString()+"px"}else{clearInterval(show)}}if(str=="down"){if(popH>=8){MsgPop.style.height=(popH-4).toString()+"px"}else{MsgPop.style.display="none";clearInterval(hide)}}}var server=window.location.host;if(server.indexOf("local")<0){server="www.woman91.com"}var p="1=1";if(window.location.search.indexOf("?")>-1){var p=window.location.search.substring(1)}
var MsgPop=_message_child("_popup_msg_container","div");
 if(MsgPop){
MsgPop.style.display="none";	
MsgPop.style.height="0px"
}

*/
