	







	
	//<![CDATA[
		var requiredMajorVersion = 5;
		var requiredMinorVersion = 0;
		var requiredRevision = 0;

		var hasReqestedFlashVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
		// Version check for the Flash Player that has the ability to start Player Product Install (6.0r65)
		var hasFlashInstall = DetectFlashVer(6, 0, 65);


		var splashIntroMessage = 'Please use the options below to choose your Nissan Used Vehicle Locator experience';
		var splashIntroMessageAlt = 'Alternatively, please try our HTML Site<br /><a class="htmlsite" href="/search" title="Click here to enter the Nissan Used Vehicle Locator HTML Site">Launch HTML site</a>';

		function openStandardWindow(windowSource,h,w) {

			var myLeft= browserSize()[0]/2 - (parseInt(w/2))+'px';
			var myTop = browserSize()[1]/2 - (parseInt(h/2))+'px';
			var win = '';

			params = 'left='+ myLeft +',top='+myTop+',height='+h+',width='+w+',directories=no,menubar=yes,resizable=yes,scrollbars=yes,titlebar=yes,toolbar=yes,alwaysraised=yes';
			win = window.open(windowSource,'NNUVL3STDWin',params);
			win.window.focus();
		}

		function openDechromedWindow(windowSource,h,w){

			var myLeft= browserSize()[0]/2 - (parseInt(w/2))+'px';
			var myTop = browserSize()[1]/2 - (parseInt(h/2))+'px';
			var win = '';
			params = 'left='+ myLeft +',top='+myTop+',height='+h+',width='+w+',directories=no,menubar=no,resizable=yes,scrollbars=no,status=0,titlebar=no,toolbar=no,alwaysraised=yes';
			win = window.open(windowSource,'NNUVL3DCWin',params);
			win.window.focus();
		}

		function browserSize() {
			var myWidth = 0, myHeight = 0, rVar;
			var myWindowWidth = 0, myWindowHeight = 0;

			myWindowWidth = screen.width;
			myWindowHeight = screen.height;

			if( typeof( window.innerWidth ) == 'number' ) {
				//Non-IE
				myWidth = window.innerWidth-20;
				myHeight = window.innerHeight-20;
			} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
				//IE 6+ in 'standards compliant mode'
				myWidth = document.documentElement.clientWidth;
				myHeight = document.documentElement.clientHeight;
			} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
				//IE 4 compatible
				myWidth = document.body.clientWidth;
				myHeight = document.body.clientHeight;
			}
			rVar = new Array(myWidth,myHeight,myWindowWidth,myWindowHeight);
			return rVar;
		}

		function whichExperience(){
			var myExperience = 'HTML';

			var required1024width = 1001;
			var required1280height = 901;

			if(browserSize()[2] >= required1024width){
				myExperience = '1024';
				if(browserSize()[3] >= required1280height){
					myExperience = '1280';
				}
			}

			if ( !hasFlashInstall ) {
				myExperience = 'HTML';
			}
			return myExperience;
		}

		function actionExperience(){

			var currentExperience = whichExperience();
			var openDechromed = true;
			var strOut = '';

			switch(currentExperience){
				case '1024':	if(openDechromed==true){
							openDechromedWindow("/richexperience",682,1001);
						}else{
							openStandardWindow("/richexperience",682,1001);
						}
						break;
				case '1280':	if(openDechromed==true){
							openDechromedWindow("/richexperience",850,1248);
						}else{
							openStandardWindow("/richexperience",850,1248);
						}
						break;
			}
		}

	function getSplashNavigation(){
		var bestExperience = whichExperience();
		var strMessage = '';
		splashIntroMessageAlt = 'Alternatively, please try our HTML Site';
		if(bestExperience == 'HTML'){
				splashIntroMessage = '<p align="left">Your screen size is currently set to 800 X 600. This screen size is too small for you to be able to view the Flash version of the Nissan Used Vehicle Locator.</p><p align="left">To adjust your screen to a larger resolution, open the Control Panel, click the Display icon, select the Settings tab, and move the screen resolution slider to a larger resolution (for example 1280 X 1024). Click Apply, and your screen resolution will be updated.</p>';
				
				
				if(hasFlashInstall){
					
					strChoice = 'Flash';
					strMessage ='<div ><span class="text"><p align="left">Your screen size is currently set to 800 X 600. This screen size is too small for you to be able to view the Flash version of the Nissan Used Vehicle Locator.</p><p align="left">To adjust your screen to a larger resolution, open the Control Panel, click the Display icon, select the Settings tab, and move the screen resolution slider to a larger resolution (for example 1280 X 1024). Click Apply, and your screen resolution will be updated.</p></span></div>';
					splashIntroMessage = strMessage;
				}else{
					
					strChoice = 'HTML';
					strMessage = 'Sorry, you do not have a version of Adobe Flash that is compatible with our Rich Experience Site';
					strMessage +=':<br><a class="noflashsite1" href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_blank" title="Click here to install Adobe Flash Player to use the Nissan Used Vehicle Locator Rich Experience Site">Install Adobe Flash</a>';
					splashIntroMessage = strMessage;
				}
				splashIntroMessageAlt = '<a class="htmlsite" href="/search" title="Click here to enter the Nissan Used Vehicle Locator HTML Site">'+splashIntroMessageAlt+'</a>';
		}else{
				
				strChoice = 'FlashResolution';
				splashIntroMessage = 'Please use the link below to enter our Flash site';// we dont need this
				
				switch(bestExperience){
					case '1024':
						splashIntroMessage = '<div><a id="splashflashlink" class="btn-med" href="javascript:actionExperience()" title="Click here to enter the Nissan Used Vehicle Locator Flash Experience Site" ><span>START SEARCH</span></a></div>';
					//	splashIntroMessageAlt = '<a class="htmlsite" href="/search" title="Click here to enter the Nissan Used Vehicle Locator HTML Site">'+splashIntroMessageAlt+'</a>';
						break;
					case '1280':
						splashIntroMessage = '<div><a id="splashflashlink" class="btn-med" href="javascript:actionExperience()" title="Click here to enter the Nissan Used Vehicle Locator Flash Experience Site" ><span>START SEARCH</span></a></div>';
					//	splashIntroMessageAlt = '<a class="htmlsite" href="/search" title="Click here to enter the Nissan Used Vehicle Locator HTML Site">'+splashIntroMessageAlt+'</a>';
						break;
				}
		}
		event_tagger.NISplashScreenPath(strChoice);
		return strMessage;
	}
		//]]>
	

