		var Pic = new Array();
		Pic[1] = 'img/b/t6.jpg'
		Pic[2] = 'img/b/t3.jpg'
		Pic[3] = 'img/b/t1.jpg'
		Pic[4] = 'img/b/t2.jpg'
		var j = 1
		var p = Pic.length
		var preLoad = new Array()
		for (i = 1; i < p; i++){
   		preLoad[i] = new Image()
   		preLoad[i].src = Pic[i]
		}
function runBGSlideShow(){
   		if (document.body){
   		document.body.background = Pic[j];
		createCookie("style", j, 49);
   		j = j + 1
   		if (j > (p-1)) j=1
   			}
		}
function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = "; expires="+date.toGMTString();
  }
  else expires = "";
  document.cookie = name+"="+value+expires+"; path=/";
}
function readCookie(name) {
  var nameEQ = name + "=";
  var ca = document.cookie.split(';');
  for(var i=0;i < ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}
function runBGSlideShowOnce(){
	var style = readCookie("style");
	if(style){
		document.body.background = Pic[style];
	}else{
		runBGSlideShow();
	}
}
function uruchom(url, width, height) {
			var wartosc = Math.floor(Math.random() * 20) + 1;
			var left = (screen.width/2)-(width/2);
			var top = (screen.height/2)-((height+40)/2);
        		var Win = window.open(url, wartosc,'width=' + width + ',height=' + height + ', location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no, top='+top+', left='+left);
		}
function changePagex() {
		if (self.parent.frames.length != 0)
			self.parent.location=document.location;
		}			
function lockpage() {
			document.oncontextmenu = function() {return false;};
			document.onselectstart = function() {return false;};
			document.ondragstart = function() {return false;};
      			var im = new Image();
      			im.src = "img/b/t6.jpg";
      			var im2 = new Image();
      			im2.src = "img/b/t3.jpg";
      			var im3 = new Image();
      			im3.src = "img/b/t1.jpg";
      			var im4 = new Image();
      			im4.src = "img/b/t2.jpg";
			setTimeout("changePagex()", 1);
		}