
 	function getResolution(){
    		var iWidth, iHeight, sRes;
      	if (window.innerWidth != null) {
      		iWidth = window.innerWidth;
      		iHeight = window.innerHeight; 
      	}
      	else if (document.body.clientWidth != null) {
           			iWidth = document.body.clientWidth;
           			iHeight=document.body.clientHeight;
           		}
           		else { iWidth = 640; }
           		if(iWidth <= 640) 
           			{sRes = "0.8";}		// 640 x 480 Resolution
           		else if(iWidth <= 800)
           			{sRes = "1.0";}		// 800 x 600 Resolution
           		else if(iWidth <= 1024)
           			{sRes = "1.28";}		// 1024 x 800 Resolution
           		else if(iWidth <= 1280)
           			{sRes = "1.6";}		// 1280 x 1024 Resolution
           		else if(iWidth <= 1600)
           			{sRes = "2.0";}		// 1600 x 1200 Resolution
           		else {sRes = "2.5"}
      	return (sRes);
      }
function getLoc( lim ) {
   var URL = document.location.toString().split('/');
   var ENDER = URL[0];
   for (var i=1; i < URL.length - lim; i++) {
      ENDER += "/" + URL[i] ; 
   }
   return ENDER;
}
