function _xlcurrenturl(){r="";try{r=top.document.location;}catch(e){try{r=parent.document.location;}catch(e){try{r=document.location;}catch(e){r="";}}}r=String(r);p=r.indexOf("?");if(-1==p){p=r.indexOf("&");}if(-1==p){return r;}else{return r.substring(0,p);}}
function _xlPlaydataPV(copid){try{vhref = "http://analytics-union.xunlei.com/PV?peerid=0&uri=http://playdataspv.union.xunlei.com&src="+_xlcurrenturl()+"&screensize="+copid;image1=new Image(1,1);image1.src=vhref;}catch(e){}}
function xlkkplayer(model, strcopid, width, height){
    if(model == "full"){
       model = "u";
    }else if(model == "simple"){
       model = "u1"
    }else{
       return "";
    }
    var copid = 0;
    if(typeof(strcopid) == "string"){
    	copid = parseInt(strcopid.replace(/^[0]*/, ""));
    }else if(typeof(strcopid) == "number"){
        copid = strcopid;
    } 
    _xlPlaydataPV(copid + 20000);
    var str = "<iframe id=\"xunleikankan\" src=\"http://play.kankan.xunlei.com/"+model+"/u.html?cpid="+copid+"\""+
        	  " width=\""+width+"\" height=\""+height+"\" scrolling=\"no\" frameborder=\"0\"></iframe>";
    	document.write(str);
}
