function initReview () {

	if(document.getElementById("off_paging")){

		a = document.getElementById("off_paging").getElementsByTagName("A");

		for (i = 0; i < a.length; i++) {
			a[i].onclick = function () {
				var href = this.href,
					id = "offlineShop_list";			

				loading(id);
				Async.send("/common/async/inc_offlineShop.asp", function ( send_ ) {
					setTimeout( function () {
						insertNodes(id, send_.responseText, initReview);
					}, random(400, 600));
				}, getQueryString(href));
				return false;
			};
		};
	};

	if (document.FrmAddress){
	
		document.FrmAddress.addressGOGUN.onchange = function (){
			var id = "offlineShop_list";
			loading(id);
				Async.send("/common/async/inc_offlineShop.asp", function ( send_ ) {
					setTimeout( function () {
						insertNodes(id, send_.responseText, initReview);
					}, random(300, 500));
				}, formQueryString(this.form));
			return false;
		};
	};

};
initReview();


function initTabAbout() {
	var tab = document.getElementById("aboutLeftTab");
	if (!tab)
		return;

	var a = tab.getElementsByTagName("A"),
		tabId = ["about_list1", "about_list2", "about_list3", "about_list4"];

	initTabAbout.onTab = tab.getElementsByTagName("td")[0];
	initTabAbout.onTarget = document.getElementById(tabId[0]);

//	initTabAbout.onTab.className = "on";

	for (var i = 0; i < a.length; i++) {
		if (hasClass(a[i].parentNode, "on")) {
			initTabAbout.onTab = a[i].parentNode;
			initTabAbout.onTarget = document.getElementById(tabId[i]);
		}
		a[i].target = tabId[i];
		a[i].onclick = function () {
			if (initTabAbout.onTab == this.parentNode)
				return false;
			imgChange1(1);
			imgChange(1);
			initTabAbout.onTab.className = "";
			initTabAbout.onTab = this.parentNode;
			this.parentNode.className = "on";
			addClass(initTabAbout.onTarget, "outHidden");
			initTabAbout.onTarget = document.getElementById(this.target);
			removeClass(initTabAbout.onTarget, "outHidden");
			return false;
		};
	};
};
initTabAbout();


function initTabSystem() {
	var tab = document.getElementById("aboutLeftTab2");
	if (!tab)
		return;
	var a = tab.getElementsByTagName("A"),
		tabId = ["system_list1", "system_list2"];

	initTabSystem.onTab = tab.getElementsByTagName("td")[0];
	initTabSystem.onTarget = document.getElementById(tabId[0]);

	initTabSystem.onTab.className = "on";

	for (var i = 0; i < a.length; i++) {
		a[i].target = tabId[i];
		a[i].onclick = function () {
			if (initTabSystem.onTab == this.parentNode)
				return false;
			initTabSystem.onTab.className = "";
			initTabSystem.onTab = this.parentNode;
			this.parentNode.className = "on";
			addClass(initTabSystem.onTarget, "outHidden");
			initTabSystem.onTarget = document.getElementById(this.target);
			removeClass(initTabSystem.onTarget, "outHidden");
			return false;
		};
	};
};
initTabSystem();


