function LoadAll()
{  
    //alert(window.location.hostname);
    //alert(parent.frames.length);
    if(parent.frames.length <= 1) // 12.01.2010 == 0   // ( != 2)== 0 ... lieber != 2, wegen shop
    //if(parent.frames.length <= 1) // ( != 2)== 0 ... lieber != 2, wegen shop
    {
        //alert(parent.frames.length);
        //alert(window.location.hostname);
        //alert(window.location.pathname);
        //var searchstring = this.location.href;
        //var search = searchstring.lastIndexOf(".");

        if(0) //search != -1) // muss das sein????
        {
            var ext = searchstring.substr( search,4);
            if(ext == '.php')
            {
              var newURL = searchstring.replace(/.php/, ".html");
				//alert(newURL);
               location.replace(newURL);
               return;
            }
        }
        
		document.writeln('<html>');
		document.writeln('<script language="javascript" type="text/javascript">');
		document.writeln('<!--');
		document.writeln('function FrameMe()');
		document.writeln('{');
		document.writeln('    if (document.images)');
		document.writeln('    {');
		document.writeln('	top.main.location.replace(self.location.href);');
		document.writeln('   }');
		document.writeln('    else');
		document.writeln('    {');
		document.writeln('	top.main.location.href = self.location.href;');
		document.writeln('    }');
		document.writeln('}');
		document.writeln('// -->');
		document.writeln('</script>');

        // change frameset in main.html too!!!
        document.writeln('<frameset frameborder="0" border="0" rows="100,*" onLoad="FrameMe()">');
        //document.writeln('<frameset frameborder="0" border="0" rows="75,*" onLoad="FrameMe()">');
        //document.writeln('<frameset frameborder="0" border="0" rows="85,2,*" onLoad="FrameMe()">');
        //document.writeln('<frameset frameborder="0" border="0" rows="85,2,*">');
        if(window.location.hostname == 'localhost')
        {
            document.writeln('<frame marginwidth="1" marginheight="1" name="menu" src="http://'+window.location.hostname+'/nikon-foto/templates/menu.php?url='+this.location.href+'" scrolling=no noresize>');
        }
        else
        if((window.location.hostname == 'zedler-online.com') || (window.location.hostname == 'www.zedler-online.com'))
        {
            document.writeln('<frame marginwidth="1" marginheight="1" name="menu" src="/nikon-foto/templates/menu.php?url='+this.location.href+'" scrolling=no noresize>');
        }
        else
        if((window.location.hostname == 'nikon-foto.de') || (window.location.hostname == 'www.nikon-foto.de'))
        {
            document.writeln('<frame marginwidth="1" marginheight="1" name="menu" src="/templates/menu.php?url='+this.location.href+'" scrolling=no noresize>');
        }
        if((window.location.hostname == 'nikon-photo.com') || (window.location.hostname == 'www.nikon-photo.com'))
        {
            document.writeln('<frame marginwidth="1" marginheight="1" name="menu" src="/templates/menu.php?url='+this.location.href+'" scrolling=no noresize>');
        }
        //document.writeln('<frame marginwidth="0" marginheight="5" name="separator" scrolling=no noresize>');
        document.writeln('<frame marginwidth="1" marginheight="10" name="main">');
        document.writeln('</frameset>');
        document.writeln('</html>');
        
        if(parent.window.main)
            parent.window.main.location.href=this.location.href;
		
	//alert(this.location.href);
    }
}
