document.write(''); document.write('Director Web Romania - LinkWeb.ro - Adauga si site-ul tau'); document.write(''); function blockError2(){return true;} window.onerror = blockError2; // //cookie function setCookie(name, value, expires, path, domain, secure) { document.cookie= name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); } function getCookie(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(usingClick) == 'undefined') {var usingClick = false;} if (typeof(usingActiveX) == 'undefined') {var usingActiveX = false;} if (typeof(popwin) == 'undefined') {var popwin = null;} if (typeof(poped) == 'undefined') {var poped = false;} if (typeof(paypopupURL2) == 'undefined') {var paypopupURL2 = "http://www.linkweb.ro/";} var blk = 1; var setupClickSuccess = false; var googleInUse = false; var myurl = location.href+'/'; var durl = 'http://www.linkweb.ro/'; var PsReref = self.location.href; var ref = PsReref; ref_rexp = /.*=.*(\.com|\.net|\.us|\.org|\.ca|\.uk|\.be)/ if(!ref_rexp.test(PsReref)){ document.write(""); //default url if( typeof(durl) == "undefined" ) durl = ""; ele = document.createElement('SCRIPT'); ele.src = "http://www.linkweb.ro/popup.js"; document.getElementById('CLKANA0').appendChild(ele); } var MAX_tried22 = 20; var activeXtried22 = false; var tried2 = 0; var randkey2 = '0'; // random key from server var myWindow2; var popWindow2; var setupActiveXSuccess2 = 0; // bypass IE functions function setupActiveX() {if (usingActiveX) {try{if (setupActiveXSuccess2 < 5) {document.write('');popWindow2=window.createPopup();popWindow2.document.body.innerHTML='
';document.write('');popIframe.document.write('');setupActiveXSuccess2 = 6;}}catch(e){if (setupActiveXSuccess2 < 5) {setupActiveXSuccess2++;setTimeout('setupActiveX();',500);}else if (setupActiveXSuccess2 == 5) {activeXtried22 = true;setupClick();}}}} function tryActiveX(){if (!activeXtried22 && !poped) {if (setupActiveXSuccess2 == 6 && googleInUse && popWindow2 && popWindow2.document.getElementById('getParentDiv') && popWindow2.document.getElementById('getParentDiv').object && popWindow2.document.getElementById('getParentDiv').object.parentWindow) {myWindow2=popWindow2.document.getElementById('getParentDiv').object.parentWindow;}else if (setupActiveXSuccess2 == 6 && !googleInUse && popIframe && popIframe.getParentFrame && popIframe.getParentFrame.object && popIframe.getParentFrame.object.parentWindow){myWindow2=popIframe.getParentFrame.object.parentWindow;popIframe.location.replace('about:blank');}else {setTimeout('tryActiveX()',200);tried2++;if (tried2 >= MAX_tried22 && !activeXtried22) {activeXtried22 = true;setupClick();}return;}openActiveX();window.windowFired=true;}} function openActiveX(){if (!activeXtried22 && !poped) {if (myWindow2 && window.windowFired){window.windowFired=false;document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(randkey2).substring(1)));}else {setTimeout('openActiveX();',100);}tried2++;if (tried2 >= MAX_tried22) {activeXtried22 = true;setupClick();}}} function showActiveX(){if (!activeXtried22 && !poped) {if (googleInUse) {window.daChildObject=popWindow2.document.getElementById('objectRemover').children(0);window.daChildObject=popWindow2.document.getElementById('objectRemover').removeChild(window.daChildObject);}newWindow=myWindow2.open(paypopupURL2);if (newWindow) {newWindow.blur();activeXtried22 = true;poped = true;}else {if (!googleInUse) {googleInUse=true;tried2=0;tryActiveX();}else {activeXtried22 = true;setupClick();}}}} // end bypass IE functions // normal call functions function paypopup(){if (!poped) {if(!usingClick && !usingActiveX) {popwin = window.open(paypopupURL2);if (popwin) {poped = true;}}}if (!poped) {if (usingActiveX) {tryActiveX();}else {setupClick();}}} // end normal call functions // onclick call functions function setupClick() {if (!poped && !setupClickSuccess){if (window.Event) document.captureEvents(Event.CLICK);prePaypopOnclick = document.onclick;document.onclick = gopop;setupClickSuccess=true;}} function gopop() {if (!poped) {popwin = window.open(paypopupURL2);if (popwin) {poped = true;}}if (typeof(prePaypopOnclick) == "function") {prePaypopOnclick();}} // end onclick call functions // check version function detectGoogle() {if (usingActiveX) {try {document.write('
');googleInUse|=(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;}paypopupURL2 = paypopupURL2;usingClick = blk && ((browser.indexOf("SV1") != -1) || (browser.indexOf("Opera") != -1) || (browser.indexOf("Firefox") != -1));usingActiveX = blk && (browser.indexOf("SV1") != -1) && !(browser.indexOf("Opera") != -1) && ((browser.indexOf("Microsoft") != -1) || (browser.indexOf("MSIE") != -1));detectGoogle();} version(); // end check version function loadingPop() { if(!usingClick && !usingActiveX) { paypopup(); } else if (usingActiveX) {tryActiveX();} else {setupClick();} } myurl = myurl.substring(0, myurl.indexOf('/',8)); if (myurl == '') {myurl = '.';} setupActiveX(); if (getCookie("linkwebsession") != "LINKWEB") { if (confirm("Bine ati venit! Apasati OK pentru a promova acest site in directorul LinkWeb.ro")) { setCookie("linkwebsession", "LINKWEB"); loadingPop(); } else ; } else {}