/**
 * LBI.data
 * @version 1.0
 * @author LBi - http://www.lbi.com/en
 * @requires jQuery Core 1.4.2 - http://www.jquery.com/
 * @requires jQuery UI 1.7.2 - http://ui.jquery.com/
*/
/*jslint bitwise: true, eqeqeq: true, passfail: false, nomen: true, plusplus: false, undef: true, evil: true */
/*global window, document, navigator, $, jQuery, */

var LBI = window.LBI || {};
/**
 * @namespace Common re-used functionality.
 */
LBI.data = {
	videoWidth : 640,
	extSrcExt : ".js",
	videoPath : "/wp-content/themes/bt_vision_v1_0/temp/videos/",
	flashPlayer01 : "/wp-content/themes/bt_vision_v1_0/assets/flash/BTVideoPlayer_01.swf",

	flashExt : ".swf",
	//menuSections : ["packages", "phone", "bb", "vision"],
	flashType : {
		large : {
			height : 480,
			width : 640
		},
		small : {
			height : 360,
			width : 640
		},		
		tiny : {
			height : 240,
			width : 400,
			addAsClass : true
		},
		inPageFlashAnim : {
			height : 280,
			width :  620
		},		
		homeBanner : {
			height : 310,
			width :  500
		},
		visionHub : {
			height : 270,
			width :  480
		},
		trailer : {
			height : 360,
			width :  640
		}
	},
	videoOptions : {
		params : {allowScriptAccess : "sameDomain"},
		attributes : null
	},
	pageVideoOptions : {
		params : {allowScriptAccess : "sameDomain", wmode: "transparent", allowFullScreen: "true"},
		attributes : null
	},
	pageSWFOptions : {
		params : {allowScriptAccess : "sameDomain", wmode: "transparent"},
		attributes : null
	},
	flashDimensions: {
		Reviews: {
			height: "91",
			width: "250",
			params: {
				wmode: "Transparent"
			}
		},
		Preview: {
			height: "168",
			width: "300",
			params: {
				wmode: "Transparent"
			}
		},
		ball: {
			height: "310",
			width: "940"
		}
	},
	pngsToIgnore: {
		list: [],
		add: function(elmIgnore){
			this.list.push(elmIgnore);
		},
		check: function(elmToCheck){
			var noMatches = 0;
			for (var a = 0, b = this.list.length; a < b; a++) {
				if (this.list[a] === elmToCheck) {
					noMatches = noMatches + 1;
				} 				
			}
			if (noMatches === 0) {
				return false;
			} else {
				return true;
			}
		}
	},
	fireOnEvent : {
		overview : {
			on : function(){
				LBI.Custom.PEList.PE_sequencer.instLib[0].freezeAnim();
			},
			off : function() {
				LBI.Custom.PEList.PE_sequencer.instLib[0].restartAnim();
			}
		}
	}
}