// Copyright 2010 Website Talking Heads // JavaScript Document if (typeof wthvideo == 'undefined') { wthvideo = new Object(); } wthvideo.params = { width:320, height:320, position:"absolute", doctype:"strict", left:"50%", right:"auto", top:"434px", bottom:"auto", centeroffset:"-460px", color:0xCCCCCC, volume:70, autostart:"yes", fadein:1, fadeout:2, flip:"no", delay:0, delayclose:0, buffertime:3, playbtn:"PlayVideo.png", playposition:"right", playtop:"bottom", exitoncomplete:"no", oncepersession:"no", vidlink:"http://www.equinoxinvestigations.com/Contact_Us.html", openin:"_blank", path:"uploads", actorpic:"juliaequinoxinvestigations0755.png", flv:"juliaequinoxinvestigations0755.flv" }; var topPx = parseFloat(wthvideo.params.top); var bottomPx = parseFloat(wthvideo.params.bottom); wthvideo.hideDiv = function(){ document.getElementById('wthvideo').style.visibility = 'hidden'; } function onlyOnce() { if (document.cookie.indexOf("hasSeen4=true") == -1) { var later = new Date(); later.setFullYear(later.getFullYear()+10); document.cookie = 'hasSeen4=true;path=/;'; wthvideo.drawVideo(); } } wthvideo.drawVideo= function(){ var markUp = ''; markUp += ''; markUp += '
'; markUp += ' '; markUp += ' '; markUp += ' '; markUp += ' '; markUp += ' '; markUp += ' '; markUp += ' '; markUp += ' '; markUp += '
'; if (wthvideo.params.position == "fixed") { if (wthvideo.params.doctype == "quirks") { if (wthvideo.params.top == "auto") { markUp += '';} else { markUp += '';} } else { markUp += ''; } } document.write(markUp); } function hideDiv() { wthvideo.hideDiv(); } if (wthvideo.params.autostart=="oncethenpic") { if (document.cookie.indexOf("hasSeen4=true") == -1) { var later = new Date(); later.setFullYear(later.getFullYear()+10); document.cookie = 'hasSeen4=true;path=/;'; wthvideo.params.autostart = "yes"; wthvideo.drawVideo(); } else { wthvideo.params.autostart = "no"; wthvideo.drawVideo(); } } if (wthvideo.params.autostart=="oncethenmute") { if (document.cookie.indexOf("hasSeen4=true") == -1) { var later = new Date(); later.setFullYear(later.getFullYear()+10); document.cookie = 'hasSeen4=true;path=/;'; wthvideo.params.autostart = "yes"; wthvideo.drawVideo(); } else { wthvideo.params.autostart = "mute"; wthvideo.drawVideo(); } } if (wthvideo.params.oncepersession == "yes") { onlyOnce();} else { wthvideo.drawVideo(); } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName]; } else { return document[movieName]; } }