// JavaScript Document
/*videoviewer.js*/
var ie = navigator.userAgent.indexOf("MSIE");
var ie6 = navigator.userAgent.indexOf("MSIE 6");

$(document).ready(function() {var movie = document.getElementById("large_movie");$("a#closewindow").click(function() {$("div#wrapper").attr("style","opacity:1");$("div#overlay").fadeOut("normal");if(ie != -1) {$("div#overlay").addClass("hide-4-IE");$("div#play_panel").attr("style","visibility:visible");}setTimeout(function() {movie.innerHTML = ''},200);return false;});
$("a#playvideo").click(function() {var vid=this.name.replace(/.flv/,'.swf');/*$("div#wrapper").attr("style","opacity:0.2");*/$("div#overlay").fadeIn("slow");if(ie != -1) {$("div#overlay").removeClass("hide-4-IE");/*$("div#wrapper").attr("style","filter:alpha(opacity=20)");*/$("div#play_panel").attr("style","visibility:hidden");}var flash = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="540" height="480"><param name="movie" value="movies/' + vid + '" /><param name="quality" value="high" /><param name="skinAutoHide" value="true" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent"><embed src="movies/' + vid + '" quality="high" skinAutoHide="true" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="540" height="480" bgcolor="#000000" wmode="transparent"></embed></object>';movie.innerHTML = flash;return false;});});
/*
function setCookie(value) {
	// Set the cookie to the new style sheet
		d = new Date();
		d.setFullYear(d.getFullYear() + 1);
		expires = "expires=" + d.toGMTString();
		document.cookie="text=" + value + "; " + expires;
}

function readCookie() {
	
	// retrieve the cookie
	cookies=document.cookie;
	startpos = cookies.indexOf("text") + 5;
	endpos = cookies.indexOf(";",startpos);
	if(endpos ==-1) endpos = cookies.length;
	
	if(startpos < 5) { // if no cookie is set
		return null;
	} else {
		return cookies.substring(startpos,endpos);
	}
	
}
*/