function UpdateNavigation(){
        if (document.images && top.frames[1]){
                if(parseInt(navigator.appVersion) > 3){
                        if (top.frames[1].window.NavigationLoaded==true){
                                var pathname = top.frames[0].window.location.pathname;
                                var topLevelDirectory = pathname.substring(1, (pathname.indexOf('/',1)));
                                top.frames[1].window.HighlightSection(topLevelDirectory);
                                top.frames[1].window.UpdateTriVida(pathname);
                        }
                }
        }
}
function CreateFrames(mainSrc) {

        document.write('<html>\n');
        document.write('<head>\n');
        document.write('<title>Resort-Guide.co.uk</title>\n');
        document.write('</head>\n');
        document.write('<frameset rows="92,1*" cols="*" frameborder="NO" border="0" framespacing="0">\n');
        document.write('<frame src="http://www.resort-guide.co.uk/newmaintop1.php" noresize scrolling="NO" marginwidth="2" marginheight="2" frameborder="NO" name="topnav">\n');
        document.write('<frameset cols="120,*" rows="*" frameborder="NO" border="0" framespacing="0">\n');
        document.write('<frame src="http://www.resort-guide.co.uk/newmainsid1.html" scrolling="NO" noresize marginwidth="2" marginheight="2" frameborder="NO" name="sidenav">\n');
        document.write('<frame src="'+mainSrc+'" marginwidth="2" marginheight="2" noresize frameborder="NO" name="main">\n');
        document.write('</frameset>\n');
        document.write('</frameset>\n');
        document.write('</html>\n');

}


function PageLoad() {
        if (navigator.appName == "Netscape" || navigator.appVersion.indexOf("MSIE")){
                if(top.location == self.location) {
			CreateFrames(self.location);
			parent.main.location=window.location;
                        return;
                }
}
}
