/*
 * Description: Creates a new window for the link passed to it.
 */
function newWindow(theLink){
    var theURL = theLink.href;
	theWindow=window.open(theURL, 'newWin', 'width=500,height=350,Menubar=yes,Toolbar=no,Location=no');
}

$(function(){
	// Enable style switching.
	$("#normal").click(function(){
		setActiveStyleSheet('Normal'); 
		return false;
	});
	$("#plus20").click(function(){
		setActiveStyleSheet('Plus20'); 
		return false;
	});
	$("#plus40").click(function(){
		setActiveStyleSheet('Plus40'); 
		return false;
	});
	
	// Wire new windows
	$('a.new_window').click(function(){
		newWindow(this);
		return false;
	});
}); 