﻿var URL_str = window.location.href;
if(URL_str.indexOf("www.ttpx.com.cn") == -1){
        URL_str = URL_str.replace("ttpx.com.cn","www.ttpx.com.cn");
        URL_str = URL_str.replace("www.jsccbp.com","www.ttpx.com.cn");
        URL_str = URL_str.replace("jsccbp.com","www.ttpx.com.cn");
        window.location.replace(URL_str);
}

//获取url参数
function GetRequest() {
   var url = location.search; //获取url中"?"符后的字串
   var theRequest = new Object();
   if (url.indexOf("?") != -1) {
      var str = url.substr(1);
      strs = str.split("&");
      for(var i = 0; i < strs.length; i ++) {
         theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
      }
   }
   return theRequest;
}
function goUrl(x){
     window.location.href=x;
	 return false;
}
var Request = new Object();
Request = GetRequest();
if(Request['wt']||Request['dm']){
	goUrl('http://www.taobao.com/go/chn/taoke/mingdian.php?pid=mm_12537897_2661863_9654499&eventid=102305');
}


<!--预先下载图片-->
Image1= new Image(73,36);
Image1.src = "/images/nav/index.png";
Image2= new Image(73,36);
Image2.src = "/images/nav/about.png";
Image3= new Image(73,36);
Image3.src = "/images/nav/branch.png";
Image4= new Image(73,36);
Image4.src = "/images/nav/service.png";
Image5= new Image(73,36);
Image5.src = "/images/nav/news.png";
Image6= new Image(73,36);
Image6.src = "/images/nav/join.png";
Image7= new Image(73,36);
Image7.src = "/images/nav/contact.png";
Image11= new Image(73,36);
Image11.src = "/images/nav/index2.png";
Image22= new Image(73,36);
Image22.src = "/images/nav/about2.png";
Image33= new Image(73,36);
Image33.src = "/images/nav/branch2.png";
Image44= new Image(73,36);
Image44.src = "/images/nav/service2.png";
Image55= new Image(73,36);
Image55.src = "/images/nav/news2.png";
Image66= new Image(73,36);
Image66.src = "/images/nav/join2.png";
Image77= new Image(73,36);
Image77.src = "/images/nav/contact2.png";


function AddFavorite(sURL, sTitle){
	try{
		window.external.addFavorite(sURL, sTitle);
	}
	catch(e){
		try{
			window.sidebar.addPanel(sTitle, sURL, "");
		}
		catch(e){
			alert("加入收藏失败，请使用Ctrl+D进行添加");
		}
	}
}

function SetHome(obj,vrl){
	try{
		obj.style.behavior='url(#default#homepage)';
		obj.setHomePage(vrl);
	}
	catch(e){
		if(window.netscape){
			try{
				netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
			}
			catch(e){
				alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
			}
			var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch); prefs.setCharPref('browser.startup.homepage',vrl);
		}
	}
}

var flashvars = {};
var attributes = {};
attributes.wmode = "transparent";
attributes.id = "slider";
swfobject.embedSWF("/flash/banner.swf", "index_flash", "960", "310", "9", "/flash/expressInstall.swf", flashvars, attributes);

function Menu_hide(divid) {
	var mydiv=document.getElementById(divid);
	preid=divid;
	if(mydiv.style.display=="block"){
		if(lastid!=="")
		window.clearTimeout(lastid);
		lastid=window.setTimeout(hideMyDiv,100);
	}
}
var preid="";
var currid="";
var lastid="";
function changemenu(mydiv){
	if(lastid!=="")
	window.clearTimeout(lastid);
	currid=mydiv;
	if(preid!==""&&preid!==currid)
	document.getElementById(preid).style.display="none";
	var obj = document.getElementById(mydiv);
	if (obj.style.display=='none'){
		obj.style.display='block';
		}else{
		obj.style.display='block';
	}
}
function hideMyDiv(){
	if(preid!=="")
	var obj=document.getElementById(preid);
	obj.style.display='none';
}
