
/*
	For showing and hiding the search preview 'snippets'.
	snipT(rue) and snipF(alse) (brevity for bandwidth sakes)
*/

function snipT(id) {

	if( document.getElementById) {
		document.getElementById('snip'+id).style.display = 'block';
	}
}

function snipF(id) {

	if( document.getElementById) {
		document.getElementById('snip'+id).style.display = 'none';
	}
	
}

/* 
	Returns an elements style value
*/

function getStyle( elmID, style) {

	var elm = document.getElementById( elmID);
	
	if ( elm.currentStyle) {
		return elm.currentStyle[style];
	}
	else if (window.getComputedStyle) {
		return document.defaultView.getComputedStyle( elm, null).getPropertyValue( style);
	}
	
	return '';
}
