function prodDetail( obLink ) {
		
		var obList			= obLink.parentNode.parentNode;
		var colList 		= obList.childNodes;
									
		// Update Menu Style	
		for ( var i = 0; i < colList.length; i ++ ) {
			if ( colList.item(i).nodeName == 'LI' ){
				if ( colList.item(i).id == obLink.parentNode.id){
					var stClassName = 'active'; } else { var stClassName = ''; }
				colList.item(i).className = stClassName;
			}
		}
		
		// Update Content
		document.getElementById('tabnav_content').innerHTML 	= document.getElementById(obLink.parentNode.id + '_content').innerHTML;
		
		return(false);		
}

function getQueryString( stKey ){
	var stURL	= window.location;
	var stQS    = null;
	var stValue	= null;
	
	var myregexp = new RegExp('^.*\\?{1}?(.+)$','i') 
	var match = myregexp.exec(stURL);
	if (match != null) stQS = match[1];
	
	if (stQS != null ){
		var myregexp = new RegExp(stKey + '=(.*?)(&|$)','i') 
		var match = myregexp.exec(stURL);			
		if (match != null) stValue = match[1];
	}

	return stValue;
}

function initialise( stDefault ){
	var stPage = getQueryString('display');	
	if ( stPage == null ) stPage = stDefault;
	
	if ( document.getElementById(stPage) != null ){
		prodDetail(document.getElementById(stPage).firstChild);
	}			
}
