//<![CDATA[
 $(document).ready(function() {
    var $home_clients_link_hover = $('#contentdiv span.homeclientslinkhover');
    var $home_clients_link_out   = $('#contentdiv span.homeclientslinkout');
    var duration = 300; // miliseconds for client fade effect

    if ($.browser.msie) {
        $home_clients_link_hover.hide();
        $("#contentdiv a.homeclientslinkfr").hover(
            function() {
                $home_clients_link_hover.show();
            },
            function() {
                $home_clients_link_hover.hide();
            }
        );
    }
    else {

        // fadeTo doesn't set the display property, so make sure the element
        // will be visible once the opacity is set. 
        $home_clients_link_hover.css({'display' : 'block', 'opacity' : 0 });
		$("#contentdiv a.homeclientslinkfr").hover(
			function () {
                if ( $home_clients_link_hover.data('currently') == 'showing'                                         
                    || $home_clients_link_out.data('currently') == 'showing'                                         
                   ) {
                    return;                                                                                          
                }
                $home_clients_link_hover.data('currently', 'showing');
                $home_clients_link_out.data('currently', 'showing');
				$home_clients_link_out
                    .stop()
                    .fadeTo(duration, 0.4, function() {
                        $home_clients_link_out.data('currently', '');
                    });
				$home_clients_link_hover
                    .stop()
                    .fadeTo(duration, 1, function() {
                        $home_clients_link_hover.data('currently', '');
                    })
                    ;
			},
			function () {
                if ( $home_clients_link_out.data('currently') != 'showing' ) {
                    $home_clients_link_out.stop();
                }
                if ( $home_clients_link_hover.data('currently') != 'showing' ) {
                    $home_clients_link_hover.stop();
                }
                $home_clients_link_out.fadeTo(duration, 1);
                $home_clients_link_hover.fadeTo(duration, 0);
			}
		);
	}

	//end document ready
 });
//]]>
