//initialize embed
document.write('');
document.write('
');
document.write('
');
function vidCss() {
var ver=getIEVersion();
var box = document.getElementById('vidbox');
if (ver != -1){
//alert("(IE)+": "+navigator.appName+" --- "+navigator.userAgent);
var l=CreateEl("link");
l.setAttribute("type","text/css");
l.setAttribute("rel","stylesheet");
l.setAttribute("href","http://webpagemodels.com/css/right-fixed-IE.css");
l.setAttribute("media","screen");
document.getElementsByTagName("head")[0].appendChild(l);
box.style.position="absolute";
}
else {
//alert("(not-IE)+": "+navigator.appName+" --- "+navigator.userAgent);
var l=CreateEl("link");
l.setAttribute("type","text/css");
l.setAttribute("rel","stylesheet");
l.setAttribute("href","http://webpagemodels.com/css/right-fixed.css");
l.setAttribute("media","screen");
document.getElementsByTagName("head")[0].appendChild(l);
box.style.position="fixed";
}
}
function getIEVersion() {
//alert(navigator.appName+" --- "+navigator.userAgent);
var rv = -1; // Return value assumes failure.
if (navigator.appName == 'Microsoft Internet Explorer') {
var ua = navigator.userAgent;
var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
if (re.exec(ua) != null) {
rv = parseFloat(RegExp.$1);
}
}
return rv;
}
function thisObject(movieName) {
//alert(navigator.appName);
if (window[movieName]) {
return window[movieName];
} else {
return document[movieName];
}
/*
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else if(document[movieName].length != undefined) {
return document[movieName][1];
} else {
return document[movieName];
}
*/
}
function onFlashReady() {
//alert("Flash is Ready");
checkCookies();
}
function CreateEl(x){
return(document.createElement(x));
}
function show(url) {
if (url == "replay") {
url="blank.f4v";
}
var box = document.getElementById('vidbox');
box.style.zIndex = 99;
document.getElementById('replay').style.display="none";
try {
thisObject("flashObject").vid(url);
} catch(err) {
alert("Unable to communicate with flash player. Please reload the page.");
closeVid();
}
}
function closeVid() {
/* The folllowing code is ignored in IE6 and causes IE7 and IE8 to crash. Stupid IE v_v'
document.getElementById('vidbox').style.bottom = "-390px";
*/
var box = document.getElementById('vidbox');
box.style.zIndex = -1;
document.getElementById('replay').style.display="block";
}
function hideVid() {
//document.getElementById('vidbox').style.bottom = "-390px";
//document.getElementById('replay').style.visibility="hidden";
}
function createCookie(name,value,hours) {
if (hours) {
var date = new Date();
date.setTime(date.getTime()+(hours*60*60*1000));
var expires = "; expires="+date.toGMTString();
}
else var expires = "";
document.cookie = name+"="+value+expires+"; path=/";
}
function checkCookies() {
cookie = readCookie('wpmblank.f4v');
if (cookie != null) {
try {
thisObject("flashObject").endVid();
} catch(err) {
alert(err);
}
closeVid();
} else {
createCookie('wpmblank.f4v','Do Not Play','-1');
}
}
function readCookie(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
return null;
}