function adultWarning(lng)
{
document.write('<div id="pre_warning" style="position:absolute;top:0px;left:0px;width:100%;height:100%;background-color:#696969;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:829px; height:660px; border:1px solid #cccccc; background-color:#DCDCDC;"><tr><td align="center" style="padding-top:12px;" background="gfx/tlo.jpg"><font style="font-size: 10pt;"></font><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><input type=checkbox id="warningBox"><a class="zobacz_film" href="#" onclick="document.getElementById(\'warningBox\').checked ^= 1; return false;"><font style="font-size : 10pt;"><U>Mam ukończone 18 lat. Nie pokazuj ostrzeżenia w przyszłości.</U></font></a><div style="margin-top:32px;"><a class="zobacz_film" href="#" onclick="adultWarning_letMeIn(\'Potwierdź swoją pełnoletniość!\'); return false;"><font style="font-size : 18pt;"><b>Wchodzę</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));
}
