// JavaScript Document
if (typeof wthvideo == 'undefined') {
	wthvideo = new Object();
}
wthvideo.params = {
	width:336,
	height:384,
	left:"50%",
	right:"auto",
	top:"150px",
	bottom:"auto",
	centeroffset:"-168px",                
	flv:"shannonstandardsteel0946"
};
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 += '<style type="text/css">';
	markUp += '#wthvideo {position:fixed;width:'+wthvideo.params.width+'px;margin-left:'+wthvideo.params.centeroffset+';height:'+wthvideo.params.height+'px;left:'+wthvideo.params.left+';right:'+wthvideo.params.right+';top:'+wthvideo.params.top+';bottom:'+wthvideo.params.bottom+';z-index:99999;}';
	markUp += '</style>';
	markUp += '<!--[if lte IE 6]>';
	markUp += '<style type="text/css">';
	markUp += 'html, body{height: 100%;overflow: auto;}#wthvideo {position: absolute;}';
	markUp += '</style>';
	markUp += '<![endif]-->';
	markUp += '<div id="wthvideo">';
	markUp += '  <object id="objvideo" style="outline:none;" type="application/x-shockwave-flash" width="'+wthvideo.params.width+'" height="'+wthvideo.params.height+'" data="wthvideo/cuepointsplayer.swf">';
	markUp += '    <param name="movie" value="wthvideo/cuepointsplayer.swf" />';
	markUp += '    <param name="quality" value="high" />';
	markUp += '    <param name="flashvars" value="vurl='+wthvideo.params.flv+'.flv&amp;vwidth='+wthvideo.params.width+'&amp;vheight='+wthvideo.params.height+'&amp;vdelay='+wthvideo.params.delay+'" />';
	markUp += '    <param name="wmode" value="transparent" />';
	markUp += '    <param name="allowscriptaccess" value="always" />';
	markUp += '    <param name="swfversion" value="9.0.45.0" />';
	markUp += '  </object>';
	markUp += '</div>';
	document.write(markUp);
}
function hideDiv() {
	wthvideo.hideDiv();
}
wthvideo.drawVideo();

//onlyOnce();

function cue1Bright() {
	doSomethingWithClasses("item61");
}
function cue1Normal() {
	undoSomethingWithClasses("item61");
}
function cue1()	{
	cue1Bright();
	setTimeout("cue1Normal();", 3000);
}

function cue2Bright() {
	doSomethingWithClasses("item58");
}
function cue2Normal() {
	undoSomethingWithClasses("item58");
}
function cue2()	{
	cue2Bright();
	setTimeout("cue2Normal();", 3000);
}

function cue3Bright() {
	doSomethingWithClasses("item60");
}
function cue3Normal() {
	undoSomethingWithClasses("item60");
}
function cue3()	{
	cue3Bright();
	setTimeout("cue3Normal();", 3000);
}

var allPageTags = new Array(); 

function doSomethingWithClasses(theClass) {
	var allPageTags=document.getElementsByTagName("*");

	for (i=0; i<allPageTags.length; i++) {

		if (allPageTags[i].className==theClass) {

			allPageTags[i].style.background='url("/wthvideo/menutop-bg-highlight.png") no-repeat scroll 0 0 #000000';
		}
	}
}

function undoSomethingWithClasses(theClass) {
	var allPageTags=document.getElementsByTagName("*");

	for (i=0; i<allPageTags.length; i++) {

		if (allPageTags[i].className==theClass) {

			allPageTags[i].style.background='url("/templates/hta_steel/images/menutop-bg.png") no-repeat scroll 0 0 #000000';
		}
	}
}


