// JavaScript Document

function btnOver()
{
	$("bookingBtn").className = "bookingBtnOver";
}
function btnOut()
{
	$("bookingBtn").className = "bookingBtnOff";
}
function galSlugOver()
{
	$("galSlugBtn").className = "gallerySlugOver";
}
function galSlugOut()
{
	$("galSlugBtn").className = "gallerySlugOff";
}
AC_FL_RunContent = 0;
DetectFlashVer = 0;

function drawVideoSlug()
{
	
	if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		if(DetectFlashVer(8, 0, 24)) {  // if we've detected an acceptable version
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
				'width', '300',
				'height', '200',
				'src', '/video/g2u_video_poster',
				'quality', 'autohigh',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'window',
				'devicefont', 'false',
				'id', 'g2u_video_poster',
				'bgcolor', '#4f5c6c',
				'name', 'g2u_video_poster',
				'menu', 'false',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','false',
				'movie', '/video/g2u_video_poster',
				'salign', ''
				); //end AC code
		} else {  // flash is too old or we can't detect the plugin
			var alternateContent = '<a href="/video.php"><img src="/video/poster.jpg" width="300" height="200" alt="" /></a>';
			document.write(alternateContent);  // insert non-flash content
		}
	}

}

function drawVideoSlugNoClick()
{
	
	if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		if(DetectFlashVer(8, 0, 24)) {  // if we've detected an acceptable version
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
				'width', '300',
				'height', '200',
				'src', '/video/g2u_video_poster_noclick',
				'quality', 'autohigh',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'window',
				'devicefont', 'false',
				'id', 'g2u_video_poster_noclick',
				'bgcolor', '#4f5c6c',
				'name', 'g2u_video_poster',
				'menu', 'false',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','false',
				'movie', '/video/g2u_video_poster_noclick',
				'salign', ''
				); //end AC code
		} else {  // flash is too old or we can't detect the plugin
			var alternateContent = '<a href="/video.php"><img src="/video/poster.jpg" width="300" height="200" alt="" /></a>';
			document.write(alternateContent);  // insert non-flash content
		}
	}

}

function drawMastheadMovie()
{
	
	if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		if(DetectFlashVer(8, 0, 24)) {  // if we've detected an acceptable version
			AC_FL_RunContent(
				'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,24,0',
				'width', '902',
				'height', '198',
				'src', '/main_50',
				'quality', 'autohigh',
				'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
				'align', 'middle',
				'play', 'true',
				'loop', 'true',
				'scale', 'showall',
				'wmode', 'transparent',
				'devicefont', 'false',
				'id', 'mastheadMovie',
				'bgcolor', '#212121',
				'name', 'mastheadMovie',
				'menu', 'false',
				'allowScriptAccess','sameDomain',
				'allowFullScreen','false',
				'movie', '/main_50',
				'salign', ''
				); //end AC code
		} else {  // flash is too old or we can't detect the plugin
			document.write(alternateMastheadMovieContent);  // insert non-flash content
			window.onload = function() {
				initTestimonials();
			}
		}
	}
}
