function initRollovers() {	if (!document.getElementById) return		var aPreLoad = new Array();	var sTempSrc;	var aImages = document.getElementsByTagName('img');	for (var i = 0; i < aImages.length; i++) {				if (aImages[i].className == 'imgover') {			var src = aImages[i].getAttribute('src');			var ftype = src.substring(src.lastIndexOf('.'), src.length);			var hsrc = src.replace(ftype, '_on'+ftype);			aImages[i].setAttribute('hsrc', hsrc);						aPreLoad[i] = new Image();			aPreLoad[i].src = hsrc;						aImages[i].onmouseover = function() {				sTempSrc = this.getAttribute('src');				this.setAttribute('src', this.getAttribute('hsrc'));			}							aImages[i].onmouseout = function() {				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);				this.setAttribute('src', sTempSrc);			}		}	}}window.onload = initRollovers;function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_findObj(n, d) { //v4.01  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);  if(!x && d.getElementById) x=d.getElementById(n); return x;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}function doZoom(str1,str2, str3){	document.getElementById(str3).style.fontSize=str1+"%";	switch (str2){	case "1":		document.getElementById("small").innerHTML='<img src="../images/btn_small_on.gif" alt="小" width="15" height="15" border="0" />';		document.getElementById("medium").innerHTML='<a href="#" onclick="doZoom(\'100\',\'2\',\'mainArea\');"><img src="../images/btn_medium.gif" alt="中" width="17" height="17" /></a>';		document.getElementById("big").innerHTML='<a href="#" onclick="doZoom(\'115\',\'3\',\'mainArea\');"><img src="../images/btn_big.gif" alt="大" width="19" height="19" border="0" class="imgover" /></a>';	break;	case "2":		document.getElementById("small").innerHTML='<a href="#" onclick="doZoom(\'80\',\'1\',\'mainArea\');"><img src="../images/btn_small.gif" alt="小" width="15" height="15" border="0" class="imgover" /></a>';		document.getElementById("medium").innerHTML='<img src="../images/btn_medium_on.gif" alt="中" width="17" height="17" />';		document.getElementById("big").innerHTML='<a href="#" onclick="doZoom(\'115\',\'3\',\'mainArea\');"><img src="../images/btn_big.gif" alt="大" width="19" height="19" border="0" class="imgover" /></a>';	break;	case "3":		document.getElementById("small").innerHTML='<a href="#" onclick="doZoom(\'80\',\'1\',\'mainArea\');"><img src="../images/btn_small.gif" alt="小" width="15" height="15" border="0" class="imgover" /></a>';		document.getElementById("medium").innerHTML='<a href="#" onclick="doZoom(\'100\',\'2\',\'mainArea\');"><img src="../images/btn_medium.gif" alt="中" width="17" height="17" /></a>';		document.getElementById("big").innerHTML='<img src="../images/btn_big_on.gif" alt="大" width="19" height="19" border="0" />';	break;	default:		document.getElementById("small").innerHTML='<a href="#" onclick="doZoom(\'80\',\'1\',\'mainArea\');"><img src="../images/btn_small.gif" alt="小" width="15" height="15" border="0" class="imgover" /></a>';		document.getElementById("medium").innerHTML='<img src="../images/btn_medium_on.gif" alt="中" width="17" height="17" />';		document.getElementById("big").innerHTML='<a href="#" onclick="doZoom(\'115\',\'3\',\'mainArea\');"><img src="../images/btn_big.gif" alt="大" width="19" height="19" border="0" class="imgover" /></a>';	}}function doZoomtop(str1,str2, str3){	document.getElementById(str3).style.fontSize=str1+"%";	switch (str2){	case "1":		document.getElementById("small").innerHTML='<img src="../images/btn_small_on.gif" alt="小" width="15" height="15" border="0" />';		document.getElementById("medium").innerHTML='<a href="#" onclick="doZoomtop(\'100\',\'2\',\'wraper\');"><img src="../images/btn_medium.gif" alt="中" width="17" height="17" /></a>';		document.getElementById("big").innerHTML='<a href="#" onclick="doZoomtop(\'115\',\'3\',\'wraper\');"><img src="../images/btn_big.gif" alt="大" width="19" height="19" border="0" class="imgover" /></a>';	break;	case "2":		document.getElementById("small").innerHTML='<a href="#" onclick="doZoomtop(\'80\',\'1\',\'wraper\');"><img src="../images/btn_small.gif" alt="小" width="15" height="15" border="0" class="imgover" /></a>';		document.getElementById("medium").innerHTML='<img src="../images/btn_medium_on.gif" alt="中" width="17" height="17" />';		document.getElementById("big").innerHTML='<a href="#" onclick="doZoomtop(\'115\',\'3\',\'wraper\');"><img src="../images/btn_big.gif" alt="大" width="19" height="19" border="0" class="imgover" /></a>';	break;	case "3":		document.getElementById("small").innerHTML='<a href="#" onclick="doZoomtop(\'80\',\'1\',\'wraper\');"><img src="../images/btn_small.gif" alt="小" width="15" height="15" border="0" class="imgover" /></a>';		document.getElementById("medium").innerHTML='<a href="#" onclick="doZoomtop(\'100\',\'2\',\'wraper\');"><img src="../images/btn_medium.gif" alt="中" width="17" height="17" /></a>';		document.getElementById("big").innerHTML='<img src="../images/btn_big_on.gif" alt="大" width="19" height="19" border="0" />';	break;	default:		document.getElementById("small").innerHTML='<a href="#" onclick="doZoomtop(\'80\',\'1\',\'wraper\');"><img src="../images/btn_small.gif" alt="小" width="15" height="15" border="0" class="imgover" /></a>';		document.getElementById("medium").innerHTML='<a href="#" onclick="doZoomtop(\'100\',\'2\',\'wraper\');"><img src="../images/btn_medium_on.gif" alt="中" width="17" height="17" class="imgover" /></a>';		document.getElementById("big").innerHTML='<a href="#" onclick="doZoomtop(\'115\',\'3\',\'wraper\');"><img src="../images/btn_big.gif" alt="大" width="19" height="19" border="0" class="imgover" /></a>';	}}function tblist3(){	switch(arguments.length){		case 4:			if (arguments[3]){				document.getElementById(arguments[0]).style.display="";				document.getElementById(arguments[1]).style.display="none";				document.getElementById(arguments[2]).style.display="";			}else{				document.getElementById(arguments[0]).style.display="none";				document.getElementById(arguments[1]).style.display="";				document.getElementById(arguments[2]).style.display="none";			}		default:			return;	}}function show(str1,str2){	if (!document.getElementById(str1)) return;	if (str2){		document.getElementById(str1).style.display="";	}else{		document.getElementById(str1).style.display="none";	}}
