try {
  jQuery.fn.callMaps = function(){
  
    var myIcon_1 = new GIcon();
    myIcon_1.image = '/images/markers/image_1.png';
    myIcon_1.printImage = '/images/markers/printImage_1.gif';
    myIcon_1.mozPrintImage = '/images/markers/mozPrintImage_1.gif';
    myIcon_1.iconSize = new GSize(19, 32);
    myIcon_1.shadow = '/images/markers/shadow.png';
    myIcon_1.transparent = '/images/markers/transparent.png';
    myIcon_1.shadowSize = new GSize(35, 32);
    myIcon_1.printShadow = '/images/markers/printShadow.gif';
    myIcon_1.iconAnchor = new GPoint(10, 32);
    myIcon_1.infoWindowAnchor = new GPoint(10, 0);
    myIcon_1.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_2 = new GIcon();
    myIcon_2.image = '/images/markers/image_2.png';
    myIcon_2.printImage = '/images/markers/printImage_2.gif';
    myIcon_2.mozPrintImage = '/images/markers/mozPrintImage_2.gif';
    myIcon_2.iconSize = new GSize(19, 32);
    myIcon_2.shadow = '/images/markers/shadow.png';
    myIcon_2.transparent = '/images/markers/transparent.png';
    myIcon_2.shadowSize = new GSize(35, 32);
    myIcon_2.printShadow = '/images/markers/printShadow.gif';
    myIcon_2.iconAnchor = new GPoint(10, 32);
    myIcon_2.infoWindowAnchor = new GPoint(10, 0);
    myIcon_2.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_3 = new GIcon();
    myIcon_3.image = '/images/markers/image_3.png';
    myIcon_3.printImage = '/images/markers/printImage_3.gif';
    myIcon_3.mozPrintImage = '/images/markers/mozPrintImage_3.gif';
    myIcon_3.iconSize = new GSize(19, 32);
    myIcon_3.shadow = '/images/markers/shadow.png';
    myIcon_3.transparent = '/images/markers/transparent.png';
    myIcon_3.shadowSize = new GSize(35, 32);
    myIcon_3.printShadow = '/images/markers/printShadow.gif';
    myIcon_3.iconAnchor = new GPoint(10, 32);
    myIcon_3.infoWindowAnchor = new GPoint(10, 0);
    myIcon_3.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_4 = new GIcon();
    myIcon_4.image = '/images/markers/image_4.png';
    myIcon_4.printImage = '/images/markers/printImage_4.gif';
    myIcon_4.mozPrintImage = '/images/markers/mozPrintImage_4.gif';
    myIcon_4.iconSize = new GSize(19, 32);
    myIcon_4.shadow = '/images/markers/shadow.png';
    myIcon_4.transparent = '/images/markers/transparent.png';
    myIcon_4.shadowSize = new GSize(35, 32);
    myIcon_4.printShadow = '/images/markers/printShadow.gif';
    myIcon_4.iconAnchor = new GPoint(10, 32);
    myIcon_4.infoWindowAnchor = new GPoint(10, 0);
    myIcon_4.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_5 = new GIcon();
    myIcon_5.image = '/images/markers/image_5.png';
    myIcon_5.printImage = '/images/markers/printImage_5.gif';
    myIcon_5.mozPrintImage = '/images/markers/mozPrintImage_5.gif';
    myIcon_5.iconSize = new GSize(19, 32);
    myIcon_5.shadow = '/images/markers/shadow.png';
    myIcon_5.transparent = '/images/markers/transparent.png';
    myIcon_5.shadowSize = new GSize(35, 32);
    myIcon_5.printShadow = '/images/markers/printShadow.gif';
    myIcon_5.iconAnchor = new GPoint(10, 32);
    myIcon_5.infoWindowAnchor = new GPoint(10, 0);
    myIcon_5.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_6 = new GIcon();
    myIcon_6.image = '/images/markers/image_6.png';
    myIcon_6.printImage = '/images/markers/printImage_6.gif';
    myIcon_6.mozPrintImage = '/images/markers/mozPrintImage_6.gif';
    myIcon_6.iconSize = new GSize(19, 32);
    myIcon_6.shadow = '/images/markers/shadow.png';
    myIcon_6.transparent = '/images/markers/transparent.png';
    myIcon_6.shadowSize = new GSize(35, 32);
    myIcon_6.printShadow = '/images/markers/printShadow.gif';
    myIcon_6.iconAnchor = new GPoint(10, 32);
    myIcon_6.infoWindowAnchor = new GPoint(10, 0);
    myIcon_6.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_7 = new GIcon();
    myIcon_7.image = '/images/markers/image_7.png';
    myIcon_7.printImage = '/images/markers/printImage_7.gif';
    myIcon_7.mozPrintImage = '/images/markers/mozPrintImage_7.gif';
    myIcon_7.iconSize = new GSize(19, 32);
    myIcon_7.shadow = '/images/markers/shadow.png';
    myIcon_7.transparent = '/images/markers/transparent.png';
    myIcon_7.shadowSize = new GSize(35, 32);
    myIcon_7.printShadow = '/images/markers/printShadow.gif';
    myIcon_7.iconAnchor = new GPoint(10, 32);
    myIcon_7.infoWindowAnchor = new GPoint(10, 0);
    myIcon_7.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_8 = new GIcon();
    myIcon_8.image = '/images/markers/image_8.png';
    myIcon_8.printImage = '/images/markers/printImage_8.gif';
    myIcon_8.mozPrintImage = '/images/markers/mozPrintImage_8.gif';
    myIcon_8.iconSize = new GSize(19, 32);
    myIcon_8.shadow = '/images/markers/shadow.png';
    myIcon_8.transparent = '/images/markers/transparent.png';
    myIcon_8.shadowSize = new GSize(35, 32);
    myIcon_8.printShadow = '/images/markers/printShadow.gif';
    myIcon_8.iconAnchor = new GPoint(10, 32);
    myIcon_8.infoWindowAnchor = new GPoint(10, 0);
    myIcon_8.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_9 = new GIcon();
    myIcon_9.image = '/images/markers/image_9.png';
    myIcon_9.printImage = '/images/markers/printImage_9.gif';
    myIcon_9.mozPrintImage = '/images/markers/mozPrintImage_9.gif';
    myIcon_9.iconSize = new GSize(19, 32);
    myIcon_9.shadow = '/images/markers/shadow.png';
    myIcon_9.transparent = '/images/markers/transparent.png';
    myIcon_9.shadowSize = new GSize(35, 32);
    myIcon_9.printShadow = '/images/markers/printShadow.gif';
    myIcon_9.iconAnchor = new GPoint(10, 32);
    myIcon_9.infoWindowAnchor = new GPoint(10, 0);
    myIcon_9.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_10 = new GIcon();
    myIcon_10.image = '/images/markers/image_10.png';
    myIcon_10.printImage = '/images/markers/printImage_10.gif';
    myIcon_10.mozPrintImage = '/images/markers/mozPrintImage_10.gif';
    myIcon_10.iconSize = new GSize(19, 32);
    myIcon_10.shadow = '/images/markers/shadow.png';
    myIcon_10.transparent = '/images/markers/transparent.png';
    myIcon_10.shadowSize = new GSize(35, 32);
    myIcon_10.printShadow = '/images/markers/printShadow.gif';
    myIcon_10.iconAnchor = new GPoint(10, 32);
    myIcon_10.infoWindowAnchor = new GPoint(10, 0);
    myIcon_10.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_11 = new GIcon();
    myIcon_11.image = '/images/markers/image_11.png';
    myIcon_11.printImage = '/images/markers/printImage_11.gif';
    myIcon_11.mozPrintImage = '/images/markers/mozPrintImage_11.gif';
    myIcon_11.iconSize = new GSize(19, 32);
    myIcon_11.shadow = '/images/markers/shadow.png';
    myIcon_11.transparent = '/images/markers/transparent.png';
    myIcon_11.shadowSize = new GSize(35, 32);
    myIcon_11.printShadow = '/images/markers/printShadow.gif';
    myIcon_11.iconAnchor = new GPoint(10, 32);
    myIcon_11.infoWindowAnchor = new GPoint(10, 0);
    myIcon_11.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_12 = new GIcon();
    myIcon_12.image = '/images/markers/image_12.png';
    myIcon_12.printImage = '/images/markers/printImage_12.gif';
    myIcon_12.mozPrintImage = '/images/markers/mozPrintImage_12.gif';
    myIcon_12.iconSize = new GSize(19, 32);
    myIcon_12.shadow = '/images/markers/shadow.png';
    myIcon_12.transparent = '/images/markers/transparent.png';
    myIcon_12.shadowSize = new GSize(35, 32);
    myIcon_12.printShadow = '/images/markers/printShadow.gif';
    myIcon_12.iconAnchor = new GPoint(10, 32);
    myIcon_12.infoWindowAnchor = new GPoint(10, 0);
    myIcon_12.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_13 = new GIcon();
    myIcon_13.image = '/images/markers/image_13.png';
    myIcon_13.printImage = '/images/markers/printImage_13.gif';
    myIcon_13.mozPrintImage = '/images/markers/mozPrintImage_13.gif';
    myIcon_13.iconSize = new GSize(19, 32);
    myIcon_13.shadow = '/images/markers/shadow.png';
    myIcon_13.transparent = '/images/markers/transparent.png';
    myIcon_13.shadowSize = new GSize(35, 32);
    myIcon_13.printShadow = '/images/markers/printShadow.gif';
    myIcon_13.iconAnchor = new GPoint(10, 32);
    myIcon_13.infoWindowAnchor = new GPoint(10, 0);
    myIcon_13.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_14 = new GIcon();
    myIcon_14.image = '/images/markers/image_14.png';
    myIcon_14.printImage = '/images/markers/printImage_14.gif';
    myIcon_14.mozPrintImage = '/images/markers/mozPrintImage_14.gif';
    myIcon_14.iconSize = new GSize(19, 32);
    myIcon_14.shadow = '/images/markers/shadow.png';
    myIcon_14.transparent = '/images/markers/transparent.png';
    myIcon_14.shadowSize = new GSize(35, 32);
    myIcon_14.printShadow = '/images/markers/printShadow.gif';
    myIcon_14.iconAnchor = new GPoint(10, 32);
    myIcon_14.infoWindowAnchor = new GPoint(10, 0);
    myIcon_14.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_15 = new GIcon();
    myIcon_15.image = '/images/markers/image_15.png';
    myIcon_15.printImage = '/images/markers/printImage_15.gif';
    myIcon_15.mozPrintImage = '/images/markers/mozPrintImage_15.gif';
    myIcon_15.iconSize = new GSize(19, 32);
    myIcon_15.shadow = '/images/markers/shadow.png';
    myIcon_15.transparent = '/images/markers/transparent.png';
    myIcon_15.shadowSize = new GSize(35, 32);
    myIcon_15.printShadow = '/images/markers/printShadow.gif';
    myIcon_15.iconAnchor = new GPoint(10, 32);
    myIcon_15.infoWindowAnchor = new GPoint(10, 0);
    myIcon_15.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    var myIcon_16 = new GIcon();
    myIcon_16.image = '/images/markers/image_16.png';
    myIcon_16.printImage = '/images/markers/printImage_16.gif';
    myIcon_16.mozPrintImage = '/images/markers/mozPrintImage_16.gif';
    myIcon_16.iconSize = new GSize(19, 32);
    myIcon_16.shadow = '/images/markers/shadow.png';
    myIcon_16.transparent = '/images/markers/transparent.png';
    myIcon_16.shadowSize = new GSize(35, 32);
    myIcon_16.printShadow = '/images/markers/printShadow.gif';
    myIcon_16.iconAnchor = new GPoint(10, 32);
    myIcon_16.infoWindowAnchor = new GPoint(10, 0);
    myIcon_16.imageMap = [13, 0, 15, 1, 16, 2, 17, 3, 17, 4, 18, 5, 18, 6, 18, 7, 18, 8, 18, 9, 18, 10, 18, 11, 18, 12, 17, 13, 17, 14, 18, 15, 18, 16, 16, 17, 15, 18, 14, 19, 13, 20, 13, 21, 13, 22, 13, 23, 12, 24, 12, 25, 11, 26, 11, 27, 11, 28, 11, 29, 11, 30, 11, 31, 8, 31, 8, 30, 8, 29, 8, 28, 8, 27, 8, 26, 7, 25, 7, 24, 7, 23, 7, 22, 6, 21, 6, 20, 5, 19, 5, 18, 4, 17, 3, 16, 2, 15, 1, 14, 1, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 1, 5, 1, 4, 2, 3, 3, 2, 4, 1, 6, 0];
    
    
    $('#map1').jmap('init', {
      'mapType': G_NORMAL_MAP,
      'mapCenter': [37.701805, -122.389581],
      'mapZoom': 10,
      'mapShowjMapsIcon': false,
      'mapEnableScaleControl': true,
      'mapEnableSmoothZoom': true,
      'mapEnableType': true,
      'mapControl': 'large'
    });
    $("#location_list ul li a[class!='disabled']").each(function(){
      var aLink = $(this);
      var cIcon = $(this).find(':input[name=icon]')[0].value;
      var html = $(this).find(':input[name=html]')[0].value;
      var lat = $(this).attr('name').split(',')[0];
      var longit = $(this).attr('name').split(',')[1];
      $('#map1').jmap('AddMarker', {
        'pointLatLng': [lat, longit],
        'pointHTML': ' ' + html + ' ',
        'pointIcon': eval(cIcon)
      }, function(marker, options){
      
        GEvent.addListener(marker, "click", function(){
          $('#map1').jmap('MoveTo', {
            'centerMethod': 'pan',
            'mapCenter': [lat, longit]
          });
        });
        
        aLink.hover(function(){
          if (!$(this).hasClass("disabled")) {
            GEvent.trigger(marker, "click");
            return false;
          }
        });
      });
    });
  }
} 
catch (err) {
}

$(document).ready(function(){



  /* Clear Search text on Focus */
  $('#search').focus(function(){
    $(this).val('');
  })
  
  $('#search_class').focus(function(){
    $(this).val('');
  })
  
  
  // Tabs!  
  $('.service_detail ul#tab_menu').tabify();
  $('ul#tab_menu li a').click(function(){
    $('ul#tab_menu li').removeClass('border_change');
    $(this).parent().prev().addClass('border_change');
  });
  // need to add logic for above code on 'what we offer' nav onload.
  
  // Initial Map Pull
  $().callMaps();
  
  // Filter Widget
  $('#location_filter_select').change(function(){
    var filterName = $('option:selected', this).attr('value');
    $('#location_list ul li a').each(function(){
      $(this).removeClass('disabled');
      if (filterName != 'all') {
        $(this).not('[rel~=' + filterName + ']').addClass('disabled');
        $(this).hover = '';
      };
          });
    $().callMaps();
  });
  
  $('#tab_menu li.active').each(function(){
    if ($(this).prev().length > 0) {
      $(this).prev()[0].style.borderRight = 'none';
    }
  });
  
  // Tooltip
  //fix for internet explorer if there are no links to apply the tooltip to
  if ($("a.hover_link").length > 0) {
    $("a.hover_link").tooltip({
      track: true,
      delay: 0,
      showURL: false,
      opacity: 1,
      fixPNG: true,
      extraClass: "hover_box",
      top: -246,
      left: -160,
      bodyHandler: function(){
        return $($(this).next('div.hover_box')).html();
      }
    });
  }

	

	// initialise superfish
	if ($('.hlist ul').hasClass('sf-menu')){
				$('ul.sf-menu').superfish();
	}

	
	
});
