
/*
	Site:		PBX Prompts
	File:		sIFR Configuration
	Author:	Eric Shepherd
	Date:		August 2007
*/

var SMG = window.SMG || {};
if (typeof SMG.pbxprompts == 'undefined') SMG.pbxprompts = new Object();
if (typeof SMG.pbxprompts.fonts == 'undefined') SMG.pbxprompts.fonts = new Object();

		// are we on localhost?
SMG.rootPath = (window.location.toString().indexOf('smge') != -1) ? '/pbxprompts/includes/templates/template_pbxprompts/' : '/includes/templates/template_pbxprompts/';

		// are we on zeus for testing?
if (window.location.toString().match(/pbxprompts_v2/)) {
	SMG.rootPath = '/pbxprompts_v2/includes/templates/template_pbxprompts/'
}

		// Declare the variables for the swf movies
SMG.pbxprompts.fonts.georgia = {
	src : SMG.rootPath + 'swf/georgia-all.swf'
};

SMG.pbxprompts.fonts.swis = {
	src : SMG.rootPath + 'swf/swis721lightbt-all.swf'
};

		// DO NOT delete the function as it may be called 
		// from someplace else in the section
SMG.pbxprompts.fonts.sifr = function() {
			
			// We currently want to hide sIFR from IE all together
	if (sIFR.ua.ie) return false;
	
			// Activate sIFR
			// Note: without this line, sIFR will not run, which is good for localized sites
	sIFR.activate(
		//SMG.pbxprompts.fonts.georgia, 
		SMG.pbxprompts.fonts.swis
	);

			// Perform the replacements
			
	sIFR.replace(
		SMG.pbxprompts.fonts.swis, {
			selector : 'h2.replace-home',
			css      : '.sIFR-root { color: #ffffff; }',
			wmode    : 'transparent'
		}
	);

	sIFR.replace(
		SMG.pbxprompts.fonts.swis, {
			selector : 'h2.replace-inner',
			css      : '.sIFR-root { color: #444b51; }',
			wmode    : 'transparent'
		}
	);

	sIFR.replace(
		SMG.pbxprompts.fonts.swis, {
			selector : 'h1.replace-inner',
			css      : '.sIFR-root { color: #4a4a4a; }',
			wmode    : 'transparent'
		}
	);
	
}

		// Run the init function
SMG.pbxprompts.fonts.sifr();