function createCookie(h,i,j){if(j){var g=new Date();g.setTime(g.getTime()+(j*24*60*60*1000));var f="; expires="+g.toGMTString()}else{var f=""}document.cookie=h+"="+i+f+"; path=/"}function readCookie(h){var j=h+"=";var g=document.cookie.split(";");for(var i=0;i<g.length;i++){var c=g[i];while(c.charAt(0)==" "){c=c.substring(1,c.length)}if(c.indexOf(j)==0){return c.substring(j.length,c.length)}}return null}function rate(o,r,n,u,q,s,t,e,x,v){try{var p=o+"_"+r+"_"+n+"_"+u+"_"+q+"_"+s+"_"+t;if(readCookie("rate")!=p){document.getElementById("rating_img").src="http://tracking.eurosport.com/tracking.asmx/Rate?itemTypeId="+o+"&langId="+r+"&famId="+n+"&sportId="+u+"&rubId="+q+"&parCode="+s+"&itemId="+t+"&rating="+e;createCookie("rate",p,1)}else{alert(v)}if(x!=null){x.style.display=""}}catch(w){}};
