$(document).ready(function() {

// links in these sections popup to a new screen
// $("ul#projects").find("a").click ( function() { popUp(this.href,'fullScreen'); return false; } );
// $("div.flickrPics").find("a").click ( function() { popUp(this.href,'fullScreen'); return false; } );
// $("div.post").find("a").click ( function() { popUp(this.href,'fullScreen'); return false; } );
$("span.morelink").find("a").unclick ();


// for main page show/hide logo portion
$('div#mid').show('slow');
$("div#mid").find("a").click ( function() { $('div#mid').hide('slow'); $('div#content').addClass('mid_blank'); return false; } );

//set target to new window using XHTML 1.0 strict compatible attribute
popupLinks = function() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") &&
		anchor.getAttribute("rel") == "popup")
		anchor.target = "_blank";
	}
}

//set popup window options 
popUp = function(strURL,strType,strHeight,strWidth) {
	var strOptions="";
	if (strType=="flashPopup") strOptions="resizable,height="+strHeight+",width="+strWidth;
	if (strType=="popup") strOptions="scrollbars,resizable,height="+strHeight+",width="+strWidth;
	if (strType=="fullScreen") strOptions="scrollbars,location,directories,status,menubar,toolbar,resizable";
	window.open(strURL, 'newWin', strOptions);
}

});

