function getWidth() {
	var myWidth = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		myWidth = window.innerWidth;
	} else if( document.documentElement && document.documentElement.clientWidth ) {
		myWidth = document.documentElement.clientWidth;
	} else if( document.body && document.body.clientWidth ) {
		myWidth = document.body.clientWidth;
	}
	return myWidth;
}

function changeSUV() {
	var screenwidth = getWidth();
	var suv = document.getElementById("suvasaurus");
	if (suv) {
		if (screenwidth > 950) {
			suv.style.zIndex = "1";
		} else {
			suv.style.zIndex = "-1";
		}
	}
}

$(function () {
var temp=navigator.appVersion.split('MSIE');
var ieVer=parseInt(temp[1]);
var isIE6up=(ieVer == 6)?1:0;	
	$('#model-links').hide();
	var t = setTimeout("$('#model-links').slideDown(1000)",300);		
	$('#warranty').hide();
	if(isIE6up)
		$('#warranty').show();
	else
		$('#warranty').fadeIn(1200);	
	$('#' + currentNavModel).addClass('cur');
	
	changeSUV();
	$(window).bind("resize", changeSUV);
});