
/*****************************************************************************
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 futura = { src: '/path/to/futura.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(futura);

// 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>.

// Variable that creates text 
var dinBold = {
	    src: '/assets/shared/flash/dinBold.swf'
};
var dinMedium = {
	    src: '/assets/shared/flash/dinMedium.swf'
};
var metaSerifPro = {
	    src: '/assets/shared/flash/metaSerifPro.swf'
};
var metaSerifProItallic = {
	    src: '/assets/shared/flash/metaSerifProItallic.swf'
};

// Activates text
sIFR.activate(dinBold);
sIFR.activate(dinMedium);
sIFR.activate(metaSerifProItallic);

// Replaces default text with sIFR text
//ERROR404
sIFR.replace(dinBold, {
		selector: '#error404 h1',
		css: ['.sIFR-root {color:#eb7023;}'],
		wmode:'transparent'
});
sIFR.replace(dinMedium, {
		selector: '#textWrapper h1',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
//UNSUBSCRIBE
sIFR.replace(dinBold, {
		selector: '#unsubscribeMastheadTitleWrapper h1',
		css: ['.sIFR-root {color:#eb7023;}'],
		wmode:'transparent'
});
//HOMEPAGE
sIFR.replace(dinBold, {
		selector: '#homepage h2',
		css: ['.sIFR-root {color:#ddd9cf;}'],
		wmode:'transparent'
});
sIFR.replace(dinMedium, {
		selector: '#topBar .schoolPhoneNumberOnline',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
sIFR.replace(dinMedium, {
		selector: '#topBar .schoolPhoneNumberCampus',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent'
});
//PROGRAMS
sIFR.replace(dinBold, {
		selector: '.campusProgramsContent h2',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '#programs_careers .pageOpener, #programs_careers .gradProfile .gradName',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
/*sIFR.replace(metaSerifProItallic, {
		selector: '#aof1_li span, #aof2_li span, #aof3_li span, #aof4_li span, #aof5_li span, #aof6_li span',
		css: ['.sIFR-root {color:#4d4b39; cursor:pointer; font-size:13px; letter-spacing: 1; leading: -6px;}',
        'a {color:#4d4b39; text-decoration: none; }',
		'a:hover {color:#e85b1f; }'],
		wmode:'transparent',
		fixFocus: 'true'
});
sIFR.replace(metaSerifProItallic, {
		selector: '#aof1_li, #aof2_li, #aof3_li, #aof4_li, #aof5_li, #aof6_li',
		css: ['.sIFR-root {color:#4d4b39; cursor:pointer; font-size:14px; margin-left:7px; }',
        'a {color:#4d4b39; text-decoration: none; }',
		'a:hover {color:#e85b1f; }'],
		wmode:'transparent',
		fixFocus: 'true', 
		fitExactly: false
});*/
//LAUNCHBOX
sIFR.replace(dinBold, {
		selector: '.launchbox h2',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
//FALCULTY
sIFR.replace(dinBold, {
		selector: '#programs_degreeFaculty .profileHeader h3',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent',
		tuneHeight:'-5'
});
// MASTHEAD
sIFR.replace(dinMedium, {
		selector: 'h1.mastheadTitle',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent', tuneHeight:'-2'
});
//ADMISSIONS
sIFR.replace(metaSerifProItallic, {
		selector: '#industry h3, #salary h3, #employers h3',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent'
});
sIFR.replace(metaSerifProItallic, {
		selector: '#advantageCampus h3, #downloadReport h3',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
sIFR.replace(dinMedium, {
		selector: '#salary h4',
		css: ['.sIFR-root {color:#d2edf4;}'],
		wmode:'transparent',
		tuneHeight:'2'
});
sIFR.replace(dinMedium, {
		selector: '#advantageCampus h4, #downloadReport h4',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent',
		tuneHeight:'2'
});
sIFR.replace(dinBold, {
		selector: '.housing h2',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent',
		tuneHeight:'2'
});
sIFR.replace(dinBold, {
		selector: '#contactInfo h2, #emailLinks h4',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent',
		tuneHeight:'-6'
});
sIFR.replace(dinBold, {
		selector: '#admissions h2.clear, .overview1 h2, .financialAid1 h2, .financialAid2 h2, .tuition h2, .housing h2, #admissions h3.col340_PL', 
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '#admissions h2', 
		css: ['.sIFR-root {color:#4d4b39;}',
		'.nextTourDate {color:#e85b1f;}'],
		wmode:'transparent'
});
sIFR.replace(dinMedium, {
		selector: '#tuitionBreakdown .tutionSifr',
		css: ['.sIFR-root {color:#79786a; font-size:12px;}'],
		wmode:'transparent',
		tuneHeight: '-6'
});
sIFR.replace(dinBold, {
		selector: '#tuitionBreakdown .degreeType td',
		css: ['.sIFR-root {color:#ffffff; font-size:14px;}'],
		wmode:'transparent',
		tuneHeight:'-2'
		
});
sIFR.replace(dinBold, {
		selector: '#admissions h3.scholarshipHeadline',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent',
		tuneHeight:'-6'
});
//CAMPUS
sIFR.replace(dinBold, {
		selector: '#ourCampus_campusExplorer .pageOpener, #ourCampus_greenPolicy .pageOpener, #ourCampus_aboutWinterPark .pageOpener ',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
//ABOUT FULL SAIL
sIFR.replace(metaSerifProItallic, {
		selector: '#ourCulture h3, #gradSuccess h3, #sifrGreen',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
sIFR.replace(metaSerifProItallic, {
		selector: '#history h3, #creativeSpaces h3, #entertainmentConnection h3, #innovativeEducation h3, #careerFocused h3',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '#history h4, #ourCulture h4, #entertainmentConnection h4, #gradSuccess h4 ',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '#innovativeEducation h4, #creativeSpaces h4 ',
		css: ['.sIFR-root {color:#e7c368;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '#careerFocused h4 ',
		css: ['.sIFR-root {color:#a9dae1;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '.pressKitContainer h4, #pressRoomMain .releaseList h4',
		css: ['.sIFR-root {color:#4d4b39; cursor:pointer; font-size:16px;}',
        'a {color:#4d4b39; text-decoration: none; }',
		'a:hover {color:#e85b1f; }'],
		wmode:'transparent',
		fixFocus: 'true'
});
sIFR.replace(dinBold, {
		selector: '.pressKitOverview h3, #pressRoomMain .releaseOutline h2, #about_ourStory .opener',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
//YOUR CAREER
sIFR.replace(dinBold, {
		selector: '#pathfinder h2, #alumniNetwork h2, #careerDevelopment1 h2',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '.graduateProfile .graduateTop .gradName',
		css: ['.sIFR-root {color:#4d4b39; font-size:16px;}'],
		wmode:'transparent',
		forceSingleLine: true
});
//NEWS Full Sail in the News Article Headers
sIFR.replace(dinBold, {
		selector: '#article h1',
		css: ['.sIFR-root {color:#4d4b39; leading: -3;}'],
		wmode:'transparent',
		fitExactly: false
});
sIFR.replace(dinBold, {
		selector: '#news2_leftCol_Header .articleLink_txt_lg h4.title',
		css: ['.sIFR-root {color:#4d4b39; cursor:pointer; font-size:16px; leading: -3;}',
        'a {color:#4d4b39; text-decoration: none; }',
		'a:hover {color:#e85b1f; }'],
		wmode:'transparent',
		fixFocus: 'true'
});
//NEWS top stories/grad stories 
sIFR.replace(dinBold, {
		selector: '#news2_leftCol h4.title, .articleLink_txt_lg h4 ',
		css: [
		'.sIFR-root {color:#4d4b39; cursor:pointer; font-size:16px; width:578px; leading: -3;}',
        'a {color:#4d4b39; text-decoration: none; }',
		'a:hover {color:#e85b1f; }'],
		wmode:'transparent',
		fixFocus: 'true'
});
//ARTIST RELATIONS
sIFR.replace(dinBold, {
		selector: '.artistRelations .content980 .col660 h1',
		css: ['.sIFR-root {color:#4d4b39; leading: -3;}'],
		wmode:'transparent'
});
//MASTER PAGES
sIFR.replace(dinMedium, {
		selector: '.boxTitle',
		css: ['.sIFR-root {color:#ffffff; cursor:pointer; text-transform:uppercase;}'],
		wmode:'transparent',
		tuneHeight:'-5', fixFocus: 'true'
});
//SEARCH
sIFR.replace(dinBold, {
		selector: '#searchResultsMain h4',
		css: [
		'.sIFR-root {color:#4d4b39; cursor:pointer; font-size:16px; width:578px;}',
        'a {color:#4d4b39; text-decoration: none; }',
		'a:hover {color:#e85b1f; }'],
		wmode:'transparent',
		fixFocus: 'true'
});
sIFR.replace(dinMedium, {
		selector: '#searchResultsMain .searchResultsSubTitles',
		css: ['.sIFR-root {color:#79786a;}'],
		wmode:'transparent'
});
//HALL OF FAME
function eventMediaSIFR() {
	sIFR.replace(dinBold, {
		selector: '.itemDetails h3 ',
		css: ['.sIFR-root {color:#dad6cc; leading: -4;}'],
		wmode:'transparent',
		fitExactly: false
	});
	sIFR.replace(dinBold, {
		selector: '.inductees .inducteeMedia .inducteeInfo h3',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent'
	});
}
function exhibitSIFR() {
	sIFR.replace(dinBold, {
		selector: '.exhibitItemDetailContainer h3, .lightboxExhibitItemDescription h3 ',
		css: ['.sIFR-root {font-size: 16px; leading: -4; color:#dad6cc }'],
		wmode:'transparent',
		fitExactly: false,
		tuneHeight:'-6'
		
	});
}
function inducteesPageSIFR() {
	sIFR.replace(dinBold, {
		selector: '.profileContent h3, .profileContent h4, .lightboxWithSideNav .content h3, .lightboxWithSideNav .content h4',
		css: ['.sIFR-root {color:#e85b1f; text-transform: uppercase;}'],
		wmode:'transparent'
	});
	sIFR.replace(metaSerifPro, {
		selector: '.pullQuote p',
		css: ['.sIFR-root {color:#4d4b39; font-size: 18px; leading: -8;}'],
		wmode:'transparent'
	});
}
sIFR.replace(dinBold, {
		selector: '.bodyContent .classContent h1',
		css: ['.sIFR-root {color:#4d4b39;}'],
		wmode:'transparent'
});
sIFR.replace(metaSerifPro, {
		selector: '.col340 .pageOpenerHOF',
		css: ['.sIFR-root {color:#4d4b39; leading: -8;}'],
		wmode:'transparent'
});
sIFR.replace(metaSerifProItallic, {
		selector: '.openingParagraph',
		css: ['.sIFR-root {color:#4d4b39; leading: -8;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '#exhibitTopWrapper2009 #exhibitItemDetailContainer2009 #exhibitItemDescription2009 h3',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent'
});
sIFR.replace(dinBold, {
		selector: '.inductees .inducteeMedia .inducteeInfo h3',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent'
});
//LIGHTBOX
function lightboxSIFR() {
	sIFR.replace(dinBold, {
		selector: '.articleLightbox #article h1',
		css: ['.sIFR-root {color:#4d4b39; leading: -3;}'],
		wmode:'transparent',
		fitExactly: false
	});
}
//CAROUSEL
function newsCarouselSIFR() {
	sIFR.replace(dinBold, {
		selector: '.carousel span h2',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent'
	});
}
function smallCarouselSIFR() {
	sIFR.replace(dinBold, {
		selector: '#creativeSpacesCarousel .lrgImgTitle',
		css: ['.sIFR-root {color:#ffffff;}'],
		wmode:'transparent'
	});
	sIFR.replace(dinBold, {
		selector: '#gradSuccessCarousel .gradName',
		css: ['.sIFR-root {color:#e85b1f;}'],
		wmode:'transparent'
	});
}



