
if (typeof(_evpLoad) === "undefined") {
  var _evpAssetsLoaded = false;

  function _evpLoad(file, callback) {
	if (_evpAssetsLoaded === true) {
	  callback();
	  return;
	}
	function async_load() {
	  var s = document.createElement('script');
	  s.type = 'text/javascript';
	  s.async = true;
	  if(s.readyState) {
		s.onreadystatechange = function () {
		  if (s.readyState == "loaded" || s.readyState == "complete") {
			s.onreadystatechange = null;
			_evpAssetsLoaded = true;
			if(typeof onEvpAssetsReady == 'function') onEvpAssetsReady(EVPLib);
			callback();
		  }
		}
	  } else {
		s.onload = function () {
		  _evpAssetsLoaded = true;
		  if(typeof onEvpAssetsReady == 'function') onEvpAssetsReady(EVP22Lib);
		  callback();
		}
	  }
	  s.src = "http://www.cashcow-systems.net/evp/player/" + file;
	  document.getElementsByTagName('head')[0].appendChild(s);
	}
	if (window.attachEvent) window.attachEvent('onload', async_load);
	else if(window.addEventListener && !false) window.addEventListener('load', async_load, false);
	else async_load();
  }
}

if(_evpStorage === undefined) var _evpStorage = {};

_evpStorage[''] = {"embed_code":false,"affiliate_code":false,"reference_profile":false,"profile":false,"div_id":"evp-aa8abb1e311f5b158709ec943f091919","alternate_embed":false,"file_extension":null,"local_assets":"","button":false,"project_name":"EasyVideoPlayer 2","project_website":"http:\/\/www.easyvideoplayer.com","affiliate_url":"http:\/\/www.easyvideoplayer.com","commercial":true,"analytics":false,"analytics_tracker_id":null};
function _evpInit(id, options) {
  _evpLoad("assets.js.php?v=2.2", function() {
	_evp22Go(id, options);
  });
}

function _evpLightbox(id, options) {
  _evpLoad("assets.js-lb.php?v=2.2", function() {
	// Now load the CSS
	EVP22Lib('<link>', {
	  rel: 'stylesheet',
	  type: 'text/css',
	  href: 'http://www.cashcow-systems.net/evp/player/prettyPhoto-3.0.1/css/prettyPhoto.css'
	}).appendTo('head');
	// And proceed
	_evp22GoLightbox(id, options);
  });
}
