 if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } 
  
  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;
  }
  
  
if (myWidth < '830'){document.write('<link rel="stylesheet" href="css/design600.css" type="text/css"  media="all">'); var focus_leftSize=116; var isgood_leftSize=116; var error_leftSize=116;}
if (myWidth > '980'){document.write('<link rel="stylesheet" href="css/design950.css" type="text/css"  media="all">'); var focus_leftSize=122; var isgood_leftSize=122; var error_leftSize=122;}

   //alert("width: "+myWidth);
   
   
   function changeFontSize(inc){  
   inc=inc *2;
var p = document.getElementsByTagName('p'); 

for(n=0; n<p.length; n++) {    
if(p[n].style.fontSize) {       var size = parseInt(p[n].style.fontSize.replace("px", ""));    } else {       var size = 14;    }    p[n].style.fontSize = size+inc + 'px';   }}




$(document).ready(function(){
  // Reset Font Size
  var originalFontSize = $('html').css('font-size');
  $(".resetFont").click(function(){
  $('html').css('font-size', originalFontSize);
  });
  // Increase Font Size
  $(".increaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*1.2;
	$('html').css('font-size', newFontSize);
	return false;
  });
  // Decrease Font Size
  $(".decreaseFont").click(function(){
  	var currentFontSize = $('html').css('font-size');
 	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    var newFontSize = currentFontSizeNum*0.8;
	$('html').css('font-size', newFontSize);
	return false;
  });
});


$(document).ready(function(){
    $(document).bind("contextmenu",function(e){
        return false;
    });
});

