	/* glp cookies */						
	/* if the user has a cookie set already from a previous visit, redirect them now */
	/*
	var userLocation = $.cookies.get('international_location');
	if (userLocation == "us") {
		location="us_homepage.shtml";
	} else if (userLocation == "uk") {
		location="uk/uk_homepage.shtml";
	} else if (userLocation == "ca") {
		location="http://www.pyramis.ca";
	} 
	*/
     
	/* listen for link clicks and set the location cookie appropriately */ 
	$(document).ready(function() {  
			
		$('#glp-hover-us').click(function(event) {
			if (userLocation == null) {
				if ($('#location_chkbx').attr("checked") == true) {
					$.cookies.set('international_location','us',{hoursToLive: 9999});
					var userLocation = $.cookies.get('international_location');
				}
				location="../us_homepage.shtml";
			}
						
		});
		
		$('#glp-hover-uk').click(function(event) {
			if (userLocation == null) {
				if ($('#location_chkbx').attr("checked") == true) {
					$.cookies.set('international_location','uk',{hoursToLive: 9999});
					var userLocation = $.cookies.get('international_location');
				}
				location="../uk/uk_homepage.shtml";
			}
		});
		
		$('#glp-hover-ca').click(function(event) {
			if (userLocation == null) {
				if ($('#location_chkbx').attr("checked") == true) {
					$.cookies.set('international_location','ca',{hoursToLive: 9999});
					var userLocation = $.cookies.get('international_location');
				}
				location="http://www.pyramis.ca";
			}
		});
		
		$('#glp-hover-other').click(function(event) {
			if (userLocation == null) {
				if ($('#location_chkbx').attr("checked") == true) {
					$.cookies.set('international_location','us',{hoursToLive: 9999});
					var userLocation = $.cookies.get('international_location');
				}
				location="../us_homepage.shtml";
			}
		});
		
		
		
		/* global landing page interactive map */
		var glpSpeed = 150;
		
		$("#glp-hover-us").hover(
		  function(){ 
			$('#glp-map-us,').fadeIn(glpSpeed);
		  }, 
		  function(){ 
			$('#glp-map-us,').fadeOut(glpSpeed);
		  } 
		);
		$("#glp-dothover-us").hover(
		  function(){ 
			$('#glp-map-us,').fadeIn(glpSpeed);
		  }, 
		  function(){ 
			$('#glp-map-us,').fadeOut(glpSpeed);
		  } 
		);
		
		
		
		$("#glp-hover-ca").hover(
		  function(){ 
			$('#glp-map-ca').fadeIn(glpSpeed);
		  }, 
		  function(){ 
			$('#glp-map-ca').fadeOut(glpSpeed);
		  } 
		);
		$("#glp-dothover-ca").hover(
		  function(){ 
			$('#glp-map-ca').fadeIn(glpSpeed);
		  }, 
		  function(){ 
			$('#glp-map-ca').fadeOut(glpSpeed);
		  } 
		);
		
		
		
		$("#glp-hover-uk").hover(
		  function(){ 
			$('#glp-map-uk').fadeIn(glpSpeed);
		  }, 
		  function(){ 
			$('#glp-map-uk').fadeOut(glpSpeed);
		  } 
		);
		$("#glp-dothover-uk").hover(
		  function(){ 
			$('#glp-map-uk').fadeIn(glpSpeed);
		  }, 
		  function(){ 
			$('#glp-map-uk').fadeOut(glpSpeed);
		  } 
		);
		
		
		
		$("#glp-hover-other").hover(
		  function(){ 
			$('#glp-map-other').fadeIn(glpSpeed);
		  }, 
		  function(){ 
			$('#glp-map-other').fadeOut(glpSpeed);
		  } 
		);
		/* end glp landing page interactive map */
						
	});
	/* end glp functionality */
