/*****************************************************************************
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.
*****************************************************************************/

// Make an object pointing to the location of the Flash movie on your web server.
// Try using the font name as the variable name, makes it easy to remember which
// object you're using. As an example in this file, we'll use Futura.
var monotype = { src: 'fonts/Monotype_Corsiva.swf' };
var bienetresocial = { src: 'fonts/bienetresocial.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(monotype, bienetresocial);

// 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>.


/* >>>>>>>>>>>>>>>>>  HOME <<<<<<<<<<<<<<<<<<<<<<<<<<*/
sIFR.replace(monotype, {
	selector: '.header', wmode: 'transparent', forceSingleLine:true,
	css: '.sIFR-root {color:#910b45; font-size:37px; text-align:center; leading:-10; border:0; outline:none; padding:0; margin:0; }'
});

sIFR.replace(bienetresocial, {
	selector: 'p', wmode: 'transparent',
	css: '.sIFR-root {color:#c71d66; font-size:13px; text-align:center; border:0; outline:none; padding:0; margin:0;}'
});

sIFR.replace(bienetresocial, {
	selector: '.hLink', wmode: 'transparent', fixHover:true,
	css: [
		'.sIFR-root { color:#c36a5c; text-align:center; font-size:11px; leading:-2; }'
		,'a:link {color:#c36a5c; text-align:center; text-decoration:underline; }'
		,'a:visited {color:#c36a5c; text-align:center; text-decoration:underline; }'
		,'a:active {color:#a70c4f; text-align:center; text-decoration:underline; }'
		,'a:hover { color:#a70c4f; text-align:center; text-decoration:none; }'
	]
});


/* >>>>>>>>>>>>>>>>>  PACKAGES <<<<<<<<<<<<<<<<<<<<<<<<<<*/

sIFR.replace(monotype, {
	selector: '.packageHeader', wmode: 'transparent',
	css: '.sIFR-root {color:#c71d66; font-size:27px; border:0; outline:none; padding:0; margin:0;  }'
});

sIFR.replace(bienetresocial, {
	selector: '.sectionHeader', wmode: 'transparent', ratios:[6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18], preserveSingleWhitespace: true,
	css: '.sIFR-root {color:#b4695b; font-size:12px; text-align:left; vertical-align:middle; border:0; outline:none; padding:0; margin-left:2px; }'
});

sIFR.replace(monotype, {
	selector: '.packageNumbers', wmode: 'transparent',
	css: '.sIFR-root {color:#da6f9a; font-size:24px; line-height:24px; text-align:right; vertical-align:middle; border:0; outline:none; padding:0; margin:0; }'
});

sIFR.replace(bienetresocial, {
	selector: '.pbullet', wmode: 'transparent', forceSingleLine:true, ratios:[6, 1.41, 9, 1.35, 16, 1.28, 17, 1.23, 18, 1.25, 28, 1.23, 29, 1.2, 34, 1.22, 35, 1.2, 36, 1.21, 48, 1.2, 78, 1.19, 82, 1.18, 83, 1.19, 1.18], preserveSingleWhitespace: true,
	css: '.sIFR-root {color:#d18173; font-size:10px; text-align:left; vertical-align:middle; border:0; outline:none; padding:0; margin:0;  }'
});

sIFR.replace(monotype, {
	selector: '.packageLink', wmode: 'transparent', ratios:[8, 1.3, 11, 1.22, 12, 1.2, 18, 1.19, 21, 1.15, 22, 1.16, 23, 1.15, 33, 1.14, 36, 1.13, 56, 1.12, 95, 1.11, 97, 1.1, 100, 1.11, 108, 1.1, 109, 1.11, 1.1], fixHover:true,
	css: [
		'.sIFR-root { color: #cf3c7b; text-align: left ; font-size: 16px; }'
		,'a:link { color: #cf3c7b; text-decoration: underline; }'
		,'a:visited { color: #cf3c7b; text-decoration: underline; }'
		,'a:active { color: #ef519f; text-decoration: none; }'
		,'a:hover { color: #ef519f; text-decoration: none; }'
	]
});

/* >>>>>>>>>>>>>>>>>  OFFERS <<<<<<<<<<<<<<<<<<<<<<<<<<*/

sIFR.replace(monotype, {
	selector: '.offerLink', wmode: 'transparent', forceSingleLine:true, fixHover:true,
	css: [
		'.sIFR-root { color:#c71d66; text-align:left; vertical-align:middle; font-size:32px; }'
		,'a:link {color:#c71d66; text-decoration:underline; }'
		,'a:visited {color:#c71d66; text-decoration:underline; }'	
		,'a:active {color:#ef519f; text-decoration:none; }'
		,'a:hover { color:#ef519f; text-decoration:none; }'
	]
});

/* >>>>>>>>>>>>>>>>>  TESTIMONIALS <<<<<<<<<<<<<<<<<<<<<<<<<<*/

sIFR.replace(monotype, {
	selector: 'h3', wmode: 'transparent', 
	css: '.sIFR-root {color:#c71d66; font-size:27px; text-align:left; border:0; outline:none; padding:0; margin:0; }'
});

/* >>>>>>>>>>>>>>>>>  CONTACT <<<<<<<<<<<<<<<<<<<<<<<<<<*/

sIFR.replace(bienetresocial, {
	selector: '.address1', wmode: 'transparent',
	css: '.sIFR-root {color:#da4585; font-size:18px; text-align:center; border:0; outline:none;	}'
});

sIFR.replace(bienetresocial, {
	selector: '.address2', wmode: 'transparent', 
	css: '.sIFR-root { font-size:13px; color:#cd8b7f; text-align:center; border: 0; outline:none; }'
});

sIFR.replace(bienetresocial, {
	selector: '.viewMap', wmode: 'transparent', fixHover:true,
	css: [
		'.sIFR-root { font-size:11px; color:#cd8b7f; text-align:center; border: 0; outline:none; }'
		,'a:link {color:#cd8b7f; text-decoration:underline; }'
		,'a:visited {color:#cd8b7f; text-decoration:underline; }'	
		,'a:active {color:#ee499b; text-decoration:none; }'
		,'a:hover { color:#ee499b; text-decoration:none; }'
	]
});

sIFR.replace(bienetresocial, {
	selector: '.external-link', wmode: 'transparent', fixHover:true,
	css: [
		'.sIFR-root { font-size:11px; color:#cd8b7f; text-align:center; border: 0; outline:none; }'
		,'a:link {color:#ee499b; text-decoration:underline; }'
		,'a:visited {color:#ee499b; text-decoration:underline; }'	
		,'a:active {color:#cd8b7f; text-decoration:none; }'
		,'a:hover { color:#cd8b7f; text-decoration:none; }'
	]
});


sIFR.replace(bienetresocial, {
	selector: '.contactHeadline', wmode: 'transparent', preserveSingleWhitespace:true, 
	css: '.sIFR-root {color: #c71d66; font-size:13px; text-align:left; border: 0; outline:none; }'
});

sIFR.replace(monotype, {
	selector: '.headerLight', wmode: 'transparent', forceSingleLine:true, preserveSingleWhitespace:true,
	css: '.sIFR-root {color:#c71d66; font-size:27px; text-align:left; border:0; outline:none; }'
});

sIFR.replace(monotype, {
	selector: '.headerDark', wmode: 'transparent', preserveSingleWhitespace:true, forceSingleLine:true,  
	css: '.sIFR-root {color:#910b45; font-size:27px; text-align:left; border:0; outline:none; }'
});

/* >>>>>>>>>>>>>>>>>  message sent / error <<<<<<<<<<<<<<<<<<<<<<<<<<*/

sIFR.replace(monotype, {
	selector: 'h4', wmode: 'transparent',
	css: '.sIFR-root {color:#910b45; font-size:27px; text-align:center; border:0; outline:none; padding:0; margin:0; }'
});

/*>>>>>>>>>>>>>>>>>>>>>>>>>>>  site map <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<*/

sIFR.replace(monotype, {
	selector: '.sitemap', wmode: 'transparent', forceSingleLine:true, ratios:[8, 1.3, 11, 1.22, 12, 1.2, 18, 1.19, 21, 1.15, 22, 1.16, 23, 1.15, 33, 1.14, 36, 1.13, 56, 1.12, 95, 1.11, 97, 1.1, 100, 1.11, 108, 1.1, 109, 1.11, 1.1], fixHover:true,
	css: [
		'.sIFR-root { color:#d14781; text-align:left; font-size:17px; leading:5; }'
		,'a:link { 	color:#d14781; text-decoration:none; }'
		,'a:visited { color:#d14781; text-decoration:none; }'	
		,'a:active { color:#ef519f; text-decoration:underline; }'
		,'a:hover { color:#ef519f; text-decoration:underline; }'
	]
});


sIFR.replace(monotype, {
	selector: '.smheader', wmode: 'transparent', forceSingleLine:true, ratios:[8, 1.3, 11, 1.22, 12, 1.2, 18, 1.19, 21, 1.15, 22, 1.16, 23, 1.15, 33, 1.14, 36, 1.13, 56, 1.12, 95, 1.11, 97, 1.1, 100, 1.11, 108, 1.1, 109, 1.11, 1.1], preserveSingleWhitespace:false,
	css: '.sIFR-root { color:#910b45; font-size:27px; text-align:center; leading:-10; border:0; outline:none; padding:0; margin:0; }'
});