/* ###############################
	* DEFINE GLOBAL VARIABLES
	* SETUP TRACKING
	* DEFINE BASE DOMAIN (I.E. where the files are located)
############################### */

var dataObj = new Object(); //create data object

dataObj.mamboID = 123456; //define mambo id

var baseDomain = 'http://strut.imambo.com/';



/* ###############################
	* INIT LOADING
############################### */
$(document).ready(function(){
	/* 1. load the strut player */
	$.getScript(baseDomain +'core-js/strutplayer.js', loadSwfObject);
});


function loadSwfObject() {
	/* 2. load the swfobject */
	$.getScript(baseDomain +'core-js/swfobject/swfobject.js', loadStats);
}

function loadStats() {
	/* 3. load the stats */
	$.getScript(baseDomain +'core-js/TrackStats.js', setupPlayer);
}

function setupPlayer() {
	/* 4. setup the player */
	
	/* ###############################
		* INITALIZE THE PLAYER 	
	############################### */


	$("#strutContainer").strutVideo({
		baseDomain: baseDomain,
		client: "newswire/",
		width: 500,
		height: 400,
    	position: "fixed", /* absolute */
    	alignVert: {margin:"bottom", amount: 0},
    	alignHor: {margin:"right", amount: 0}
    });
};


