// Temporary scripts go her - delete when no longer needed



// Anti-spam - encodes email address

// Email the exhibition convenor (on news.html)



function email_exhibitions() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org?subject=BHCC%20Photofringe%20Exhibition';

    var z = 'email';

    var x = 'exhibitions';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the constitution workgroup (on news.html)



function email_constitution() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'BHCC Constitution Working Party';

    var x = 'constitution';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}













// Do not edit scripts below this line unless you know what you're doing!

// ----------------------------------------------------------



// Anti-spam - encodes email address



// Email the Club

function email_info() {

    var prefix = 'mailto';

    var path = 'href=';

    var w = 'valign="bottom" class="nav2" '

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'Contact us';

    var x = 'info';

    document.write( '<a ' + w + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}

// Waiting List

function email_waitinglist() {

    var prefix = 'mailto';

    var path = 'href=';

    var w = 'valign="bottom" style="font-weight: bold;" '

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'waiting list';

    var x = 'info';

    document.write( '<a ' + w + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}


// Email the Web team

function email_webteam() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'BHCC web team';

    var x = 'webteam';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the Webmaster (Website editor)

function email_webmaster() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'BHCC Website Editor';

    var x = 'webmaster';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the gallery administrator

function email_gallery1() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'BHCC Gallery Administrator';

    var x = 'gallery';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the gallery administrator

function email_gallery2() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'email';

    var x = 'gallery';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the forum administrator

function email_forum1() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'BHCC Forum Administrator';

    var x = 'forum';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the forum administrator

function email_forum2() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'email';

    var x = 'forum';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the the competition convenors

function email_competitions() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'BHCC Competition Convenors';

    var x = 'competitions';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Email the newsletter editor

function email_newsletter() {

    var prefix = 'mailto';

    var path = 'href=';

    var y = '@' + 'bhcc-online' + '.' + 'org';

    var z = 'BHCC Newsletter Editor';

    var x = 'gallery';

    document.write( '<a ' + path + '\'' + prefix + ':' + x + y + '\'>' );

    document.write( z );

    document.write( '<\/a>' );

}



// Google Maps Function Call - we set lat and log here - also zoom-in level 

// See http://code.google.com/apis/maps/documentation/reference.html for full details

// JCH 18 September 2008



function gm_initialize() {

      if (GBrowserIsCompatible()) {

        var map = new GMap2(document.getElementById("map_canvas"));

        map.setCenter(new GLatLng(50.832704, -0.178352), 16);

		var point = new GLatLng(50.832794, -0.179152);

 		

		// Set up our GMarkerOptions object

        var mapTypeControl = new GMapTypeControl();

        var topRight = new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(10,10));

        var bottomRight = new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,10));

        map.addControl(mapTypeControl, topRight);

        GEvent.addListener(map, "dblclick", function() {

          map.removeControl(mapTypeControl);

          map.addControl(new GMapTypeControl(), bottomRight);

        });

        map.addControl(new GSmallMapControl());

		map.addOverlay(new GMarker(point));

      }

}




