var do_sIFR = {
	init: function() {
		this.scala = {
		  src: '../flash/Scala.swf',
			ratios: [6,1.24,7,1.21,8,1.18,9,1.16,10,1.15,11,1.13,12,1.12,13,1.11,14,1.1,15,1.1,16,1.09,17,1.09,18,1.08,19,1.08,20,1.07,21,1.07,22,1.07,23,1.06,24,1.06,25,1.06,26,1.06,27,1.05,28,1.05,29,1.05,30,1.05,31,1.05,32,1.05,33,1.04,34,1.04,35,1.04,36,1.04,37,1.04,38,1.04,39,1.04,40,1.04,41,1.04,42,1.03,43,1.03,44,1.03,45,1.03,46,1.03,47,1.03,48,1.03,49,1.03,50,1.03,51,1.03,52,1.03,53,1.03,54,1.03,55,1.03,56,1.03,57,1.03,58,1.03,59,1.02,60,1.02,61,1.02,62,1.02,63,1.02,64,1.02,65,1.02,66,1.02,67,1.02,68,1.02,69,1.02,70,1.02,71,1.02,72,1.02,73,1.02,74,1.02,75,1.02,76,1.02,77,1.02,78,1.02,79,1.02,80,1.02,81,1.02,82,1.02,83,1.02,84,1.02,85,1.02,86,1.02,87,1.02,88,1.02,89,1.02,90,1.02,91,1.02,92,1.02,93,1.02,94,1.02,95,1.02,96,1.02,97,1.02,98,1.01,99,1.01,100,1.01,101,1.01,102,1.01,103,1.01,104,1.01,105,1.01,106,1.01,107,1.01,108,1.01,109,1.01,110,1.01,111,1.01,112,1.01,113,1.01,114,1.01,115,1.01,116,1.01,117,1.01,118,1.01,119,1.01,120,1.01,121,1.01,122,1.01,123,1.01,124,1.01,1.01]
		};
		this.aauxlight = {
		  src: '../flash/Aaux-Light.swf',
		  ratios: [6,1.41,7,1.35,8,1.32,9,1.29,10,1.28,11,1.27,12,1.29,13,1.27,14,1.25,15,1.24,16,1.24,17,1.23,18,1.25,19,1.23,20,1.23,21,1.22,22,1.22,23,1.21,24,1.23,25,1.22,26,1.21,27,1.21,28,1.21,29,1.2,30,1.22,31,1.21,32,1.2,33,1.2,34,1.2,35,1.2,36,1.21,37,1.2,38,1.2,39,1.19,40,1.19,41,1.19,42,1.2,43,1.2,44,1.19,45,1.19,46,1.19,47,1.19,48,1.2,49,1.19,50,1.19,51,1.19,52,1.19,53,1.19,54,1.19,55,1.19,56,1.19,57,1.19,58,1.19,59,1.19,60,1.19,61,1.19,62,1.19,63,1.18,64,1.18,65,1.18,66,1.19,67,1.19,68,1.18,69,1.18,70,1.18,71,1.18,72,1.19,73,1.18,74,1.18,75,1.18,76,1.18,77,1.18,78,1.19,79,1.18,80,1.18,81,1.18,82,1.18,83,1.18,84,1.18,85,1.18,86,1.18,87,1.18,88,1.18,89,1.18,90,1.18,91,1.18,92,1.18,93,1.18,94,1.18,95,1.18,96,1.18,97,1.18,98,1.18,99,1.18,100,1.18,101,1.18,102,1.18,103,1.18,104,1.18,105,1.18,106,1.18,107,1.18,108,1.18,109,1.18,110,1.18,111,1.18,112,1.18,113,1.18,114,1.18,115,1.18,116,1.18,117,1.18,118,1.18,119,1.18,120,1.18,121,1.18,122,1.18,123,1.18,124,1.18,1.18]
		};
		sIFR.useStyleCheck = true;
		sIFR.activate(this.aauxlight, this.scala);
		this.replace();
	},
	replace: function() {
		sIFR.replace(this.aauxlight, {
	    selector: '.what-we-do #content h1',
			selectable: false,
			css: [ '.sIFR-root { background-color: #B6AD67; color: #E7E8D4; letter-spacing: .5; }' ]
	  });
		sIFR.replace(this.aauxlight, {
	    selector: '#content h1',
			selectable: false,
			css: [ '.sIFR-root { background-color: #B6AD67; color: #2D2D26; letter-spacing: .5; }' ]
	  });
		sIFR.replace(this.scala, {
	    selector: '#quote',
			selectable: false,
			css: [ '.sIFR-root { background-color: #B6AD67; leading: 8; color: #32322c; text-align: center; letter-spacing: .5; }' ]
	  });
	}
};
var IntroFlash = {
	init: function() {
		if(deconcept.SWFObjectUtil.getPlayerVersion().major > 0) {
			$('html').css('overflow', 'hidden');
			$('body').prepend('<div id="intro"></div>');
			$('#intro').css('display','block');
			$('#container').css("display","none");
			this.setupFlash();
		}
	},
	remove: function() {
		$('#intro').remove();
		$('html').css('overflow','auto');
		this.doIntroDone();
	},
	doIntroDone: function() {
		$("#container").fadeIn(1000);
	},
	setupFlash: function() {
		var so = new SWFObject( 'flash/intro.swf', 'main', '100%', '100%', '8', '#F0EFE4' );
		so.useExpressInstall('flash/expressinstall.swf');
		so.setAttribute('xiRedirectUrl', 'http://www.coraggiogroup.com/');
		so.addParam("allowScriptAccess","always");
		so.write( 'intro' );
	}
};
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        options = options || {};
        if (value === null) {
            value = '';
            options.expires = -1;
        }
        var expires = '';
        if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
            var date;
            if (typeof options.expires == 'number') {
                date = new Date();
                date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
            } else {
                date = options.expires;
            }
            expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
        }
        var path = options.path ? '; path=' + options.path : '';
        var domain = options.domain ? '; domain=' + options.domain : '';
        var secure = options.secure ? '; secure' : '';
        document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
    } else { // only name given, get cookie
        var cookieValue = null;
        if (document.cookie && document.cookie != '') {
            var cookies = document.cookie.split(';');
            for (var i = 0; i < cookies.length; i++) {
                var cookie = jQuery.trim(cookies[i]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};