function openExternal(){
  if(!document.getElementsByTagName) return;
  var anchors = document.getElementsByTagName('a');
  for(var i = 0; i < anchors.length; i++){
  var thisAnchor = anchors[i];
  if(thisAnchor.getAttribute('href') && thisAnchor.getAttribute('rel') == 'external'){
  thisAnchor.target = '_blank';
  }
 }
}
window.onload = openExternal;

function ShowRoom1(id){
	if($('subcontent1').style.display=='none'){
		$('subcontent2').style.display='none';
		$('subcontent1').appear({ duration: 3.0 });
		Effect.ScrollTo('content');
	}else{
		Effect.ScrollTo('content');
	}
}
function ShowRoom2(id){
	if($('subcontent2').style.display=='none'){
		$('subcontent1').style.display='none';
		$('subcontent2').appear({ duration: 3.0 });
		Effect.ScrollTo('content');
	}else{		
		Effect.ScrollTo('content');
	}
}

function ShowDiv(id){
		if($(id).style.display=='none'){
				Effect.SlideDown($(id), { duration: 0.5 });
				$(id).appear({ duration: 1 });
		}else{				
				Effect.SlideUp($(id), { duration: 0.5 });
				$(id).fade({ duration: 1 });
		}
}

