function review(url) { newwindow = window.open(url,'review','"toolbar=no,address=no,left=150,top=150,status=no,width=550,height=400,scrollbars=yes,resizable=yes"'); }
function news(url) { newwindow = window.open(url,'news','"toolbar=no,address=no,left=150,top=150,status=no,width=550,height=400,scrollbars=yes,resizable=yes"'); }
function contact() { newwindow = window.open('contact.php','privacy','"toolbar=no,address=no,left=150,top=100,status=no,width=550,height=850,scrollbars=yes,resizable=yes"'); }
function privacy() { newwindow = window.open('privacy.php','privacy','"toolbar=no,address=no,left=150,top=150,status=no,width=550,height=550,scrollbars=yes,resizable=yes"'); }
function terms() { newwindow = window.open('terms.php','terms','"toolbar=no,address=no,left=130,top=130,status=no,width=550,height=550,scrollbars=yes,resizable=yes"'); }
function subscribe() { newwindow = window.open('contact.php?subscribe=true','subscribe','"toolbar=no,address=no,left=100,top=100,status=no,width=550,height=850,scrollbars=yes,resizable=yes"'); }

/**
 * 
 * @param {Object} pageVSize
 * @param {Object} mainPage
 * @param {Object} subPage
 * @param {Object} speed
 */
function doPage(pageVSize, mainPage, subPage, speed)
{
	setSection(mainPage);
	urchinTracker(mainPage);
	return false;
}

/**
 * setSection - load a php page based on section identifier via AJAX
 * @param {Object} section - Unique page name in URL
 */
function setSection(section)
{
	var currentContent = $('#home');
	if (currentContent.length == 0 )
		currentContent = null;
	
	page = 'content/'+ section +'.php';
	
	if (currentContent != null) {
		currentContent.slideUp('slow', function() {
			$('#loadContent').load(page, function() {
				$('#home').slideDown('slow');
			});
		});
	} else {
		$('#loadContent').load(page, function() {
			$('#home').slideDown('slow');
		});
	}
}