/*-------------------------------------------------------------------------------------------------------*/
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isNetscape = (navigator.userAgent.indexOf("Netscape") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
/*-------------------------------------------------------------------------------------------------------*/
var slideID			= 'navigation';
var lastScrollY = 0;
var factor 			= .1;
var opacity     = 0;
/*-------------------------------------------------------------------------------------------------------*/
function curveLayer() {
	var diffY;
	if (typeof self.pageYOffset != 'undefined') {diffY = self.pageYOffset;}
	else if (typeof document.compatMode != 'undefined' && document.compatMode != 'BackCompat') {diffY = document.documentElement.scrollTop;}
	else if (typeof document.body != 'undefined') {diffY = document.body.scrollTop;}
  if (diffY != lastScrollY) {
  	percent = factor * (diffY - lastScrollY);
		if (percent > 0) {percent = Math.ceil(percent);} else {percent = Math.floor(percent);}
		tester = parseInt(document.getElementById(slideID).style.top) + percent;
		document.getElementById(slideID).style.top = tester + 'px';
		lastScrollY = lastScrollY + percent;
	}
}
/*-------------------------------------------------------------------------------------------------------*/
function setInit(number) {
	if (!isNetscape && (top != self)) {
		var movie = parent.detectFlashMovie();
		if (movie) {movie.SetVariable("currentMenu", number);}
	}
}
/*-------------------------------------------------------------------------------------------------------*/
function showFlash(thisWidth, thisHeight, thisMovie, thisColor, isTransparent) {
	txtHTML  = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + thisWidth + '" height="' + thisHeight + '" id="contentmovie" align="middle">';
	txtHTML += '<param name="allowScriptAccess" value="sameDomain" />';
	txtHTML += '<param name="movie" value="' + thisMovie + '" />';
	txtHTML += '<param name="quality" value="high" />';
	if (isTransparent) {txtHTML += '<param name="wmode" value="transparent" />';}
	txtHTML += '<param name="bgcolor" value="' + thisColor + '" />';
	txtHTML += '<embed src="' + thisMovie + '" quality="high" bgcolor="' + thisColor + '"'; 
	if (isTransparent) {txtHTML += ' wmode="transparent"';}
	txtHTML += ' width="' + thisWidth + '" height="' + thisHeight + '" name="contentmovie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	txtHTML += '</' + 'object>';
 	document.write(txtHTML);
}
/*-------------------------------------------------------------------------------------------------------*/
function hideLinkFocus() {  
	if (document.all) {for (i = 0; i < document.links.length; i++) {document.links[i].hideFocus = true;}}
}
/*-------------------------------------------------------------------------------------------------------*/

