/*************************************************************
* Window Onload Manager (WOM) v1.0
* Author: Justin Barlow - www.netlobo.com
*
* Description:
* The WOM library of functions allows you to easily call
* multiple javascript functions when your page loads.
*
* Usage:
* Add functions to WOM using the womAdd() function. Pass the
* name of your functions (with or without parameters) into
* womAdd(). Then call womOn() like this:
* womAdd('hideDiv()');
* womAdd('changeBg("menuopts","#CCCCCC")');
* womOn();
* WOM will now run when your page loads and run all of the
* functions you have added using womAdd()
*************************************************************/
/*************************************************************
* The womOn() function will set the window.onload function to
* be womGo() which will run all of your window.onload
* functions.
*************************************************************/
function womOn(){
window.onload = womGo;
}
function wumOn(){
window.onunload = wumGo;
}
/*************************************************************
* The womGo() function loops through the woms array and
* runs each function in the array.
*************************************************************/
function womGo(){
for(var i = 0;i < woms.length;i++)
eval(woms[i]);
}
function wumGo(){
for(var i = 0;i < wums.length;i++)
eval(wums[i]);
}
/*************************************************************
* The womAdd() function will add another function to the woms
* array to be run when the page loads.
*************************************************************/
function womAdd(func){
woms[woms.length] = func;
}
function wumAdd(func){
wums[wums.length] = func;
}
/*************************************************************
* The woms array holds all of the functions you wish to run
* when the page loads.
*************************************************************/
var woms = new Array();
var wums = new Array();
/**
* Function to workaround the fact that Internet Explorer 6 and below does not support the CSS :hover pseudo class.
* The function cycles through all the list items which are a direct child of the 'nav' ul, and adds onmouseover and onmouseout events to change the css class
*/
navFix = function() {
//Only add event handlers if browser is IE6 or lower
if (document.all && !(document.documentElement && typeof document.documentElement.style.maxHeight!="undefined")) {
if (document.getElementById("nav") && document.getElementById("nav").childNodes.length > 0) {
navRoot = document.getElementById("nav");
navRootLength = navRoot.childNodes.length;
for (j = 0; j < navRootLength; j++) {
node = navRoot.childNodes[j];
if (node.nodeName == "LI") {
node.onmouseover = function() {
this.className += " hover";
}//end function
node.onmouseout = function() {
this.className = this.className.replace(" hover", "");
}//end function
}//end if
}//end for
}//end if
}//end if
}//end function
function fav() {
var newLI = document.createElement('li');
newLI.setAttribute('id', 'ctafavourites');
var newA = document.createElement('a');
newA.setAttribute('href', 'javascript:void(false)');
var newT = document.createTextNode('Add to favourites');
if (! (s = document.getElementById('cta'))) {
if (! (s = document.getElementById('footercta'))) {
return false;
}//if
}//if
newA.appendChild(newT);
newLI.appendChild(newA);
if (window.sidebar) {
s.appendChild(newLI);
document.getElementById('ctafavourites').onclick = function() {window.sidebar.addPanel(document.title,self.location,'')};
} else if (window.external) {
s.appendChild(newLI);
document.getElementById('ctafavourites').onclick = function() {window.external.AddFavorite(self.location,document.title)};
} else if (window.opera) {
s.appendChild(newLI);
document.getElementById('ctafavourites').onclick = function() {
var e = document.createElement('a');
e.setAttribute('href',self.location);
e.setAttribute('title',document.title);
e.setAttribute('rel','sidebar');
e.click();
}//function
}//if
}//function
function doGoogleMap() {
if (self.GBrowserIsCompatible) {
var map = new GMap2(document.getElementById("googlemap"));
map.addControl(new GSmallMapControl());
map.setCenter(new GLatLng(0.2137,16.9849), 3);
marker1 = new GMarker(new GLatLng(27.839076,2.8125));
GEvent.addListener(marker1, "click", function() {
marker1.openInfoWindowHtml("Algeria
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker1);
marker2 = new GMarker(new GLatLng(-12.897489,17.578125));
GEvent.addListener(marker2, "click", function() {
marker2.openInfoWindowHtml("Angola
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker2);
marker3 = new GMarker(new GLatLng(6.140555,5.625));
GEvent.addListener(marker3, "click", function() {
marker3.openInfoWindowHtml("Benin
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker3);
marker4 = new GMarker(new GLatLng(-22.43134,23.730469));
GEvent.addListener(marker4, "click", function() {
marker4.openInfoWindowHtml("Botswana
Contact: Graham Harrison
Email: graham.harrison@meckow.com
Telephone: +27 837 891565
Skype: podgeharrison");
})
map.addOverlay(marker4);
marker5 = new GMarker(new GLatLng(12.382928,-1.054688));
GEvent.addListener(marker5, "click", function() {
marker5.openInfoWindowHtml("Burkina Faso
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker5);
marker6 = new GMarker(new GLatLng(-3.776559,30.058594));
GEvent.addListener(marker6, "click", function() {
marker6.openInfoWindowHtml("Burundi
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker6);
marker7 = new GMarker(new GLatLng(5.441022,12.744141));
GEvent.addListener(marker7, "click", function() {
marker7.openInfoWindowHtml("Cameroon
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker7);
marker8 = new GMarker(new GLatLng(14.944785,-23.642578));
GEvent.addListener(marker8, "click", function() {
marker8.openInfoWindowHtml("Cape Verde
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker8);
marker9 = new GMarker(new GLatLng(6.446318,20.522461));
GEvent.addListener(marker9, "click", function() {
marker9.openInfoWindowHtml("Central African Republic
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker9);
marker10 = new GMarker(new GLatLng(15.284185,18.676758));
GEvent.addListener(marker10, "click", function() {
marker10.openInfoWindowHtml("Chad
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker10);
marker11 = new GMarker(new GLatLng(-11.695273,43.324585));
GEvent.addListener(marker11, "click", function() {
marker11.openInfoWindowHtml("Comoros
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker11);
marker12 = new GMarker(new GLatLng(-2.943041,23.510742));
GEvent.addListener(marker12, "click", function() {
marker12.openInfoWindowHtml("Democratic Republic of Congo
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker12);
marker13 = new GMarker(new GLatLng(-0.505365,15.666504));
GEvent.addListener(marker13, "click", function() {
marker13.openInfoWindowHtml("Republic of Congo
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker13);
marker14 = new GMarker(new GLatLng(7.536764,-5.559082));
GEvent.addListener(marker14, "click", function() {
marker14.openInfoWindowHtml("Côte d'Ivoire
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker14);
marker15 = new GMarker(new GLatLng(11.652236,42.539063));
GEvent.addListener(marker15, "click", function() {
marker15.openInfoWindowHtml("Djibouti
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker15);
marker16 = new GMarker(new GLatLng(27.019984,29.53125));
GEvent.addListener(marker16, "click", function() {
marker16.openInfoWindowHtml("Egypt
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker16);
marker17 = new GMarker(new GLatLng(1.537901,10.524902));
GEvent.addListener(marker17, "click", function() {
marker17.openInfoWindowHtml("Equatorial Guinea
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker17);
marker18 = new GMarker(new GLatLng(15.24179,38.869629));
GEvent.addListener(marker18, "click", function() {
marker18.openInfoWindowHtml("Eritrea
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker18);
marker19 = new GMarker(new GLatLng(8.537565,39.506836));
GEvent.addListener(marker19, "click", function() {
marker19.openInfoWindowHtml("Ethiopia
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker19);
marker20 = new GMarker(new GLatLng(8.537565,39.506836));
GEvent.addListener(marker20, "click", function() {
marker20.openInfoWindowHtml("Ethiopia
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker20);
marker21 = new GMarker(new GLatLng(-0.659165,11.865234));
GEvent.addListener(marker21, "click", function() {
marker21.openInfoWindowHtml("Gabon
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker21);
marker22 = new GMarker(new GLatLng(13.48579,-15.424805));
GEvent.addListener(marker22, "click", function() {
marker22.openInfoWindowHtml("Gambia
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker22);
marker23 = new GMarker(new GLatLng(7.917793,-1.131592));
GEvent.addListener(marker23, "click", function() {
marker23.openInfoWindowHtml("Ghana
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker23);
marker24 = new GMarker(new GLatLng(10.314919,-10.612793));
GEvent.addListener(marker24, "click", function() {
marker24.openInfoWindowHtml("Guinea
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker24);
marker25 = new GMarker(new GLatLng(12.007085,-14.666748));
GEvent.addListener(marker25, "click", function() {
marker25.openInfoWindowHtml("Guinea-Bissau
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker25);
marker26 = new GMarker(new GLatLng(0.395505,37.858887));
GEvent.addListener(marker26, "click", function() {
marker26.openInfoWindowHtml("Kenya
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker26);
marker27 = new GMarker(new GLatLng(-29.592565,28.168945));
GEvent.addListener(marker27, "click", function() {
marker27.openInfoWindowHtml("Lesotho
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker27);
marker28 = new GMarker(new GLatLng(6.337137,-9.338379));
GEvent.addListener(marker28, "click", function() {
marker28.openInfoWindowHtml("Liberia
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker28);
marker29 = new GMarker(new GLatLng(27.44979,17.753906));
GEvent.addListener(marker29, "click", function() {
marker29.openInfoWindowHtml("Libya
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker29);
marker30 = new GMarker(new GLatLng(-19.932041,46.40625));
GEvent.addListener(marker30, "click", function() {
marker30.openInfoWindowHtml("Madagascar
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker30);
marker31 = new GMarker(new GLatLng(-13.710035,34.101563));
GEvent.addListener(marker31, "click", function() {
marker31.openInfoWindowHtml("Malawi
Contact: Carol Devenish
Email: carol.devenish@meckow-international.com
Telephone: +265 9 287650
Skype: carol.devenish");
})
map.addOverlay(marker31);
marker32 = new GMarker(new GLatLng(16.509833,-2.988281));
GEvent.addListener(marker32, "click", function() {
marker32.openInfoWindowHtml("Mali
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker32);
marker33 = new GMarker(new GLatLng(-20.277656,57.584839));
GEvent.addListener(marker33, "click", function() {
marker33.openInfoWindowHtml("Mauritius
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker33);
marker34 = new GMarker(new GLatLng(20.220966,-10.283203));
GEvent.addListener(marker34, "click", function() {
marker34.openInfoWindowHtml("Mauritania
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker34);
marker35 = new GMarker(new GLatLng(-12.849293,45.148315));
GEvent.addListener(marker35, "click", function() {
marker35.openInfoWindowHtml("Mayotte
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker35);
marker36 = new GMarker(new GLatLng(31.914868,-5.976563));
GEvent.addListener(marker36, "click", function() {
marker36.openInfoWindowHtml("Morocco
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker36);
marker37 = new GMarker(new GLatLng(-17.434511,36.166992));
GEvent.addListener(marker37, "click", function() {
marker37.openInfoWindowHtml("Mozambique
Contact: Graham Harrison
Email: graham.harrison@meckow.com
Telephone: +27 837 891565
Skype: podgeharrison");
})
map.addOverlay(marker37);
marker38 = new GMarker(new GLatLng(-22.836946,17.094727));
GEvent.addListener(marker38, "click", function() {
marker38.openInfoWindowHtml("Namibia
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker38);
marker39 = new GMarker(new GLatLng(17.434511,9.404297));
GEvent.addListener(marker39, "click", function() {
marker39.openInfoWindowHtml("Niger
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker39);
marker40 = new GMarker(new GLatLng(9.470736,8.041992));
GEvent.addListener(marker40, "click", function() {
marker40.openInfoWindowHtml("Nigeria
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker40);
marker41 = new GMarker(new GLatLng(-21.079375,55.489197));
GEvent.addListener(marker41, "click", function() {
marker41.openInfoWindowHtml("Réunion
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker41);
marker42 = new GMarker(new GLatLng(-2.015575,29.893799));
GEvent.addListener(marker42, "click", function() {
marker42.openInfoWindowHtml("Rwanda
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker42);
marker43 = new GMarker(new GLatLng(-15.96529,-5.715637));
GEvent.addListener(marker43, "click", function() {
marker43.openInfoWindowHtml("Saint Helena
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker43);
marker44 = new GMarker(new GLatLng(0.247192,6.600037));
GEvent.addListener(marker44, "click", function() {
marker44.openInfoWindowHtml("Sao Tome and Principe
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker44);
marker45 = new GMarker(new GLatLng(14.43468,-14.611816));
GEvent.addListener(marker45, "click", function() {
marker45.openInfoWindowHtml("Senegal
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker45);
marker46 = new GMarker(new GLatLng(-4.646236,55.445251));
GEvent.addListener(marker46, "click", function() {
marker46.openInfoWindowHtml("Seychelles
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker46);
marker47 = new GMarker(new GLatLng(8.971897,-11.78833));
GEvent.addListener(marker47, "click", function() {
marker47.openInfoWindowHtml("Sierra Leone
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker47);
marker48 = new GMarker(new GLatLng(3.173425,44.714355));
GEvent.addListener(marker48, "click", function() {
marker48.openInfoWindowHtml("Somalia
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker48);
marker49 = new GMarker(new GLatLng(-30.789037,24.169922));
GEvent.addListener(marker49, "click", function() {
marker49.openInfoWindowHtml("South Africa
Contact: Graham Harrison
Email: graham.harrison@meckow.com
Telephone: +27 837 891565
Skype: podgeharrison");
})
map.addOverlay(marker49);
marker50 = new GMarker(new GLatLng(13.966054,29.882813));
GEvent.addListener(marker50, "click", function() {
marker50.openInfoWindowHtml("Sudan
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker50);
marker51 = new GMarker(new GLatLng(-26.509905,31.398926));
GEvent.addListener(marker51, "click", function() {
marker51.openInfoWindowHtml("Swaziland
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker51);
marker52 = new GMarker(new GLatLng(-5.834616,34.541016));
GEvent.addListener(marker52, "click", function() {
marker52.openInfoWindowHtml("Tanzania
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker52);
marker53 = new GMarker(new GLatLng(8.581021,0.966797));
GEvent.addListener(marker53, "click", function() {
marker53.openInfoWindowHtml("Togo
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker53);
marker54 = new GMarker(new GLatLng(34.052659,9.492188));
GEvent.addListener(marker54, "click", function() {
marker54.openInfoWindowHtml("Tunisia
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker54);
marker55 = new GMarker(new GLatLng(1.461023,32.01416));
GEvent.addListener(marker55, "click", function() {
marker55.openInfoWindowHtml("Uganda
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker55);
marker56 = new GMarker(new GLatLng(24.607069,-13.677979));
GEvent.addListener(marker56, "click", function() {
marker56.openInfoWindowHtml("Western Sahara
Contact: Head Office
Email: sales@meckow.com
Telephone: +44 116 251 6833");
})
map.addOverlay(marker56);
marker57 = new GMarker(new GLatLng(-14.221789,26.564941));
GEvent.addListener(marker57, "click", function() {
marker57.openInfoWindowHtml("Zambia
Contact: Graham Harrison
Email: graham.harrison@meckow.com
Telephone: +27 837 891565
Skype: podgeharrison");
})
map.addOverlay(marker57);
marker58 = new GMarker(new GLatLng(-19.228177,29.729004));
GEvent.addListener(marker58, "click", function() {
marker58.openInfoWindowHtml("Zimbabwe
Contact: Andrew Kluckow
Email: andrew.kluckow@meckow.com
Telephone: +44 7776 107231
Skype: akluckow");
})
map.addOverlay(marker58);
}//if
}//function
womAdd('doGoogleMap()');
womAdd('navFix()');
womAdd('fav()');
womOn();
womGo();