/***** Img RollOver ****************************************************************************************/

function imageOver(imgEl) {
	imgEl.src = imgEl.src.replace(".gif", "_on.gif");
}
function imageOut(imgEl) {
	imgEl.src = imgEl.src.replace("_on.gif", ".gif");
}

/***** Blur *******************************************************************************************/

var myAnchors=document.all.tags("A"); 
function allblur() {
	for (i=0;i<myAnchors.length;i++) { 
		myAnchors[i].onfocus=new Function("blur()");
	} 
}

allblur();

function bluring(){ 
	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 

function ObjFlash_Tr(src, width, height, param, addParam) {//ÇÃ·¡½Ã Åõ¸í Ã³¸®
	param = param || "";
	addParam = addParam || "";
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + width + "\" height=\"" + height + "\">");
	document.writeln("	<param name=\"movie\" value=\"" + src + "\">");
	document.writeln("	<param name=\"flashVars\" value=\"" + param + "\">");
	document.writeln("  <param name='allowScriptAccess' value='always' />");
	document.writeln("	<param name='quality' value='high' />");
	document.writeln("	<param name='scale' value='noscale' />");
	document.writeln("	<param name='salign' value='lt' />");
	document.writeln("	<param name='bgcolor' value='#000000' />");
	document.writeln("	<param name='menu' value='true' />");
	document.writeln("	<param name='wmode' value='transparent' />");
	document.writeln("	<embed  bgcolor='#000000' wmode='transparent' src=\"" + src + "?" + param + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>");
	document.writeln("</object>");
}

function nwin() {
  var winl = (screen.width - 1013) / 2;
  var wint = (screen.height - 688) / 2;
  window.open("htm/main.htm","newwindow1","width=1013, height=688, Scrollbars=no, top="+wint+", left="+winl); 
}

function popup_01() {
	newwin=window.open("../htm/notice.htm","pop1","toolbar=no,top=0,left=0,directories=no,status=no,titlebar=no,menubar=no,scrollbars=no,resizable=no,width=450,height=600");
}

function tabOver(imgEl,num) {
	if(document.getElementById){
    var basicSrc, imgSrc = new String;
    basicSrc = imgEl.src;
    imgSrc = basicSrc.substring(basicSrc.length-7,basicSrc.length);
    if (imgSrc !== "_on.gif")
    {
      var tabSel = new String();
      tabSel = "tab".concat(num);
      document.images[tabSel].src = "/images/brand/tab_avenue_0" + num + "_on.gif";

      if (num == 1) {
        document.images["tab1"].src = "/images/brand/tab_avenue_01_on.gif";
        document.images["tab2"].src = "/images/brand/tab_avenue_02.gif";
        document.images["tab3"].src = "/images/brand/tab_avenue_03.gif";
        document.images["tab4"].src = "/images/brand/tab_avenue_04.gif";
        document.images["tab5"].src = "/images/brand/tab_avenue_05.gif";
        document.images["tab6"].src = "/images/brand/tab_avenue_06.gif";
        document.getElementById("enter1").style.display = "";
        document.getElementById("enter2").style.display = "none";
        document.getElementById("enter3").style.display = "none";
        document.getElementById("enter4").style.display = "none";
        document.getElementById("enter5").style.display = "none";
        document.getElementById("enter6").style.display = "none";
      }
      else if (num == 2) {
        document.images["tab1"].src = "/images/brand/tab_avenue_01.gif";
        document.images["tab2"].src = "/images/brand/tab_avenue_02_on.gif";
        document.images["tab3"].src = "/images/brand/tab_avenue_03.gif";
        document.images["tab4"].src = "/images/brand/tab_avenue_04.gif";
        document.images["tab5"].src = "/images/brand/tab_avenue_05.gif";
        document.images["tab6"].src = "/images/brand/tab_avenue_06.gif";
        document.getElementById("enter1").style.display = "none";
        document.getElementById("enter2").style.display = "";
        document.getElementById("enter3").style.display = "none";
        document.getElementById("enter4").style.display = "none";
        document.getElementById("enter5").style.display = "none";
        document.getElementById("enter6").style.display = "none";
      }
      else if (num == 3) {
        document.images["tab1"].src = "/images/brand/tab_avenue_01.gif";
        document.images["tab2"].src = "/images/brand/tab_avenue_02.gif";
        document.images["tab3"].src = "/images/brand/tab_avenue_03_on.gif";
        document.images["tab4"].src = "/images/brand/tab_avenue_04.gif";
        document.images["tab5"].src = "/images/brand/tab_avenue_05.gif";
        document.images["tab6"].src = "/images/brand/tab_avenue_06.gif";
        document.getElementById("enter1").style.display = "none";
        document.getElementById("enter2").style.display = "none";
        document.getElementById("enter3").style.display = "";
        document.getElementById("enter4").style.display = "none";
        document.getElementById("enter5").style.display = "none";
        document.getElementById("enter6").style.display = "none";
      }
      else if (num == 4) {
        document.images["tab1"].src = "/images/brand/tab_avenue_01.gif";
        document.images["tab2"].src = "/images/brand/tab_avenue_02.gif";
        document.images["tab3"].src = "/images/brand/tab_avenue_03.gif";
        document.images["tab4"].src = "/images/brand/tab_avenue_04_on.gif";
        document.images["tab5"].src = "/images/brand/tab_avenue_05.gif";
        document.images["tab6"].src = "/images/brand/tab_avenue_06.gif";
        document.getElementById("enter1").style.display = "none";
        document.getElementById("enter2").style.display = "none";
        document.getElementById("enter3").style.display = "none";
        document.getElementById("enter4").style.display = "";
        document.getElementById("enter5").style.display = "none";
        document.getElementById("enter6").style.display = "none";
      }
      else if (num == 5) {
        document.images["tab1"].src = "/images/brand/tab_avenue_01.gif";
        document.images["tab2"].src = "/images/brand/tab_avenue_02.gif";
        document.images["tab3"].src = "/images/brand/tab_avenue_03.gif";
        document.images["tab4"].src = "/images/brand/tab_avenue_04.gif";
        document.images["tab5"].src = "/images/brand/tab_avenue_05_on.gif";
        document.images["tab6"].src = "/images/brand/tab_avenue_06.gif";
        document.getElementById("enter1").style.display = "none";
        document.getElementById("enter2").style.display = "none";
        document.getElementById("enter3").style.display = "none";
        document.getElementById("enter4").style.display = "none";
        document.getElementById("enter5").style.display = "";
        document.getElementById("enter6").style.display = "none";
      }
      else if (num == 6) {
        document.images["tab1"].src = "/images/brand/tab_avenue_01.gif";
        document.images["tab2"].src = "/images/brand/tab_avenue_02.gif";
        document.images["tab3"].src = "/images/brand/tab_avenue_03.gif";
        document.images["tab4"].src = "/images/brand/tab_avenue_04.gif";
        document.images["tab5"].src = "/images/brand/tab_avenue_05.gif";
        document.images["tab6"].src = "/images/brand/tab_avenue_06_on.gif";
        document.getElementById("enter1").style.display = "none";
        document.getElementById("enter2").style.display = "none";
        document.getElementById("enter3").style.display = "none";
        document.getElementById("enter4").style.display = "none";
        document.getElementById("enter5").style.display = "none";
        document.getElementById("enter6").style.display = "";
      }
    }
  }
}

function tabFloor(imgEl,num) {
	if(document.getElementById){
    var basicSrc, imgSrc = new String;
    basicSrc = imgEl.src;
    imgSrc = basicSrc.substring(basicSrc.length-7,basicSrc.length);
    if (imgSrc !== "_on.gif")
    {
      var tabSel = new String();
      tabSel = "tab".concat(num);
      document.images[tabSel].src = "/images/guide/tab_floor_0" + num + "_on.gif";

      if (num == 1) {
        document.images["tab1"].src = "/images/guide/tab_floor_01_on.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08.gif";
        document.getElementById("floor1").style.display = "";
        document.getElementById("floor2").style.display = "none";
        document.getElementById("floor3").style.display = "none";
        document.getElementById("floor4").style.display = "none";
        document.getElementById("floor5").style.display = "none";
        document.getElementById("floor6").style.display = "none";
        document.getElementById("floor7").style.display = "none";
        document.getElementById("floor8").style.display = "none";
      }
      else if (num == 2) {
        document.images["tab1"].src = "/images/guide/tab_floor_01.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02_on.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08.gif";
        document.getElementById("floor1").style.display = "none";
        document.getElementById("floor2").style.display = "";
        document.getElementById("floor3").style.display = "none";
        document.getElementById("floor4").style.display = "none";
        document.getElementById("floor5").style.display = "none";
        document.getElementById("floor6").style.display = "none";
        document.getElementById("floor7").style.display = "none";
        document.getElementById("floor8").style.display = "none";
      }
      else if (num == 3) {
        document.images["tab1"].src = "/images/guide/tab_floor_01.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03_on.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08.gif";
        document.getElementById("floor1").style.display = "none";
        document.getElementById("floor2").style.display = "none";
        document.getElementById("floor3").style.display = "";
        document.getElementById("floor4").style.display = "none";
        document.getElementById("floor5").style.display = "none";
        document.getElementById("floor6").style.display = "none";
        document.getElementById("floor7").style.display = "none";
        document.getElementById("floor8").style.display = "none";
      }
      else if (num == 4) {
        document.images["tab1"].src = "/images/guide/tab_floor_01.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04_on.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08.gif";
        document.getElementById("floor1").style.display = "none";
        document.getElementById("floor2").style.display = "none";
        document.getElementById("floor3").style.display = "none";
        document.getElementById("floor4").style.display = "";
        document.getElementById("floor5").style.display = "none";
        document.getElementById("floor6").style.display = "none";
        document.getElementById("floor7").style.display = "none";
        document.getElementById("floor8").style.display = "none";
      }
      else if (num == 5) {
        document.images["tab1"].src = "/images/guide/tab_floor_01.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05_on.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08.gif";
        document.getElementById("floor1").style.display = "none";
        document.getElementById("floor2").style.display = "none";
        document.getElementById("floor3").style.display = "none";
        document.getElementById("floor4").style.display = "none";
        document.getElementById("floor5").style.display = "";
        document.getElementById("floor6").style.display = "none";
        document.getElementById("floor7").style.display = "none";
        document.getElementById("floor8").style.display = "none";
      }
      else if (num == 6) {
        document.images["tab1"].src = "/images/guide/tab_floor_01.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06_on.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08.gif";
        document.getElementById("floor1").style.display = "none";
        document.getElementById("floor2").style.display = "none";
        document.getElementById("floor3").style.display = "none";
        document.getElementById("floor4").style.display = "none";
        document.getElementById("floor5").style.display = "none";
        document.getElementById("floor6").style.display = "";
        document.getElementById("floor7").style.display = "none";
        document.getElementById("floor8").style.display = "none";
      }
       else if (num == 7) {
        document.images["tab1"].src = "/images/guide/tab_floor_01.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07_on.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08.gif";
        document.getElementById("floor1").style.display = "none";
        document.getElementById("floor2").style.display = "none";
        document.getElementById("floor3").style.display = "none";
        document.getElementById("floor4").style.display = "none";
        document.getElementById("floor5").style.display = "none";
        document.getElementById("floor6").style.display = "none";
        document.getElementById("floor7").style.display = "";
        document.getElementById("floor8").style.display = "none";
      }
      else if (num == 8) {
        document.images["tab1"].src = "/images/guide/tab_floor_01.gif";
        document.images["tab2"].src = "/images/guide/tab_floor_02.gif";
        document.images["tab3"].src = "/images/guide/tab_floor_03.gif";
        document.images["tab4"].src = "/images/guide/tab_floor_04.gif";
        document.images["tab5"].src = "/images/guide/tab_floor_05.gif";
        document.images["tab6"].src = "/images/guide/tab_floor_06.gif";
        document.images["tab7"].src = "/images/guide/tab_floor_07.gif";
        document.images["tab8"].src = "/images/guide/tab_floor_08_on.gif";
        document.getElementById("floor1").style.display = "none";
        document.getElementById("floor2").style.display = "none";
        document.getElementById("floor3").style.display = "none";
        document.getElementById("floor4").style.display = "none";
        document.getElementById("floor5").style.display = "none";
        document.getElementById("floor6").style.display = "none";
        document.getElementById("floor7").style.display = "none";
        document.getElementById("floor8").style.display = "";
      }
    }
  }
}

function MM_swapImgRestore() { 
  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() { 
  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) { 
  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 && document.getElementById) x=document.getElementById(n); return x;
}
function MM_swapImage() { 
  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 OpenBr(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

/** Ãß°¡ 2010.03.09 **/


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

