/**
*   fix background flickering in IE
*/
try {
  document.execCommand('BackgroundImageCache', false, true);
} catch(e) {}

/**
*	Description: 	Rules for replacing headers with nicer flash-text.
*
*/
function initSIFR() {
	if( typeof sIFR == "function" ) {
		sIFR.replaceElement(named({sSelector: "h1", sFlashSrc: "/vw/flash/headers/h1.swf", sColor: "#000", sBgColor: "#e6e6eb", sWmode: "transparent"}));
		sIFR.replaceElement(named({sSelector: "h2", sFlashSrc: "/vw/flash/headers/h2.swf", sColor: "#000", sWmode: "transparent"}));
	} else { 
		// this means no flashplayer is installed, which is ok
	};
}


/**
*	Description: 	Subnav dropdownfix for IE.
*/
function subnavHover() {
    if ( $( "subnav" ) ) {
	    var items = $$( "#subnav li" );

	    var toggel = function() {
	        this.toggleClassName('fixhover'); 
	    };
	    
	    items.each( function( item ) {
	        Event.observe(item, 'mouseover', toggel);
	        Event.observe(item, 'mouseout', toggel);
	    });
    }
}

Event.onReady(function( e ) {
    initSIFR();
    // if the browser is IE
    //if ( Prototype.Browser.IE ) {     
        subnavHover();
    //}
});