// JavaScript Document
/* 
function right(e) {
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) {
return false;
}
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button
== 2 || event.button == 3)) {
alert("Copyright Harmonex. All rights reserved.\nPlease contact us at 1.866.224.2822 with any questions.");
return false;
}
return true;
}

document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;



function popupWin(url){
	var newWindow;
  	newWindow=window.open(url,'_harmonex','scrollbars=yes,width=500,height=500');
  	newWindow.focus();
}
function ToggleDisplaySelectNumeric (intElement, intCount, strSelectedClass, strBaseClass)
{

	var strElementClassNameProperty;
	var i=0
		for (i=1;i<=intCount;i++)
		{

			strElementClassNameProperty = "document.all.div" + i + ".className";
			
			if (i == intElement)
			{
				eval(strElementClassNameProperty + "= '" + strSelectedClass + "'");
				eval("document.all.td" + i + ".background = 'images/buttonRight.gif'");
			}
			else
			{
				eval(strElementClassNameProperty + "= '" + strBaseClass + "'");
				eval("document.all.td" + i + ".background = 'images/buttonDown.gif'");
				eval("document.all.td" + i + ".title = 'Click to Select'");	
			}

		}
}
function ParseQuerystring(intCount, strSelectedClass, strBaseClass)
{
	// Parse the current page's querystring
	var queryString = new String(window.location.search);
	queryString = queryString.substr(queryString.indexOf("=")+1, queryString.length);

	//set default
	if (queryString.length == 0)
	{
		queryString = "1";
	}
	
	//call display function
	ToggleDisplaySelectNumeric(queryString, intCount, strSelectedClass, strBaseClass);

} */

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;