﻿ window.addEvent('domready', function(){
		
		// finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "Default.aspx") {
        document.getElementById("updateArea").style.height = "297px";
        }
		
		// finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "") {
        document.getElementById("updateArea").style.height = "297px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "Default.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "GFWB051") {
        document.getElementById("content").style.height = "auto";
        }
		
		// finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "") {
        document.getElementById("content").style.height = "auto";
        }
			
		// finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "theEvent.aspx") {
        document.getElementById("content").style.height = "1100px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "skycoverage.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "press_activity.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "pastEvents2006.aspx") {
        document.getElementById("content").style.height = "1420px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "pastEvents2008.aspx") {
        document.getElementById("content").style.height = "2070px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "pastEvents2009.aspx") {
        document.getElementById("content").style.height = "2510px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "pastEvents2010.aspx") {
        document.getElementById("content").style.height = "1810px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gf_hotel.aspx") {
        document.getElementById("content").style.height = "1065px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "elsclub.aspx") {
        document.getElementById("content").style.height = "1000px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "hollinshall.aspx") {
        document.getElementById("content").style.height = "800px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "stpierre.aspx") {
        document.getElementById("content").style.height = "800px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "contactus.aspx") {
        document.getElementById("content").style.height = "1030px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "testimonials.aspx") {
        document.getElementById("content").style.height = "5230px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "rules.aspx") {
        document.getElementById("content").style.height = "2350px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "tsandcs.aspx") {
        document.getElementById("content").style.height = "1570px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "sitemap.aspx") {
        document.getElementById("content").style.height = "920px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "privacy.aspx") {
        document.getElementById("content").style.height = "1800px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "golfhandicap.aspx") {
        document.getElementById("content").style.height = "1220px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "faqs.aspx") {
        document.getElementById("content").style.height = "4200px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "sponsors.aspx") {
        document.getElementById("content").style.height = "4520px";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2008nrfinal.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2008srfinal.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2008final.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2009nrfinal.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2009srfinal.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2009final.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2010nrfinal.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2010srfinal.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_2010final.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_videos.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_video_09.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "gallery_video_10.aspx") {
        document.getElementById("content").style.height = "auto";
        }
        
        // finds page location and resize length //
        if (document.location.href.substring(location.href.lastIndexOf('/')+1) == "socialise.aspx") {
        document.getElementById("content").style.height = "1000px";
        }
    });
