
    /*
	* Author: Karl O'Leary
	* Company: Emagine Media, http://www.emagine.ie
	* Description: Specific logic for site
	*
	* Updated:
	 * - 20090820.1548, Karl, fixed the sliding doors feature (bindHover) for IE6
	* - 20090623.1051, Karl, added the pngfix  fix
	* - 20090520.1043, Karl, created
	*/


    var google_map = null;

    /*
	* On load code.
	*/
    $(document).ready(function() {
        if ($.browser.msie && jQuery.browser.version.substr(0,3)=="6.0") {
           //bindHover($('li.nav_off'));
		   bindHover($('li.nav_off a'));
        }

        if (jQuery.url.attr("path")=="/about/contact") {
            google_map = googleMapsLoad('google_map', 52.2608, -7.1146, 14);
            googleMapsAddMarker(google_map, 52.2608, -7.1146, '<p><strong>Waterford Chamber Skillnet</strong>,<br/>2 Georges Street,<br/>Waterford</p>');
        }	
		
		$("a.lightbox").lightBox({
			overlayBgColor: '#333',
			overlayOpacity: 0.6,
			imageLoading: '/graphics/lightbox-ico-loading.gif',
			imageBtnClose: '/graphics/lightbox-btn-close.gif',
			imageBtnPrev: '/graphics/lightbox-btn-prev.gif',
			imageBtnNext: '/graphics/lightbox-btn-next.gif',
			containerResizeSpeed: 350,
			txtImage: 'Image',
			txtOf: 'of'
		});
    });

    /*
	* On close code.
	*/
    $(window).unload(function () {        
    });
    
    /*
	* Over come the hover on none a tags problems with IE6
	*/
    function bindHover($liList){
        $liList.hover(
            function() { 
				$(this).parent().css("background", "url(/graphics/nav_on_left.jpg) top left no-repeat"); 
				$(this).css("background", "url(/graphics/nav_on_right.jpg) top right no-repeat"); 
			},
            function() { 
				$(this).parent().css("background", "url(/graphics/nav_off_left.jpg) top left no-repeat"); 
				$(this).css("background", "url(/graphics/nav_off_right.jpg) top right no-repeat"); 
			}
        );
    }

