//Site JavaScript
/*Add the hasjs class inside of a domready event*/
	window.addEvent('domready', function() {
		$$('body')[0].addClass('hasjs');
		 $$('body')[0].addClass('hasjs');
  var size = window.getSize();
  if(size.x>1100) { $$('body').addClass('widescreen'); }
	if(myTriggers = $$('ul#portfolio > li')) {
	for(var i=0; i < myTriggers.length; i++) { 
		myTriggers[i].addEvent('click', function() {
			this.getFirst('ul').toggleClass('showme');
		});
	}
  }
});
/*Attach the widescreen class to a new resize event*/
window.addEvent('resize', function() {
  var size = window.getSize();
  if(size.x>1100) { $$('body').addClass('widescreen'); }
  //If the window is smaller than 1100, remove the widescreen class
  else { $$('body').removeClass('widescreen'); }
});
























/*Attach the widescreen class to a new resize event*/
	window.addEvent('resize', function() {
		var size = window.getSize();
		if(size.x>1110) { $$('body').addClass('widescreen'); }
		//If the window is smaller than 1100, remove the widescreen class
		else { $$('body').removeClass('widescreen'); }
	});