/* Add the collapsible container code */

 $(document).ready(function() {
        $(".collapsibleContainer").collapsiblePanel();
    });


var hasReqestedVersion = DetectFlashVer(6, 0, 0);

if (hasReqestedVersion) { // We have Flash, let's use SIFR

   var arno = {
		src: 'flash/Arno.swf'
		,ratios: [7, 1.32, 11, 1.31, 13, 1.24, 14, 1.25, 19, 1.23, 27, 1.2, 34, 1.19, 42, 1.18, 47, 1.17, 48, 1.18, 69, 1.17, 74, 1.16, 75, 1.17, 1.16]
		,wmode: 'transparent'
	};

	// You probably want to switch this on, but read <http://wiki.novemberborn.net/sifr3/DetectingCSSLoad> first.
	// sIFR.useStyleCheck = true;
	sIFR.activate(arno);

	sIFR.replace(arno, {
		selector: 'h1'
		,css: [
		  '.sIFR-root { color: #000000; font-weight: bold}',
		  '.sIFR-root a { color: #000000; text-decoration: none; }',
		  '.sIFR-root a:hover { color: #000000; text-decoration: none; }',  
		  '.sIFR-root a:visited { color: #000000; text-decoration: none; }'
		]
	});

	sIFR.replace(arno, {
		selector: 'h2'
		,css: {
		  '.sIFR-root': { 'color': '#666666' }
		}
	});

	sIFR.replace(arno, {
		selector: 'h3'
		,css: {
		  '.sIFR-root': { 'color': '#000000' }
		}
	});
	
	sIFR.replace(arno, {
		selector: 'h4'
		,css: {
		  '.sIFR-root': { 'color': '#AAAAAA' }
		}
	});

	sIFR.replace(arno, {
		selector: 'h5'
		,css: {
		  '.sIFR-root': { 'color': '#666666' }
		}
	});
	
	sIFR.replace(arno, {
		selector: 'h6'
		,css: {
		  '.sIFR-root': { 'color': '#666666' }
		}
	});
   
} else {  // flash is too old or we can't detect the plugin - fallback to Cufon

   Cufon.now();

}
