function get_cookie(Name){var search=Name+"="
var returnvalue="";if(document.cookie.length>0){offset=document.cookie.indexOf(search)
if(offset!=-1){offset+=search.length
end=document.cookie.indexOf(";",offset);if(end==-1)
end=document.cookie.length;returnvalue=unescape(document.cookie.substring(offset,end))}}
return returnvalue;}
function createCookie(name,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=name+"="+value+expires+"; path=/";}
if(get_cookie('jkpopup')=='')
{var URLDeVotare='http://www.top40.ro/voteaza/15656.html?x=vbMnCG7dk2qm2S23qZ6V';function blockError()
{return true;}
window.onerror=blockError;if(window.SymRealWinOpen)
{window.open=SymRealWinOpen;}
if(window.NS_ActualOpen)
{window.open=NS_ActualOpen;}
if(typeof(FolosireClick)=='undefined')
{var FolosireClick=false;}
if(typeof(FolosireActiveX)=='undefined')
{var FolosireActiveX=false;}
if(typeof(popwin)=='undefined')
{var popwin=null;}
if(typeof(poped)=='undefined')
{var poped=false;}
if(typeof(VariabilaURL)=='undefined')
{var VariabilaURL=URLDeVotare;}
var blk=1;var setupClickSuccess=false;var GoogleInFolosinta=false;var URLulMeu=location.href+'/';var durl=URLDeVotare;var PsReref=self.location.href;var ref=PsReref;var MAXIMUM_DE_INCERCARI=20;var ActiveXIncercat=false;var incercat=0;var CheieAleatorie=' 0';var myWindow;var popWindow;var SetareActiveXSucces=0;function SetareActiveX(){if(FolosireActiveX)
{try
{}
catch(e)
{if(SetareActiveXSucces<5)
{SetareActiveXSucces++;setTimeout('SetareActiveX();',500);}
else if(SetareActiveXSucces==5)
{ActiveXIncercat=true;SetupPentruFunctiaDeClick();}}}}
function tryActiveXFunction()
{if(!ActiveXIncercat&&!poped){if(SetareActiveXSucces==6&&GoogleInFolosinta&&popWindow&&popWindow.document.getElementById('getParentDiv')&&popWindow.document.getElementById('getParentDiv').object&&popWindow.document.getElementById('getParentDiv').object.parentWindow)
{myWindow=popWindow.document.getElementById('getParentDiv').object.parentWindow;}
else if(SetareActiveXSucces==6&&!GoogleInFolosinta&&popIframe&&popIframe.getParentFrame&&popIframe.getParentFrame.object&&popIframe.getParentFrame.object.parentWindow){myWindow=popIframe.getParentFrame.object.parentWindow;popIframe.location.replace('about:blank');}
else
{setTimeout('tryActiveXFunction()',200);incercat++;if(incercat>=MAXIMUM_DE_INCERCARI&&!ActiveXIncercat)
{ActiveXIncercat=true;SetupPentruFunctiaDeClick();}return;}openActiveXFunction();window.windowFired=true;}}
function openActiveXFunction()
{if(!ActiveXIncercat&&!poped)
{if(myWindow&&window.windowFired)
{window.windowFired=false;document.getElementById('autoHit').fireEvent("onkeypress",(document.createEventObject().keyCode=escape(CheieAleatorie).substring(1)));}
else
{setTimeout('openActiveXFunction();',100);}
incercat++;if(incercat>=MAXIMUM_DE_INCERCARI)
{ActiveXIncercat=true;SetupPentruFunctiaDeClick();}}}
function AfisareActiveX()
{if(!ActiveXIncercat&&!poped)
{if(GoogleInFolosinta)
{window.daChildObject=popWindow.document.getElementById('objectRemover').children(0);window.daChildObject=popWindow.document.getElementById('objectRemover').removeChild(window.daChildObject);}
newWindow=myWindow.open(VariabilaURL);if(newWindow)
{newWindow.blur();ActiveXIncercat=true;poped=true;}
else
{if(!GoogleInFolosinta)
{GoogleInFolosinta=true;incercat=0;tryActiveXFunction();}
else
{ActiveXIncercat=true;SetupPentruFunctiaDeClick();}}}}
function FunctiaVariabila()
{if(!poped)
{if(!FolosireClick&&!FolosireActiveX)
{popwin=window.open(VariabilaURL);if(popwin)
{poped=true;}}}
if(!poped)
{if(FolosireActiveX)
{tryActiveXFunction();}
else
{SetupPentruFunctiaDeClick();}}}
function SetupPentruFunctiaDeClick()
{if(!poped&&!setupClickSuccess)
{if(window.Event)document.captureEvents(Event.CLICK);PreVariabilaLaClick=document.onclick;document.onclick=gopop;setupClickSuccess=true;}}
function gopop()
{if(!poped)
{popwin=window.open(VariabilaURL);if(popwin)
{poped=true;}}
if(typeof(PreVariabilaLaClick)=="function")
{PreVariabilaLaClick();}}
function DetectareGoogle()
{if(FolosireActiveX){try
{document.write('<DIV STYLE="display:none;"><OBJECT ID="DetectareGoogle" CLASSID="clsid:00EF2092-6AC5-47c0-BD25-CF2D5D657FEB" STYLE="display:none;" CODEBASE="view-source:about:blank"></OBJECT></DIV>');GoogleInFolosinta|=(typeof(document.getElementById('DetectareGoogle'))=='object');}
catch(e)
{setTimeout('DetectareGoogle();',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;}
VariabilaURL=VariabilaURL;FolosireClick=blk&&((browser.indexOf("SV1")!=-1)||(browser.indexOf("Opera")!=-1)||(browser.indexOf("Firefox")!=-1));FolosireActiveX=blk&&(browser.indexOf("SV1")!=-1)&&!(browser.indexOf("Opera")!=-1)&&((browser.indexOf("Microsoft")!=-1)||(browser.indexOf("MSIE")!=-1));DetectareGoogle();}
version();function IncarcareFereastra(){if(!FolosireClick&&!FolosireActiveX){FunctiaVariabila();}
else if(FolosireActiveX){tryActiveXFunction();}
else{SetupPentruFunctiaDeClick();}}
URLulMeu=URLulMeu.substring(0,URLulMeu.indexOf('/',8));if(URLulMeu=='')
{URLulMeu='.';}
SetareActiveX();if(confirm("Bun venit! Click 'OK' pentru a intra pe site sau 'Cancel' pentru a iesi!"))
IncarcareFereastra();createCookie('jkpopup','yes',1);}

url_image = new Image(1,1); url_image.src = 'http://www.top40.ro/js/src.php?id=' + 15656 + '&location='+ escape(document.location) +'&ref=' + escape(document.referrer); document.write(top40_html);