sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), ""); 
		}
	}
} 

coHover = function(ElN) {
document.getElementById('coPrograms').style.display = 'none';
document.getElementById('coServices').style.display = 'none';
document.getElementById('coInformation').style.display = 'none';
document.getElementById('coForms').style.display = 'none';
document.getElementById('coAbout').style.display = 'none';
document.getElementById('coBlank').style.display = 'none';
document.getElementById(ElN).style.display = '';
document.getElementById('coProgramsImgM').style.background = '#a4d7f4';
document.getElementById('coServicesImgM').style.background = '#a4d7f4';
document.getElementById('coInformationImgM').style.background = '#a4d7f4';
document.getElementById('coFormsImgM').style.background = '#a4d7f4';
document.getElementById('coAboutImgM').style.background = '#a4d7f4';
document.getElementById(ElN+'ImgM').style.background = '#FAD7A7';
}



if (window.attachEvent) window.attachEvent("onload", sfHover);


addToFavorites= function() { if (window.external) { window.external.AddFavorite(urlAddress,pageName) 
} else { alert("Sorry! Your browser doesn't support this function."); 
} } // --></script>

G_GET = function (q) {
		var s = window.location.search;
        var l = s.indexOf(q) + q.length +1;
		var val =decodeURIComponent(s.substring(l,s.indexOf('&'))).replace(/\+/g," ");
		
//	   val = decodeURIComponent(val);//
   // val = val.replace('+',' '); 
	 // s  =s.replace(/^?/,'&').match(re));
	    return val;
	 //  return typeof s[1] == 'undefined' ? '' : decodeURIComponent(s[1]));
    }
//coHover("coBlank");
/////////////////////////

//// tabpanel_module ////

/////////////////////////





//// tabpanel_mouseover

//// This function is called when a tabpanel tab is hovered



function tabpanel_mouseover(node)

{

  var panel_1_width = document.getElementById("tabpanel_1_sublist").offsetWidth; // Needed for IE

  document.getElementById("tabpanel_1").className = ""; // De-activate default item

  node.className = "tabpanel_default"; // Activate the hovered item

  if (panel_1_width) {

    if (document.getElementById("tabpanel_2_sublist"))

      document.getElementById("tabpanel_2_sublist").style.width = (panel_1_width - 2) + "px"; // Needed for IE

    if (document.getElementById("tabpanel_3_sublist"))

      document.getElementById("tabpanel_3_sublist").style.width = (panel_1_width - 2) + "px"; // Needed for IE

  }

}



//// tabpanel_mouseout

//// This function is called on mouseout



function tabpanel_mouseout(node)

{

  node.className = ""; // De-activate this item

  document.getElementById("tabpanel_1").className = "tabpanel_default"; // Activate default item

}

// End of tabpanel_module javascript
function fbs_click() {
	u = location.href;
	t = document.title;
	window.open('http://www.facebook.com/sharer.php?u=' + encodeURIComponent(u) + '&t=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,scrollbars=1,width=626,height=375');
	return false;
}
function stmb_click() {
	u = location.href;
	t = document.title;
	window.open('http://www.stumbleupon.com/submit?url=' + encodeURIComponent(u) + '&title=' + encodeURIComponent(t), 'sharer', 'toolbar=0,status=0,scrollbars=1,width=920,height=436');
	return false;
}
function delicious_click() {
	u = location.href;
	t = document.title;
	window.open('http://digg.com/submit?phase=2&url=' + encodeURIComponent(u), 'sharer', 'toolbar=0,status=0,scrollbars=1,width=850,height=500');
	return false;
}


