//------------------- Son-Of-Sucker-Fish IE Hack -------------------//

sfHover = function() {
          var sfEls = document.getElementById("nav").getElementsByTagName("li");
          // for each list item in the menu...
          for (var i=0; i < sfEls.length; i++) {
                   // Is this IE7?  If so, use onmouseleave to fix the fact that onmouseout won't fire
                   is_IE7 = navigator.appVersion.indexOf("MSIE 7.0") != -1;
                   sfEls[i].onmouseover = function() {
                             this.className+=" sfHover";
                             // is this a top-level menu item?
                             var child_ul = this.getElementsByTagName('ul')[0];
                             if (child_ul && is_IE7){
                                      // fix for IE7
                                      child_ul.style.position = 'static';
                             }
                   }
                   sfEls[i].onmouseleave = function() {
                             // is this a top-level menu item?
                             var child_ul = this.getElementsByTagName('ul')[0];
                             if (child_ul && is_IE7){
                                      // fix for IE7
                                      child_ul.style.position = 'absolute';
                                      child_ul.style.left = '-9000px';
                             }
                   }
                   sfEls[i].onmouseout = function() {
                             this.className=this.className.replace(new RegExp(" sfHover\\b"), "");
                   }
          }
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


// Hide Email Addresses from Harvesters
function hideaddy(em1, em2) {
if (em1 && em2) {
document.write('<a href=\"mailto:' + em1 + '@' + em2 +'.com\">' + em1 + '@' + em2 + '.com</a>');
} else {
document.write(' -- No email address supplied -- ');
}
}





function printFlash(source, width, height, id, bg_color) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" ');
	document.write('width="'+width+'" height="'+height+'" id="'+id+'" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="'+source+'" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<param name="bgcolor" value="'+bg_color+'" />');
	document.write('<embed src="'+source+'" menu="false" quality="high" bgcolor="'+bg_color+'" width="'+width+'" height="'+height+'" name="'+id+'" align="middle" wmode="transparent" ');
	document.write('allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}