/**
 * Author => Company       : Prodo Ltd
 * Author => Email         : chris@prodo.com
 * Author => Name          : Christopher Robinson
 * Author => Website       : http://www.prodo.com
 * Code   => Last Modified : 09 March 2009
 */

$(document).ready(function() {
	// Make external links open in a new window
	$('a[rel=external]').click(function(e) {
		open(this.href);
		e.preventDefault();
	}).attr('title', 'Opens in a new window');
	
	// 
	$("#header ul li a").hover(function() {
		$(this).parent().find("ul").show();
		
		$(this).parent().hover(function() {
		}, function() {
			$(this).parent().find("ul").hide();
		});
	});
	
	// Reset font size
	var originalFontSize = $('#content .inner').css('font-size');
	$(".fontReset").click(function(e) {
		$('#content .inner').css('font-size', originalFontSize);
		e.preventDefault();
	});
	
	// Increase font size
	$(".fontIncrease").click(function(e) {
		$('#content .inner').css('font-size', parseFloat($('#content .inner').css('font-size'), 10) * 1.1);
		e.preventDefault();
	});
	
	// Decrease font size
	$(".fontDecrease").click(function(e) {
		$('#content .inner').css('font-size', parseFloat($('#content .inner').css('font-size'), 10) * .9);
		e.preventDefault();
	});
	
	// Show the 'fontSizing' div (hidden via CSS)
	$(".fontSizing").show();
});
