cgiDirectory="http://localhost/mzcgi/"
True=-1
False=0

mapTheme = 'NONE: '
mzDataSet = 'NONE'

mzjsNoServerSideMode  = True
mzjsNoAddSpotMode     = True
mzjsNoAddLinkMode     = True
mzjsNoDeleteSpotMode  = True
mzjsNoStreetMapMode   = False
mzjsNoChangePopupMode = True
mzjsNoEditSpotInfoMode= True
mzjsNoUrlMode         = True
mzjsNoGoogleMode      = false
mzjsNoTerraserverMode = true
mzjsNoWikiMode        = true

mzjsLeafMapKeySuppression=false

mzjsButtonPopupOffsetX=+8
mzjsButtonPopupOffsetY=+20

mzjsSpot_SpotPopupOffsetX=-50
mzjsSpot_SpotPopupOffsetY=+20
mzjsSpot_SponsorPopupOffsetX=+8
mzjsSpot_SponsorPopupOffsetY=+20
mzjsSpot_ZoomPopupOffsetX=+8
mzjsSpot_ZoomPopupOffsetY=+20

mzjsKey_SpotPopupOffsetX=-5
mzjsKey_SpotPopupOffsetY=+55
mzjsKey_SponsorPopupOffsetX=+45
mzjsKey_SponsorPopupOffsetY=+50
mzjsKey_ChangeBoxOffsetX=0
mzjsKey_ChangeBoxOffsetY=+5

mzjsClickedPopupText_GotoWebsite = 'Goto Website'


mzjsSpotSizeAdjustmentX = 0
mzjsSpotSizeAdjustmentY = 0

mzjsViewerCornerTop =0
mzjsViewerCornerLeft=10

mzjsButtonsEdgeTop = 10
mzjsButtonsEdgeLeft = 417

mzjsMapCornerTop =40
mzjsMapCornerLeft=25


mzjsMapPopupTableStyle ='style="width:110px; background:silver; cursor:hand; color:black; font-size:8pt;'
mzjsMapPopupTableStyle +='font-family:arial, verdana, helvetica;font-size:8pt;"'


var mzjsMouseClickX;
var mzjsMouseClickY;


var mzjzCreatingLineBox = false;
var mzjzLineBoxVisible = false;
var mzjzLineBoxLeft = 100;
var mzjzLineBoxTop = 100;
var mzjzLineBoxRight = 200;
var mzjzLineBoxBottom = 300;


mzjsMapPopup=['<input class="mapPopup" type="button" value="Cancel" name= "next1" onclick="javascript:hideCatBox();">',
              '<input class="mapPopup" type="button" value="Start Box" name= "next2" onclick="javascript:startLineBox();">',
              'Other Categories...',
              '<a class="mapPopup" href="../BIRDS/$MapIndexName$.htm">Birds</a>',
              '<a class="mapPopup" href="../BLOGS/$MapIndexName$.htm">Blogs</a>', 
              '<a class="mapPopup" href="../CARAVAN/$MapIndexName$.htm">Caravans,&nbsp;YHAs</a>', 
              '<a class="mapPopup" href="../CARS/$MapIndexName$.htm">Car&nbsp;Dealers</a>', 
              '<a class="mapPopup" href="../COLLEGES/$MapIndexName$.htm">Colleges</a>', 
              '<a class="mapPopup" href="../CORRECTION/$MapIndexName$.htm">Churches&nbsp;and&nbsp;Prisons</a>', 
              '<a class="mapPopup" href="../GOLF/$MapIndexName$.htm">Golf&nbsp;Courses</a>', 
              '<a class="mapPopup" href="../ADMIN/$MapIndexName$.htm">Local&nbsp;Authorities</a>', 
              '<a class="mapPopup" href="../HISTORY/$MapIndexName$.htm">Historic&nbsp;Places</a>', 
              '<a class="mapPopup" href="../MUSIC/$MapIndexName$.htm">Music&nbsp;Tours</a>', 
              '<a class="mapPopup" href="../PETROL/$MapIndexName$.htm">Petrol&nbsp;Stations</a>', 
              '<a class="mapPopup" href="../PLANNING/$MapIndexName$.htm">Planning&nbsp;Applications</a>', 
              '<a class="mapPopup" href="../POLITICS/$MapIndexName$.htm">MPs&nbsp;Constituencies</a>', 
              '<a class="mapPopup" href="../SPORT/$MapIndexName$.htm">Sport</a>', 
              '<a class="mapPopup" href="../STATIONS/$MapIndexName$.htm">Railway&nbsp;Stations</a>', 
              '<a class="mapPopup" href="../TOWNS/$MapIndexName$.htm">Towns&nbsp;and&nbsp;Villages</a>', 
              '<a class="mapPopup" href="../VEGETARIAN/$MapIndexName$.htm">Vegetarian</a>', 
              '<a class="mapPopup" href="../WARDS/$MapIndexName$.htm">Electoral&nbsp;Wards</a>', 
              '<a class="mapPopup" href="../YORK/$MapIndexName$.htm">Test&nbsp;Data,&nbsp;York</a>',
              '<a class="mapPopup" href="../PLANNING/$MapIndexName$.htm">Planning&nbsp;example,&nbsp;York</a>'
             ]
              
   
mzjsChangeCategoriesXX=['Local&nbsp;Authorities','ADMIN', 
                      'Birds','BIRDS', 
                      'Blogs','BLOGS', 
                      'Caravans, YHAs','CARAVAN', 
                      'Car&nbsp;Dealers','CARS', 
                      'Colleges','COLLEGES', 
                      'Golf&nbsp;Courses','GOLF', 
                      'Music&nbsp;Tours','MUSIC', 
                      'Historic&nbsp;Places','HISTORY', 
                      'Petrol&nbsp;Stations','PETROL', 
                      'MPs&nbsp;Constituencies','POLITICS', 
                      'Sport','SPORT', 
                      'Railway Stations','STATIONS', 
                      'Towns&nbsp;and&nbsp;Villages','TOWNS', 
                      'Vegetarian','VEGETARIAN', 
                      'Electoral&nbsp;Wards','WARDS', 
                      'York&nbsp;Specials','YORK']


httpBannerImageLocation  = 'http://images.mapzit.com/banners/'
httpSpotImageLocation    = 'http://images.mapzit.com/spots/'
httpMapImageLocation     = 'http://images.mapzit.com/maps/uk/'
httpViewerImageLocation  = 'http://images.mapzit.com/viewer/'
httpButtonImageLocation  = 'http://images.mapzit.com/buttons/'

httpBannerImageLocation  = '../images/banners/'
httpSpotImageLocation    = '../images/spots/'
httpMapImageLocation     = '../images/maps/uk/'
httpViewerImageLocation  = '../images/viewer/'
httpButtonImageLocation  = '../images/buttons/'

httpRedirectFileLocation = 'http://www.mapzit.com/cgi/'

    
for (i=0;i<PtD.length;i++)
    if (PtD[i]["Kt"]==undefined)PtD[i]["Kt"]='blue'

for (i=0;i<PtD.length;i++)
    if (PtD[i]["Type"]==undefined)PtD[i]["Type"]='spot'


mzjsBlurbWidth = "421px"

mzjsUkMapIntroduction=''
mzjsUkMapIntroduction += '<b>Welcome to MapZit. Two things to remember...</b><br/><br/>'
mzjsUkMapIntroduction += '<b>1. Click on any spot ... </b>'
mzjsUkMapIntroduction += 'This displays links relevant to the spot'
mzjsUkMapIntroduction += ' (eg. the website of a Local Authority) '
mzjsUkMapIntroduction += 'or zooms in (or out) to another map <br/><br/> '
mzjsUkMapIntroduction += '<b>2. Click on the map itself... </b>'
mzjsUkMapIntroduction += 'This displays links to other categories.<br/>'
mzjsUkMapIntroduction += 'Click on a categories link to change '
mzjsUkMapIntroduction += 'the data spots on the map.<br><br>'
mzjsUkMapIntroduction += '<blockquote><small>Note: Sometimes spots are not shown if there are too '
mzjsUkMapIntroduction += 'many to display. <br>When this happens zoom into a lower level map.</small></blockquote>'


mzjsUkLeafMapTable=''
mzjsUkLeafMapTable += '<table cellpadding=0 cellspacing=0 width="' + mzjsBlurbWidth + '">'

mzjsUkLeafMapTable += '<tr><td colspan="2"><b>Links to Data Categories ...</b></td><td></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../ADMIN/uk.htm">Councils</a></td>'
mzjsUkLeafMapTable += '<td><a href="../PETROL/uk.htm">Petrol Stations</a></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../BIRDS/uk.htm">Birds</a></td>'
mzjsUkLeafMapTable += '<td><a href="../WARDS/uk.htm">Electoral Wards</a></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../BLOGS/uk.htm">Blogs</a></td>'
mzjsUkLeafMapTable += '<td><a href="../POLITICS/uk.htm">Parliamentary Constituencies</a></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../CARAVAN/uk.htm">Caravan, Camping, YHAs</a></td>'
mzjsUkLeafMapTable += '<td><a href="../STATIONS/uk.htm">Railway Stations</a></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../CARS/uk.htm">Car Dealers</a></td>'
mzjsUkLeafMapTable += '<td><a href="../SPORT/uk.htm">Sport</a></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../COLLEGES/uk.htm">Universities and Colleges</a></td>'
mzjsUkLeafMapTable += '<td><a href="../TOWNS/uk.htm">Towns</a></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../GOLF/uk.htm">Golf</a></td>'
mzjsUkLeafMapTable += '<td><a href="../YORK/uk.htm">York sample data</a></td></tr>'
mzjsUkLeafMapTable += '<tr><td><a href="../HISTORY/uk.htm">History and Nature</a></td>'
mzjsUkLeafMapTable += '</tr>'

mzjsUkLeafMapTable += '</table>'

msjsGoogleExtra =''


//-----------------------------------------------------


mzjsColorOfType = []
mzjsColorOfType['leafMap']='red'
mzjsColorOfType['parentMap']='red'
mzjsColorOfType['spot']='red'
mzjsColorOfType['sponsor']='green'

mzjsKeyColumnLength = 35

