/*----------------------------------------------------------------------------------------------------------
- author: duhongchang 
- version: 2009-8-10
- desc:    return picture url
----------------------------------------------------------------------------------------------------------*/
function RetPicUrl(pic_id,boolvalue)
{
   //if boolvalue=true,return bigpic
    var returl="";
//     var sHref= location.href;
     var dir = "000" + parseInt(pic_id / 2000);
     var sSubDir = dir.substring(dir.length-4,dir.length);
     var retPhotourl=_ResourcePhoto+sSubDir+"\\"+pic_id+".jpg";
     var retThumbPhotoUrl=_ThumbPhoto+sSubDir+"\\"+pic_id+".jpg";
  
   
  
       
    if(boolvalue)
    {
        returl=retPhotourl;
    }
    else
    {
        returl=retThumbPhotoUrl;
    }
    
   
   return returl;
}

function RetWebPath()
{
    var PathUrl="";
    var sHref= location.href;
    
     if(sHref.toLowerCase().indexOf("http://chinatravel.dev.sh.ctriptravel.com")>-1)
     {
        PathUrl="http://chinatravel.dev.sh.ctriptravel.com/chinatravelnet/";
        
     }
     if(sHref.toLowerCase().indexOf("http://chinatravel.test.sh.ctriptravel.com")>-1)
     {
         PathUrl="http://chinatravel.test.sh.ctriptravel.com/chinatravelnet/";
     }
     if(sHref.toLowerCase().indexOf("http://www.chinatravel.net/")>-1)
     {
          PathUrl="http://www.chinatravel.net/chinatravelnet/";
     }
     return PathUrl;
}

