function openpopup(popupURL, width, height)
{
	var popupWindow = window.open(popupURL,"", "width=" + width + ", height=" + height + ", scrollbars");
}

function openPhotoWindow(photoText, photoImg, width, height)
{
	var windowHTML = "<html><head><link rel=\"StyleSheet\" href=\"../rightFrame.css\" type=\"text/css\" media=\"screen\"/><title>" + photoText + "</title><body><center><a href=\"javascript:close()\" title=\"Click on picture to close window\"><image src=\"../" + photoImg + "\"/></a><br/><br/><bold>" + photoText + "</bold><br/><br/><small>All Images (C) Copyright 2004-2010 &nbsp; www.hogsbackcottage.com &amp; www.capital-park-lodge.com</small><center></body></html>";
	var photoWindow = window.open("","", "width=" + (width + 40) + ", height=" + (height + 75) + ", scrollbars");
	photoWindow.document.open();
	photoWindow.document.write(windowHTML);
	photoWindow.document.close();
}

function openPhotoWindow_PanoramicView_Valley()
{
	openPhotoWindow("View of Thyume Valley and the Hogs from Lothlorien", "Hogsback/PanoramicView_Valley.jpg", 641, 110);
}

function openPhotoWindow_KitchenView()
{
	openPhotoWindow("View of the kitchen", "Hogsback/NewKitchen1.jpg", 630, 430);
}

function openPhotoWindow_PanaromicLoungeDiningArea()
{
	openPhotoWindow("Panaromic view of the lounge and dining area", "Hogsback/InsidePanaromicLoungeDiningArea.jpg", 580, 460);
}

function openPhotoWindow_KitchenCloseup()
{
	openPhotoWindow("Closeup view of the kitchen work surfaces", "Hogsback/NewKitchen2.jpg", 590, 440);
}

function openPhotoWindow_BraaiArea_Panoramic()
{
	openPhotoWindow("Panoramic view of new braai/BBQ area", "Hogsback/BraaiPanoramic.jpg", 480, 377);
}

function openPhotoWindow_Master_Bedroom1()
{
	openPhotoWindow("View of master bedroom", "Hogsback/MasterBedroom1.jpg", 520, 417);
}

function openPhotoWindow_SingleBeds1()
{
	openPhotoWindow("Single beds upstairs (can be moved together)", "Hogsback/SingleBeds1.jpg", 520, 417);
}

function openPhotoWindow_Bathroom1()
{
	openPhotoWindow("View of the bathroom", "Hogsback/Bathroom1.jpg", 520, 417);
}

function openPhotoWindow_Shower()
{
	openPhotoWindow("View of the large shower", "Hogsback/Shower.jpg", 520, 417);
}

function openPhotoWindow_BraaiArea_CloseUp()
{
	openPhotoWindow("Close up view of new braai/BBQ area", "Hogsback/BraaiCloseup.jpg", 627, 450);
}

function openPhotoWindow_LothlorienWinterWonderland()
{
	openPhotoWindow("Lothlorien, a winter wonderland", "Hogsback/LothlorienWinterWonderland.jpg", 600, 397);
}

function openPhotoWindow_LothlorienCottage()
{
	openPhotoWindow("Lothlorien cottage in summer", "Hogsback/LothlorienCottage.jpg", 640, 451);
}


function openPhotoWindow_SnowCappedHogsbackPeaks()
{
	openPhotoWindow("Snow capped Hogsback peaks", "Hogsback_Photo_Gallery/TheHogsWithSnow.jpg", 500, 180);
}

function openPhotoWindow_ViewValleyClouds()
{
	openPhotoWindow("View of Thyume Valley from above the clouds", "Hogsback_Photo_Gallery/ValleyAndClouds.jpg", 600, 430);
}

function openPhotoWindow_EcoShrine()
{
	openPhotoWindow("Eco Shrine with the Hogsback peaks in background (5 minutes walk from Lothlorien)", "Hogsback_Photo_Gallery/EcoShrineAndHogs.jpg", 590, 380);
}

function openPhotoWindow_HogAtSunset()
{
	openPhotoWindow("A Hogsback peak at sunset", "Hogsback_Photo_Gallery/TheHogAtSunset.jpg", 360, 445);
}

function openPhotoWindow_HogPeaksInSummer()
{
	openPhotoWindow("The Hogsback peaks in Summer", "Hogsback_Photo_Gallery/TheHogsInSummer.jpg", 560, 405);
}

function openPhotoWindow_StPatrickChurch()
{
	openPhotoWindow("St. Patricks, the smallest church in South Africa", "Hogsback_Photo_Gallery/StPatrickChurch.jpg", 620, 440);
}

function openPhotoWindow_TorDoone()
{
	openPhotoWindow("Tor Doone Peak", "Hogsback_Photo_Gallery/TorDoonePeak.jpg", 360, 430);
}

function openPhotoWindow_Cosy_Fireplace()
{
	openPhotoWindow("The cosy fireplace, books and family games", "Hogsback/CosyFirePlace.jpg", 360, 430);
}

//Capital Park Lodge =================

function openPhotoWindow_CapitalPark_WorldCupMap()
{
	openPhotoWindow("Capital Park Lodge in Pretoria &amp; Lothlorien Cottage in the Hogsback Mountains", "/Capital-Park-Lodge-Pretoria-Tshwane/photos/2010Map.jpg", 640, 380);
}

function openPhotoWindow_CapitalPark_DoubleRoom_With_EnSuiteBathroom()
{
	openPhotoWindow("Double bedroom (Capital Park Lodge, Pretoria)", "/Capital-Park-Lodge-Pretoria-Tshwane/photos/double-with-en-suite-bathroom.jpeg", 520, 690);
}

function openPhotoWindow_CapitalPark_EnSuiteBathroom()
{
	openPhotoWindow("En-suite bathroom (Capital Park Lodge, Pretoria)", "/Capital-Park-Lodge-Pretoria-Tshwane/photos/bathroom-en-suite.jpeg", 660, 500);
}

function openPhotoWindow_CapitalPark_TwinBedroom()
{
	openPhotoWindow("Twin bedroom (Capital Park Lodge, Pretoria)", "/Capital-Park-Lodge-Pretoria-Tshwane/photos/twin_bedroom.jpg", 660, 500);
}

function openPhotoWindow_CapitalPark_SharedBathroom()
{
	openPhotoWindow("Private bathroom (Capital Park Lodge, Pretoria)", "/Capital-Park-Lodge-Pretoria-Tshwane/photos/shared-bathroom.jpeg", 660, 500);
}

function openPhotoWindow_CapitalPark_OpenPlanKitchenDiningArea()
{
	openPhotoWindow("Open plan dining area (Capital Park Lodge, Pretoria)", "/Capital-Park-Lodge-Pretoria-Tshwane/photos/open-plan-kitchen-with-dining-area.jpeg", 660, 500);
}

//Xanadu=================

function openPhotoWindow_Xanadu_Cintsa_Chalet()
{
	openPhotoWindow("Beach chalet with terrace in Cintsa", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_Cintsa_Chalet_Large.jpg", 640, 451);
}

function openPhotoWindow_Xanadu_View_Of_Cintsa_Beach()
{
	openPhotoWindow("View of Cintsa beach from the beach chalet", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_View_Of_Cintsa_Beach_Large.jpg", 660, 250);
}

function openPhotoWindow_Xanadu_View_Of_Cintsa_Lagoon()
{
	openPhotoWindow("View of Cintsa beach and lagoon from the chalet terrace ", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_View_Of_Cintsa_Lagoon_Large.jpg", 660, 350);
}

function openPhotoWindow_Xanadu_Cintsa_Resort_Swimming_Pool()
{
	openPhotoWindow("View of the resort swimming and kids paddling pool in the entertainment area.", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_Cintsa_Resort_Pool_Large.jpg", 640, 500);
}

function openPhotoWindow_Xanadu_Cintsa_Master_Bedroom()
{
	openPhotoWindow("Master bedroom in chalet with queen sized bed.", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_Cintsa_Double_Bedroom_Large.jpg", 640, 450);
}

function openPhotoWindow_Xanadu_Cintsa_Chalet_Lounge()
{
	openPhotoWindow("Beach chalet lounge / dining area.", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_Cintsa_Chalet_Lounge_Large.jpg", 640, 500);
}

function openPhotoWindow_Xanadu_Cintsa_Chalet_Kitchen()
{
	openPhotoWindow("Beach chalet kitchen / dining area.", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_Cintsa_Chalet_Kitchen_Large.jpg", 640, 500);
}

function openPhotoWindow_Xanadu_Cintsa_Chalet_Bathroom()
{
	openPhotoWindow("Beach chalet bathroom.", "/Xanadu-Beach-Resort-Cintsa-East/Xanadu_Cintsa_Chalet_Bathroom_Large.jpg", 640, 500);
}
