var dirSite_Store_sCurrStoreKey;
function dirSite_Store_openStore(sStoreKey) {
	var oStore = document.getElementById('dirSite_Store_store_' + sStoreKey);
	var oTab = document.getElementById('dirSite_Store_tab_' + sStoreKey);
	
	if ( dirSite_Store_sCurrStoreKey ) {
		document.getElementById('dirSite_Store_store_' + dirSite_Store_sCurrStoreKey).style.display = "none";
		dirSite_Store_setTab(document.getElementById('dirSite_Store_tab_' + dirSite_Store_sCurrStoreKey), 0);
	}
		
	oStore.style.display = "block";
	dirSite_Store_setTab(oTab, 1);
	
	dirSite_Store_sCurrStoreKey = sStoreKey;
}

function dirSite_Store_setTab(oTab, iMode) {
	var oCol1 = oTab.rows[0].cells[0];
	var oCol2 = oTab.rows[0].cells[1];
	var oCol3 = oTab.rows[0].cells[2];
	
	switch ( iMode ) {
		case 1 :
			oTab.className = "tabActive";
			oCol1.className = "col1 col1active";
			oCol2.className = "col2 col2active";
			oCol3.className = "col3 col3active";
		break;
		case 0 :
			oTab.className = "";
			oCol1.className = "col1";
			oCol2.className = "col2";
			oCol3.className = "col3";
		break;
	}
}

