function ShowImageKey(area){
	if(document.getElementById(area).style.display=='none'){
		Effect.SlideDown(area, { duration: 0.5 });
	}
}

function ChangeFlipSections(leftSide,rightSide){
	var allTags = document.getElementsByTagName('div');
	for(i=0; i<allTags.length; i++){
  		if(allTags[i].className == 'rightSectionActive'){
			allTags[i].className = 'rightSection';
			allTags[i].style.display = 'none';
		}
		if(allTags[i].className == 'keyregion'){
			allTags[i].style.display = 'none';
		}
	}
	
	var allTags = document.getElementsByTagName('a');
	for(i=0; i<allTags.length; i++){
  		if(allTags[i].className == 'leftSectionActive'){
			allTags[i].className = 'leftSection';
		}
	}
	
	document.getElementById(leftSide).className = 'leftSectionActive';
	document.getElementById(rightSide).className = 'rightSectionActive';
	Effect.Appear(rightSide);
}

function ShowPriceBox(){
	document.getElementById('priceBox').style.visibility='visible';
}

function HidePriceBox(){
	document.getElementById('priceBox').style.visibility='hidden';
}

function ShowTorchPriceBox(){
	document.getElementById('torchPriceBox').style.visibility='visible';
}

function HideTorchPriceBox(){
	document.getElementById('torchPriceBox').style.visibility='hidden';
}

function ChangeSectionOnURL(){
	var url = window.location.href;
	var urla = url.split("#");
	if(urla[1]){
		if(urla[1].length>0){
			if(document.getElementById('section' + urla[1])){
				ChangeFlipSections('section' + urla[1] + 'B','section' + urla[1]);
			}
		}
	}
}