<html>
<head>
<!--Adding Google Maps API-->
<!--Test Key-->
<!--<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ" type="text/javascript"></script>-->
<!--192.168.1.130 Key-->
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAA1g4shYTICk__jT8urLob6BTb0JODD-48Ph1ctpD6ETcfdX-nsBTuIqTH1cxgp3sbc1lKHgXgfbLJew" type="text/javascript"></script>
<!--Adding OpenLayers Script-->
<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 = 146;
var lat = -34;
var zoom = 8;
//Adding map controls
map.addControl(new OpenLayers.Control.MouseToolbar());
map.addControl(new OpenLayers.Control.MousePosition());
map.addControl(new OpenLayers.Control.Permalink());
//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 });
        
        //Creating WMS Layers
        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([google, googles, googleh, cadbd, propbd]);
//Setting map centre using predefined variables
map.setCenter(new OpenLayers.LonLat(lon, lat), zoom);
                
</script>
</body>
</html>