function _head_area_display(){
	$('salesareablock').style.display = "block";
	$('psalesareablock').style.display = "block";
}
function _head_area_hide(){
	$('salesareablock').style.display="none";
	$('psalesareablock').style.display="none";
}

// =============================变换主题购物图=====

var n = 0;
function Mea(value) {
	n = value;
	plays(value);
}
function displayTheme(index) {
	with ($('fc')) {
		for (i = 0; i < 5; i++) {
			if (childNodes[i].style) {
				childNodes[i].style.display = "none";
			}
		}
		if (childNodes[index].style) {
			childNodes[index].style.display = "block";
		}
	}
	n = index;
}
function plays(value) {
	with ($('fc')) {
		try {
			filters[0].Apply();
			for (i = 0; i < 5; i++) {
				if (childNodes[i].style) {
					if (i == value) {
						childNodes[i].style.display = "block";
					} else {
						childNodes[i].style.display = "none";
					}
				}
			}
			filters[0].play();
		} catch (e) {
			for (i = 0; i < 5; i++) {
				if (childNodes[i].style) {
					if (i == value) {
						childNodes[i].style.display = "block";
					} else {
						childNodes[i].style.display = "none";
					}
				}
			}
		}
	}
}
function clearThemeAuto() {
	clearInterval(autoStart)
}
function setThemeAuto() {
	autoStart = setInterval("auto(n)", 6000)
}
function auto() {
	n++;
	if (n > 4)
		n = 0;
	Mea(n);
}
function sub() {
	n--;
	if (n < 0)
		n = 5;
	Mea(n);
}

function showFlash(url) {
	var obj = new Swiff(url, {
		width :550,
		height :225,
		container :$('flash_index')
	});
}


function showBig_img(){
	if($('big_img1').style.display == "none"){
		$('big_img1').style.display = "";
	}else{
		$('big_img1').style.display = "none";
	}
	if($('big_img2').style.display == "none"){
		$('big_img2').style.display = "";
	}else{
		$('big_img2').style.display = "none";
	}
}

window.addEvent('domready', function() {// 页面加载完成后
			//showFlash(siteroot + "flash/browse.swf");
			setThemeAuto();
			setInterval("showBig_img()", 6000);
		});
