// are we ready... ?
$(document).ready(function() {
	// need to setup our dropdown menu for top level
	$('#dropdown ul li').hover(
		function()
		{
			$('ul', this).css('margin-left', '-3px');
		},
		function()
		{
			$('ul', this).css('margin-left', '-999em');
		}
	);
	// need to setup our dropdown menu sub items hover states
	$('#dropdown ul li ul li').hover(
		function()
		{
			if ($(this).is('.active')) {
				// do nothing
			} else {
				$(this).css('background', '#69c2d7 url(/gfx/primary-menu-highlight.gif) repeat-y top left');
			}
		},
		function()
		{
			// is this an active menu item set active background - otherwise use default colour
			if ($(this).is('.active')) {
				// do nothing
			} else {
				$(this).css('background', '#69c2d7');
			}
		}
	);
	// need to setup hover states for right hand menu
	$('#cright-menu ul li').hover(
		function()
		{
			if ($(this).is('.active')) {
				// do nothing
			} else {
				$(this).css('background', '#69c2d7 url(/gfx/primary-menu-highlight.gif) repeat-y top left');
			}
		},
		function()
		{
			// is this an active menu item set active background - otherwise use default colour
			if ($(this).is('.active')) {
				// do nothing
			} else {
				$(this).css('background', '#69c2d7');
			}
		}
	);
	// basic rollover with jquery using .jqro class
	$("img.jqro-basic").hover(
		function()
		{
			this.src = this.src.replace("_off","_on");
		},
		function()
		{
			this.src = this.src.replace("_on","_off");
		}
	);
	// setup our fancybox lightbox gallery
	$("a.fancybox-gallery").fancybox();
});