<html>
<head>
<script src="../lib/OpenLayers.js">
</script>
</head>
<body>
<h4>Debortoli Wines OpenLayers Test</h4>
<div style="width:100%; height:80%" id="map"></div>
<!--Creating Map-->
<script defer="defer" type="text/javascript">
OpenLayers.ProxyHost="/proxy/?url=";
//Creating Map
var map = new OpenLayers.Map( 'map', {controls: [new OpenLayers.Control.PanZoomBar()]} );
//Defining Variables for Longitude, Latitude and Zoom
var lon = 0;
var lat = 0;
var zoom = 0;
//Creating Layers
//var dbwap = new OpenLayers.Layer.WMS( "Aerial Photo",
        //"http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map",
        //{layers: 'dbwap'},
        //{projection: "EPSG:28355"}
        //);
        var cadbd = new OpenLayers.Layer.WMS( "Cadastral Boundary",
        "http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map",
        {layers: 'bcadbd,hcadbd'},
        {projection: "EPSG:28355"}
        );
        //var propbd = new OpenLayers.Layer.WMS( "Property Boundary",
        //"http://192.168.1.130/cgi-bin/mapserv?map=/usr/local/mapfiles/dbw.map",
        //{layers: 'bpropbd,hpropbd'},
        //{projection: "EPSG:28355"}
        //);
        
        //Adding Layers
        //map.addLayers([dbwap]);
map.addLayers([cadbd]);
        //map.addLayers([propbd]);
        
        //Adding map controls
map.addControl(new OpenLayers.Control.MouseToolbar());
map.addControl(new OpenLayers.Control.MousePosition());
        //Layer Switcher
var layer_switcher = new OpenLayers.Control.LayerSwitcher();
map.addControl(layer_switcher);
layer_switcher.maximizeControl();
//Setting map centre using predefined variables
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
                
</script>
</body>
</html>