/*****************************************************************************
It is adviced to place the sIFR JavaScript calls in this file, keeping it
separate from the `sifr.js` file. That way, you can easily swap the `sifr.js`
file for a new version, while keeping the configuration.

You must load this file *after* loading `sifr.js`.

That said, you're of course free to merge the JavaScript files. Just make sure
the copyright statement in `sifr.js` is kept intact.
*****************************************************************************/
 var dinmittelschriftstd = {
  src: '/themes/pinewood/dinmittelschriftstd.swf'
};
    // You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
    //sIFR.useStyleCheck = true;
    sIFR.activate(dinmittelschriftstd);

    sIFR.replace(dinmittelschriftstd, {
      selector: '.Menu_P', wmode: 'transparent', css: [ '.sIFR-root {color: #002a19; font-size: 10pt; line-height: 1em;}' ], ratios: [9, 1.16, 16, 1.09, 25, 1.06, 31, 1.04, 32, 1.05, 37, 1.04, 38, 1.02, 41, 1.04, 49, 1.02, 58, 1.03, 97, 1.02, 1.01],offsetTop: 1
    });
	sIFR.replace(dinmittelschriftstd, {
      selector: '.Menu_A', wmode: 'transparent', css: [ '.sIFR-root {color: #002a19; font-size: 10pt;}' ], ratios: [9, 1.16, 16, 1.09, 25, 1.06, 31, 1.04, 32, 1.05, 37, 1.04, 38, 1.02, 41, 1.04, 49, 1.02, 58, 1.03, 97, 1.02, 1.01],offsetTop: 1
    });
	sIFR.replace(dinmittelschriftstd, {
      selector: '.PageTitle', wmode: 'transparent', css: [ '.sIFR-root {color: #f5821f; margin-top: 15px;}' ], ratios: [9, 1.16, 16, 1.09, 25, 1.06, 31, 1.04, 32, 1.05, 37, 1.04, 38, 1.02, 41, 1.04, 49, 1.02, 58, 1.03, 97, 1.02, 1.01],offsetTop: 1
    });
	sIFR.replace(dinmittelschriftstd, {
      selector: '.Test', css: [ '.sIFR-root {color: #f5821f;}' ], ratios: [9, 1.16, 16, 1.09, 25, 1.06, 31, 1.04, 32, 1.05, 37, 1.04, 38, 1.02, 41, 1.04, 49, 1.02, 58, 1.03, 97, 1.02, 1.01],offsetTop: 1
    });
	sIFR.replace(dinmittelschriftstd, {
      selector: '.menu-name-primary-links .expanded > a', wmode: 'transparent', selectable: true,  css: [ '.sIFR-root {color: #000000; text-transform:uppercase;cursor:pointer}' ], ratios: [9, 1.16, 16, 1.09, 25, 1.06, 31, 1.04, 32, 1.05, 37, 1.04, 38, 1.02, 41, 1.04, 49, 1.02, 58, 1.03, 97, 1.02, 1.01],offsetTop: 1,onRelease: function(fi) {liClick(fi.getAncestor());}
     }); 
		sIFR.replace(dinmittelschriftstd, {
      selector: '.menu-name-secondary-links ul li a', wmode: 'transparent', selectable: true,  css: [ '.sIFR-root {color: #000000; text-transform:uppercase}' ], ratios: [9, 1.16, 16, 1.09, 25, 1.06, 31, 1.04, 32, 1.05, 37, 1.04, 38, 1.02, 41, 1.04, 49, 1.02, 58, 1.03, 97, 1.02, 1.01],offsetTop: 1
     }); 
	
	/*, onRelease: function() { liClick(getAncestor());}*/
	
	function liClick(li) {
    var $li = $(li);
        //$a = $(li).find('a');
		//$
	//	var test = $li.attr("href");
//		alert(test);
		$li.parent().toggleClass('open').siblings().removeClass('open').end()
			.find('ul').slideToggle(400).end()
			.siblings('li').find('ul:visible').slideToggle(800);
    //$li points at a jQuery'd list item
    //$a points at the original anchor
}

	
	 /*sIFR.replace(dinmittelschriftstd, {
      selector: '.SubMenu_P', wmode: 'transparent', css: [ '.sIFR-root {color: #ffffff; font-weight:normal; line-height: 16px; width:100px;}' ], ratios: [9, 1.16, 16, 1.09, 25, 1.06, 31, 1.04, 32, 1.05, 37, 1.04, 38, 1.02, 41, 1.04, 49, 1.02, 58, 1.03, 97, 1.02, 1.01],offsetTop: 1,selectable: false

    });*/
	//sIFR.debug.ratios(dinmittelschriftstd,{ selector: 'h1' });
  