﻿// JavaScript Document
//浏览器判断代码
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
if (window.ActiveXObject)
            Sys.ie = ua.match(/msie ([\d.]+)/)[1]
else if (document.getBoxObjectFor)
            Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1]
else if (window.MessageEvent && !document.getBoxObjectFor)
            Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1]
else if (window.opera)
            Sys.opera = ua.match(/opera.([\d.]+)/)[1]
else if (window.openDatabase)
            Sys.safari = ua.match(/version\/([\d.]+)/)[1];


//树形导航的JS代码开始
var expandState = 0;
function expand(){
  if(expandState == 0){setPace('master', 0, 10, 10); if(ie){document.menutop.src = '/style/images/left_mu04.gif'}; expandState = 1;}
  else{setPace('master', -120, 10, 10); if(ie){document.menutop.src='/style/images/left_mu04.gif'}; expandState = 0;}
}

function showkefu(){
mykefuiframe.location.href="/other/kefu.html";
document.getElementById('mykefu1230').style.display="";	
//mykefuiframe.location.reload();

}

/*
document.writeln("<style type=text\/css>");
document.writeln("#master {");
document.writeln("	left: -120px;");
document.writeln("	top: 25px;");
document.writeln("	position:fixed;");
document.writeln("	visibility: visible;");
document.writeln("	Z-INDEX: 999");
document.writeln("}");
document.writeln("* html #master {");
document.writeln("	left: -120px;");
document.writeln("	top: 25px;");
document.writeln("	position:absolute;");
document.writeln("	visibility: visible;");
document.writeln("	Z-INDEX: 999");
document.writeln("}");
document.writeln("<\/style>")
*/
document.writeln("<style>");
document.writeln("* { padding:0; margin:0;}");
document.writeln("body { height:100%; overflow:auto; position:relative;}");
document.writeln("html { height:100%; overflow:auto;}");
document.writeln(".fixed { position:absolute; top:150px; left:10px; visibility:visible; Z-INDEX: 999;}");
if(Sys.opera){
document.writeln("*.fixed {position:fixed;}");
}			
document.writeln(".wrapper { height:100%; overflow:auto;}");
document.writeln("</style>");


document.writeln("<table id=master class=\"fixed\" width=\"102\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td><a href=\"javascript:void(0)\" onclick='showkefu()'><img src=\"\/style\/images\/kefu_03.gif\" width=\"102\" height=\"92\" border=\"0\" \/><\/a><\/td>");
document.writeln("  <\/tr>");
document.writeln("  <tr id='mykefu1230'>");
document.writeln("    <td>");
document.writeln("    <iframe width=\"102\" id='mykefuiframe' name='mykefuiframe' height=\"292\" scrolling=\"no\" frameborder=\"0\" src=\"\/other\/kefu.html\"><\/iframe>");
document.writeln("    <\/td>");
document.writeln("  <\/tr>");
document.writeln("  <tr>");
document.writeln("    <td height=\"14\"><img src=\"\/style\/images\/kefu_05.gif\" width=\"102\" height=\"17\" \/><\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table>");
document.getElementById("mykefu1230").style.display='none';




var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
var master = new Object('element')
master.curLeft = -200;   master.curTop = 10;
master.gapLeft = 0;      master.gapTop = 0;
master.timer = null;
if(ie){var sidemenu = document.all.master;}
if(ns){var sidemenu = document.master;}
setInterval('FixY()',100);