// JavaScript Document
if (typeof wthvideo == 'undefined') {
	wthvideo = new Object();
}
wthvideo.params = {
	width:256,
	height:384,
	left:"50%",
	right:"auto",
	top:"0px",
	bottom:"auto",
	swf:"chantelitsmymichigan0276"};
wthvideo.hideDiv = function(){
	document.getElementById('wthvideo').style.visibility = 'hidden';
	document.getElementById('clickvid').style.visibility = 'visible';
}

wthvideo.showDiv = function() {
	document.getElementById('wthvideo').style.visibility = 'visible';
	document.getElementById('clickvid').style.visibility = 'hidden';
}
wthvideo.onlyOnce = function() {
	if (document.cookie.indexOf("hasSeen=true") == -1) {
	var later = new Date();
	later.setFullYear(later.getFullYear()+10);
	document.cookie = 'hasSeen=true;path=/;';
	setTimeout ('showDiv()', 5000)
}
}
wthvideo.drawVideo= function(){
	var markUp = '';
	markUp += '<style type="text/css">';
	markUp += '#wthvideo {position:absolute;width:'+wthvideo.params.width+'px;height:'+wthvideo.params.height+'px;left:'+wthvideo.params.left+';margin-left:-470px;right:'+wthvideo.params.right+';top:'+wthvideo.params.top+';bottom:'+wthvideo.params.bottom+';visibility:hidden;z-index:999;}';
	markUp += '#clickvid{position:absolute;width:64px;height:160px;left:50%;margin-left:0px;top:26px;z-index:998;}';
	markUp += '</style>';
	markUp += '<!--[if lte IE 6]>';
	markUp += '<style type="text/css">';
//markUp += 'html, body{height: 100%;overflow: auto;}#wthvideo {position: absolute;}';
	markUp += '#wthvideo {position: absolute;}';
	markUp += '</style>';
	markUp += '<![endif]-->';
	markUp += '<div id="wthvideo">';
	markUp += '  <object style="outline:none;" type="application/x-shockwave-flash" width="'+wthvideo.params.width+'" height="'+wthvideo.params.height+'" data="da/scripts/js/wthvideo/'+wthvideo.params.swf+'.swf">';
	markUp += '    <param name="movie" value="da/scripts/js/wthvideo/'+wthvideo.params.swf+'.swf" />';
	markUp += '    <param name="quality" value="high" />';
	markUp += '    <param name="wmode" value="transparent" />';
	markUp += '    <param name="swfversion" value="9.0.45.0" />';
	markUp += '  </object>';
	markUp += '</div>';
	markUp += '<div id="clickvid" onclick="showDiv();" style="cursor:pointer;">';
	markUp += '<img src="da/scripts/js/wthvideo/chantel_still_2.png" width="64" height="160" border="0" /></div>';
	document.write(markUp);
}
function hideDiv() {
	wthvideo.hideDiv();
}
function showDiv() {
	wthvideo.showDiv();
}
function onlyOnce() {
	wthvideo.onlyOnce();
}
wthvideo.drawVideo();
onlyOnce();