// JavaScript Document

<!-- SIFR 3 FLASH TEXT REPLACEMENT-->
var myriad = { src: 'flash/myriadpro-regular.swf' };

sIFR.activate(myriad);

sIFR.replace(myriad, {
  selector: 'h1',
  css: ['.sIFR-root { color: #000000; line-height:1em; font-size:16px; }',
  		'a {color: #000000; text-decoration: none; font-size: 25px; height:25px; line-height:1em; }',
		'a:hover {color: #000000;}'
        ], 
	wmode: 'transparent'
});

sIFR.replace(myriad, {
  selector: 'h2',
  css: '.sIFR-root {  color: #ffffff; line-height:1em; font-size:30px; }', wmode: 'transparent'
});

sIFR.replace(myriad, {
  selector: '#navigation ul li',
   css: [
        '.sIFR-root { color:#000000; font-size: 15px; line-height:1em; padding-right:15px;}',
        'a {color: #000000; text-decoration: none; font-size: 15px; line-height:1em; }',
        'a:hover {color: #0073D8;}'
        ]
});

sIFR.replace(myriad, {
  selector: '#DescSubText',
  css: '.sIFR-root {  color: #ffffff; font-size: 16px; line-height:1em; height:30px; }', wmode: 'transparent'
});

sIFR.replace(myriad, {
  selector: 'h1.alignfromLeft',
  css: '.sIFR-root {  color: #ffffff; font-size: 16px; line-height:1em; height:30px; margin-left:22px; }', wmode: 'transparent'
});





// jquery work
$(document).ready(function() {  

  // highlighting of 3 header links
   $("div.HeaderBox a img").hover(function() {
   		 $(this).attr("alt",$(this).attr("src"));
       $(this).attr("src","images/LearnMoreLarge.gif");  
             }, function() {  
        $(this).attr("src",$(this).attr("alt"));
     });  
   


});  // END DOCUMENT.READY


// code for menu to work in ie
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"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

