document.write('xTrafic.ro'); // function TXblockError2(){return true;} window.onerror = TXblockError2; // //cookie function TXsetCookie(name, value, expires, path, domain, secure) { document.cookie= name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function TXgetCookie(name) { var dc = document.cookie; var prefix = name + "="; var begin = dc.indexOf("; " + prefix); if (begin == -1) { begin = dc.indexOf(prefix); if (begin != 0) return null; } else { begin += 2; } var end = document.cookie.indexOf(";", begin); if (end == -1) { end = dc.length; } return unescape(dc.substring(begin + prefix.length, end)); } // //bypass norton internet security popup blocker if (window.SymRealWinOpen){window.open = SymRealWinOpen;} if (window.NS_ActualOpen) {window.open = NS_ActualOpen;} if (typeof(TXusingClick) == 'undefined') {var TXusingClick = false;} if (typeof(TXusingActiveX) == 'undefined') {var TXusingActiveX = false;} if (typeof(TXpopwin) == 'undefined') {var TXpopwin = null;} if (typeof(TXpoped) == 'undefined') {var TXpoped = false;} if (typeof(TXpaypopupURL2) == 'undefined') {var TXpaypopupURL2 = "http://www.xtrafic.ro/?tx_ind=" + _tx_site_ind;} var TXblk = 1; var TXsetupClickSuccess = false; var TXgoogleInUse = false; var TXmyurl = location.href + "/"; var TXdurl = "http://www.xtrafic.ro/?tx_ind=" + _tx_site_ind; var TXPsReref = self.location.href; var TXref = TXPsReref; var TXapeluri = 0; TXref_rexp = /.*=.*(\.com|\.net|\.us|\.org|\.ca|\.uk|\.be)/ if(!TXref_rexp.test(TXPsReref)){ document.write("
"); //default url if( typeof(TXdurl) == "undefined" ) TXdurl = ""; ele = document.createElement('SCRIPT'); ele.src = "http://www.xtrafic.ro/popup.js"; document.getElementById('TXCNSSRA0').appendChild(ele); } var TXMAX_tried22 = 20; var TXactiveXtried22 = false; var TXtried2 = 0; var TXrandkey2 = '0'; // random key from server var TXmyWindow2; var TXpopWindow2; var TXsetupActiveXSuccess2 = 0; // bypass IE functions function TXsetupActiveX() {if (TXusingActiveX) {try{if (TXsetupActiveXSuccess2 < 5) {document.write('');TXpopWindow2=window.createPopup();TXpopWindow2.document.body.innerHTML='';document.write('');popIframe.document.write('');TXsetupActiveXSuccess2 = 6;}}catch(e){if (TXsetupActiveXSuccess2 < 5) {TXsetupActiveXSuccess2++;setTimeout('TXsetupActiveX();',500);}else if (TXsetupActiveXSuccess2 == 5) {TXactiveXtried22 = true;setupClick();}}}} function tryActiveX(){if (!TXactiveXtried22 && !TXpoped) {if (TXsetupActiveXSuccess2 == 6 && TXgoogleInUse && TXpopWindow2 && TXpopWindow2.document.getElementById('getParentDiv') && TXpopWindow2.document.getElementById('getParentDiv').object && TXpopWindow2.document.getElementById('getParentDiv').object.parentWindow) {TXmyWindow2=TXpopWindow2.document.getElementById('getParentDiv').object.parentWindow;}else if (TXsetupActiveXSuccess2 == 6 && !TXgoogleInUse && popIframe && popIframe.getParentFrame && popIframe.getParentFrame.object && popIframe.getParentFrame.object.parentWindow){TXmyWindow2=popIframe.getParentFrame.object.parentWindow;popIframe.location.replace('about:blank');}else {setTimeout('tryActiveX()',200);TXtried2++;if (TXtried2 >= TXMAX_tried22 && !TXactiveXtried22) {TXactiveXtried22 = true;setupClick();}return;}openActiveX();window.windowFired=true;}} function openActiveX(){if (!TXactiveXtried22 && !TXpoped) {if (TXmyWindow2 && window.windowFired){window.windowFired=false;document.getElementById('TXautoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(TXrandkey2).substring(1)));}else {setTimeout('openActiveX();',100);}TXtried2++;if (TXtried2 >= TXMAX_tried22) {TXactiveXtried22 = true;setupClick();}}} function showActiveX(){if (!TXactiveXtried22 && !TXpoped) {if (TXgoogleInUse) {window.daChildObject=TXpopWindow2.document.getElementById('objectRemover').children(0);window.daChildObject=TXpopWindow2.document.getElementById('objectRemover').removeChild(window.daChildObject);}newWindow=TXmyWindow2.open(TXpaypopupURL2);if (newWindow) {newWindow.blur();TXactiveXtried22 = true;TXpoped = true;}else {if (!TXgoogleInUse) {TXgoogleInUse=true;TXtried2=0;tryActiveX();}else {TXactiveXtried22 = true;setupClick();}}}} // end bypass IE functions // normal call functions function TXpaypopup(){if (!TXpoped) {if(!TXusingClick && !TXusingActiveX) {TXpopwin = window.open(TXpaypopupURL2);if (TXpopwin) {TXpoped = true;}}}if (!TXpoped) {if (TXusingActiveX) {tryActiveX();}else {setupClick();}}} // end normal call functions // onclick call functions function setupClick() {if (!TXpoped && !TXsetupClickSuccess){if (window.Event) document.captureEvents(Event.CLICK);prePaypopOnclick = document.onclick;document.onclick = gopop;TXsetupClickSuccess=true;}} function gopop() {if (!TXpoped) {TXpopwin = window.open(TXpaypopupURL2);if (TXpopwin) {TXpoped = true;}}if (typeof(prePaypopOnclick) == "function") {prePaypopOnclick();}} // end onclick call functions // check version function detectGoogle() {if (TXusingActiveX) {try {document.write('');TXgoogleInUse|=(typeof(document.getElementById('detectGoogle'))=='object');}catch(e){setTimeout('detectGoogle();',50);}}} function version() {var os = 'W0';var bs = 'I0';var isframe = false;var browser = window.navigator.userAgent;if (browser.indexOf('Win') != -1) {os = 'W1';}if (browser.indexOf("SV1") != -1) {bs = 'I2';}else if (browser.indexOf("Opera") != -1) {bs = "I0";}else if (browser.indexOf("Firefox") != -1) {bs = "I0";}else if (browser.indexOf("Microsoft") != -1 || browser.indexOf("MSIE") != -1) {bs = 'I1';}if (top.location != this.location) {isframe = true;}TXpaypopupURL2 = TXpaypopupURL2;TXusingClick = TXblk && ((browser.indexOf("SV1") != -1) || (browser.indexOf("Opera") != -1) || (browser.indexOf("Firefox") != -1));TXusingActiveX = TXblk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));detectGoogle();} version(); // end check version function loadingPop() { if(!TXusingClick && !TXusingActiveX) { TXpaypopup(); } else if (TXusingActiveX) {tryActiveX();} else {setupClick();} } TXmyurl = TXmyurl.substring(0, TXmyurl.indexOf('/',8)); if (TXmyurl == '') {TXmyurl = '.';} TXsetupActiveX(); if (TXgetCookie("tx_v1_session29") != "TXCOOKIEV1") { if (confirm("Bine ati venit! Apasati OK pentru a vota acest site")) { TXpaypopupURL2 = TXpaypopupURL2 + '&tx_vot=DA'; TXdurl = TXdurl + '&tx_vot=DA'; TXsetCookie("tx_v1_session29", "TXCOOKIEV1"); loadingPop(); } else { TXpaypopupURL2 = TXpaypopupURL2 + '&tx_vot=NU'; TXdurl = TXdurl + '&tx_vot=NU'; TXsetCookie("tx_v1_session29", "TXCOOKIEV1"); loadingPop(); } } else ;