// Copyright 2010 Website Talking Heads
// JavaScript Document
if (typeof wthvideo == 'undefined') {
wthvideo = new Object();
}
wthvideo.params = {
width:256,
height:384,
position:"fixed",
doctype:"strict",
left:"auto",
right:"0px",
top:"auto",
bottom:"0px",
centeroffset:"auto",
color:0xCCCCCC,
volume:70,
autostart:"yes",
fadein:0,
fadeout:2,
flip:"no",
delay:0,
delayclose:0,
buffertime:3,
playbtn:"PlayVideo.png",
playposition:"right",
playtop:"bottom",
exitoncomplete:"yes",
oncepersession:"no",
vidlink:"no",
openin:"_blank",
path:"uploads",
actorpic:"shonanursingeducation1678.png",
flv:"shonanursingeducation1678.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("hasSeen=true") == -1) {
var later = new Date();
later.setFullYear(later.getFullYear()+10);
document.cookie = 'hasSeen=true;path=/;';
wthvideo.drawVideo();
}
}
wthvideo.drawVideo= function(){
var 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("hasSeen=true") == -1) {
var later = new Date();
later.setFullYear(later.getFullYear()+10);
document.cookie = 'hasSeen=true;path=/;';
wthvideo.params.autostart = "yes";
}
else {
wthvideo.params.autostart = "no";
}
}
if (wthvideo.params.autostart=="oncethenmute") {
if (document.cookie.indexOf("hasSeen=true") == -1) {
var later = new Date();
later.setFullYear(later.getFullYear()+10);
document.cookie = 'hasSeen=true;path=/;';
wthvideo.params.autostart = "yes";
}
else {
wthvideo.params.autostart = "mute";
}
}
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];
}
}