// JavaScript Document
<!--
function sspToggleDisplayMode() {
	if (thisMovie("ssp")) {
		thisMovie("ssp").sspToggleDisplayMode(null);
	};
}
function sspLoadImageNumber(image) {
	if (thisMovie("ssp")) {
		thisMovie("ssp").sspLoadImageNumber(image);
	};
}
function sspNextImage() {
	if (thisMovie("ssp")) {
		thisMovie("ssp").sspNextImage(null);
	};
}
function sspPreviousImage() {
	if (thisMovie("ssp")) {
		thisMovie("ssp").sspPreviousImage(null);
	};
}
function thisMovie(movieName) {
	if (navigator.appName.indexOf("Microsoft") != -1) {
		return window[movieName]
	} else {
		return document[movieName]
	}
}
function browseCatalog() {		
	window.location = "http://www.hollyridgenc.com/gallery/";
}
function gotoCottages() {		
	window.open('http://www.thecottagesnc.com/');
}
function gotoSouthport() {		
	window.open('http://www.thecottagesatsouthport.com/');
}
function gotoBuilder() {		
	window.open('/location/files/builderchallenge2011.pdf');
}
function gotoIndex() {		
	window.location = "http://www.hollyridgenc.com/";
}
function gotoDirections() {		
	window.location = "http://www.hollyridgenc.com/location/directions/";
}
function gotoSpecial() {		
	window.location = "http://www.hollyridgenc.com/gallery/";
}
function gotoGallery() {		
	window.location = "http://www.hollyridgenc.com/gallery/";
}
function gotoGoogle() {		
	window.open("http://maps.google.com/maps/place?hl=en&georestrict=input_srcid:329fba6547f44a7e",null,"height=650,width=900,scrollbars=1,resize=1");
}
function gotoMap() {		
	window.location = "http://www.hollyridgenc.com/map/";
}
function gotoHomes(homeid) {		
	if (homeid != null) {
		window.location = "http://www.hollyridgenc.com/map/" + homeid + '/';
	} else {
		window.location = "http://www.hollyridgenc.com/homes-for-sale/";
	}
}
function gotoTop() {		
	window.location = "#top";
}
function gotoContact() {		
	window.location = "http://www.hollyridgenc.com/contact/"
}
function switchtab(divID) {		
	document.getElementById('tab1').style.display = "none";
	document.getElementById('tab2').style.display = "none";
	document.getElementById('tab3').style.display = "none";
	document.getElementById('tab4').style.display = "none";
	document.getElementById(divID).style.display = "block";
}
function toggle(iname)
{
	if(iname=='slide_show')
		document.getElementById('thumbnails').style.display = '';
	else
		document.getElementById('thumbnails').style.display = 'none';
	
	var div = document.getElementById("youtube").getElementsByTagName("div");
	
	for(var i=0; i < div.length; ++i)
	{
		div[i].style.display='none'
	}

	document.getElementById(iname).style.display = '';
}
//-->
