/*****************************************************************************
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 cghollandseminar = { src: '/assets/sifr3/fonts/cghollandseminar.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(cghollandseminar);

// 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>.


//sIFR.replace(gothamlight, {
//  selector: '#learn_more div.title',
//  wmode: 'transparent',
//  tuneHeight: '-14',
//  offsetTop: '-9',
//  css: '.sIFR-root {color: #4c4c45; letter-spacing: -2.3;}',
//  selectable: true
//});

//
//sIFR.replace(gothamlight, {
//  selector: '#learn_more div.text',
//  wmode: 'transparent',
//  tuneHeight: '-14',
//  offsetTop: '-9',
//  css: '.sIFR-root {color: #ffffff;} div {color: #4c4c45; font-weight: bold;}',
//  selectable: true
//});

sIFR.replace(cghollandseminar, {selector: 'h1.resort', wmode: 'transparent', offsetTop: '-5', css: '.sIFR-root {width: 575px; color: #FFFFFF; font-weight: normal; font-size: 30px; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'h1.default', wmode: 'transparent', offsetTop: '-5', css: '.sIFR-root {leading: -10; width: 575px; color: #4d4336; font-weight: normal; font-size: 30px; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'h2.category span', wmode: 'transparent', css: '.sIFR-root {color: #4d4336; font-weight: normal; font-size: 20px; cursor: pointer; outline:none;}', selectable: true});
//sIFR.replace(cghollandseminar, {selector: 'h2.child', wmode: 'transparent', css: '.sIFR-root {width: 449px; color: #90866D; font-weight: normal; font-size: 20px; cursor: pointer; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'h2.child a', wmode: 'transparent', forceSingleLine: true, css: '.sIFR-root {width: 449px; color: #90866D; font-weight: normal; font-size: 20px; cursor: pointer; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'h2.child_blog a', wmode: 'transparent', css: '.sIFR-root {float: left; width: 535px; color: #90866D; font-weight: normal; font-size: 20px; cursor: pointer; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'h3.tariff_title', wmode: 'transparent', css: '.sIFR-root {color: #71664e; font-weight: normal; font-size: 18px;  cursor: pointer; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'div.tests_row h3', wmode: 'transparent', css: '.sIFR-root {color: #4d4336; font-weight: normal; font-size: 18px; width: 449px; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'span.day', wmode: 'transparent', offsetTop: '-2', css: '.sIFR-root {color: #71664e; font-size: 16px; cursor: pointer; line-height: 43px; outline:none;}', selectable: true, onRelease: function(fi) {ExposeDay(fi.getAncestor())}});
sIFR.replace(cghollandseminar, {selector: 'span.as_times', wmode: 'transparent', offsetTop: '-5', css: '.sIFR-root {color: #71664e; font-size: 16px; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'div.as_side_title_abbr', wmode: 'transparent', offsetTop: '-5', css: '.sIFR-root {color: #71664e; font-size: 16px; outline:none;}', selectable: true, onRelease: function(fi) {$('#Abbreviations').slideToggle() }});
sIFR.replace(cghollandseminar, {selector: 'div.as_side_title_info', wmode: 'transparent', offsetTop: '-5', css: '.sIFR-root {color: #71664e; font-size: 16px; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'div.label', wmode: 'transparent', css: '.sIFR-root {color: #544B3E; font-size: 18px; outline:none;}', selectable: true});

//sIFR.replace(cghollandseminar, {selector: '#sidenav ul li', wmode: 'transparent', fitExactly: true, forceSingleLine: true,
//  css: {'.sIFR-root' : {'width' : '120px','list-style' : 'none','margin' : '0','padding' : '0',},
//  	'a' : {'width': '120px', 'height': '30px', 'margin':'0', 'padding':'0', 'color': '#918C76', 'cursor': 'pointer', 'outline':'none', 'text-decoration' : 'none', 'font-size': '14px'},
//    'a:hover' : { 'color' : '#4d4336' , 'text-decoration' : 'none'},
//    
//	//'span.page' : { 'float' : 'left', 'display': 'inline', 'width': '120px', 'color': '#918C76', 'cursor': 'pointer', 'outline':'none'}
//    
//	}
//});




sIFR.replace(cghollandseminar, {
  selector: '#sidenav ul li span.sub',
  wmode: 'transparent',
  css: {'.sIFR-root' : {'color' : '#4d4336','font-size' : '16px','float':'left','display':'inline','width': '120px'},
  	'a' : {'float':'left','display':'inline','width': '120px','height': '20px','color':'#4d4336','text-decoration':'none'},
    'a:hover' : {'color' : '#4D4336','text-decoration':'underline'}
    }
});

sIFR.replace(cghollandseminar, {
  selector: '#sidenav ul li ul li span.page',
  wmode: 'transparent',
  css: {'.sIFR-root' : {'color' : '#4D4336','font-size' : '14px','float':'right','display':'inline','width': '100px'},
  	'a' : {'float':'right','display':'inline','width': '100px','height': '20px','color':'#4D4336','text-decoration':'none','border-bottom':'1px solid #4D4336'},
    'a:hover' : {'color' : '#4d4336','text-decoration':'underline'}
    }
	
});


//http://stackoverflow.com/questions/738568/sifring-li-parents-only
//http://discuss.joyent.com/viewtopic.php?id=24249

//sIFR.replace(cghollandseminar, {selector: '#sidenav ul li a span.sub', wmode: 'transparent', offsetTop: '5', css: '.sIFR-root {float: left; display: inline; width: 120px; color: #918C76; font-size: 14px; cursor: pointer; outline:none;}', selectable: true});
//sIFR.replace(cghollandseminar, {selector: '#sidenav ul li a span.page', wmode: 'transparent', offsetTop: '5', css: '.sIFR-root {float: left; display: inline; width: 120px; color: #918C76; font-size: 14px; cursor: pointer; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'h2.price_list', wmode: 'transparent', offsetTop: '-2', css: '.sIFR-root {height: 20px; color: #90866D; font-weight: normal; font-size: 18px; cursor: pointer; outline:none;}', selectable: true});
sIFR.replace(cghollandseminar, {selector: 'h3.price_list', wmode: 'transparent', css: '.sIFR-root {color: #90866D; font-weight: normal; font-size: 16px; cursor: pointer; outline:none;}', selectable: true});


