                                
                                	//	Weak check for HTML5 support:
                                	if (navigator.geolocation == undefined) {
                                    
                                    	alert('Your browser may not support HTML5.\nPlease try again with a browser that supports HTML5.');
                                        
                                        BCM_VideoPlayer_v3 = {
                                        	open: function (a,b) {
                                            
                                            	alert('Your browser may not support HTML5.\nPlease upgrade your browser and try again.');
                                            
                                            }
                                        }
                                    
                                    } else {
									
                                        BCM_Config = {
                                            url:"https://eyeiq.net",
                                            pl:"2ca0b7231147bfdebf422cd4f9a2b108bdf6eeb4",
                                            pl_src:"https://eyeiq.net/hybrid/services/videoPlayer/v3/BCM_VideoPlayer_v3_Playlist.js.php?pl=",
                                            scaleToMobile: document.querySelector('meta[name="viewport"]') && screen.width < 750,
                                            video:null,
                                            loadMessage:function(elemID) {
                                        
                                                var d=document;
                                                var b = d.getElementsByTagName('body')[0];
                                                var message = d.createElement('div');
                                                message.innerHTML = 'Loading...';
                                                message.style.position = 'fixed';
                                                message.style.zIndex = '9998';
                                                message.style.fontFamily = 'helvetica';
                                                message.style.textAlign = 'center';
                                                message.style.top = window.innerHeight * .50 + "px";
                                                message.style.left = '50%';
                                                message.style.margin = '-20px 0px 0px -65px';
                                                message.style.color = '#000000';
                                                message.style.fontSize = '15px';
                                                message.style.background = '#FFFFFF';
                                                message.style.padding = '10px';
                                                message.style.borderBottom = '1px solid #000000';
                                                message.style.boxShadow = '1px 1px 3px #000000';
                                                message.id = elemID;
                                                b.appendChild(message);
                                            }
                                    
                                        }                   
                               
                               			BCM_Config.loadMessage("bcm_deploy_install_load_message");
                                        
                                        BCM_Import = {
	
	d:document, // Local reference to DOM
	
	//	Recursivley appends each file included in package by type:
	install:function (package, callback) {
	
		while (package.length > 0) {
		
			var file = package.pop();
			
			return this[file.type](file, function () {
				
				//	Callback to run after all files have been loaded:
				package.length > 0 
					? BCM_Import.install(package, callback) : callback 
					? callback() : null; // Returns null if no callback is given	
			});
				
		}
	},
	
	//	Attaches elem with attributes to body tag of page:
	append:function (elem, attributes, callback) {
	
		for (attribute in attributes) {
		
			elem[attribute] = attributes[attribute];
		
		}
	
		this.d.getElementsByTagName('body')[0].appendChild(elem); // Append elem to body element
		this.runCallback(elem,callback); // Run callback on element load
				
	},
	
	//	Checks if callback exists and if it does, run callback onload:
	runCallback:function (elem, callback) {
	
		if (elem) {
	
			elem.onload = function () {
	
				if (callback) callback(); 
			
			}
		
		} else {
		
				if (callback) callback(); 
		
		}
	
	},
	
	/**
	 *
	 *	Supported file types:
	 *
	 */

	//	Loads javascript file and runs callback on load (if one is provided):
	js:function(file, callback) {
		
		var options = {};
		options.src = file.url; // URL for script (REQUIRED)
		
			//	Sets options for loading script if any exist:
			if (file.options) {
				
				for (option in file.options) {
				
					options[option] = file.options[option];
				
				}
				
			}	
		
		this.append( this.d.createElement('script'), options, callback);
		
	},
	
	//	Appends css file to page:
	css: function (file, callback) {
			
		this.append(this.d.createElement("link"), {
			'rel':"stylesheet",
			'type':"text/css",
			'href':file.url
		}, callback);
		
	},
	
	//	checks if jquery exists, and if doesn't appends to page:
	jquery:function (file, callback) {
		
		!window.jQuery ? this.js(file, callback) : this.runCallback(null,callback);
		
	}

}//	Required files:
BCM_Import.install([
	{
		type:"css",
		url:BCM_Config.url + "/hybrid/services/videoPlayer/v3/BCM_VideoPlayer_v3.css"
	},
	{
		type:"jquery",
		url: BCM_Config.url + "/hybrid/services/jquery-1.11.1.min.js"
	},
	{
		type:"js",
		url: BCM_Config.url + "/hybrid/services/videoPlayer/v3/BCM_VideoPlayer_v3_View.js"
	},
	{
		type:"js",
		url: BCM_Config.url + "/hybrid/services/videoPlayer/v3/BCM_VideoPlayer_v3.js"
	}
], function () {	
	
	//	Start video after script load:
	BCM_deploy_install_timer = setInterval(function () {
		
		try {
			
			//	Ensures jQuery is available:
			if (jQuery) {
				
				//	Play video:
				BCM_VideoPlayer_v3.open(BCM_Config.pl, BCM_Config.video);
			
				//	Remove:
				jQuery("#BCM_deploy_install_js").remove();
				jQuery("#bcm_deploy_install_load_message").remove();
				
				if (BCM_Config.scaleToMobile) {
			
					BCM_Import.css({
						'url': BCM_Config.url +'/hybrid/services/videoPlayer/v3/BCM_VideoPlayer_v3_mobile.css.php?w=' + screen.width 
							+ '&h=' + screen.height + '&dpr=' + (window.devicePixelRatio || 1)  + '&isFixed=' +
							(navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? 1 : 0)
					});
			
				}
						
				//	Remove timer:
				clearInterval(BCM_deploy_install_timer);
				window.BCM_deploy_install_timer = null;
			
			}
			
		} catch (e) {

			//	Wating for files to load
		
		}
		
	}, 250);
	
	

});

                                	
                                    }
							   
