/* Video Player Object */
// instantiate object namespace
if( typeof(SNI.FDOOR)=='undefined' ) {
	SNI.FDOOR = {};
}

// instantiate object namespace
if( typeof(SNI.FDOOR.Player)=='undefined' ) {
	SNI.FDOOR.Player = {};
}



// NOTE: Before moving to production please remember to comment out dev config links and un-comment production ones
SNI.FDOOR.Player.Configs = {
	FullSize : {
		dimensions : {
			width:'576',
			height:'638'
		},
		flashvars : {
			config:"http://www.frontdoor.com/includes/xml/snap/configs/frontdoor-player-fullsize.xml",            //PRODUCTION
			//config:"http://reimages1.gabriels.net/scrippsrealestate/snap/configs/frontdoor-player-fullsize.xml",    //DEV
			channel:'',									// initial channel id to load
			channelurl:'',								// initial channel feed url to load
			videoid:''									// initial video id of channel to play
		},
		params : {
			menu:"false",
			scale:"noscale",
			allowFullScreen:"true",
			allowScriptAccess:"always",
			wmode:"transparent"
		}
	},

	FullSizeNoPlaylist : {
		dimensions : {
			width:'576',
			height:'460'
		},
		flashvars : {
			config:"http://www.frontdoor.com/includes/XML/snap/configs/frontdoor-player-fullsize-noplaylist.xml",         //PRODUCTION
		//	config:"http://reimages1.gabriels.net/scrippsrealestate/snap/configs/frontdoor-player-fullsize-noplaylist.xml", //DEV
			channel:'',									// initial channel id to load
			channelurl:'',								// initial channel feed url to load
			videoid:''									// initial video id of channel to play
		},
		params : {
			menu:"false",
			scale:"noscale",
			allowFullScreen:"true",						// this is a flash thing and should be set to true
			allowScriptAccess:"always",					// we want to leave this at true
			wmode:"transparent"
		}
	},
	
	RightRail : {
		dimensions : {
			width:'320',
			height:'360'
		},
		flashvars : {
			config:"http://www.frontdoor.com/includes/XML/snap/configs/frontdoor-player-rightrail.xml",           //PRODUCTION
			//config:"http://reimages1.gabriels.net/scrippsrealestate/snap/configs/frontdoor-player-rightrail.xml",   //DEV
			channel:'',									// initial channel id to load
			channelurl:'',								// initial channel feed url to load
			videoid:''									// initial video id of channel to play
		},
		params : {
			menu:"false",
			scale:"noscale",
			allowFullScreen:"true",						// this is a flash thing and should be set to true
			allowScriptAccess:"always",					// we want to leave this at true
			wmode:"transparent"
		}
	},
	
	RightRailNoPlaylist : {
		dimensions : {
			width:'320',
			height:'263'
		},
		flashvars : {
			config:"http://www.frontdoor.com/includes/XML/snap/configs/frontdoor-player-rightrail-noplaylist.xml",            //PRODUCTION
			//config:"http://reimages1.gabriels.net/scrippsrealestate/snap/configs/frontdoor-player-rightrail-noplaylist.xml",    //DEV
			channel:'',									// initial channel id to load
			channelurl:'',								// initial channel feed url to load
			videoid:''									// initial video id of channel to play
		},
		params : {
			menu:"false",
			scale:"noscale",
			allowFullScreen:"true",						// this is a flash thing and should be set to true
			allowScriptAccess:"always",					// we want to leave this at true
			wmode:"transparent"
		}
	}
};




// full size version of player
SNI.FDOOR.Player.FullSize = function(divId, channelId, videoId) {
	return new SNI.Player.SNAP(divId, SNI.FDOOR.Player.Configs.FullSize, channelId, videoId);
};
SNI.FDOOR.Player.VideoLibrary = SNI.FDOOR.Player.FullSize;				// alias


// full size version of player (no playlist)
SNI.FDOOR.Player.FullSizeNoPlaylist = function(divId, channelId, videoId) {
	return new SNI.Player.SNAP(divId, SNI.FDOOR.Player.Configs.FullSizeNoPlaylist, channelId, videoId);
};
SNI.FDOOR.Player.VideoAsset = SNI.FDOOR.Player.FullSizeNoPlaylist;		// alias


// right rail version of player
SNI.FDOOR.Player.RightRail = function(divId, channelId, videoId) {
	return new SNI.Player.SNAP(divId, SNI.FDOOR.Player.Configs.RightRail, channelId, videoId);
};


// right rail version of player (no playlist)
SNI.FDOOR.Player.RightRailNoPlaylist = function(divId, channelId, videoId) {
	return new SNI.Player.SNAP(divId, SNI.FDOOR.Player.Configs.RightRailNoPlaylist, channelId, videoId);
};
// aliasing function MavenAd because the video player is looking for VideoAd()
// VideoAd = MavenAd;
