doprint = function (title,id)
{
	toprint(title, document.getElementById(id).innerHTML);
}

toprint = function (title, content)
{
				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: verdana; font-size: 11px;\" onload=\"print();\">");
				NewWindow.document.writeln("<title>"+ title +"</title>");
				NewWindow.document.writeln("<style>");
				NewWindow.document.writeln("a  {color: black } h1 {border-bottom: 1px solid black; padding-bottom:10px;} div.stopka { margin:10px;margin-bottom: 30px; border-top: 1px solid #375395}img { border: none; } table { font-family: verdana; font-size: 11px; }");
				NewWindow.document.writeln("hr { size: 1; maring-bottom: 30px; color:#28446c} ");
				NewWindow.document.writeln("</style>");
				//NewWindow.document.writeln("<table width=\"100%\"><tr><td style=\"text-align: left\"><img src=\"../templates/default/images/logo.jpg\" /></td></tr>");
				
				NewWindow.document.writeln("<tr><td>");
				NewWindow.document.writeln(content);
				NewWindow.document.writeln("</td></tr></table>");
				NewWindow.document.writeln("  <br style=\"clear:both\"/><div class=\"stopka\"> &#169; "+ title +"</div>");
				NewWindow.document.writeln("</body>\n</HTML>\n");
				NewWindow.document.close();
				NewWindow.focus();


}

function flash(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+'">\n'
+'<param name="movie" value="image/'+path+'" />\n'
+'<param name="quality" value="high" />\n'
+'<param name="menu" value="0" />\n'
+'<param name="wmode" value="transparent" />\n'
+'<embed src="image/'+path+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="0" wmode="transparent"></embed>\n'
+'</object>');
}

function showhide(id) {
	$('#'+id).toggle(500);
  }
