// JavaScript Document
function nav(page) {
	window.open(page, "_self");
}
function pitch() {
	alert("To view the pitch, please enter the words Haunted Pen into the guest code box in the upper right corner of the next screen, then click on the image labeled \"Burn\"");
	window.open("http://www.pitchq.com/?pitch/&581", "_blank");
}
function msLink(url) {
	window.open("http://profile.myspace.com/index.cfm?fuseaction=user.viewprofile&friendid="+url, "_blank");
}
function menuWork() {
    $(".drop").hover(
        function() {$("div", this).fadeIn("fast");}, 
        function() {$("div.dropItem", this).fadeOut("fast");} 
    );
    if (document.all) {
        $(".drop div").hoverClass ("selected");
    }
	$(this).size();
}
function expandHandler() {
    $(".expand").toggle(
        function() {
			$(".description", this).fadeIn("fast");
			$("#globalWrapper").height("");
		}, 
        function() {
			$(".description", this).fadeOut("fast");
		} 
    );
	$(".expand").change($(this).size());
}
$.fn.hoverClass = function(c) {
    return this.each(function(){
        $(this).hover( 
            function() { $(this).addClass(c);  },
            function() { $(this).removeClass(c); }
        );
    });
};
$.fn.size = function() {
	if 	($("#globalWrapper").height() < ($(window).height() - 70)) {
		$("#globalWrapper").height(($(window).height() - 70))
	}
};
