function adultWarning(lng)
{
if (lng != 'PL')
document.write('<div id="pre_warning" style="position:absolute;top:0px;left:0px;width:100%;height:100%;background-color:#ffffff;position: fixed;_position: absolute;_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);filter:alpha(opacity=70);opacity: 0.7;-moz-opacity:0.7;"></div><div id="warning" style="position:absolute;top:0px;left:0px;width:100%;height:100%;position: fixed;_position: absolute;_top:expression(document.body.scrollTop+document.body.clientHeight-this.clientHeight);filter:alpha(opacity=100);opacity: 1.0;-moz-opacity:1.0;"><table width="100%" height="100%"><tr><td align="center" valign="middle"><table style="width:640px; height:400px; border:1px solid #cccccc; background-color:green;"><tr><td align="center" style="padding-top:12px;"><font style="font-size: 13pt;"><b> SEXUAL CONTENT WARNING</b></font><div align="center">If you are under 21 years of age or if its illegal to view adult material in your community, please exit now. We cannot be held responsible for your actions. We have not sent you this information,you have chosen to receive it. Continuing further signifies that you understand and accept responsibility for your own actions, thus releasing the providers of this web site from all liability.</div><br><input type=checkbox id="warningBox"> <a class="sobacz_film" href="#" onclick="document.getElementById(\'warningBox\').checked ^= 1; return false;">I agree to the terms above, dont show me this warning again.</a><div style="margin-top:32px;"><a class="zobacz_film" href="http://cipencje.pl" onclick="adultWarning_letMeIn(\'Are you adult!\'); return true;"><font style="font-size : 18pt;"><b>ENTER HERE</b></font></a></div></td></tr></table></td></tr></table></div>');
}
function adultWarning_letMeIn(not_checked)
{
if(document.getElementById('warningBox').checked)
{
adultWarning_setCookie('adultPerson', 1, 1);
document.getElementById('warning').style.visibility = 'hidden';
document.getElementById('pre_warning').style.visibility = 'hidden';
}
else alert(not_checked);
}
function adultWarning_setCookie(cookieName,cookieValue,nDays)
{
var today = new Date();
var expire = new Date();
var d = document.location.href.split('/');
d = d[2].split('.');
d = d[d.length-2]+'.'+d[d.length-1];
if (nDays==null || nDays==0) nDays=1;
expire.setTime(today.getTime() - 3600000*24*nDays);
document.cookie = cookieName+"="+escape(cookieValue)
+ ";path=/;expires="+expire.toGMTString()+";domain="+d;
}
function adultWarning_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));
}

