﻿

/// <reference path="jQuery/1.3.2/jquery-1.3.2-vsdoc.js" />


/*
*****************************
*	SETUP MENU LINKS
*****************************
*/
	$(document).ready(function() 
	{
		configureMenu();
		configureKeyServicesMenu()	
	});
	
	
	function configureMenu ()
	{
		$("div.main-container ul.main-menu li.services a.services").click(function ()
		{
			handleServicesMenuClick($(this));
		})
	}
	
	function handleServicesMenuClick (item)
	{
		var p = item.parent("li.services");
		
		var c = "level-2-open"
		
		if (!p.hasClass(c)) p.addClass(c);
		else (p.removeClass(c));
	}
	
	
	function configureKeyServicesMenu ()
	{
		$("div.home div.quick-links div.corporate-events").click(function () {
			//navigateToUrl("corporate-events.htm")
			navigateToUrl("corporate-events.php")
		});
		
		$("div.home div.quick-links div.weddings-and-parties").click(function () {
			//navigateToUrl("weddings-and-parties.htm")
			navigateToUrl("weddings-and-parties.php")
		});
		
		$("div.home div.quick-links div.theatre-and-concerts").click(function () {
			//navigateToUrl("theatre-and-concerts.htm")
			navigateToUrl("theatre-and-concerts.php")
		});
		
		$("div.home div.quick-links div.fashion-shows").click(function () {
			//navigateToUrl("fashion-shows.htm")
			navigateToUrl("fashion-shows.php")
		});
	}
	
	
	
	function navigateToUrl (url)
	{
		window.location.href = url;
	}