<!--  

if (document.images) {	

	abouton = new Image(64, 25);
	abouton.src = "images/HNR_about.gif"
	aboutoff = new Image(64, 25);
	aboutoff.src = "images/HN_about.gif"
	
	investoron = new Image(117, 25);
	investoron.src = "images/HNR_investor.gif"
	investoroff = new Image(117, 25);
	investoroff.src = "images/HN_investor.gif"
	
	newson = new Image(92, 25);
	newson.src = "images/HNR_news.gif"
	newsoff = new Image(92, 25);
	newsoff.src = "images/HN_news.gif"
	
	productson = new Image(67, 25);
	productson.src = "images/HNR_products.gif"
	productsoff = new Image(67, 25);
	productsoff.src = "images/HN_products.gif"
	
	serviceon = new Image(113, 25);
	serviceon.src = "images/HNR_service.gif"
	serviceoff = new Image(113, 25);
	serviceoff.src = "images/HN_service.gif"
	
	communityon = new Image(129, 25);
	communityon.src = "images/HNR_community.gif"
	communityoff = new Image(129, 25);
	communityoff.src = "images/HN_community.gif"
	
	careerson = new Image(59, 25);
	careerson.src = "images/HNR_careers.gif"
	careersoff = new Image(59, 25);
	careersoff.src = "images/HN_careers.gif"
	

	
 }

function On(imgName) {
      if (document.images) 
          document.images[imgName].src = eval(imgName + "on.src");
}

function Off(imgName) {
      if (document.images)
             document.images[imgName].src = eval(imgName + "off.src");
} 


defaultStatus = '';

// BEGIN: PINT 	 DETECTION AND DISPLAY =====================================================================
PINT_FlashObject = function(swf, id, w, h, defaultImage, ver, imageMap, c) {
	this.swf = swf;
	this.id = id;
	this.width = w;
	this.height = h;
	this.imageMap = imageMap;
	this.version = ver || 6; // default to 6
	this.align = "middle"; // default to middle
	this.codebase = this.version +",0,0,0"; // fix cab download
	this.redirect = "";
	this.sq = document.location.search.split("?")[1] || "";
	this.defaultImage = defaultImage;
	this.altTxt = "Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";
	this.bypassTxt = "";
	this.params = new Object();
	this.variables = new Object();
	if (c) this.color = this.addParam('bgcolor', c);
	this.addParam('quality', 'high'); // default to high
	this.doDetect = getQueryParamValue('detectflash');
}

PINT_FlashObject.prototype.addParam = function(name, value) {
	this.params[name] = value;
}

PINT_FlashObject.prototype.getParams = function() {
    return this.params;
}

PINT_FlashObject.prototype.getParam = function(name) {
    return this.params[name];
}

PINT_FlashObject.prototype.addVariable = function(name, value) {
	this.variables[name] = value;
}

PINT_FlashObject.prototype.getVariable = function(name) {
    return this.variables[name];
}

PINT_FlashObject.prototype.getVariables = function() {
    return this.variables;
}

PINT_FlashObject.prototype.getParamTags = function() {
    var paramTags = "";
    for (var param in this.getParams()) {
        paramTags += '<param name="' + param + '" value="' + this.getParam(param) + '" />';
    }
    if (paramTags == "") {
        paramTags = null;
    }
    return paramTags;
}

PINT_FlashObject.prototype.getHTML = function() {
    var flashHTML = "";
    if (window.ActiveXObject && navigator.userAgent.indexOf('Mac') == -1) { // PC IE
        flashHTML += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+ this.codebase +'" width="' + this.width + '" height="' + this.height + '" id="' + this.id + '" align="' + this.align + '">';
        flashHTML += '<param name="movie" value="' + this.swf + '" />';
        if (this.getParamTags() != null) {
            flashHTML += this.getParamTags();
        }
        if (this.getVariablePairs() != null) {
            flashHTML += '<param name="flashVars" value="' + this.getVariablePairs() + '" />';
        }
        flashHTML += '</object>';
    }
    else { // Everyone else
        flashHTML += '<embed type="application/x-shockwave-flash" src="' + this.swf + '" width="' + this.width + '" height="' + this.height + '" id="' + this.id + '" align="' + this.align + '"';
        for (var param in this.getParams()) {
            flashHTML += ' ' + param + '="' + this.getParam(param) + '"';
        }
        if (this.getVariablePairs() != null) {
            flashHTML += ' flashVars="' + this.getVariablePairs() + '"';
        }
        flashHTML += '></embed>';
    }
    return flashHTML;	
}


PINT_FlashObject.prototype.getVariablePairs = function() {
    var variablePairs = new Array();
    for (var name in this.getVariables()) {
        variablePairs.push(name + "=" + escape(this.getVariable(name)));
    }
    if (variablePairs.length > 0) {
        return variablePairs.join("&");
    }
    else {
        return null;
    }
}

PINT_FlashObject.prototype.write = function(elementId) {
	if(detectFlash(this.version) || this.doDetect=='false') 
		{
		if (elementId) 
			{
			document.getElementById(elementId).innerHTML = this.getHTML();
			}
		else 
			{
			document.write(this.getHTML());
			}
		} 
	else 
		{
		if (this.redirect != "") 
			{
			document.location.replace(this.redirect);
			}
		else if (this.defaultImage != "")
			{
			imageString = "<img src=\"" + this.defaultImage + "\" width=\"" + this.width + "\" height=\"" + this.height + "\" border=\"0\" alt=\"\"";
			if (eval('typeof(this.imageMap)') != "undefined" && this.imageMap != "")
				imageString += " usemap=\"#" + this.imageMap + "\" ";
			imageString += " class=\"inlineimage\" />";

			document.write (imageString);
			}
		else
			document.write(this.altTxt +""+ this.bypassTxt);
	}		
}

function getFlashVersion() {
	var flashversion = 0;
	if (navigator.plugins && navigator.plugins.length) {
		var x = navigator.plugins["Shockwave Flash"];
		if(x){
			if (x.description) {
				var y = x.description;
	   			flashversion = y.charAt(y.indexOf('.')-1);
			}
		}
	} else {
		result = false;
	    for(var i = 15; i >= 3 && result != true; i--){
   			execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');
   			flashversion = i;
   		}
	}
	return flashversion;
}

function detectFlash(ver) {	
	if (getFlashVersion() >= ver) {
		return true;
	} else {
		return false;
	}
}

// get value of querystring param
function getQueryParamValue(param) {
	var q = document.location.search;
	var detectIndex = q.indexOf(param);
	if(q.length > 1 && detectIndex != -1) {
		return q.substring(q.indexOf("=", detectIndex)+1, q.indexOf("&", detectIndex));
	} else {
		return true;
	}
}
// END: PINT FLASH DETECTION AND DISPLAY =======================================================================

// -->