(function() {
var load = function(url, callback){
if(document.getElementById('evp3-assets')) {
// Let's wait till it's loaded
var i = setInterval(function() {
if(typeof EVP3 == 'undefined') return;
clearInterval(i);
callback();
}, 5);
return;
}
var script = document.createElement('script');
script.id = 'evp3-assets';
script.type = 'text/javascript';
if(script.readyState){
script.onreadystatechange = function() {
if(script.readyState == 'loaded' || script.readyState == 'complete') {
script.onreadystatechange = null;
callback();
}
};
} else {
script.onload = function() { callback(); };
}
script.src = url;
document.getElementsByTagName('head')[0].appendChild(script);
};
var createCSSSelector = function(selector, style) {
try {
var sheet = document.createElement('style');
sheet.type = 'text/css';
sheet.innerHTML = selector+'{'+style+'}';
(document.head || document.getElementsByTagName('head')[0]).appendChild(sheet);
} catch(e) {}
};
createCSSSelector('[data-role="evp-video"] .fluid-width-video-wrapper, [data-role="evp-playlist"] .fluid-width-video-wrapper, [data-role="evp-splittest"] .fluid-width-video-wrapper', 'padding: 0 !important; width: auto !important; position: static !important;');
load('http://evs-hosted-150f621b6d0ef9.s3.amazonaws.com/player/assets.js?v=1.4', function() {
(function($) {
EVP3.players.extend('EVP3.plugins.effectiveness', {
'init': function(evp, file, plugin, file_options) {
this.evp = evp;
this.plugin = plugin;
this.file = file;
this.file_options = file_options;
this.fn_list = [];
var klass = this;
this.maximum = 10;
this.recordingActive = ($.cookie('evp_prog_'+klass.file.active_file_ref) !== 'true');
if(this.recordingActive) {
// Now, are we using a playlist? If so, we need to implement this for all videos in a list
if(this.file.playlist) {
this.file.player.api.onPlaylistItem(function(d) {
var idx = d.index;
var entry = klass.file.playlist[idx];
if(!entry || parseInt(entry.raw_duration) <= 0) return false;
klass.detach();
klass.calculate(parseInt(entry.raw_duration));
klass.attach();
});
} else {
this.evp.addEvent('onMetaData', function() {
klass.calculate();
klass.attach();
});
}
}
},
'calculate': function(duration) {
var duration = Math.ceil(duration || this.file.metadata.duration);
if(duration < 10) return; // We won't track videos less than 10 seconds because it gets stupid
var interval = (duration / this.maximum); // Let's fire a maximum of X intervals, so when should they happen?
this.interval = interval;
this.duration = duration;
},
'attach': function() {
var klass = this;
var counter = 1;
var hasCookied = false;
for(x = this.interval; x < this.duration; x+=this.interval) {
var fn = function(current_time) {
if(!hasCookied) { // Only set the cookie that we have played this file the one time
var exp = new Date();
exp.setHours(exp.getHours() + 4500);
$.cookie('evp_prog_'+klass.file.active_file_ref, 'true', {'expires': exp, 'path': '/'});
hasCookied = true;
}
klass.evp.track('progress', {'uuid': EVP3.settings.uuid, 'time': counter, 'player_time': current_time});
counter++;
};
var obj = {'time': x, 'callback': fn};
klass.fn_list.push(obj);
klass.evp.file.player.onCuepoint(x, fn);
}
var fired = [];
klass.evp.file.player.addEvent('play', function() {
if(fired.indexOf('start') !== -1) return;
klass.evp.track('progress', {'uuid': EVP3.settings.uuid, 'time': 0, 'player_time': 0});
fired.push('start');
});
klass.evp.file.player.addEvent('complete', function() {
if(fired.indexOf('complete') !== -1) return;
klass.evp.track('progress', {'uuid': EVP3.settings.uuid, 'time': 10, 'player_time': klass.duration});
fired.push('complete');
});
},
'detach': function() {
var klass = this;
$.each(klass.fn_list, function(idx, obj) {
klass.evp.file.player.removeCuepoint(obj.time, obj.callback);
});
}
});EVP3.players.extend('EVP3.plugins.mouseover-facebook', {
'init': function(evp, file, plugin, file_options) {
this.evp = evp;
this.plugin = plugin;
this.file = file;
this.file_options = file_options;
var klass = this;
setTimeout(function() {
klass.build();
}, 500);
},
'build': function() {
var klass = this;
var x_offset = 10;
var y_offset = 0;
var isAudio = !!(this.file.config.type == 'audio' && this.file.options.related_image_mode !== 'splash');
var video_wrapper = $('#'+this.evp.container_id+'-video_wrapper');
if(EVP.helpers.isHTML5() && this.file.config.prettySource != 'youtube') video_wrapper = $('#'+this.evp.container_id+'-video');
var element = $('
Share this video
');
element.css({
'float': 'left',
'background': 'url('+EVP3.settings.location+'/player/plugins/mouseover-facebook/facebook.png?v=1) no-repeat 5px 5px #121212',
'width': 38,
'height': 32,
'padding': '5px 5px 0 5px',
'border-radius': '4px',
'border': '1px solid #6E6E6E',
'color': '#fff',
'font-size': '15px',
'font-family': 'Arial,Helvetica,sans-serif',
'line-height': '30px',
'text-indent': '45px',
'text-align': 'left',
'direction': 'ltr',
'overflow': 'hidden',
'opacity': 0,
'position': 'absolute',
'top': x_offset,
'left': 10,
'z-index': 10,
'cursor': 'pointer'
});
if(isAudio) {
var bar_height = (this.file.player.bar_element ? parseInt($(this.file.player.bar_element).height()) : 0);
element.css({
'top': ($(video_wrapper).height() + 10 + bar_height),
'left': y_offset
});
}
video_wrapper.hover(function() {
$(element).fadeTo(250, 1);
}, function() {
$(element).fadeTo(250, 0);
});
if(!$.browser.msie && !isAudio) {
element.hover(function() {
$(element).css('z-index', 11);
$(element).stop(true, true).animate({'width': '155px', 'opacity': 1});
}, function() {
$(element).css('z-index', 10);
$(element).stop(true, true).animate({'width': '38px', 'opacity': 1});
});
}
element.click(function() {
klass.event();
return false;
});
element.appendTo(video_wrapper);
},
'event': function() {
var url = 'http://www.facebook.com/sharer.php?';
var str = $.param({
'u': window.location.href,
't': document.title,
'redirect_uri': ''
});
if($.browser.msie) {
var w = window.open(url+str);
} else {
var w = window.open(url+str, 'evp-mousefacebook-window', 'width=720,height=370,status=1,toolbar=1');
}
}
});
EVP3.players.extend('EVP3.plugins.mouseover-twitter', {
'init': function(evp, file, plugin, file_options) {
this.evp = evp;
this.plugin = plugin;
this.file = file;
this.file_options = file_options;
var klass = this;
setTimeout(function() {
klass.build();
}, 500);
},
'build': function() {
var klass = this;
var x_offset = 10;
var y_offset = 0; // Only used with audio files
if(this.evp.container_element.find('#evp-plugin-mouseover-facebook').length >= 1) {
x_offset += 45;
y_offset += 55;
}
var isAudio = !!(this.file.config.type == 'audio' && this.file.options.related_image_mode !== 'splash');
var video_wrapper = $('#'+this.evp.container_id+'-video_wrapper');
if(EVP.helpers.isHTML5() && this.file.config.prettySource != 'youtube') video_wrapper = $('#'+this.evp.container_id+'-video');
var element = $('');
element.css({
'float': 'left',
'background': 'url('+EVP3.settings.location+'/player/plugins/mouseover-twitter/twitter.png?v=1) no-repeat 5px 5px #121212',
'width': 38,
'height': 32,
'padding': '5px 5px 0 5px',
'border-radius': '4px',
'border': '1px solid #6E6E6E',
'color': '#fff',
'font-size': '15px',
'font-family': 'Arial,Helvetica,sans-serif',
'line-height': '30px',
'text-indent': '45px',
'text-align': 'left',
'direction': 'ltr',
'overflow': 'hidden',
'opacity': 0,
'position': 'absolute',
'top': x_offset,
'left': 10,
'z-index': 10,
'cursor': 'pointer'
});
if(isAudio) {
var bar_height = (this.file.player.bar_element ? parseInt($(this.file.player.bar_element).height()) : 0);
element.css({
'top': ($(video_wrapper).height() + 10 + bar_height),
'left': y_offset
});
}
video_wrapper.hover(function() {
$(element).fadeTo(250, 1);
}, function() {
$(element).fadeTo(250, 0);
});
if(!$.browser.msie && !isAudio) {
element.hover(function() {
$(element).css('z-index', 11);
$(element).stop(true, true).animate({'width': '155px', 'opacity': 1});
}, function() {
$(element).css('z-index', 10);
$(element).stop(true, true).animate({'width': '38px', 'opacity': 1});
});
}
element.click(function() {
klass.event();
return false;
});
element.appendTo(video_wrapper);
},
'event': function() {
var url = 'https://twitter.com/share?';
var str = $.param({
'url': window.location.href,
'text': document.title
});
if($.browser.msie) {
var w = window.open(url+str);
} else {
var w = window.open(url+str, 'evp-mousetwitter-window', 'width=720,height=370,status=1,toolbar=1');
}
}
});
EVP3.players.extend('EVP3.plugins.mouseover-googleplus', {
'init': function(evp, file, plugin, file_options) {
this.evp = evp;
this.plugin = plugin;
this.file = file;
this.file_options = file_options;
var klass = this;
setTimeout(function() {
klass.build();
}, 500);
},
'build': function() {
var klass = this;
var x_offset = 10;
var y_offset = 0;
if(this.evp.container_element.find('#evp-plugin-mouseover-facebook').length >= 1) {
x_offset += 45;
y_offset += 55;
}
if(this.evp.container_element.find('#evp-plugin-mouseover-twitter').length >= 1) {
x_offset += 45;
y_offset += 55;
}
var isAudio = !!(this.file.config.type == 'audio' && this.file.options.related_image_mode !== 'splash');
var video_wrapper = $('#'+this.evp.container_id+'-video_wrapper');
if(EVP.helpers.isHTML5() && this.file.config.prettySource != 'youtube') video_wrapper = $('#'+this.evp.container_id+'-video');
var element = $('Share this video
');
element.css({
'float': 'left',
'background': 'url('+EVP3.settings.location+'/player/plugins/mouseover-googleplus/googleplus.png?v=2) no-repeat 5px 5px #121212',
'width': 38,
'height': 32,
'padding': '5px 5px 0 5px',
'border-radius': '4px',
'border': '1px solid #6E6E6E',
'color': '#fff',
'font-size': '15px',
'font-family': 'Arial,Helvetica,sans-serif',
'line-height': '30px',
'text-indent': '45px',
'text-align': 'left',
'direction': 'ltr',
'overflow': 'hidden',
'opacity': 0,
'position': 'absolute',
'top': x_offset,
'left': 10,
'z-index': 10,
'cursor': 'pointer'
});
if(isAudio) {
var bar_height = (this.file.player.bar_element ? parseInt($(this.file.player.bar_element).height()) : 0);
element.css({
'top': ($(video_wrapper).height() + 10 + bar_height),
'left': y_offset
});
}
video_wrapper.hover(function() {
$(element).fadeTo(250, 1);
}, function() {
$(element).fadeTo(250, 0);
});
if(!$.browser.msie && !isAudio) {
element.hover(function() {
$(element).css('z-index', 11);
$(element).stop(true, true).animate({'width': '155px', 'opacity': 1});
}, function() {
$(element).css('z-index', 10);
$(element).stop(true, true).animate({'width': '38px', 'opacity': 1});
});
}
element.click(function() {
klass.event();
return false;
});
element.appendTo(video_wrapper);
},
'event': function() {
var url = 'https://plus.google.com/share?';
var str = $.param({
'url': window.location.href
});
if($.browser.msie) {
var w = window.open(url+str);
} else {
var w = window.open(url+str, 'evp-mousegoogle-window', 'width=720,height=370,status=1,toolbar=1');
}
}
});
})(EVP3.query);
EVP3.files['QWR1bHRzLVNhbGVzLTEubXA0'] = {"options":{"auto_buffer":true,"auto_play":true,"bar_style":"none","bar_style_custom":"#000000","cookied_auto_play":false,"frame":"no-frame","height":"338","mouseover-facebook":true,"mouseover-googleplus":true,"mouseover-twitter":true,"overlay-entrance":"css3-fadeInDown","password_protect_background":"#000000","pause_focus_lost":true,"player_entrance":"css3-pulse","player_lightsout":false,"related_image":"http:\/\/evs-hosted-150f621b6d0ef9.s3.amazonaws.com\/adults-sales-1-adults sale.png","related_image_mode":"lightbox","related_image_play":true,"shadow":"no-shadow","skin":"minima","skin_data":{"skin_height":"26","skin_audio_preview_extra":"18","chapter_bottom":"50","chapter_left":"39","chapter_right":"39"},"splash_height":"131","splash_width":"200","use_delayedstart":false,"use_passwordprotect":false,"use_reflection":false,"watermark":"http:\/\/evs-hosted-150f621b6d0ef9.s3.amazonaws.com\/adults-teaser-Watermarksmall.png","watermark_enabled":true,"watermark_height":"30","watermark_position":"top-right","watermark_width":"100","width":"600","skin_height":"26"},"events":{"My Event 1":{"data":{"event-height":"338px","event-mode":"internal","event-point":"end","event-type":"pro","event-width":"600px","overlay-background-colour":"#292929","overlay-entrance":"css3-fadeInDown","overlay-opaque":true,"overlay-position":"full","overlay-remove-after":false,"overlay-translucent":true,"overlay-trigger-pause":false,"widgets":{"2":{"body":"\n