	function checkUser(){
		if(isWin){ 
			// check for windows for Flash
			if( !(isFlashinstalled && (flashVersion > 4))){
			// users do not have flash, call pop up page
				popUP();
			}	
		} else if (isMac) {
			// check mac for flash
			if(!((isIE5 || isNS) && (isFlashinstalled && (flashVersion > 4)) )) {
				// no flash found 
				popUP();			 
			}
			if (isIE && !isIE5){
				// mac IE 4.x
				popUP();	
			}	
		} else {		
		  	// some other OS, not sure OF
			  popUP();
	    }  // end of else and IF
	}
	
	
	function popUP(){
			// this function will be called 20 secs after loading, if the movie doesn't redirect
			// them to the flash site
		var allcookies = document.cookie ;
		var pos = allcookies.indexOf("bgfcheck=");
		
		
		//alert(allcookies);
		
		//pos = -1 ;  // debug
		//alert(pos);
		if(pos == -1){	
			var sWindowOptions = 'width=' + 350 + ',height=' + 275 +',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no';
			//var sWindowOptions = 'width=' + 10 + ',height=' + 10 +',toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no';

			//var sPage   = "/code/flashdemopopup.asp" ;   // pages used because we can't tell what the user has, pop up and prompt them
			var sPage   = "//www.macromedia.com/shockwave/download/triggerpages_mmcom/flash.html" ;   // pages used because we can't tell what the user has, pop up and prompt them
						
			//var w = window.open(sPage + "?f=" + location.href , 'FlashPrompt', sWindowOptions)
			var w = window.open(sPage, 'FlashPrompt', sWindowOptions)
			w.focus();
		}
				
	}


	// start detection script
	checkUser();
	


