/*
 * Making it clean
 */

	$(document).ready(function() {
		$(function newWindow(){
		    $('a.view').click(function(){
		        window.open(this.href);
		        return false;
		    });
		});
		$('.mout').jqm({ajax: 'inc/portfolio/out.htm', trigger: 'a.modal-out'});
		$('.mbarton').jqm({ajax: 'inc/portfolio/barton.htm', trigger: 'a.modal-barton'});
	});

/**** Width Function 
	+ Font resize based on browser window width (not yet implemented) */

	function scaleFont() {
		var $width = $(window).width();
		// so I can watch the size
	}

/**** Usupported Browser Function 
	+ dealing with people who continue to use IE6 and below */

	function notSupported(){
		if($.browser.msie && parseInt($.browser.version) <= 6){ return true; }
		return false;
	}
	
	if(notSupported()){
		$(function(){
			$("<dl id='upsupported'><dt>Seriously... you're still using IE6?</dt><dd>No, I will not support IE6 (for this site) because it's just plain stupid to continue to care about it.  Granted, I build hack-free sites for clients that will support the monster, but that goes against my personal recommendation. In summary, get a real browser and come back.</dd></dl> ")
			.prependTo("body");
			$('#container').css('display', 'none');
		});	
	}