function opecContact() {
		var win3 = window.open("subscribe.php","newsletter",
		"toolbar=no,menubar=no,scrollbars=no,resizable=no,height=320,width=310,left=400,top=200");
		win3.creator=self
}

var w;
var h;
var jpg;

function openPhoto(w,h,jpg) {
window.open("photo.php?photo="+jpg,"newsletter",
"toolbar=no,menubar=no,scrollbars=no,resizable=no,height="+h+" ,width="+w+" ,left=300,top=200");
}

function openPhotoWin(url,name,width,height,scrollbars) {
	var w
	var h
		w = width + 15
		h= height + 23
	window.open(url,name,'align=center,toolbar=no,status=no,location=no,directories=no,resizable=no,scrollbars='+scrollbars+', width='+w+', height='+h+', menubar=no,left=100,top=50')
}




//////////////////////////////

var popbackground="img/bg01.gif" 
var windowtitle="TABUN"  

function detectexist(obj){
return (typeof obj !="undefined")
}

function jkpopimage(imgpath, popwidth, popheight, textdescription){

function getpos(){
leftpos=(detectexist(window.screenLeft))? screenLeft+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenTop))? screenTop+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){
leftpos-=screenLeft
toppos-=screenTop
}
}
popwidth = popwidth + 50
popheight = popheight + 110
getpos()

var winattributes='width='+popwidth+',height='+popheight+',resizable=no,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'


var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&');

for (var i=0; i<parms.length; i++) {
   var pos = parms[i].indexOf('=');
   if (pos > 0) {
      var key = parms[i].substring(0,pos);
      var val = parms[i].substring(pos+1);
      qsParm[key] = val;
			
      }
   }
}
qsParm['d'] = null;
qsParm['s'] = null;
qsParm['t'] = null;
qs();

var podpis = qsParm['t'];





if (typeof jkpopwin=="undefined" || jkpopwin.closed)
jkpopwin=window.open("","",winattributes)
else{
jkpopwin.resizeTo(popwidth, popheight+20)
}
jkpopwin.document.open()
jkpopwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><center><a href="javascript: window.close()"><img src="'+imgpath+'"  style="border: 1px solid #676767;" alt="Kliknij aby zamkn±æ okno"></a><br>'+textdescription+'</center></body></html>')
jkpopwin.document.close()
jkpopwin.focus()

}