


 function zw()
{
var war='warstwa1';
war1= document.getElementById(war);
war1.style.display = 'none';

var waznosc=new Date();
waznosc.setTime(waznosc.getTime()+1000*60*60*24*7);
document.cookie="warstwa_close;expires" + waznosc.toGMTString();
}


function ustaw_warstwe(){
alert ('ssss');
var war='warstwa1';
var ban= document.getElementById(war);


var a=document.cookie;
var tab=document.cookie.split(";");
var i=0;
var b=0;

while(tab[i]!=undefined && i<20)
{
if(tab[i]==" warstwa_close")
{
b=1;
}
i=i+1;
}


if(b==1)
{
ban.style.display = 'none';
}
else
{
ban.style.display = '';
}
}




function ustaw_banner(){
var ban= document.getElementById('banner');
ustaw_banner3();


var a=document.cookie;
var b=document.cookie.split(";")[2];

if(b==" banner_close")
{
ban.style.display = 'none';
}
else
{
ban.style.display = '';
}
}

function ustaw_banner3(){

var ban= document.getElementById('banner');
var ps=document.body.scrollTop;
var f=document.body.scrollHeight
var c=screen.availHeight;
var d=document.body.offsetHeight;



var test=ps+d-f;
var wys_ban=155;
var k=0;


if(test>0)
{
k=f-wys_ban+5;
var txt2="f:" + f + ", k:" + k + ", test:" + test;

}
else
{
k=ps+d-wys_ban;
}

ban.style.top =k;
var txt=" ps:" + ps + ", d:" + d + "f:" +f + "K:" + k;



}



function close_banner()
{
ban= document.getElementById('banner');
ban.style.display = 'none';

var waznosc=new Date();
waznosc.setTime(waznosc.getTime()+1000*60*60*24*7);
document.cookie="banner_close;expires" + waznosc.toGMTString();
}


function zamow_katalog()
{
close_banner()

parent.location.href='http://www.doram.pl/?k=strony_p&m=&ns=68&pns=68';

}



function popup(url){
var Win = window.open(url,"displayWindow5", 'width=100,height=100,top=100,left=100,resizable=0,scrollbars=yes,menubar=no');
}


function displayWindow(url){
var Win = window.open(url,"displayWindow", 'width=100,height=100,top=100,left=100,resizable=0,scrollbars=no,menubar=no');
}

function dokoszyka (plik){
var ilosc5 = prompt ("Podaj ilość produktów dodanych do koszyka","1");
if(ilosc5>0)
{
var plik2;
plik2=plik+'&ilosc='+ilosc5;
parent.location.href=plik2;
}

}


function produkt_popup(url, displayWindow ){
var Win = window.open(url, displayWindow ,'width=100,height=100,top=30,left=100,resizable=no,scrollbars=yes,menubar=no');
}


function amenu(div)
{
 div1= document.getElementById(div);
 div1.style.top= 100;
}

function amenu2(div)
{
 div1= document.getElementById(div);
 div1.style.top= -1000;
}



function pasek(txt)
{
   window.status = txt;
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


function otworz(plik) {

window.location=plik;

}



function displayWindow(url, width, height){
var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',top=30,left=100,resizable=no,scrollbars=yes,menubar=no');
}

function displayWindow1(url, width, height){
var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',top=20,left=250,resizable=no,scrollbars=no,menubar=no');
}

function displayWindow2(url, width, height){
var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',top=220,left=380,resizable=no,scrollbars=no,menubar=no');
}


function test(){
var re_mail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z])+$/;
if (!re_mail.test(emailform.email.value)) {
alert('Podałeś błędny adres email !!!');
}
else { emailform.submit(); }
}
function moveover(txt) {
   window.status = txt;
   setTimeout("erase()",1300);
}
function erase() {
   window.status="";
}


function test1()
{
var re_mail=logowanie_55.email_h.value;
if(logowanie_55.email_h.value=='')
{
alert('Podaj adres e-mail !!!');
}
else
{
logowanie_55.submit();
}



}
function otworz(plik)
{
parent.location.href=plik;
}



function pasek(txt)
{
   window.status = txt;
}

function pasek1(txt)
{
   window.status = txt;

   setTimeout("erase()",1500);
}



 function edit_kat( object0, object1, object2 )
 {

 obiekt0= document.getElementById(object0);
 obiekt1= document.getElementById(object1);
 obiekt2= document.getElementById(object2);

 obiekt0.style.display = '';
 obiekt1.style.display = '';
 obiekt2.style.display = 'none';

  }


 function edit_kat_n( object0, object1, object2 )
 {

 obiekt0= document.getElementById(object0);
 obiekt1= document.getElementById(object1);
 obiekt2= document.getElementById(object2);

 obiekt0.style.display = 'none';
 obiekt1.style.display = 'none';
 obiekt2.style.display = '';

  }


 function baner_zamow()
  {
	
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"	 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" WIDTH="780" HEIGHT="150" id="flash" ALIGN=""> <PARAM NAME=movie VALUE="flash.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="flash.swf" quality=high bgcolor=#FFFFFF  WIDTH="780" HEIGHT="150" NAME="flash" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>'); 
	}		
