function cufonFontFix(){
	 Cufon.replace("h2",{fontFamily: 'MuseoSans'});
}

function executeHandler(){
$("document").ready(function(){
  if (window.location.href.toLowerCase().indexOf("cmspagemode=edit") > 0) {
   return false;
  }
	 cufonFontFix();
  $(".search input").handleTextBlur();
  assignLinks();
  $(".overview li:odd").css({paddingRight: 0});
 });
}


function initializeNav(navClass){
 if ($(navClass).find(".highlight:first ul").length>0){
  $(".activeHighlight").css({left: $(navClass).find(".highlight:first").offset().left-5});
  var subnavleft = $(navClass).find(".highlight:first ul").offset().left - $(navClass).find(".highlight:first").offset().left+10;
  $(".activeHighlight").width(subnavleft);
 }
 else{
  $(".activeHighlight").hide();
 }
}

function handleMediaSpace(navClass){
try{
 $('.mediaspace').after('<div id="nav">').cycle({ 
    fx:     'fade', 
    speed:  'slow', 
    timeout: 3000, 
    pager:  '#nav' 
});
 }
 catch(obj){
 
 }
}

function assignLinks(){
$("li:first-child").addClass("firstChild");
$("li:last-child").addClass("lastChild");
}
// <summary>
//  These functions handle events generated by an Input Text box
// </summary>
$.fn.handleTextBlur = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});	
};
// <summary>
//  Google map Initialize
// </summary>

function initialize() {
  if (GBrowserIsCompatible()) {
    var map = new GMap2(document.getElementById("mapCanvas"));
    map.setCenter(new GLatLng(37.4419, -122.1419), 13);
    map.setUIToDefault();
  }
}


