// JavaScript Document
/*QQ:380608331 */
old = 6
function updateTabChange(vid,group)
{
	if(old==vid)
		return;
	var o = document.getElementById('tabHead'+vid);
	var oc = document.getElementById('tabContent'+vid);
	o.className="hotTab";
	oc.style.display = "";
	var o = document.getElementById('tabHead'+old);
	var oc = document.getElementById('tabContent'+old);
	o.className="";
	oc.style.display = "none";
	old = vid;
}

function sellay0(num){
 for(var id = 1;id<=3;id++)
 {
  var ss="tlist"+id;
  if(id==num)
  document.getElementById(ss).style.display="block";
  else
  document.getElementById(ss).style.display="none";
 }
 
 for(var id = 1;id<=3;id++)
 {
  var bb="ltitle"+id;
  if(id==num)
  document.getElementById(bb).className="active";
  else
  document.getElementById(bb).className="";
 } 
}


function MM_reloadPage(init) {  //reloads the window if Nav4 resized

  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {

    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}

  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();

}

MM_reloadPage(true);



function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}


function setImgSize(B,D,A){
var G=D;var E=A;var F=B.offsetHeight/B.offsetWidth;
var C=B.offsetWidth/B.offsetHeight;if(B.offsetWidth>G){B.width=G;B.height=G*F}
if(B.offsetHeight>E){B.height=E;B.width=E*C}}
function $(id) { return document.getElementById(id); }

function addLoadEvent(func){
	var oldonload = window.onload;
	if (typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function(){
			oldonload();
			func();
		}
	}
}

function moveElement(elementID,final_x,final_y,interval) {
  if (!document.getElementById) return false;
  if (!document.getElementById(elementID)) return false;
  var elem = document.getElementById(elementID);
  if (elem.movement) {
    clearTimeout(elem.movement);
  }
  if (!elem.style.left) {
    elem.style.left = "0px";
  }
  if (!elem.style.top) {
    elem.style.top = "0px";
  }
  var xpos = parseInt(elem.style.left);
  var ypos = parseInt(elem.style.top);
  if (xpos == final_x && ypos == final_y) {
		return true;
  }
  if (xpos < final_x) {
    var dist = Math.ceil((final_x - xpos)/10);
    xpos = xpos + dist;
  }
  if (xpos > final_x) {
    var dist = Math.ceil((xpos - final_x)/10);
    xpos = xpos - dist;
  }
  if (ypos < final_y) {
    var dist = Math.ceil((final_y - ypos)/10);
    ypos = ypos + dist;
  }
  if (ypos > final_y) {
    var dist = Math.ceil((ypos - final_y)/10);
    ypos = ypos - dist;
  }
  elem.style.left = xpos + "px";
  elem.style.top = ypos + "px";
  var repeat = "moveElement('"+elementID+"',"+final_x+","+final_y+","+interval+")";
  elem.movement = setTimeout(repeat,interval);
}

function classNormal(iFocusBtnID,iFocusTxID){
	var iFocusBtns= $(iFocusBtnID).getElementsByTagName('li');
	var iFocusTxs = $(iFocusTxID).getElementsByTagName('li');
	for(var i=0; i<iFocusBtns.length; i++) {
		iFocusBtns[i].className='normal';
		iFocusTxs[i].className='normal';
	}
}

function classCurrent(iFocusBtnID,iFocusTxID,n){
	var iFocusBtns= $(iFocusBtnID).getElementsByTagName('li');
	var iFocusTxs = $(iFocusTxID).getElementsByTagName('li');
	iFocusBtns[n].className='current';
	iFocusTxs[n].className='current';
}

function iFocusChange() {
	if(!$('ifocus')) return false;
	$('ifocus').onmouseover = function(){atuokey = true};
	$('ifocus').onmouseout = function(){atuokey = false};
	var iFocusBtns = $('ifocus_btn').getElementsByTagName('li');
	var listLength = iFocusBtns.length;
	iFocusBtns[0].onmouseover = function() {
		moveElement('ifocus_piclist',0,0,5);
		classNormal('ifocus_btn','ifocus_tx');
		classCurrent('ifocus_btn','ifocus_tx',0);
	}
	if (listLength>=2) {
		iFocusBtns[1].onmouseover = function() {
			moveElement('ifocus_piclist',0,-225,5);
			classNormal('ifocus_btn','ifocus_tx');
			classCurrent('ifocus_btn','ifocus_tx',1);
		}
	}
	if (listLength>=3) {
		iFocusBtns[2].onmouseover = function() {
			moveElement('ifocus_piclist',0,-450,5);
			classNormal('ifocus_btn','ifocus_tx');
			classCurrent('ifocus_btn','ifocus_tx',2);
		}
	}
	if (listLength>=4) {
		iFocusBtns[3].onmouseover = function() {
			moveElement('ifocus_piclist',0,-675,5);
			classNormal('ifocus_btn','ifocus_tx');
			classCurrent('ifocus_btn','ifocus_tx',3);
		}
	}
}

setInterval('autoiFocus()',5000);
var atuokey = false;
function autoiFocus() {
	if(!$('ifocus')) return false;
	if(atuokey) return false;
	var focusBtnList = $('ifocus_btn').getElementsByTagName('li');
	var listLength = focusBtnList.length;
	for(var i=0; i<listLength; i++) {
		if (focusBtnList[i].className == 'current') var currentNum = i;
	}
	if (currentNum==0&&listLength!=1 ){
		moveElement('ifocus_piclist',0,-225,5);
		classNormal('ifocus_btn','ifocus_tx');
		classCurrent('ifocus_btn','ifocus_tx',1);
	}
	if (currentNum==1&&listLength!=2 ){
		moveElement('ifocus_piclist',0,-450,5);
		classNormal('ifocus_btn','ifocus_tx');
		classCurrent('ifocus_btn','ifocus_tx',2);
	}
	if (currentNum==2&&listLength!=3 ){
		moveElement('ifocus_piclist',0,-675,5);
		classNormal('ifocus_btn','ifocus_tx');
		classCurrent('ifocus_btn','ifocus_tx',3);
	}
	if (currentNum==3 ){
		moveElement('ifocus_piclist',0,0,5);
		classNormal('ifocus_btn','ifocus_tx');
		classCurrent('ifocus_btn','ifocus_tx',0);
	}
	if (currentNum==1&&listLength==2 ){
		moveElement('ifocus_piclist',0,0,5);
		classNormal('ifocus_btn','ifocus_tx');
		classCurrent('ifocus_btn','ifocus_tx',0);
	}
	if (currentNum==2&&listLength==3 ){
		moveElement('ifocus_piclist',0,0,5);
		classNormal('ifocus_btn','ifocus_tx');
		classCurrent('ifocus_btn','ifocus_tx',0);
	}
}
addLoadEvent(iFocusChange);






















document.write(unescape("%0D%0A%3Cstyle%20type%3D%22text/css%22%3E%0D%0A%3C%21--%0D%0A%0D%0A.bank10%20%7Bclear%3A%20both%3Bheight%3A%2010px%3Boverflow%3A%20hidden%3B%7D.bank5%20%7Bclear%3Aboth%3Bheight%3A5px%3Boverflow%3A%20hidden%3B%7D.bank%20%7Bclear%3A%20both%3Bheight%3A%201px%3Boverflow%3A%20hidden%3B%7D.bank2%20%7Bclear%3Aboth%3Bheight%3A2px%3Boverflow%3A%20hidden%3B%7D%0D%0A.bank17%20%7Bclear%3Aboth%3Bheight%3A17px%3Boverflow%3Ahidden%3B%7D.fle%7B%20float%3Aleft%7D%20.fri%7Bfloat%3Aright%7D%0D%0A.BOX%7Bwidth%3A1003px%3Bmargin%3A%200px%20auto%3Btext-align%3Acenter%3B%7D%0D%0A.w820%7B%20width%3A820px%3B%20float%3Aleft%3B%7D%0D%0A.left%7B%20width%3A258px%3B%20float%3Aleft%3B%7D%0D%0A.M557%7B%20width%3A557px%3B%20float%3Aright%3B%7D%0D%0A.right%7B%20width%3A173px%3B%20float%3Aright%3Btext-align%3Aleft%3Boverflow%3A%20hidden%3B%7D%0D%0A%0D%0A.Acon2%7B_padding%3A15px%200px%205px%200px%3B%7D%0D%0A.pro%20.nav%7B%20height%3A27px%3B%20text-align%3Aleft%3B%20position%3Arelative%7D%0D%0A.pro%20.nav%20.nbg%7B_margin-left%3A7px%3B%7D%0D%0A.pro%20li%20.bg%20img%7Bvertical-align%3Amiddle%3B%7D%0D%0A.pro%20.blank%7Bwidth%3A0%3B%20height%3A80px%3B%7D%0D%0A.pro%20.mor%7Btop%3A8px%3B%20right%3A5px%3B%20position%3Aabsolute%3Bfloat%3Aright%3B%7D%0D%0A.pro%20.nav%20.nbg%7Bheight%3A25px%3B%20text-align%3Aleft%3B%20display%3Ablock%3B%20width%3A82px%3B%20float%3Aleft%3B%20margin-left%3A15px%3Bline-height%3A25px%3B%20text-align%3Acenter%3B%20margin-top%3A3px%3B%20color%3A%23000%20%3B%20font-size%3A14px%3B%7D%0D%0A%23ifocus_pic%20%7B%20display%3Ainline%3B%20position%3Arelative%3B%20float%3Aleft%3B%20width%3A450px%3B%20height%3A225px%3B%20overflow%3Ahidden%3B%20margin%3A3px%200%200%203px%3B%20%7D%0D%0A%23ifocus_piclist%20%7B%20position%3Aabsolute%3B%20%7D%0D%0A%23ifocus_opdiv%20%7B%20position%3Aabsolute%3Bleft%3A0%3B%20bottom%3A-1px%3B%20width%3A450px%3B%20height%3A35px%3B%20%7D%0D%0A.proli%20.nav%7B%20height%3A27px%3B%20text-align%3Aleft%3B%20position%3Arelative%7D%0D%0A.proli%20.mor%7Btop%3A8px%3B%20right%3A5px%3B%20position%3Aabsolute%3Bfloat%3Aright%3B%7D%0D%0A.proli%20.con%20%7B%20border%3A1px%20solid%20%23cfe7f0%3B%20%7D%0D%0A.proli%20.nav%20.nbg%7B%20height%3A25px%3B%20text-align%3Aleft%3Bdisplay%3Ablock%3B%20width%3A82px%3B%20float%3Aleft%3B%20margin-left%3A15px%3Bline-height%3A25px%3Btext-align%3Acenter%3B%20margin-top%3A3px%3B%20color%3A%23000%20%3B%20font-size%3A14px%3B%7D%0D%0A.ph%20h2%7B_margin-bottom%3A8px%3B%20%20_height%3A52px%3Boverflow%3Ahidden%3B%7D%0D%0A.proli%20.nav%20.nbg%7B_margin-left%3A7px%3B%7D%0D%0A.dt_open%20%7Bcursor%3Apointer%3Btext-align%3Aleft%3B%20padding-left%3A30px%3B%20font-size%3A14px%3B%20padding-top%3A5px%3Bpadding-bottom%3A5px%3B%7D%0D%0A.dt_closed%20%7Bcursor%3Apointer%3Btext-align%3Aleft%3Bpadding-left%3A30px%3B%20font-size%3A14px%3Bpadding-top%3A5px%3Bpadding-bottom%3A5px%3B%7D%0D%0A%0D%0A--%3E%0D%0A%3C/style%3E"))
