// JavaScript Document
if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
					
	alert("This page requires AC_RunActiveContent.js.");
	
} else {
	
	var hasRightVersion = DetectFlashVer( requiredMajorVersion, requiredMinorVersion, requiredRevision );
	
	if( hasRightVersion ) {  // if we've detected an acceptable version
		
		var flashParams = new Object();
		
		flashParams["allowScriptAccess"] = "always";
		flashParams["movie"] = root + "/flindex.swf";
		flashParams["src"] = root + "/flindex.swf";
		flashParams["quality"] = "high";
		flashParams["scale"] = "noscale";
		flashParams["wmode"] = "transparent";
		flashParams["menu"] = "false";
		flashParams["allowFullScreen"] = "true";
		flashParams["name"] = "flindex";
		
		document.write( "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"100%\" height=\"100%\" id=\"flindex\" align=\"middle\">\n" );
		
		var embedString = "<embed type=\"application/x-shockwave-flash\" name=\"flindex_embed\" id=\"flindex_embed\" width=\"100%\" height=\"100%\" align=\"middle\"";
		
		for( property in flashParams ) {
		
			document.write( "<param name=\"" + property + "\" value=\"" + flashParams[property] + "\" />\n" );
			embedString = embedString + " " + property + "=\"" + flashParams[property] + "\"";
			
		}
		
		embedString = embedString + " />\n";
		
		document.write( embedString );
		document.write( "</object>\n" );
	
	} else {
	
		var alternateContent = '';
		document.write( alternateContent );  // insert non-flash content
	
	}
	
}	

function getScreenWidth() {			
	return window.innerWidth != null ? window.innerWidth : document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body != null ? document.body.clientWidth : null;		
}

function getScreenHeight() {			
	return  window.innerHeight != null ? window.innerHeight : document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body != null ? document.body.clientHeight : null;				
}

function getRoot() {
	return root;
}

function getStyle() {
	return styleDir;
}

function getSelf() {
	return self;
}

function deepLink( path ) {
	window.location.hash = "/" + path;
}

function getLink() {
	return window.location.hash;
}

function check_size() {
	var flashMovie = document.getElementById( 'flindex' );
	var flashEmbed = document.getElementById( 'flindex_embed' );
	var width = getScreenWidth();
	var height = getScreenHeight();
	var minW = 1024;
	var minH = 768;
	if( width > minW ) {
		if (flashMovie) {
			flashMovie.setAttribute('width', '100%');
		}
		if (flashEmbed) {
			flashEmbed.setAttribute('width', '100%');
		}
	} else {
		if (flashMovie) {
			flashMovie.setAttribute('width', minW);
		}
		if (flashEmbed) {
			flashEmbed.setAttribute('width', minW);
		}
	}
	if( height > minH ) {
		if (flashMovie) {
			flashMovie.setAttribute('height', '100%');
		}
		if (flashEmbed) {
			flashEmbed.setAttribute('height', '100%');
		}
	} else {
		if (flashMovie) {
			flashMovie.setAttribute('height', minH);
		}
		if (flashEmbed) {
			flashEmbed.setAttribute( 'height', minH );
		}
	}		
}

var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

try {
var pageTracker = _gat._getTracker("UA-611666-31");
pageTracker._trackPageview();
} catch(err) {}