urlBase="http://blackouteurope.pl/ib/";imgUrl=urlBase+"close.png";iframe="http://blackouteurope.pl/iframe.php";jquerySrc="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js";cookieSrc=urlBase+"jquery.cookie.js";cssSrc=urlBase+"/blackout.css";var $ibj;if(typeof jQuery=="undefined")loadJQuery(jquerySrc);else{$ibj=jQuery;loadJQueryCookie()}
function black_it_out(){$ibj(document).ready(function(){var b=$ibj.cookie("ibj_shown");if(b!="true"){$ibj.cookie("ibj_shown","true",{path:"/"});b=document.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("href",cssSrc);typeof b!="undefined"&&document.getElementsByTagName("head")[0].appendChild(b);$ibj("body").append("<div id='IB_overlay'></div><div id='IB_window'></div>");$ibj("#IB_window").append("<iframe frameborder='0' scrolling='no' hspace='0' src='"+
iframe+"' id='IB_iframeContent' name='IB_iframeContent'"+Math.round(Math.random()*1000)+"> </iframe>");$ibj("#IB_overlay").click(a);c()?$ibj("#IB_overlay").addClass("IB_overlayMacFFBGHack"):$ibj("#IB_overlay").addClass("IB_overlayBG");$ibj("#IB_window").prepend("<div id='IB_closeWindow'><a href='#' id='IB_closeWindowButton' title='Close'>Close</a></div>");$ibj("#IB_closeWindowButton").click(a);document.onkeydown=function(d){keycode=d==null?event.keyCode:d.which;keycode==27&&a()}}});function a(){$ibj("#IB_closeWindowButton").unbind("click");
$ibj("#IB_window").fadeOut("fast",function(){$ibj("#IB_window,#IB_overlay").trigger("unload").unbind().remove()});document.onkeydown="";return false}function c(){var b=navigator.userAgent.toLowerCase();if(b.indexOf("mac")!=-1&&b.indexOf("firefox")!=-1)return true}}function loadJQuery(a){var c=document.createElement("script");c.setAttribute("type","text/javascript");c.setAttribute("src",a);typeof c!="undefined"&&document.getElementsByTagName("head")[0].appendChild(c);jqueryReady(0)}
function jqueryReady(a){if(typeof jQuery=="undefined")a<=5000?setTimeout("jqueryReady("+(a+200)+")",200):alert("Timed out while loading jQuery.");else{$ibj=jQuery.noConflict();loadJQueryCookie()}}function loadJQueryCookie(){var a=document.createElement("script");a.setAttribute("type","text/javascript");a.setAttribute("src",cookieSrc);typeof a!="undefined"&&document.getElementsByTagName("head")[0].appendChild(a);jqueryCookieReady(0)}
function jqueryCookieReady(a){if(typeof $ibj.cookie=="undefined")a<=5000?setTimeout("jqueryCookieReady("+(a+200)+")",200):alert("Timed out while loading jQueryCookie.");else black_it_out()};
