/*****************************************************************************
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 century = { src: 'http://microsites.syndacast.com/allseasonslegian/wp-content/themes/allseasons/fonts/centurygothic.swf' };
var centuryb = { src: 'http://microsites.syndacast.com/allseasonslegian/wp-content/themes/allseasons/fonts/centurygothic-bold.swf' };

sIFR.activate(century, centuryb);

sIFR.replace(century, {
  selector: '#logo h1',
  forceSingleLine: true,
  wmode: 'transparent',
  forceWidth: true,
  css: [ '.sIFR-root {color:#ffffff; text-align: center; forceWidth: true}' ]
});

sIFR.replace(century, {
  selector: '#content h1',
  wmode: 'transparent',
  forceSingleLine: true,
  css: [ '.sIFR-root {color:#022a5c;, fitExactly: true}' ]
});

sIFR.replace(century, {
  selector: '#after_post_box h3',
  wmode: 'transparent',
  css: [ '.sIFR-root {color:#ffffff;}',
		 'a { text-decoration: none; }',
		 'a:link { color: #ffffff; }',
		 'a:hover { color: #ffffff; }' ]
});

sIFR.replace(century, {
  selector: 'li.booking h3',
  wmode: 'transparent',
  forceSingleLine: true,
  css: [ '.sIFR-root {color:#022a5c;text-align: center;}' ]
});

sIFR.replace(century, {
  selector: 'li.booking p',
  wmode: 'transparent',
  forceSingleLine: true,
  css: [ '.sIFR-root {text-align: center;}',
		 'a { text-decoration: none; }',
		 'a:link { color: #ff0000; }',
		 'a:hover { color: #ffffff; }'
 ]
});

sIFR.replace(century, {
  selector: 'li.booking label',
  wmode: 'transparent',
  forceSingleLine: true,
  css: [ '.sIFR-root {color:#022a5c;, fitExactly: true}' ]
});

sIFR.replace(century, {
  selector: '#tagline',
  css: [ '.sIFR-root {background-color:#d3d3bb;color: #0e0a25;text-align: center;}' ]
});

sIFR.replace(century, {
  selector: '.widget h2',
  wmode: 'transparent',
  css: [ '.sIFR-root {background-color:#ebead6;color: #8b0e04;}' ]
});

sIFR.replace(century, {
  selector: '#menu ul li div div',
  wmode: 'transparent',
  forceSingleLine: true,
  forceWidth: true,
  css: [ '.sIFR-root {color:#ffffff;text-align: center; forceSingleLine: true;',
		 'a { text-decoration: none; }',
		 'a:link { color: #ffffff; text-decoration:none; }',
		 'a:hover { color: #ffffff; }'
 ]
});
sIFR.replace(century, {
  selector: '#topmenu ul li div div',
  wmode: 'transparent',
  forceSingleLine: true,
  css: [ '.sIFR-root {color:#ffffff;text-align: center; forceSingleLine: true; forceWidth: true',
		 'a { text-decoration: none; }',
		 'a:link { color: #ffffff; text-decoration:none; }',
		 'a:hover { color: #ffffff; }'
 ]
});

sIFR.replace(century, {
  selector: '.entry h3',
  wmode: 'transparent',
  forceSingleLine: true,
  forceWidth: true,
  fitExactly: true,
  css: [ '.sIFR-root {color:#999999;forceWidth: true, fitExactly: true',
		 'a { text-decoration: none; }',
		 'a:link { color: #999999; text-decoration:none; }',
		 'a:hover { color: #999999; }'
 ]
});
sIFR.replace(century, {
  selector: 'ul.submenu li',
  wmode: 'transparent',
  forceWidth: true,
  css: [ '.sIFR-root {color:#d3a9b5;direction: rtl; text-align: right; forceWidth: true',
		 'a { text-decoration: none; }',
		 'a:link { color: #d3a9b5; text-decoration:none; }',
		 'a:hover { color: #a5cb02; text-decoration:none; }'
 ]
});
sIFR.replace(century, {
  selector: '#before_content_box ul li',
  wmode: 'transparent',
  forceSingleLine: true,
  forceWidth: true,
  fitExactly: true,
  css: [ '.sIFR-root {text-align: left;cursor:pointer;cursor:hand;forceWidth: true, fitExactly: true,}',
		 'a { text-decoration: none; }',
		 'a:link { color: #8b0e04;text-decoration: none;}',
		 'a:hover { color: #ffffff;background-color:#ff0000; }'
 ]
});

$(function () {
	$("#before_content_box > ul > li").hover( function () {
		$(this).addClass('hover');
	}, function () {
		$(this).removeClass('hover');
		/*
		if (window.attachEvent) // IE
			setTimeout("subMenuDeActive();", 1000);
		else
			subMenuDeActive();
		*/
	});
});

