var pnumber = new Array();$(document).ready(function() {  $('option[disabled]').css({'color': '#cccccc'});  $('select').change(function() {    if(this.options[this.selectedIndex].disabled) {      if(this.options.length == 0) {        this.selectedIndex = -1;      } else {        this.selectedIndex--;      }      $(this).trigger('change');    }  });  $('select').each(function(it) {    if(this.options[this.selectedIndex].disabled)      this.onchange();  });    var connected_src;  $("#stayconnected #connected_icons a img").hover(			function(){									connected_src = $(this).attr("src");					$(this).attr("src",removeExt(connected_src) + "_ovr.png");							},			function(){				$(this).attr("src",connected_src);			}		);      /*  $(".HAB .hpNav div.hpNavBody").each( function(i){  	var h = $(this).height();  	  	if(h < $(".HAB .hpNav2 div.hpNavBody").eq(i).height()){  		$(this).height($(".HAB .hpNav2 div.hpNavBody").eq(i).height() )  		  	}  	else{  		$(".HAB .hpNav2 div.hpNavBody").eq(i).height(h)  	}    });  */      //phonestr = '<form name="phonelist" onsubmit="$(\'#phoneblock_display\').text(this.form.phone.value); return 0;">';    phonestr = '<form name="phonelist" onsubmit="$(\'#phoneblock_display\').text(this.phone.value);return false;">';    phonestr += '<p><select name="phone">';  phonestr += "<option value=''>Phone number</option>";  pnumber[0] = "";  $("#phoneblock p").each( function(i){  	//pnumber[i+1] = $(this).children('span:last').text();  	  	var statename = $(this).children('span:first').text();  	if(statename != "")			phonestr += "<option value='" + $(this).children('span:last').text() + "'>" + statename + "</option>";  });    phonestr += "</select> <input type='submit' value='Go'></p></form> <p id='phoneblock_display'><p>";      $("#phoneblock").replaceWith(phonestr);      $(".accordion").each (function(i){  	$(this).replaceWith("<div class='accordion_js'><p class='accordion_link'><a href='#'>More +</a></p><div class='accordion_content' style='display:none'>" + $(this).html() + "</div></div>");  });      $("p.accordion_link a").click(function(){  	if($(this).parents(".accordion_js").find(".accordion_link a").text() == "More +")  		$(this).parents(".accordion_js").find(".accordion_link a").text("Less -");  	else  		$(this).parents(".accordion_js").find(".accordion_link a").text("More +");  	$(this).parents(".accordion_js").children(".accordion_content").toggle();  	return false;  	  		  });    $(function() {		$(window).load(sizeIFrame);		$('#fullFrame').load(sizeIFrame);	});	  });function sizeIFrame() {	var helpFrame = jQuery("#fullFrame");	if(helpFrame.html()){		var innerDoc = (helpFrame.get(0).contentDocument) ? helpFrame.get(0).contentDocument : helpFrame.get(0).contentWindow.document;		helpFrame.height(innerDoc.body.scrollHeight + 35);	}}	function removeExt(str){	var indx = str.lastIndexOf(".");	if(indx != -1){				str = str.substring(0,indx);		return str;	}	else{		return str;	}}function removeExt(str,str2){	var indx = str.lastIndexOf(str2);	if(indx == -1)		indx = str.lastIndexOf(".")	if(indx != -1){				str = str.substring(0,indx);		return str;	}	else{		return str;	}}function getExt(str){	var ext="";	var indx = str.lastIndexOf(".");	if(indx != -1){		ext=str.substring(indx);	}	return ext;}