/*		
// Switches the tabs and the boxes contents on the search box.
function switchTabs(whichTab) {	
	if (whichTab == 'simple') {
		document.getElementById("simpleSearch").style.display = 'block';
		document.getElementById("advSearch").style.display = 'none';

		document.getElementById("simpleSearchTab").className = 'active';
		document.getElementById("advSearchTab").className = '';
		document.getElementById("simpleSearchLink").className = 'active';
		document.getElementById("advSearchLink").className = '';

	} else {
		document.getElementById("simpleSearch").style.display = 'none';
		document.getElementById("advSearch").style.display = 'block';

		document.getElementById("simpleSearchTab").className = '';
		document.getElementById("advSearchTab").className = 'active';
		document.getElementById("simpleSearchLink").className = '';
		document.getElementById("advSearchLink").className = 'active';
	}
}
// Switches the forms on the small search box
function switchSearch(whichForm) {	
	if (whichForm == 'simple') {
		document.getElementById("smallSimpleSearch").style.display = 'block';
		document.getElementById("smallAdvSearch").style.display = 'none';
	} else {
		document.getElementById("smallSimpleSearch").style.display = 'none';
		document.getElementById("smallAdvSearch").style.display = 'block';
	}
}
// Makes more dropdown appear/disappear
function moreDD() {	
	if ((document.getElementById("moreDropDown").style.visibility == 'hidden') || ((document.getElementById("moreDropDown").style.visibility == ''))) {
		document.getElementById("moreDropDown").style.visibility = 'visible';
	} else {
		document.getElementById("moreDropDown").style.visibility = 'hidden';
	}
}
// First script for the scroll down userinfo tab under the header bar
function showUserinfo() {
	if ((document.getElementById("userInfo").style.height == '') || (document.getElementById("userInfo").style.height == '7px')) {
		revealUserInfo();
		document.getElementById("userInfoTab").src = 'img/userInfoUp.gif';
	} else {
		hideUserInfo();	
		document.getElementById("userInfoInner").style.display = 'none';
	}
}

// Some variable used for hte smooth scrolling effect
slideAmount = 7;
tabMargin = 0;
headerPadding = 10;

// script to make the userinfo tab slide down and up smoothly
function revealUserInfo() {
	if ((slideAmount < 65)) {
		document.getElementById('userInfo').style.height = slideAmount + 'px';
		slideAmount += 4;
		document.getElementById('userInfoTab').style.marginTop = tabMargin + 'px';
		tabMargin += 4;
		//document.getElementById('header').style.paddingTop = headerPadding + 'px';
		//headerPadding += 4;
		window.setTimeout("revealUserInfo()", 1);
	} else {
		document.getElementById("userInfoInner").style.display = 'block';
	}
}
function hideUserInfo() {	
	if ((slideAmount > 6)) {
		document.getElementById('userInfo').style.height = slideAmount + 'px';
		slideAmount -= 4;
		document.getElementById('userInfoTab').style.marginTop = tabMargin + 'px';
		tabMargin -= 4;
		//document.getElementById('header').style.paddingTop = headerPadding + 'px';
		//headerPadding -= 4;
		window.setTimeout("hideUserInfo()", 1);
	} else {
		document.getElementById("userInfoTab").src = 'img/userInfoDown.gif';
	}
}


function expandCollapse(whichBox) {
		if (document.getElementById(whichBox).style.display == 'none') {
			document.getElementById(whichBox).style.display = 'block';
			document.getElementById(whichBox + 'Header').style.backgroundImage = 'url(img/boxHeaderBgCollapse.gif)';
		} else {
			document.getElementById(whichBox).style.display = 'none';
			document.getElementById(whichBox + 'Header').style.backgroundImage = 'url(img/boxHeaderBg.gif)';
		}
		return false;
}

function showPropDetails(whichBox, whichTab) {
	switch(whichBox) {
		case "mainPropHighlights":
			document.getElementById("mainPropHighlights").style.display = 'block';
			document.getElementById("mainPropAbout").style.display = 'none';
			document.getElementById("mainPropOther").style.display = 'none';
			document.getElementById("mainPropCondition").style.display = 'none';

			document.getElementById("highlightsLi").className = 'active';
			document.getElementById("highlightsHref").className = 'active';
			//document.getElementById("highlightsLi").style.marginLeft = '-1px';
			document.getElementById("aboutLi").className = '';
			document.getElementById("aboutHref").className = '';
			document.getElementById("otherLi").className = '';
			document.getElementById("otherHref").className = '';
			document.getElementById("conditionLi").className = '';
			document.getElementById("conditionHref").className = '';
		break;    

		case "mainPropAbout":
			document.getElementById("mainPropHighlights").style.display = 'none';
			document.getElementById("mainPropAbout").style.display = 'block';
			document.getElementById("mainPropOther").style.display = 'none';
			document.getElementById("mainPropCondition").style.display = 'none';

			document.getElementById("highlightsLi").className = '';
			document.getElementById("highlightsHref").className = '';
			document.getElementById("aboutLi").className = 'active';
			document.getElementById("aboutHref").className = 'active';
			document.getElementById("otherLi").className = '';
			document.getElementById("otherHref").className = '';
			document.getElementById("conditionLi").className = '';
			document.getElementById("conditionHref").className = '';
		break ;   

		case "mainPropOther":
			document.getElementById("mainPropHighlights").style.display = 'none';
			document.getElementById("mainPropAbout").style.display = 'none';
			document.getElementById("mainPropOther").style.display = 'block';
			document.getElementById("mainPropCondition").style.display = 'none';

			document.getElementById("highlightsLi").className = '';
			document.getElementById("highlightsHref").className = '';
			document.getElementById("aboutLi").className = '';
			document.getElementById("aboutHref").className = '';
			document.getElementById("otherLi").className = 'active';
			document.getElementById("otherHref").className = 'active';
			document.getElementById("conditionLi").className = '';
			document.getElementById("conditionHref").className = '';
		break;    

		case "mainPropCondition":
			document.getElementById("mainPropHighlights").style.display = 'none';
			document.getElementById("mainPropAbout").style.display = 'none';
			document.getElementById("mainPropOther").style.display = 'none';
			document.getElementById("mainPropCondition").style.display = 'block';

			document.getElementById("highlightsLi").className = '';
			document.getElementById("highlightsHref").className = '';
			document.getElementById("aboutLi").className = '';
			document.getElementById("aboutHref").className = '';
			document.getElementById("otherLi").className = '';
			document.getElementById("otherHref").className = '';
			document.getElementById("conditionLi").className = 'active';
			document.getElementById("conditionHref").className = 'active';
		break ;   
	}
}

var boxSlideAmount, origHeight;
origHeight = document.getElementById("columnSix").offsetHeight;

function expandCollapseOld(whichBox) {
	alert(origHeight);
	if (document.getElementById(whichBox).style.height == '') {
		document.getElementById(whichBox).style.height = origHeight + "px";
	}

	if (document.getElementById(whichBox).style.height < origHeight + "px") {
		alert('expand');		
		boxSlideAmount = 0;
		expandBox(whichBox);
	} else {
		alert('collapse');
		boxSlideAmount = document.getElementById(whichBox).offsetHeight;
		collapseBox(whichBox);
	}
}

function expandBox(whichBox) {
	if (boxSlideAmount < document.getElementById("columnSix").offsetHeight) {
		document.getElementById("columnSix").style.height = boxSlideAmount + 'px';
		boxSlideAmount += 4;
		window.setTimeout("expandBox()", 1);
	}
}
function collapseBox(whichBox) {	
	if (boxSlideAmount > 0) {
		document.getElementById("columnSix").style.height = boxSlideAmount + 'px';
		boxSlideAmount -= 4;
		window.setTimeout("collapseBox()", 1);
	}
}
*/