<!--
//=============================
// Flash Detection Script
// Revision 2001.01.06
// Seb Chevrel for Second Story
//=============================

var isFlash3 = false;
var isFlash4 = false;
var isFlash5 = false;

var isIE = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;		// true if we're on ie
var isWin = (navigator.appVersion.indexOf("Windows") != -1) ? true : false; // true if we're on windows

// VBScript Detection on IE/Windows
if(isIE && isWin){ 
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	document.write('isFlash3 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3"))) \n');
	document.write('isFlash4 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4"))) \n');
	document.write('isFlash5 = (IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5"))) \n');	
	document.write('</SCR' + 'IPT\> \n');
}

// Netscape PlugIn Detection
function detectFlash(){	
	if (navigator.plugins){
		if (navigator.plugins["Shockwave Flash 2.0"]
		|| navigator.plugins["Shockwave Flash"]){

			var isVersion2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
			var flashDescription = navigator.plugins["Shockwave Flash" + isVersion2].description;
			var flashVersion = parseInt(flashDescription.charAt(flashDescription.indexOf(".") - 1));
			isFlash3 = flashVersion == 3;
			isFlash4 = flashVersion == 4;
			isFlash5 = flashVersion == 5;
		}
	}	
}
detectFlash();

// Returns HTML Code to Embed a SWF File
function flashEmbed(swf,width,height,bgcolor) {
		if (!bgcolor) bgcolor="#000000";
		var code = '<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'WIDTH="'+width+'" HEIGHT="'+height+'"'
		+ 'CODEBASE="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<PARAM NAME="MOVIE" VALUE="'+swf+'">'
		+ '<PARAM NAME="PLAY" VALUE="true">'
		+ '<PARAM NAME="LOOP" VALUE="false">'
		+ '<PARAM NAME="QUALITY" VALUE="high">'
		+ '<PARAM NAME="MENU" VALUE="false">'
		+ '<PARAM NAME=salign VALUE=LT>'
		+ '<PARAM NAME=bgcolor VALUE="'+bgcolor+'"> '
		+ '<EMBED SRC="'+swf+'" '
		+ 'WIDTH="'+width+'" HEIGHT="'+height+'" '
		+ 'salign=LT '
		+ 'PLAY="true" '
		+ 'LOOP="false" '
		+ 'QUALITY="high" '
		+ 'MENU="false" '
		+ 'BGCOLOR="'+bgcolor+'" '
		+ 'TYPE="application/x-shockwave-flash" '
		+ 'PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">'
		+ '</EMBED>'
		+ '</OBJECT>';
		return(code);
}



//GMKANBAN-2415


var days = 1;

function newCookie(name,value,days) {
 if (days) {
   var date = new Date();
   date.setTime(date.getTime()+(days*24*60*60*1000));
   var expires = "; expires="+date.toGMTString(); }
   else var expires = "";
   document.cookie = name+"="+value+expires+"; path=/"; }

function readCookie(name) {
   var nameNG = name + "=";
   var ca = document.cookie.split(';');
  for(var i=0; i<ca.length; i++) {
    var c = ca[i];
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
  if (c.indexOf(nameNG) == 0) return c.substring(nameNG.length,c.length); }
    return null; }

function amt() {
  var num = readCookie('ngxpedcookie45674567')
  if (num < 1) { 
  newCookie('ngxpedcookie45674567','ngxpedcookie23', days);
 SW=window.open('/expeditions/newsite.html','Redirecting','toolbar=no,status=no,width=550,height=335,scrollbars'); }
}

amt();

//-->

