function wopen(url) {
	w = 750;
	h = 550;
	wleft = (screen.width - w) / 2;
	wtop = (screen.height - h) / 2;	
	newwindow=window.open(url,'name','width=' + w + ',height=' + h + ',left=' + wleft + ',top=' + wtop + ',location=yes,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes');
	if (window.focus) {newwindow.focus()}
	return false;
}


$(document).ready(function(){


// SITE WIDE

/*
	// DROPDOWN
	// hover() = rollover(), rollout()
	$("#navMain li.dropdown").hover( 
		function() {
			$("ul", this).slideDown("fast"); // show dropdown menu
		},
		function() {
			$("ul", this).slideUp("fast"); // hide dropdown menu
		}
	);
*/

// PROCESS

	// hide all
	$("#analyze-content").hide();
	$("#develop-content").hide();
	$("#implement-content").hide();
	$("#support-content").hide();
	
	// show first
	$("#analyze-content").show();
	$("#analyze").addClass("active");
	
	// my function
	function myFunction(theTab,theContent) {
		// hide all
		$("#analyze-content").hide();
		$("#develop-content").hide();
		$("#implement-content").hide();
		$("#support-content").hide();
		$("#analyze").removeClass("active");
		$("#develop").removeClass("active");
		$("#implement").removeClass("active");
		$("#support").removeClass("active");				
		// show
		$(theContent).fadeIn("slow");
		$(theTab).addClass("active");
	}

	// buttons
	$("#analyze a").click(function(){ myFunction("#analyze","#analyze-content"); });
	$("#develop a").click(function(){ myFunction("#develop","#develop-content"); });
	$("#implement a").click(function(){ myFunction("#implement","#implement-content"); });
	$("#support a").click(function(){ myFunction("#support","#support-content"); });
	
	
/*
// PROCESS

	// hide all
	$("#analyze-content").hide();
	$("#develop-content").hide();
	$("#implement-content").hide();
	$("#support-content").hide();
	
	// show first
	$("#analyze-content").show();
	$("#analyze > a").addClass("active");
	
	// my function
	function myFunction(theTab,theContent) {
		// hide all
		$("#analyze-content").hide();
		$("#develop-content").hide();
		$("#implement-content").hide();
		$("#support-content").hide();
		$("#analyze > a").removeClass("active");
		$("#develop > a").removeClass("active");
		$("#implement > a").removeClass("active");
		$("#support > a").removeClass("active");				
		// show
		$(theContent).fadeIn("slow");
		$(theTab).addClass("active");
	}
	
	// buttons
	$("#analyze a").click(function(){ myFunction("#analyze > a","#analyze-content"); });
	$("#develop a").click(function(){ myFunction("#develop > a","#develop-content"); });
	$("#implement a").click(function(){ myFunction("#implement > a","#implement-content"); });
	$("#support a").click(function(){ myFunction("#support > a","#support-content"); });
*/

});