﻿var str = window.location.href;
var a=str.split("/"); 
var strCurrent = a[a.length-1];
//获取根目录或虚拟目录
function getRootPath(){ 
var strFullPath=window.document.location.href; 
var strPath=window.document.location.pathname; 
var pos=strFullPath.indexOf(strPath); 
var prePath=strFullPath.substring(0,pos); 
var postPath=strPath.substring(0,strPath.substr(1).indexOf('/')+1); 
return(prePath+postPath); 
} 
    if( strCurrent == "aboutus1.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/about_01.gif");
	}

    if( strCurrent == "aboutus2.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/about_02.gif");
	}
	
		    if( strCurrent == "product.aspx")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/pro_01.gif");
	}
	
	    if( strCurrent == "product.aspx?CategoryID=17")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/pro_01.gif");
	}
	
	    if( strCurrent == "product.aspx?CategoryID=18")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/pro_02.gif");
	}
	
	    if( strCurrent == "product.aspx?CategoryID=20")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/pro_03.gif");
	}
	
	    if( strCurrent == "product.aspx?CategoryID=21")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/pro_04.gif");
	}
	
	    if( strCurrent == "product.aspx?CategoryID=22")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/pro_05.gif");
	}
	
	    if( strCurrent == "medio1.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/me_01.gif");
	}
	
		    if( strCurrent == "medio2.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/me_02.gif");
	}
	
		    if( strCurrent == "job.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/job_01.gif");
	}
	
		    if( strCurrent == "job1.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/job_02.gif");
	}
	
				    if( strCurrent == "contact.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/con_01.gif");
	}
			    if( strCurrent == "contact1.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/con_02.gif");
	}
	
			    if( strCurrent == "contact2.html")
    {
     $("#TitlePic").attr("src",""+getRootPath()+"/images/link_01.gif");
	}
