// NAV ROLLOVERS BEGIN //

	//btn1
	btn1off = new Image();
	btn1off.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_home_off.png';
	btn1on = new Image();
	btn1on.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_home.png';
	
	//btn2
	btn2off = new Image();
	btn2off.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_portfolio_off.png';
	btn2on = new Image();
	btn2on.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_portfolio.png';
	
	//btn3
	btn3off = new Image();
	btn3off.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_experience_off.png';
	btn3on = new Image();
	btn3on.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_experience.png';
	
	//btn4
	btn4off = new Image();
	btn4off.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_contact_off.png';
	btn4on = new Image();
	btn4on.src = 'http://moisesl.com/cms/wp-content/themes/moisesl/i/nav_contact.png';
	
	/*btn5
	btn5off = new Image();
	btn5off.src = 'i/nav_events_off.gif';
	btn5on = new Image();
	btn5on.src = 'i/nav_events_on.gif';
	
	//btn6
	btn6off = new Image();
	btn6off.src = 'i/nav_contact_off.gif';
	btn6on = new Image();
	btn6on.src = 'i/nav_contact_on.gif';
	
	//btn7
	btn7off = new Image();
	btn7off.src = 'i/nav_careers_off.gif';
	btn7on = new Image();
	btn7on.src = 'i/nav_careers_on.gif';
	*/
	
	
	function rollover(img,state) {
		var imgState = state == 1 ? eval(img + 'on.src') : eval(img + 'off.src');
		document.images[img].src = imgState;
	}
	
// NAV ROLLOVERS END //


function clearText(field){

    if (field.defaultValue == field.value) field.value = '';
    else if (field.value == '') field.value = field.defaultValue;
}




// FONT RESIZE BEGIN //
var min=11;
var max=18;
function increaseFontSize() {
   var p = document.getElementsByTagName('p');   
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=max) {
         s += 1;
      }
      p[i].style.fontSize = s+"px"
   }
}

function decreaseFontSize() {
   var p = document.getElementsByTagName('p');
   for(i=0;i<p.length;i++) {
      if(p[i].style.fontSize) {
         var s = parseInt(p[i].style.fontSize.replace("px",""));
      } else {
         var s = 12;
      }
      if(s!=min) {
         s -= 1;
      }
      p[i].style.fontSize = s+"px"
   }   
}

// FONT RESIZE END //
