function handleJquery(){
    
    /*********************************************************
       Slideshow 
    *********************************************************/
    var slideshowSpeed = 800;
    var slideshowTimeout = 4000;    
    
    $('div.gallery').cycle({ 
        fx:      'fade', 
        speed:    slideshowSpeed, 
        timeout:  slideshowTimeout,
        continuous: 0, // set this to 0 so timeout will work
        slideExpr: 'dl',
        cleartype: '1',
        prev: '#prev1',
        next: '#next1',
        pager: '#slideshowpager',
        pagerAnchorBuilder: function(idx, slide) { 
            // return selector string for existing anchor 
            return '#slideshowpager li:eq(' + idx + ') a';
        }
    });

    $('div.gallery2').cycle({ 
        fx:      'fade', 
        speed:    1600, 
        timeout:  12000,
        continuous: 0, // set this to 0 so timeout will work
        slideExpr: 'dl',
        cleartype: '1',
        prev: '#prev1',
        next: '#next1'        
    });
        
    var jqzoomoptions = {
	    zoomWidth: 526,
	    zoomHeight: 280,
        xOffset: 0,
        yOffset: 0,
        title: false,
        position: "bottom" //and MORE OPTIONS
    };
	$('.teamzoom').jqzoom(jqzoomoptions);
	
    $("#link-hardscape-over").hover(
      function () { $("#popup-hardscape").fadeIn('slow');  }, 
      function () { $("#popup-hardscape").fadeOut('fast'); }
    );
    
    $("#link-softscape-over").hover(
      function () { $("#popup-softscape").fadeIn('slow');  }, 
      function () { $("#popup-softscape").fadeOut('fast'); }
    );
    
    $("#link-maintenance-over").hover(
      function () { $("#popup-maintenance").fadeIn('slow');  }, 
      function () { $("#popup-maintenance").fadeOut('fast'); }
    );
    
  /*  $('#container-1 > ul').tabs(); */
    
   
    var $tabs = $('#container-1 > ul').tabs(); // first tab selected


    $('#view-clients-full-list').click(function() { // bind click event to link
        $tabs.tabs('select', 1); 
        return false;
    });
    
   
    $('#view-projects-full-list').click(function() { // bind click event to link
        $tabs.tabs('select', 3); // switch to third tab
        return false;
    });    
};


function fixPNG(myImage) {
    version = 6;
    if ((version >= 5.5) && (version < 7) && (document.body.filters)) 
    {
       var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
	   var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
	   var imgTitle = (myImage.title) ? 
		             "title='" + myImage.title  + "' " : "title='" + myImage.alt + "' "
	   var imgStyle = "display:inline-block;" + myImage.style.cssText
	   var strNewHTML = "<span " + imgID + imgClass + imgTitle
                  + " style=\"" + "width:" + myImage.width 
                  + "px; height:" + myImage.height 
                  + "px;" + imgStyle + ";"
                  + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
                  + "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>"
	   myImage.outerHTML = strNewHTML	  
    }
}
