var ghoulish_fright = { 
	src: '/swf/ghoulish_fright.swf',
	transparent: true 
	};

// See also <http://wiki.novemberborn.net/sifr3/JavaScript+Configuration>.
// One setting you probably want to use is `sIFR.useStyleCheck`. Before you do that,
// read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad>.

sIFR.useStyleCheck = true;

// Next, activate sIFR:
sIFR.activate(ghoulish_fright);
//    sIFR.activate(futura, garamond, rockwell);
// Remember, there must be *only one* `sIFR.activate()`!

// Now we can do the replacements. You can do as many as you like, but just
// as an example, we'll replace all `<h1>` elements with the Futura movie.
// 
// The first argument to `sIFR.replace` is the `futura` object we created earlier.
// The second argument is another object, on which you can specify a number of
// parameters or "keyword arguemnts". For the full list, see "Keyword arguments"
// under `replace(kwargs, mergeKwargs)` at 
// <http://wiki.novemberborn.net/sifr3/JavaScript+Methods>.
// <http://wiki.novemberborn.net/sifr3/Styling>.
sIFR.replace(ghoulish_fright, {
  selector: 'h1'
  ,css: [
        '.sIFR-root { color: #FFFFFF; text-transform: uppercase; font-size:50px; }'
        ,'a { text-decoration: none; }'
        ,'a:link { color: #FFFFFF; }'
        ,'a:hover { color: #CCCCCC; }'
      ]
});

sIFR.replace(ghoulish_fright, {
  selector: 'h2'
  ,css: [
        '.sIFR-root { color: #EBE70C; text-transform: uppercase; font-size:35px; }'
		,'a { text-decoration: none; }'
        ,'a:link { color: #EBE70C; }'
        ,'a:hover { color: #FFFFFF; }'
      ]
});

sIFR.replace(ghoulish_fright, {
  selector: 'h3'
  ,css: [
        '.sIFR-root { color: #FFFFFF; text-transform: uppercase; font-size:25px; }'
		,'a { text-decoration: none; }'
        ,'a:link { color: #FFFFFF; }'
        ,'a:hover { color: #FFFFFF; }'
      ]
});

sIFR.replace(ghoulish_fright, {
  selector: 'h4'
  ,css: [
        '.sIFR-root { color: #EBE70C; text-transform: uppercase; font-size:25px; }'
		,'a { text-decoration: none; }'
        ,'a:link { color: #EBE70C; }'
        ,'a:hover { color: #FFFFFF; }'
      ]
}); 

//sIFR.replaceElement(named({sSelector:"body h1", sFlashSrc:"/swf/ghoulish_fright.swf", sColor:"#ffffff", sCase:"upper", sWmode:"transparent", sFlashVars:"textalign=left&offsetLeft=-2"}));
//sIFR.replaceElement(named({sSelector:"h2", sFlashSrc:"/swf/ghoulish_fright.swf", sColor:"#EBE70C", sCase:"upper", sWmode:"transparent", sFlashVars:"textalign=left&offsetTop=2&offsetLeft=0"}));    

