doPrint = function(co)
{
    toPrint("POSTĘP", document.getElementById(co).innerHTML);
}

toPrint = function(title, content)
{
    
    content = content.replace('display: block','display: none');
    
    NewWindow=window.open("", "","width=800,height=600,toolbar=no,directories=no,menubar=no,locations=no,status=no,scrollbars=yes,resizable=no,fullscreen=no");
    NewWindow.document.open();

    NewWindow.document.writeln("<html>\n<head>\n</head>");
    NewWindow.document.writeln("<body leftmargin=\"10\" topmargin=\"10\" scroll=\"yes\" style=\"background-color:#ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 12px;\" onload=\"print();\">");
    NewWindow.document.writeln("<title>Spółdzielnia Inwalidów \""+ title +"\"</title>");
    NewWindow.document.writeln("<link rel=\"stylesheet\" type=\"text/css\" href=\"templates/default/style/style.css\">")
    NewWindow.document.writeln("<style>");
    NewWindow.document.writeln("img { border: none; } table { font-family: arial; font-size: 12px; }");
    NewWindow.document.writeln("</style>");
    NewWindow.document.writeln("<table width=\"100%\" cellspacing=\"10\"><tr><td><img src=\"templates/default/image/print_logo.gif\"></td></tr><tr><td>&nbsp;</td></tr><tr><td style=\"text-align: justify;\">");
    NewWindow.document.writeln(content);    
    NewWindow.document.writeln("</td></tr></table>");
    NewWindow.document.writeln("<br><br><hr size=\"1\" color=\"#825c0d\" style=\"background-color: #825c0d; width: 100%; height: 1px;\">");
    NewWindow.document.writeln("<table width=\"100%\"><tr><td>&copy; Spółdzielnia Inwalidów \"POSTĘP\". tel. 055</td></tr></table>");
    NewWindow.document.writeln("</body>\n</HTML>\n");
    NewWindow.document.close();
    NewWindow.focus();
}

PopUp = function()
{

window.open('map.php', 'Zakrzewo', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,fullscreen=1');

}

Flash = function(w, h, path)
{
 
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'">'
+'<param name="movie" value="'+path+'" />'
+'<param name="quality" value="high" />'
+'<param name="menu" value="0" />'
+'<embed src="'+path+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="0"></embed>'
+'</object>');
 
}

Show_Layer = function(name)
{

/*with(divlayer){
display=display=='block'?'none':'block';
}*/

if(document.getElementById(name).style.display == 'none')
{
	document.getElementById(name).style.display = 'block';
} else {
	document.getElementById(name).style.display = 'none';
}

}