function chcss ( wide ) {
	if ( checkspv() ) {
		regularview( wide );
	}else{
		firstview( wide );
	}
}
//--------------------------------------------------------------------------------------------------------------------
function firstview ( wide ) {
	var head = document.getElementsByTagName('head')[0];
	var cs = document.createElement('link');
	cs.setAttribute('rel','stylesheet');
	cs.setAttribute('type','text/css');

	if ( navigator.userAgent.indexOf('iPhone') != -1 || navigator.userAgent.indexOf('Android') != -1 ) {
		if ( typeof wide != "undefined" ) {
			css = "nstrsp606.css";
		} else {
			css = "nstrsp.css";
		}
		setspv();
	}else{
		css = "nstr.css";
		setpcv();
		document.write('<script type="text/javascript" src="/common/js/nstrtopnav.js"></script>');
	}
	cs.setAttribute('href','/common/css/' + css);
	head.appendChild(cs);
}
//--------------------------------------------------------------------------------------------------------------------
function regularview ( wide ) {
	var head = document.getElementsByTagName('head')[0];
	var cs = document.createElement('link');
	cs.setAttribute('rel','stylesheet');
	cs.setAttribute('type','text/css');

	if ( $.cookie('SPV') == 1 ) {
		if ( typeof wide != "undefined" ) {
			css="nstrsp606.css";
		}else{
			css="nstrsp.css";
		}
	}else{
		css="nstr.css";
		document.write('<script type="text/javascript" src="/common/js/nstrtopnav.js"></script>');
	}
	cs.setAttribute('href','/common/css/' + css);
	head.appendChild(cs);
}
//--------------------------------------------------------------------------------------------------------------------
function checkspv () {
	if ( $.cookie('SPV') ) {
		return true;
	}else{ 
		return false;
	}
}
//--------------------------------------------------------------------------------------------------------------------
function setspv () {
	$.cookie("SPV","1",{ path: '/',expires: 365 });
}
//--------------------------------------------------------------------------------------------------------------------
function setpcv () {
	$.cookie("SPV","0",{ path: '/',expires: 365 });
}

