//Cufon Text Replacement ==============================================================================================
Cufon.replace('h1')('h2')('h3')('#Telephone')('#Adress')('#FooterLinks')
('.LHSHeader')('#HeaderCntct');

// Email Links ==============================================================================================
function ShowEmail(user, domain, anchor) {
	var OutText = '';
	OutText += '<a href="mailto:' + user + '@' + domain + '">';
	if (anchor != '') OutText += anchor;
	else OutText += user + '@' + domain;
	OutText  += '</a>';
	document.write(OutText);
}

function ShowEmailBySubject(user, domain, anchor, subject) {
	var OutText = '';
	OutText += '<a href="mailto:' + user + '@' + domain + '?subject=' + subject + '">'
	if (anchor != '') OutText += anchor;
	OutText  += '</a>';
	document.write(OutText);
}

// External Links ==============================================================================================
function externalLinks() { 
	if (!document.getElementsByTagName) return; 
 	var anchors = document.getElementsByTagName("a"); 
 	for (var i=0; i<anchors.length; i++) { 
   		var anchor = anchors[i]; 
   		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") 
     			anchor.target = "_blank"; 
	 }
}

window.onload = externalLinks;

// News Links ==============================================================================================
function onClick( id )
{
	var objImg, objPanel, objPanelX;
			
	eval( "objImg = document.getElementById( 'PanelImg" + id + "' )" );
	eval( "objPanel = document.getElementById( 'Panel" + id + "' )" );
			
	// If the image button is a plus, then expand the panel
	if ( objImg.src.indexOf( "_plus.gif" ) != -1 )
	{
		objImg.src = "i/small_minus.gif";
		objPanel.style.visibility = "visible";
		objPanel.style.display = "block";
	}
	else
	{
		objImg.src = "i/small_plus.gif";
		objPanel.style.visibility = "hidden";
		objPanel.style.display = "none";
	}
}
