//Initiating jQuery to work with Prototype;
//var $ = jQuery.noConflict(); located inside jquery-1.2.min.js file

$(document).ready(function() { onDocumentLoad(); });
$(window).load(function() { onWindowLoad(); });

//Global Variables

/*
 * Standard page loading functions for prototype / jQuery
 */
function onDocumentLoad(){

}

//Stuff put into this function doesnt run until the entire document is loaded flash and all
function onWindowLoad(){
	if( $("#mainContentRight").height() <= 400 ){
		$("#mainContentRight").height(400);
	}

	$('a.external').attr('target','_blank');
}


/*sIfr doesnt like being loaded by jQuery in IE so must be loaded on own outside */

var arnopro = {
	src: 'assets/templates/englishentertainment/flash/arnopro.swf',
	ratios: [8, 1.43, 11, 1.38, 16, 1.33, 23, 1.32, 24, 1.29, 28, 1.3, 36, 1.29, 41, 1.28, 44, 1.27, 45, 1.28, 69, 1.27, 76, 1.26, 77, 1.27, 1.26]
};

// sIFR.domains = ['novemberborn.net'] // Don't check for domains in this demo
sIFR.useStyleCheck = true;
sIFR.activate(arnopro);

sIFR.replace(arnopro, {
	selector: '#mainContentRight h1'
	,css: [
		'.sIFR-root { color: #FFB63D; line-height: 12px; font-weight: normal; font-size: 36px; font-style: italic; }'
	]
	,wmode: 'transparent'
});
