/*
 * newwindow.js
 *
 * contains Window scripting for princetonscientific.com
 *
 * history:
 *    06 Oct 08: file created.
 *               - sjr
 *
 */

$(document).ready(function(){
	$("a")
		.filter(".external")
			.click(function(event){
				    open(this.href, 'winName', 'width=640, height=480, scrollbars=yes,resizeable=yes,status=yes,toolbar=no,menubar=no,location=no');
				    event.preventDefault();
		})
		.end()
		.filter(".fixed")
			.click(function(event){
				    open(this.href, 'winName', 'width=798, height=460, scrollbars=yes,resizeable=yes,status=no,toolbar=no,menubar=no,location=no');
				    event.preventDefault();
		})
		.end()
		.filter(".print")
			.click(function(event){
				    self.print();
				    event.preventDefault();
		})
		.end()
		.filter(".winclose")
			.click(function(event){
				    self.close();
				    event.preventDefault();
		})
		.end();

	$("area")
		.filter(".external")
			.click(function(event){
				    open(this.href, 'winName', 'width=640, height=480, scrollbars=yes,resizeable=yes,status=yes,toolbar=no,menubar=no,location=no');
				    event.preventDefault();
		})
		.end()
});
