$(function()
	{
		// Call stylesheet init so that all stylesheet changing functions 
		// will work.
		$.stylesheetInit();
		
		// This code loops through the stylesheets when you click the link with 
		// an ID of "toggler" below.
		$('#toggler').bind(
			'click',
			function(e)
			{
				$.stylesheetToggle();
				return false;
			}
		);
		
		// When one of the styleswitch links is clicked then switch the stylesheet to
		// the one matching the value of that links rel attribute.
		$('.styleswitch').bind(
			'click',
			function(e)
			{
				$.stylesheetSwitch(this.getAttribute('rel'));
				return false;
			}
		);
	}
);
$(document).ready(function() {
	$("td a").fancybox({
		'overlayOpacity':	1,
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true,
		'titleShow'		:	true
	});	
	$("td a").wTooltip({ 
	    content: "INFO", 
	    offsetY: -15, 
	    offsetX: 5,
	    style: { //the default style rules of the tooltip 
	           border: "none", 
	           font: "normal 12px/12px arial, helvetica, sans-serif",  
	           background: "none", 
	           color: "#ccc", 
	           padding: "5px", 
	           zIndex: "1000", 
	           textAlign: "left" 
	       }, 
	});
});
