﻿// sIFR ///////////////////////////////////////////////
var lucida_grande = {src: '/domains/radian/assets/swf/lucidagrande.swf'};
var century_gothic = {src: '/domains/radian/assets/swf/century_gothic.swf'};

sIFR.activate(lucida_grande, century_gothic);
// #about #main h3,  #bc #main h3, #bc_our_team #main h3, #bc_process #main h3
/*
sIFR.replace(lucida_grande, {
	selector: '#main h3',
	css: [
		'.sIFR-root {font-weight: bold; color: #566d58; letter-spacing: 0.4;}'
	],
	tuneHeight: -5	
});


sIFR.replace(lucida_grande, {
	selector: '#fast_contact .first a',
	css: [
		'.sIFR-root {letter-spacing: -0.5; leading: -1; cursor: pointer;}'
	],
	tuneHeight: -5,
	wmode: 'transparent'
	
});


sIFR.replace(lucida_grande, {
	selector: '#fast_contact .sec a',
	css: [
		'.sIFR-root { leading: -2; cursor: pointer;}'
	],
	tuneHeight: -5,
	wmode: 'transparent'
	
});

sIFR.replace(lucida_grande, {
	selector: '#events .event h2',
	css: [
		'.sIFR-root {color: #96100b; font-size: 14px; letter-spacing: 0.4; font-weight: bold;}'
	],
	tuneHeight: -1,
	wmode: 'transparent'
	
});

sIFR.replace(lucida_grande, {
	selector: '#events_detail .event h2',
	css: [
		'.sIFR-root {color: #96100b; font-size: 14px;  font-weight: bold;}'
	],
	tuneHeight: -1,
	wmode: 'transparent'
	
});

sIFR.replace(lucida_grande, {
	selector: '#home #choose',
	css: [
		'.sIFR-root {color: #302b26; font-size: 14px;  font-weight: bold; text-align:center;}'
	],
	tuneHeight: -1,
	wmode: 'transparent'
	
});
*/

sIFR.replace(century_gothic, {
	selector: '#home #masthead span.title',
	css: [
		'.sIFR-root {margin-left: 4px; color: #ffffff; font-size: 24px; text-align:center;}'
	],
	wmode: 'transparent'
});

sIFR.replace(century_gothic, {
	selector: '#masthead span.title',
	css: [
		'.sIFR-root {margin-left: 0px; color: #ffffff; font-size: 20px; text-align:left;}'
	],
	wmode: 'transparent'
});

sIFR.replace(century_gothic, {
	selector: '#masthead span.subtitle',
	css: [
		'.sIFR-root {margin-left: 0px; color: #e6e3c3; font-size: 15px; text-align:left;}'
	],
	wmode: 'transparent'
});
/*
sIFR.replace(century_gothic, {
	selector: '#right h2.sifr',
	css: [
		'.sIFR-root { color: #5b695c;}'
	],
	//tuneHeight: -5,
	wmode: 'transparent'
	
});
*/
sIFR.replace(century_gothic, {
	selector: '.event .day_month',
	css: [
		'.sIFR-root {margin-left: 4px; color: #ffffff; font-size: 12px; font-weight: bold; text-align:center;}'
	],
	tuneHeight: -7,
	offsetTop: -2,
	wmode: 'transparent'
	
});

sIFR.replace(century_gothic, {
	selector: '.event .year',
	css: [
		'.sIFR-root {margin-left: 5px; color: #ffffff; font-size: 12px;  text-align:center;}'
	],
	tuneHeight: -7,
	offsetTop: -2,
	wmode: 'transparent'
	
});

sIFR.replace(century_gothic, {
	selector: '.event .howto',
	css: [
		'.sIFR-root {font-size: 14px; font-weight: bold; color: #566d58;}'
	],
	wmode: 'transparent'
});
sIFR.replace(century_gothic, {
	selector: '.event .planing',
	css: [
		'.sIFR-root {font-size: 14px; font-weight: bold; color: #aea973;}'
	],
	wmode: 'transparent'
});
/*
sIFR.replace(century_gothic, {
	selector: '#box_testimony p.author',
	css: [
		'.sIFR-root {font-size: 12px; font-weight: bold; color: #566d58; text-align:center;}'
	],
	wmode: 'transparent'
});
*/

jQuery(document).ready(function()
{
	// Finds all main LI's and puts an empty UL as a child
	// so superfish can treat them as having a submenu too	
	jQuery('#navigation .main>li:not(:has(ul))').each(function(i, el){
		jQuery(el).append('<ul><li><li></ul>');
	});
	
	// Submenu //////////////////////////////////////////////////////////
	jQuery('#navigation .main>li.current').css({backgroundPosition: '0px 48px'}); // IE 6
	jQuery('#navigation ul').superfish({
		pathClass: 'current',
		autoArrows: false,
		dropShadows: false,
		onBeforeShow: function()
		{
			this.prev().css({backgroundPosition: '0px 48px'});
		},
		onHide: function()
		{
			this.prev().css({backgroundPosition: '0px 0px'});
		}
	});
});