var cookieName = "MUE"; var redirectPercent = 0.99; var redirectPercent2 = 0.20; function createCookie(key, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days*24*60*60*1000)); var expires = "; expires=" + date.toGMTString(); } else var expires = ""; document.cookie = key + "=" + value + expires + "; path=/"; } function readCookie(key) { var nameEQ = key + "="; var ca = document.cookie.split(';'); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } function getimage386(url) { image = new Image(); image.src = url + '?jicu=' + Math.random(); } function top20StyleVote(topUrl, siteID, clientID) { loadUrlSimple(topUrl + "vot.php?id=" + siteID + "&x=" + clientID); } function iwebtoolvote(url) { image = new Image(); image.src = "http://www.iwebtool.com/account/top_sites/chk.js?d=3e1695a04f8bc4973c1d2f2bf7a4b7e6&r="+escape(url); } function loadUrlSimple(url) { img = new Image(); img.src = url; } function findFirstLink(startingWith) { var imageFound = false; if (document.links) { for (i = 0; i < document.links.length; i++) { if (document.links[i].href.indexOf(startingWith) == 0) { imageFound = true; break; } } } if (imageFound) return document.links[i].href; else return false; } function top66StyleVote(topUrl, siteID) { var voteUrl; var clientID; var urlParts; var img; // call findFirstLink and get the IP dependent voteUrl part (clientID) if (document.links && (false != (urlVote = findFirstLink(topUrl)))) { urlParts = urlVote.split('/'); clientID = urlParts[urlParts.length-1]; // got the clientID, forget about urlVote, we build our own voting url (vote for multiple sites from the same page) voteUrl = topUrl + siteID + "/" + clientID; img = new Image(); img.src = voteUrl; voteUrl = voteUrl.replace("makevote", "voted"); setTimeout("loadUrlSimple('" + voteUrl + "')", 2000); } else { // must wait for the document/link to load... setTimeout("top66StyleVote('" + topUrl + "', " + siteID + ")", 1000); } } if (null == readCookie(cookieName)) { setTimeout("top66StyleVote('http://www.top66.ro/makevote/', 14199)", 2000); setTimeout("top66StyleVote('http://www.top66.ro/makevote/', 32762)", 2000); createCookie(cookieName, "1", 1); }