//
// Clean4Print Version 0.02
//
// module for copying parts of a website into a new browser window!
//
// Copyright (c) 2003, Andreas John aka Jack (tR). All rights reserved.
//
// This program is free software; you can redistribute it and/or modify 
// it under the terms of the GNU General Public License as published by the 
// Free Software Foundation; either version 2 of the License, or (at your 
// option) any later version. A copy of this license you can find in the 
// added text file gpl.txt or on the website of the Free Software Foundation 
// under: http://www.fsf.org/copyleft/gpl.html
//

function Clean4Print()
{
	html = $('.event_list #the_content').html();

	clean_popup = window.open( "about:blank","SZ-Pankow: Termine","");
  	clean_popup.document.write('<html>\n<head>\n<title>'+document.title+'</title>\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\n<link rel="stylesheet" href="css/clean4print.css" />\n</head>\n');
  	clean_popup.document.write('<body><div class="clean4print">\n<table>' );

	// output all sections marked with tag_id
	clean_popup.document.write(html);
	clean_popup.document.write('</table></div></body>\n</html>\n');
	
	clean_popup.window.print();
}

$(document).ready ( function() {
	$('a#printVersion').click(function(event) {
		event.prevenDefault();
		Clean4Print();
	});
});
