/**
* Styleswitch stylesheet switcher built on jQuery
* Under an Attribution, Share Alike License
* By Kelvin Luck ( http://www.kelvinluck.com/ )
**/
//use jQuery via $j for no conflict with prototype 
var $j = jQuery.noConflict();

$j(document).ready(function() {
	$j("#printme").click(function() {
							   
		//$j("link").attr("href",$j(this).attr('rel'))
		var dest = window.location.href;
		if(dest.indexOf("?") > 0) {
			dest = dest + "&";
		} else {
			dest = dest + "?";
		}
		dest = dest + "print=true";
		window.open(dest);
		return false;
	});

	$j("#printme2 li a").click(function() {
		//$j("link").attr("href",$j(this).attr('rel'));
		window.close();
		return false;
	});
	
	$j('ul#printme2').prepend('<li class="print noshow2"><img src="/images/printer.png" alt="print me"/>&nbsp;&nbsp;<a href="#print">Print Me</a></li>');
	$j('ul#printme2 li.print a').click(function() {
		window.print();
		return false;
	});

	
});


// /cookie functions
