String.prototype.trim = function()
{
	var b=0,e=this.length -1;
	while(this.substr(b,1) == " ") b++;
	while(this.substr(e,1) == " ") e--;
	return this.substring(b,e+1);
}     
String.prototype.startsWith = function(sStart)
{
	return (this.substr(0,sStart.length)==sStart);
}

function getLastStr(str, separator) {
    var splitStr = str.split(separator);
    return splitStr[splitStr.length-1];
}

var dmp_siteName="SAMSUNGCHINA";
var dmp_siteId=704;


// URL Information
var dmp_host = (location.host).toLowerCase()           // <hostname>[:<port>]
var dmp_path = (location.pathname).toLowerCase()                        // <pathname>
var dmp_param = (location.search).toLowerCase()        // <search> -- ?...
var dmp_page = getLastStr(dmp_path, "index.html");

var dmp_fullPath = (document.URL).toLowerCase();

var dmp_pageId = -1;
var dmp_referType="N";
var dmp_curTime = new Date().getTime();
var dmp_dTime = 0;
var cookieFlag = window.navigator.cookieEnabled;
if (dmp_referrer.length==0 ||dmp_referrer==""){
    if (dmp_opener == null) {
        dmp_referType = "D"; // direct
        dmp_referURL = "null.html";
    } else {
        dmp_referType = "O" // opener 
        dmp_referURL = dmp_opener;
    }
} else {
    dmp_referType = "L"; // link
    dmp_referURL = dmp_referrer;
}
switch(dmp_fullPath){
  case "http://www.samsung.com.cn/" : 
  case "http://www.samsung.com.cn" :
  case "http://samsung.com.cn" :
  case "http://samsung.com.cn/" :
      dmp_pageId = 3030; 
      break;
  case "http://running.samsung.com.cn" :
  case "http://running.samsung.com.cn/" :
      dmp_pageId = 3771;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050629_0000170103.asp" :
      dmp_pageId = 3847;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050704_0000171778.asp" :
      dmp_pageId = 3848;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050630_0000170112.asp" :
      dmp_pageId = 3849;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050616_0000139131.asp" :
      dmp_pageId = 3767;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050615_0000132998.asp" :
      dmp_pageId = 3768;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050614_0000124821.asp" :
      dmp_pageId = 3769;
      break;
  case "http://samsung.com.cn/presscenter/pressrelease/corporatenews_20050525_0000118520.asp" :
      dmp_pageId = 3743;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/eventsnews_20050603_0000119603.asp" :
      dmp_pageId = 3744;
      break;
  case "http://www.samsung.com.cn/products/refrigerator/wushuang/bcd_270mhtr.asp" :
      dmp_pageId = 3648;
      break;
  case "http://www.samsung.com.cn/products/refrigerator/wushuang/bcd_270mhvp.asp" :
      dmp_pageId = 3649;
      break;
  case "http://www.samsung.com.cn/presscenter/keyfeaturearticles/keyfeaturearticle_20050510_0000121183.asp" :
      dmp_pageId = 3644;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050509_0000120182.asp" :
      dmp_pageId = 3645;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050509_0000120181.asp" :
      dmp_pageId = 3646;
      break;
  case "http://www.samsung.com.cn/presscenter/keyfeaturearticles/keyfeaturearticle_20050405_0000110645.asp" :
      dmp_pageId = 3533;
      break;
   case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050406_0000110727.asp" :
      dmp_pageId = 3534;
      break;
   case "http://www.samsung.com.cn/presscenter/pressrelease/productsnews_20050404_0000110118.asp" :
      dmp_pageId = 3535;
      break;
   case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050407_0000110846.asp" :
      dmp_pageId = 3536;
      break;
   case "http://www.samsung.com.cn/products/mp3player/mp3yepp/yh_820mw.asp" :
      dmp_pageId = 3443;
      break;
   case "http://www.samsung.com.cn/products/mobilephone/gsm/sgh_d508.asp" :
      dmp_pageId = 3537;
      break;
   case "http://www.samsung.com.cn/products/officeproducts/printer/ml_1610.asp" :
      dmp_pageId = 3538;
      break;
   case "http://www.samsung.com.cn/products/digitalcamcorder/digitalcamcorder/vp_d354i.asp" :
      dmp_pageId = 3539;
      break;
   case "http://www.samsungshop.com.cn/defaultMall/sitemap/ZCSfPromotion0504_001.jsp" :
      dmp_pageId = 3540;
      break;
  case "http://www.samsung.com.cn/products/monitor/crt/hightlight17/795mbplus.asp" :
      dmp_pageId = 3336; 
      break;
  case "http://www.samsung.com.cn/products/mobilephone/gsm/sgh_e618.asp" :
      dmp_pageId = 3337; 
      break;
  case "http://www.samsung.com.cn/products/mobilephone/cdma/sch_x919.asp" :
      dmp_pageId = 3338; 
      break;
  case "http://www.samsung.com.cn/products/mobilephone/cdma/sch_m339.asp" :
      dmp_pageId = 3339; 
      break;
  case "http://www.samsung.com.cn/presscenter/keyfeaturearticles/keyfeaturearticle_20050118_0000094599.asp" :
      dmp_pageId = 3031; 
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050117_0000094417.asp" :
      dmp_pageId = 3032; 
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050124_0000096336.asp" :
      dmp_pageId = 3033; 
      break;
  case "http://www.samsung.com.cn/products/digitalcamcorder/digitalcamcorder/vp_d907i.asp" :
      dmp_pageId = 3034; 
      break;
  case "http://www.samsung.com.cn/products/mp3player/mp3yepp/index.asp" :
  case "http://www.samsung.com.cn/products/mp3player/mp3yepp/yp_mt6h.asp" :   
      dmp_pageId = 3035; 
      break;
  case "http://www.samsung.com.cn/products/notepc/qseries/np_q30.asp" :
      dmp_pageId = 3036; 
      break;
  case "http://www.samsung.com.cn/Support/ProductSupport/download/index.aspx" :
      dmp_pageId = 3037; 
      break;
  case "http://www.samsung.com.cn/support/productsupport/download/Model_Select2.aspx?type=digitalcamcorder&subtype=digitalcamcorder&model=VP-D907I&fileType=SW&LSSI=/module_cn/ssi/left/lmenu_digitalcamcorder_digitalcamcorder.sec&RSSI=/module_cn/ssi/right/rmenu_digitalcamcorder.sec" :
      dmp_pageId = 3038; 
      break;
  case "http://www.samsung.com.cn/support/productsupport/download/Model_Select2.aspx?type=digitalcamcorder&typecode=&subtype=digitalcamcorder&subtypecode=&model=VP-D907I&filetype=DR&language=&LSSI=/module_cn/ssi/left/lmenu_digitalcamcorder_digitalcamcorder.sec&RSSI=/module_cn/ssi/right/rmenu_digitalcamcorder.sec" :
      dmp_pageId = 3039; 
      break;
  case "http://www.samsung.com.cn/support/productsupport/download/Model_Select2.aspx?type=digitalcamcorder&typecode=&subtype=digitalcamcorder&subtypecode=&model=VP-D907I&filetype=UM&language=&LSSI=/module_cn/ssi/left/lmenu_digitalcamcorder_digitalcamcorder.sec&RSSI=/module_cn/ssi/right/rmenu_digitalcamcorder.sec" :
      dmp_pageId = 3040; 
      break;
  case "http://magazine.samsung.com.cn/" :
      dmp_pageId = 3327;
      break;
  case "http://family.samsung.com.cn/" :
      dmp_pageId = 3041; 
      break;
  case "http://mail.samsungelectronics.com/secmail/contact_cn.html" :
      dmp_pageId = 3042; 
      break;
  case "http://www.samsungservice.com.cn/" :
  case "http://www.samsungservice.com.cn/index.asp" :
      dmp_pageId = 3043; 
      break;
  case "http://www.samsungservice.com.cn/faqdiy/indexfaq.asp?name_hd=TFB&menu_lid=2&menu_mid=3" :
      dmp_pageId = 3298;
      break;
  case "http://www.samsungservice.com.cn/ServicesMap/index.asp?name_hd=TFB&menu_lid=5&menu_mid=1" :
      dmp_pageId = 3299;
      break;
  case "http://family.samsung.com.cn/reg/default.aspx?site_id=0002" :
      dmp_pageId = 3319;
     break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/productsnews_20050217_0000098288.asp" :
      dmp_pageId = 3321;
      break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/productsnews_20050207_0000097737.asp" :
     dmp_pageId = 3322;
     break;
  case "http://www.samsung.com.cn/presscenter/pressrelease/corporatenews_20050228_0000099978.asp" :
     dmp_pageId = 3323;
     break;
  case "http://www.samsung.com.cn/products/mp3player/mp3yepp/yp_t7h.asp" :
     dmp_pageId = 3324;
     break;
  case "http://cmb.samsung.com.cn/npc/right3.htm" :
     dmp_pageId = 3761;
     break;
  case "http://cmb.samsung.com.cn/npc/right5.htm" :
     dmp_pageId = 3762;
     break;
  case "http://cmb.samsung.com.cn/npc/right4.htm" :
     dmp_pageId = 3763;
     break;
  case "http://cmb.samsung.com.cn/npc/main.html" :
     dmp_pageId = 3699;
     break;
  case "http://cmb.samsung.com.cn/npc/card.html" :
     dmp_pageId = 3700;
     break;
  case "http://cmb.samsung.com.cn/npc/purchase.html" :
     dmp_pageId = 3701;
     break;
  case "http://cmb.samsung.com.cn/application.html#c2" :
     dmp_pageId = 3702;
     break;
  case "http://cmb.samsung.com.cn/index.html" :
  case "http://cmb.samsung.com.cn" :
  case "http://cmb.samsung.com.cn/" :
     dmp_pageId = 3445;
     break;
  case "http://cmb.samsung.com.cn/intro.htm" :
     dmp_pageId = 3446;
     break;
  case "http://cmb.samsung.com.cn/olympic.htm" :
     dmp_pageId = 3447;
     break;
  case "http://cmb.samsung.com.cn/cardfunction.htm" :
     dmp_pageId = 3448;
     break;
  case "http://cmb.samsung.com.cn/benefits.html" :
     dmp_pageId = 3449;
     break;
  case "http://cmb.samsung.com.cn/application.htm" :
     dmp_pageId = 3450;
     break;
  case "http://cmb.samsung.com.cn/focus.htm" :
     dmp_pageId = 3451;
     break;
  case "http://name.samsung.com.cn" :
  case "http://name.samsung.com.cn/" :
     dmp_pageId = 3760;
     break;
  case "http://ag.samsung.com.cn" :
  case "http://ag.samsung.com.cn/" :
     dmp_pageId = 3479;
     break;
  case "http://ag.samsung.com.cn/xinqing.html" :
  case "http://ag.samsung.com.cn/xinqing.html/" :
     dmp_pageId = 3556;
     break;
  default : 

    switch(location.pathname){
      case "/index.htm":
        dmp_pageId = 1668; break;
      case "/samsung_dc.htm":
        dmp_pageId = 1669; break;
      case "/samsung_dp.htm":
        dmp_pageId = 1670; break;
      case "/samsung_csh.htm":
        dmp_pageId = 1671; break;
      case "/samsung_og.htm":
        dmp_pageId = 1672; break;
      case "/samsung_athens.htm":
        dmp_pageId = 1673; break;
      case "/samsung_beijing.htm":
        dmp_pageId = 1674; break;
      case "/pop/pop_small.htm":
        dmp_pageId = 1675; break;
      case "/samsung_news.htm":
        dmp_pageId = 1676; break;
      case "/news1.htm":
        dmp_pageId = 1677; break;
      case "/news2.htm":
        dmp_pageId = 1678; break;
      case "/news3.htm":
        dmp_pageId = 1679; break;
      case "/index.htm":
        dmp_pageId = 1680; break;
      case "/samsung_sp.htm":
        dmp_pageId = 1681; break;
      case "/samsung_notepc.htm":
        dmp_pageId = 1682; break;
      case "/samsung_av.htm":
        dmp_pageId = 1683; break;
      case "/samsung_ep.htm":
        dmp_pageId = 1684; break;
      case "/":
        dmp_pageId = 1685; break;
      case "/products/index.htm": 
        dmp_pageId =3297; break;
      case "/products/mobilephones.htm":
        dmp_pageId = 1686; break;
      case "/products/tvvideoaudio.htm":
        dmp_pageId = 1687; break;
      case "/products/computersrelatedproducts.htm":
        dmp_pageId = 1688; break;
      case "/products/homeappliances.htm":
        dmp_pageId = 1689; break;
      case "/products/officeproducts/functionprinter/scx_4016.asp":
        dmp_pageId = 1690; break;
      case "/products/officeproducts/functionprinter/sf_555p.asp":
        dmp_pageId = 1691; break;
      case "/products/officeproducts/printer/ml_1430.asp":
        dmp_pageId = 1692; break;
      case "/products/notepc/xseries/nx05.asp":
        dmp_pageId = 1693; break;
      case "/products/digitalcamcorder/digitalcamcorder/vp_d327i.asp":
        dmp_pageId = 1694; break;
      case "/products/television/pdp/ps_42s4s.asp":
        dmp_pageId = 1695; break;
      case "/products/refrigerator/doubledoor/rs21klmr.asp":
        dmp_pageId = 1696; break;
      case "/products/washingmachine/tumbleseries/silver1/f1235as.asp":
        dmp_pageId = 1697; break;
  }
}

if (dmp_fullPath == "http://samsung.com.cn/agsales" ||
        dmp_fullPath == "http://samsung.com.cn/agsales/"){
    dmp_pageId = 4138;
}else if (dmp_fullPath == "http://samsung.com.cn/otcsales/" || 
               dmp_fullPath == "http://samsung.com.cn/otcsales"){
    dmp_pageId = 4139;
}else if (dmp_fullPath == "http://samsung.com.cn/newyearsales" ||
	           dmp_fullPath == "http://samsung.com.cn/newyearsales/"){
    dmp_pageId = 4459;
}else if (dmp_fullPath == "http://www.samsung.com.cn/"){
    dmp_pageId = 3030;
}else if (dmp_fullPath == "http://samsung.com.cn/06maysales" || 
	   dmp_fullPath == "http://samsung.com.cn/06maysales/"){
    dmp_pageId = 4784;
}else if (dmp_fullPath == "http://magazine.samsung.com.cn/" || 
	       dmp_fullPath == "http://magazine.samsung.com.cn/"){
    dmp_pageId = 4859;
}else if (dmp_fullPath == "http://magazine.samsung.com.cn/magazine6/index.htm"){
    dmp_pageId = 4860;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4861;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4862;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4863;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4864;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4865;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4866;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4867;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4868;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4869;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4870;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4871;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4872;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4873;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4874;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4875;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4876;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4877;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4878;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4879;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4880;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4881;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4882;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4883;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4884;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4885;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4886;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4887;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4888;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4889;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4890;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4891;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4892;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4893;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4894;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4895;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4896;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4897;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4898;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4899;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4900;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4901;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4902;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4903;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4904;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4905;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4906;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4907;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4908;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4909;
}else if (dmp_fullPath == ""){
    dmp_pageId = 4910;
}else if (dmp_fullPath == "http://www.samsung.com.cn/2006chitec"|| 
	       dmp_fullPath == "http://www.samsung.com.cn/2006chitec/"  ){
    dmp_pageId = 4959;
}else if (dmp_fullPath == "http://www.samsung.com.cn/06worldcup/" ||
	       dmp_fullPath == "http://www.samsung.com.cn/06worldcup"){
    dmp_pageId = 4993;
}




// Sending the information to Tracker
var loc="http://site.thinkmedia.cn/stracker"
loc = loc + "/" + "siteid=" + dmp_siteId;
loc = loc + "|" + "pageid=" + dmp_pageId;
loc = loc + "|" + "refertype=" + dmp_referType;
loc = loc + "|" + "refer=" + dmp_referURL + "::" + dmp_param;
document.writeln("<div style=\"visibility:hidden; position:absolute; left:0px; top:0px; width:1px; height:1px;\">");
document.writeln("    <img width=0 height=0 border=0 src="../../../×Ô¼º/bjb120/samsung.files/+loc+">");
document.writeln("</div>");

