function qlinkRollover (oLink,bOver) {
	// 2004-11-11
	// np
	//
	//	This function will perform rollover effects for
	//	any quicklinks boxes whose buttons utilize the
	//	qLink
	//	style sheet class.
	//	(qLinkOver must also exist in the style sheet)
	//
	//	MODIFIED:2005-03-08
	//		Now passes in the link object itself,
	//		so that it no longer relies on the id
	//		values being set.
	
	if ( oLink != null ) {
		if ( bOver == true ) {
			oLink.className = "qLinkOver";
		}
		else {
			oLink.className = "qLink";
		}
		
		return true;
	}
	else {
		return false;
	}
}

function tabSwitch(sTab) {
	// 2005-01-05
	// np
	//
	//	This function switches tab pages on the case
	//	studies pop up pages.
	//	Refer to: popHP.aspx
	
	var oImgDetails = document.getElementById("imgDetails");
	var oImgImages = document.getElementById("imgImages");
	var oImgDivider = document.getElementById("imgDivider");
	var oDetailsTab = document.getElementById("divInfo");
	var oImagesTab = document.getElementById("tblImages");
	
	switch( sTab ) {
		case "details":
			// change the images
			oImgDetails.src = "Images/Layout/CaseTabs/tabDetails_sel.jpg";
			oImgImages.src = "Images/Layout/CaseTabs/tabImages.jpg";
			oImgDivider.src = "Images/Layout/CaseTabs/Divider_details.jpg";
			// change the tab page
			oImagesTab.style.display = "none";
			oDetailsTab.style.display = "block";
			break;
			
		case "images":
			// change the images
			oImgDetails.src = "Images/Layout/CaseTabs/tabDetails.jpg";
			oImgImages.src = "Images/Layout/CaseTabs/tabImages_sel.jpg";
			oImgDivider.src = "Images/Layout/CaseTabs/Divider_images.jpg";
			// change the tab page
			try {
				oImagesTab.style.display = "table";
			}
			catch(er) {
				oImagesTab.style.display = "block";
			}
			oDetailsTab.style.display = "none";
			break;
	}
	
	return true;
}

function showViewer(bShow,sImagePath) {
	// 2005-01-05
	// np
	//
	//	This function will display the full sized screenshot
	//	or hide the screenshot viewer, so that all the thumbnails
	//	are visible.
	//	Refer to: popHP.aspx
	
	var oDivViewer = document.getElementById("divViewer");
	var oImgViewer = document.getElementById("imgViewer");
	
	if ( bShow == true ) {
		oDivViewer.style.display = "block";
		oImgViewer.src = sImagePath;
	}
	else {
		oDivViewer.style.display = "none";
	}
	
	return true;
}

// these two functions build the case studies popup page layout
function buildCaseTabs() {
	document.write ('		<table border="0" cellpadding="0" cellspacing="2" style="background-color: #647aac; margin-bottom: 4px; width: 100%;">');
	document.write ('			<tr>');
	document.write ('				<td>');
	document.write ('					<img border="0" src="Images/Layout/flsLogo.jpg" />');
	document.write ('				</td>');
	document.write ('				<td style="text-align: right;">');
	document.write ('					<a href="Home.aspx"><img alt="Case Studies" border="0" src="Images/Buttons/btnHome.gif" /></a>');
	document.write ('					&nbsp;');
	document.write ('					<a href="CaseStudies.aspx"><img alt="Case Studies" border="0" src="Images/Buttons/btnCaseStudies.gif" /></a>');
	document.write ('				</td>');
	document.write ('				<td style="width: 50px;">&nbsp;</td>');
	document.write ('			</tr>');
	document.write ("		</table>");
	document.write ("		");
	document.write ("		<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">");
	document.write ("			<tr>");
	document.write ("				<td style=\"vertical-align: top;\">");
	document.write ("					<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width: 100%;\">");
	document.write ("						<tr>");
	document.write ("							<td style=\"vertical-align: top; width: 20px;\">");
	document.write ("								<br />");
	document.write ("								<br />");
	document.write ("								<img ");
	document.write ("									border=\"0\"");
	document.write ("									src=\"Images/Layout/CaseTabs/TopFade.jpg\"");
	document.write ("								/><img");
	document.write ("									alt=\"view details\"");
	document.write ("									border=\"0\"");
	document.write ("									id=\"imgDetails\"");
	document.write ("									onclick=\"tabSwitch('details');\"");
	document.write ("									src=\"Images/Layout/CaseTabs/tabDetails_sel.jpg\"");
	document.write ("									style=\"cursor: pointer; cursor: hand;\"");
	document.write ("								/><img");
	document.write ("									border=\"0\"");
	document.write ("									id=\"imgDivider\"");
	document.write ("									src=\"Images/Layout/CaseTabs/Divider_details.jpg\"");
	document.write ("								/><img");
	document.write ("									alt=\"view images\"");
	document.write ("									border=\"0\"");
	document.write ("									id=\"imgImages\"");
	document.write ("									onclick=\"tabSwitch('images');\"");
	document.write ("									src=\"Images/Layout/CaseTabs/tabImages.jpg\"");
	document.write ("									style=\"cursor: pointer; cursor: hand;\"");
	document.write ("								/><img");
	document.write ("								border=\"0\"");
	document.write ("								src=\"Images/Layout/CaseTabs/BottomFade.jpg\" /></td>");
	document.write ("							<td style=\"vertical-align: top;\">");
	document.write ("								<br />");
	document.write ("								<br />");
	document.write ("								");
	document.write ("								<table border=\"0\" cellpadding=\"0\" cellspacing=\"10\" id=\"tblImages\" style=\"display: none;\" width=\"100%\">");
	document.write ("									<tr>");
	document.write ("										<td style=\"background-color: #647aac;\">");
	document.write ("											<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\">");
	document.write ("												<tr>");
	document.write ("													<td style=\"background-color: #ffffff; text-align: left; vertical-align: top;\">");
}
function buildCaseDivider() {
	document.write ("													</td>");
	document.write ("												</tr>");
	document.write ("											</table>");
	document.write ("										</td>");
	document.write ("									</tr>");
	document.write ("								</table>");
	document.write ("							</td>");
	document.write ("						</tr>");
	document.write ("					</table>");
	document.write ("				</td>");
	document.write ("				<td style=\"vertical-align: top;\">");
	document.write ("					<div id=\"divInfo\" style=\"padding: 10px;\">");
	document.write ("						<br />");
	document.write ("						<br />");
}
function buildCaseFinal() {
	document.write ("					</div>");
	document.write ("				</td>");
	document.write ("			</tr>");
	document.write ("		</table>");
}