var ProductDetail = {
	activeDetail: null,
	activeProductLink: null,
	show:	function(activeId) {
	
        // if there is a detail active hide it
        if(this.activeDetail) {
            this.activeDetail.style.display = 'none';
        }
		
        if(this.activeProductLink) {
            this.activeProductLink.style.color = '003399';
        }
		
		
	   	// show the active layer and save it as active
        this.activeDetail = document.getElementById('productdetail_' + activeId);
        this.activeDetail.style.display = 'block';
		
		
        this.activeProductLink = document.getElementById('productlink_' + activeId);
		this.activeProductLink.style.color = '#E20A1E';
		if(recommendApp != '') this.activeProductLink.recommendURL = recommendApp + escape(this.activeProductLink.href);
	}
}



function showProductDetail(activeId) {
	ProductDetail.show(activeId);
}