// JavaScript Document
$(function(){
	var $buoop = {newwindow: true, reminder: 24} 
	$buoop.ol = window.onload; 
	window.onload=function(){ 
		if ($buoop.ol) $buoop.ol(); 
		var e = document.createElement("script"); 
		e.setAttribute("type", "text/javascript"); 
		e.setAttribute("src", "http://browser-update.org/update.js");
		document.body.appendChild(e);
	}
});

function to_print(html) { // На печать
	var pre_html = '';

	var pw = window.open("about:blank","_new");
	pw.document.open();
	pw.document.write( 
		"<html>\n<head>\n<title>Печать страницы</title>\n<link rel='stylesheet' type='text/css' href='/assets/templates/bt/css/style.css' /></head>\n"+
		"<body><style media='print'>input{display:none;}</style>\n<div>\n"+pre_html+"\n"+html+"\n<input style='width:100%;' type='button' value='Распечатать' onclick='window.print();'/>\n</div>\n</body>\n</html>\n"
	);
	pw.document.close();
}
