<html>
  <head>
  <title>WMS</title>
  <!--Adding Google Maps API-->
    <!--192.168.1.130 Key-->
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAA1g4shYTICk__jT8urLob6BTb0JODD-48Ph1ctpD6ETcfdX-nsBTuIqTH1cxgp3sbc1lKHgXgfbLJew" type="text/javascript"></script>
    
    <!--Adding OpenLayers Script-->
        <script src="/lib/OpenLayers.js"></script>
        <script src="/lib/OpenLayers/Layer/MapServer/Untiled.js"></script>
  
  </head>
  
  <body>
  <h4>WMS</h4>

  <div style="width:100%; height:80%" id="map"></div>
  
    <!--Creating Map-->
    <script type="text/javascript">
    
      OpenLayers.ProxyHost="/proxy/?url=";
    
      //Creating Map
      var map = new OpenLayers.Map( 'map');
      
      //Defining Longitude, Latitude for Griffith
      var griffith = new OpenLayers.LonLat(146.13722,-34.27268);

      //Defining Zoom
      var zoom = 12;
      
      //Adding map controls
      //map.addControl(new OpenLayers.Control.MouseToolbar());
      map.addControl(new OpenLayers.Control.MousePosition());
      //map.addControl(new OpenLayers.Control.PanZoomBar());
      
      //Layer Switcher
      var layer_switcher = new OpenLayers.Control.LayerSwitcher();
      map.addControl(layer_switcher);
      layer_switcher.maximizeControl();
      
        //Creating Google Layers
        var google = new OpenLayers.Layer.Google("Google");
        var googles = new OpenLayers.Layer.Google("Google Satellite", { 'type': G_SATELLITE_MAP });
        var googleh = new OpenLayers.Layer.Google("Google Hybrid", { 'type': G_HYBRID_MAP });
        
      //Adding Layers
        map.addLayers([googles]);
        map.addLayers([google]);
        map.addLayers([googleh]);
        
       //Creating Mapserver Layers
        var dcadbd = new OpenLayers.Layer.WMS(
        "Debortoli Cadastral Boundary", 
        "http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/wms.map",
        {layers: 'cadbd', 'transparent': true, SRS:'EPSG:41002'},
        {isBaseLayer: false}
        );
        
        var dpropbd = new OpenLayers.Layer.WMS(
        "Debortoli Property Boundary", 
        "http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/wms.map",
        {layers: 'propbd', 'transparent': true, SRS:'EPSG:41002'},
        {isBaseLayer: false}
        );
        
        var dfmbl = new OpenLayers.Layer.WMS(
        "Debortoli Farm Blocks", 
        "http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/wms.map",
        {layers: 'fmbl', 'transparent': true, SRS:'EPSG:41002'},
        {isBaseLayer: false}
        );
        
        var dvarbl = new OpenLayers.Layer.WMS(
        "Debortoli Variety Blocks", 
        "http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/wms.map",
        {layers: 'varbl', 'transparent': true, SRS:'EPSG:41002'},
        {isBaseLayer: false}
        );

               //Creating Griffith Layers
        var grap = new OpenLayers.Layer.WMS(
        "Griffith Aerial Photo", 
        "http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/wms.map",
        {layers: 'grap', 'transparent': true, SRS:'EPSG:41002'},
        {isBaseLayer: false}
        );
        
        var grcad = new OpenLayers.Layer.WMS(
        "Griffith Cadastre", 
        "http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/wms.map",
        {layers: 'grcad', 'transparent': true, SRS:'EPSG:28355'},
        {isBaseLayer: false}
        );

       //Adding Layers
        map.addLayers([grap]);
        map.addLayers([grcad]);
        map.addLayers([dfmbl]);
        map.addLayers([dvarbl]);
        map.addLayers([dcadbd]);
        map.addLayers([dpropbd]);

      //Setting map centre using predefined variables
      map.setCenter(griffith, zoom);
      
                
    </script>
    
  </body>

</html>