// Custom code - printing

function print_content() {
	 if (document.getElementById != null) {
		
    html = "<ht" + "ml><he" + "ad>"

		  if (document.getElementsByTagName != null) {
		    var head_tag = document.getElementsByTagName("head");
      if (head_tag.length > 0) {
        html += head_tag[0].innerHTML;
      } else {
		  		  html += "<ti" + "tle>Print</ti" + "tle><li" + "nk rel=\"stylesheet\" type=\"text/css\" href=\"styles/main.css\">"
		  		}
		  } else {
	   	 html += "<ti" + "tle>Print</ti" + "tle><li" + "nk rel=\"stylesheet\" type=\"text/css\" href=\"styles/main.css\">"
		  }
			
	  	html += "</he" + "ad><bo" + "dy style=\"background-color:#ffffff;\"><di" + "v class=\"print_page\">";
    html += MM_findObj("print_content").innerHTML;
    html += "</di" + "v></bo" + "dy><ht" + "ml>";

  		var print_job = window.open("","print_content");
	  	print_job.document.open();
	  	print_job.document.write(html);
	  	print_job.document.close();
	  	print_job.print();
				
		} else {
		  alert("Sorry, the print feature is not compatible with this browser.");
		}
}