// JavaScript Document
//menu principal--------------------------------------------------------------
navHover = function() {
	var lis = document.getElementById("navmenu-h").getElementsByTagName("li");
		for (var i=0; i<lis.length; i++) {
			lis[i].onmouseover=function() {
			this.className+=" iehover";
		}
		lis[i].onmouseout=function() {
		this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);
/*****************************************************************************
sIFR 
*****************************************************************************/
var arial = {
  src: 'arial.swf'
};
sIFR.activate(arial);

sIFR.replace(arial, {
  selector: 'h1',
  wmode: 'transparent'
  ,css: [
	'.sIFR-root { text-align: left; color:#617F51; letter-spacing: -0.5; font-size: 28; margin-top: 0;}'
	,'a { text-decoration: none; }'
	,'a:link { color: #617F51; }'
	,'a:hover { color: #617F51; }'
  ]
});
sIFR.replace(arial, {
  selector: 'h2',
  wmode: 'transparent'
  ,css: [
	'.sIFR-root { text-align: left; color:#4E5C53; letter-spacing: -0.5; font-size: 20; margin-top: 0; font-weight:bold;}'
	,'a { text-decoration: none; }'
	,'a:link { color: #767A5F; }'
	,'a:hover { color: #767A5F; }'
  ]
});
sIFR.replace(arial, {
  selector: 'h3',
  wmode: 'transparent'
  ,css: [
	'.sIFR-root { text-align: left; color:#414943; letter-spacing: 0; font-size: 22; margin-top: 0;}'
	,'a { text-decoration: none; }'
	,'a:link { color: #C7CC25; }'
	,'a:hover { color: #C7CC25; }'
  ]
});
sIFR.replace(arial, {
  selector: 'h4',
  wmode: 'transparent'
  ,css: [
	'.sIFR-root { text-align: left; color:#4E5C53; letter-spacing: 0; font-size: 22; margin-top: 0;}'
	,'a { text-decoration: none; }'
	,'a:link { color: #C7CC25; }'
	,'a:hover { color: #C7CC25; }'
  ]
});
window.addEvent('domready', function(){
//---acordion--------------------------------------------------------------------------------------
		var myAccordion = new Accordion($('acordeon'), 'div.toggler', 'div.acorcontenido', {
		opacity: true,
		display:0,
		alwaysHide:true,
		duration: 300,
			onActive: function(toggler, element){
				toggler.setStyle('background-position', 'bottom');
			},
			onBackground: function(toggler, element){
				toggler.setStyle('background-position', 'top');
			}
		});
//smooth anchors
		new SmoothScroll({ duration: 600 });
});
