// JavaScript Document
/**
	 *	as soon as the DOM is ready, this method is called. Here we can start executing our code.
	 *	In this case we initialize the custom scroll-bars with jScrollPane.
	 */
	$(document).ready(function() {
		$(function(){
			var pageName = currentPage;
			$("*").find("a[href*='c="+pageName+"']").each(
				function(){
					if ($(this).parent().parent().is("ul")) {
					$(this).addClass(pageName+"Selected");
					
					$(this).parent().addClass("selectedPageLi");
					}
				});

	Cufon.replace('h1');
	Cufon.replace('h2');
	Cufon.replace('h3');
	Cufon.replace('h4');

$(".shadow").corner("5px");
			$(".equalHeightColumn").corner("5px");
			$(".mainColumn").corner();
			$(".leftColumn").corner(); 
			$(".left").corner("5px top");
			$(".quoteBox").corner(); 
			equalHeight($(".equalHeightColumn"));
			$(".colorboxee512x288").colorbox({iframe:true, innerWidth:536, innerHeight:320});

		});
	});
	
	function equalHeight(group) {
	   var tallest = 0;
	   group.each(function() {
		  thisHeight = $(this).height();
		  if(thisHeight > tallest) {
			 tallest = thisHeight;
		  }
	   });
	 
	   group.height(tallest);
	}
	
	function getUrlVars()
	{
		var vars = [], hash;
		var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
		for(var i = 0; i < hashes.length; i++)
		{
			hash = hashes[i].split('=');
			vars.push(hash[0]);
			vars[hash[0]] = hash[1];
		}
		return vars;
	}
	
