var BlockheadBlackFace = { src: '/creo_files/fonts/BlockheadBlackFace.swf' };
var BlockheadDarkSide = { src: '/creo_files/fonts/BlockheadDarkSide.swf' };

// Now you can set some configuration settings.
// 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(BlockheadBlackFace,BlockheadDarkSide);

// If you want, you can use multiple movies, like so:
//
//    var futura = { src: '/path/to/futura.swf' };
//    var garamond = { src '/path/to/garamond.swf' };
//    var rockwell = { src: '/path/to/rockwell.swf' };
//    
//    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>.
// 
// The first argument you see here is `selector`, which is a normal CSS selector.
// That means you can also do things like '#content h1' or 'h1.title'.
//
// The second argument determines what the Flash text looks like. The main text
// is styled via the `.sIFR-root` class. Here we've specified `background-color`
// of the entire Flash movie to be a light grey, and the `color` of the text to
// be red. Read more about styling at <http://wiki.novemberborn.net/sifr3/Styling>.

var colourArray = new Array();
colourArray[0] = "E31A22";
colourArray[1] = "EF3655";
colourArray[2] = "BD2A27";
colourArray[3] = "F36D20";
colourArray[4] = "EEAD11";
colourArray[5] = "FAA855";

var randColour = colourArray[Math.floor(Math.random() * colourArray.length)];


sIFR.replace(BlockheadBlackFace, {
  selector: '.sifr_title_bBlack',
  transparent : true ,
  css: '.sIFR-root { background-color: #FFFFFF; color: #'+randColour+'; }'
});
sIFR.replace(BlockheadDarkSide, {
  selector: '.sifr_title_bDark',
  transparent : true ,
  css: '.sIFR-root { background-color: #FFFFFF; color: #'+randColour+'; }'
});


sIFR.replace(BlockheadBlackFace, {
  selector: '.it_red',
  transparent : true ,
  css: '.sIFR-root a { color: #EF3655; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});
sIFR.replace(BlockheadBlackFace, {
  selector: '.it_green',
  transparent : true ,
  css: '.sIFR-root a { color: #B5C95F; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});
sIFR.replace(BlockheadBlackFace, {
  selector: '.it_blue',
  transparent : true ,
  css: '.sIFR-root a { color: #00AEEF; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});
sIFR.replace(BlockheadBlackFace, {
  selector: '.it_yellow',
  transparent : true ,
  css: '.sIFR-root a { color: #EEAD11; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});
sIFR.replace(BlockheadBlackFace, {
  selector: '.it_orange',
  transparent : true ,
  css: '.sIFR-root a { color: #F4762A; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});
sIFR.replace(BlockheadBlackFace, {
  selector: '.it_pink',
  transparent : true ,
  css: '.sIFR-root a { color: #C14E9D; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});
sIFR.replace(BlockheadBlackFace, {
  selector: '.it_dark_green',
  transparent : true ,
  css: '.sIFR-root a { color: #009366; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});
sIFR.replace(BlockheadBlackFace, {
  selector: '.it_turquoise',
  transparent : true ,
  css: '.sIFR-root a { color: #53C5CD; text-decoration:none; cursor:pointer; padding:0; } .sIFR-root a:hover { color:#336699; }'
});