function position(containerDiv){
	//var outerDiv = document.getElementById('outerDiv');
	var innerDiv = document.getElementById(containerDiv);
	var top;
	var left;
	
	if (navigator.appName.indexOf("Microsoft") != -1) {
		top = (document.documentElement.clientHeight - 600) / 2;
		left = (document.documentElement.clientWidth - 800) / 2;
	}
	else {
		top = (window.innerHeight - 600) / 2;
		left = (window.innerWidth - 800) / 2;
	}
	
	if (top < 10) 
		top = 10;
	
	//outerDiv.style.paddingTop = top+'px';
	innerDiv.style.top = top + 'px';
	innerDiv.style.left = left + 'px';
}

function showAbout() {
	showDijitDialog('aboutDialog');
	if (typeof(aboutScrollbar) != 'undefined' && aboutScrollbar != null)
		aboutScrollbar.recalc();
}

function showStores() {
	showDijitDialog('storesDialog');
	storeListSB.recalc();
}

function showWholesales() {
	showDijitDialog('wholeSalesDialog');
	wholesaleSB.recalc();
}

function showTerms() {
	showDijitDialog('termandconDialog');
	if (typeof(termsScrollbar) != 'undefined' && termsScrollbar != null)
		termsScrollbar.recalc();
}

function showOrderDelivery() {
	showDijitDialog('orderanddelivDialog');
	if (typeof(orderDeliveryScrollbar) != 'undefined' && orderDeliveryScrollbar != null)
		orderDeliveryScrollbar.recalc();
}

function showReturns() {
	showDijitDialog('returnexchangesDialog');
	if (typeof(returnsScrollbar) != 'undefined' && returnsScrollbar != null)
		returnsScrollbar.recalc();
}
