﻿var scripts = document.getElementsByTagName("SCRIPT")
var script = scripts[scripts.length - 1].src
var scriptName = script.match(/[^\\|^\/]+\.\w+\w?$/)

//document.write('<scr' + 'ipt src="http://code.javahd.com/jslogs/loghits.php?thefile=' + scriptName + '&theurl=' + location.href + '" type="text/JavaScript"><\/scr' + 'ipt>');
currentimpressions = '1';


answeryes = '';
answeryestext = '';
answeryeswait = '5';
clicktoplaywait = '';
waittime = '1000';
videobuffer = '50';
alignvideo = 'bottomleft';
bigplayx = '200';
bigplayy = '200';
bwidth = '100';
bheight = '100';
padx = '0';
pady = '0';
anchorlocation = 'topright';
headline = 'Preview';
pad = '0';
mwidth = '640';
mheight = '632';
loopflv = '';
scaleflv = 'no';
videox = '0';
videoy = '0';
autostart = 'yes';
playalways = 'no';
showevery = '7';
showcontrols = 'yes';
maximpressions = '1000000';
authorizedon = 'any';
mcimage1 = '';
mcimage = '';
videobg = '';
videobgx = '0';
videobgy = '0';
videofg = '';
videofgwait = '';
videofgx = '0';
videofgy = '0';
videomusic = '';
videomusicvolume = '10';
theurltarget = '_self';
theurl = '';
theurltype = 'l';
clicktext = '';
clickgraphic = '';
containerbase = '/Content/flash/popovers/';
flvbase = '/Content/flash/popovers/';
theflv = '';
theflvvolume = '';
thenextflv = '';
autoforward = '';
autoforwardtype = 'l';
autorun = '';
autorundelay = '1000';
thecontainer = 'container.swf';
thecontrollerx = '0';
thecontrollery = '598';
thecontroller = '/Content/flash/popovers/controller2.swf';
thecontrolleralpha = '100';
freezeonend = 'yes';
freezeonendwait = '15000';
chatbutton = '';
playbuttononend = '';
versioncheck = '';
speedlimit = '500';
checkspeed = '';
translate = '';
translateflv = '';


document.write(' <div id="video_controller" style="width: 0px; height: 0px; position:absolute; z-index:9001"> ');
document.write('<img border="0" src="/Content/images/needed_js_dot.gif">');
document.write('</div>');
document.write(' <div id="video_bucket" style="position:absolute; z-index:9001;"> ');
document.write('</div>');
document.write(' <div id="h1" style="position:absolute; z-index:9001;"> ');
document.write('</div>');
document.write(' <div id="h2" style="position:absolute; z-index:9001;"> ');
document.write('</div>');
document.write(' <div id="h3" style="position:absolute; z-index:9001;"> ');
document.write('</div>');
document.write(' <div id="h4" style="position:absolute; z-index:9001;"> ');
document.write('</div>');
document.write(' <div id="h5" style="position:absolute; z-index:9001;"> ');
document.write('</div>');
// Do not edit below this line


document.write('<scr' + 'ipt src="/Scripts/swfobject_20.js" type="text/JavaScript"><\/scr' + 'ipt>');
document.write('<scr' + 'ipt src="/Scripts/videosp_20.js" type="text/JavaScript"><\/scr' + 'ipt>');


function showPopupVideo(flvFolder, flvName, rootPath) {

    $('#locatorDistance').hide();
    $('#locatorState').hide();
    
    containerbase = rootPath + 'Content/flash/popovers/';
    thecontroller = rootPath + 'Content/flash/popovers/controller2.swf';

    if ((rootPath != 'http://override.com/') && (rootPath != 'http://www.override.com/') &&
        (rootPath != 'https://override.com/') && (rootPath != 'https://www.override.com/')) {
        thecontainer = 'container_security_free.swf';
    }
    v_flvbase = flvFolder;
    v_theflv = flvName;
    v_alignvideo = 'bottomleft';
    //v_videofgwait = '0';
    loadUpSettings();
    showvideo();
}
