var theHeight;
var theWidth;
var iMode = 0;
if (window.innerHeight) {
	theWidth=window.innerWidth;    
	theHeight=window.innerHeight; 	
	}
else if (document.documentElement && document.documentElement.clientHeight) {
	theWidth=document.documentElement.clientWidth;   
    theHeight=document.documentElement.clientHeight;	
	}
else if (document.body) {
	theWidth=document.body.clientWidth; 
	theHeight=document.body.clientHeight;
	} 
	
if ((navigator.userAgent.indexOf("iPhone") != -1) ||
(navigator.userAgent.indexOf("iPad") != -1) ||
(navigator.userAgent.indexOf("iPod") != -1) ||
(navigator.userAgent.indexOf("Android") != -1) ||
(navigator.userAgent.indexOf("BlackBerry") != -1))
  {iMode=1;}




