function ShowHide(id) {
obj = document.getElementById(id);
obj.style.display = (obj.style.display == "block" ? "none" : "block");
}
function get_ax(link,layer) {
advAJAX.setDefaultParameters({
onInitialization : function(obj) { document.getElementById(obj.tag).innerHTML = "Przygotowywanie..."; },
onLoading : function(obj) { document.getElementById(obj.tag).innerHTML = 'Trwa ładowanie'; },
onSuccess : function(obj) { document.getElementById(obj.tag).innerHTML = obj.responseText; },
onError : function(obj) { document.getElementById(obj.tag).innerHTML = "Błąd..."; }
});
advAJAX.get({ url: link, tag: layer });
advAJAX.setDefaultParameters({});
}
function zmienBg(id,lep) {
var menu=new Array();
menu[1]=' ';
menu[32]=' ';
menu[33]=' ';
menu[34]=' ';
menu[35]=' Regulamin
Kapituła
Laureaci&n';
menu[36]=' Inni o nas
Materiały prasowe do pobrania
Partnerzy medialni&n';
menu[37]=' ';
document.getElementById("top_"+id).style.background = 'url(templates/polwood/img/mid'+lep+'.png)';
document.getElementById("left_"+id).style.background = 'url(templates/polwood/img/left'+lep+'.png)';
document.getElementById("right_"+id).style.background = 'url(templates/polwood/img/right'+lep+'.png)';
document.getElementById("txtMenu").innerHTML=menu[id];
}
function boxOpen(t,type) {
if(type=='img') {
img = new Image()
img.src = t.href;
}
d=document;
if (typeof window.innerWidth!='undefined') {
var winWidth = window.innerWidth;
var winHeight = window.innerHeight;
} else {
if (d.documentElement && typeof d.documentElement.clientWidth!='undefined' && d.documentElement.clientWidth!=0) {
var winWidth = d.documentElement.clientWidth
var winHeight = d.documentElement.clientHeight
} else {
if (d.body && typeof d.body.clientWidth!='undefined') {
var winWidth = d.body.clientWidth
var winHeight = d.body.clientHeight
}
}
}
document.getElementById("lBoxMax").style.width='100%';
document.getElementById("lBoxMax").style.height=(winHeight+10)+'px';
document.getElementById("lBoxMax").style.display='block';
document.getElementById("lBoxMax").style.position='fixed';
var lDiv = document.createElement('div');
lDiv.setAttribute('style', 'position: absolute;padding:10px;background: #ffffff;z-index: 3;filter: alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0;background: #ffffff');
lDiv.setAttribute('id', 'lDiv');
var kontener = document.getElementById("lBoxMaxA");
kontener.appendChild(lDiv);
if(type=='img') {
if(t.width) {
img.width=t.width;
}
document.getElementById("lDiv").innerHTML='