 function getInternetExplorerVersion() {
    var rv = -1; 
    if (navigator.appName == 'Microsoft Internet Explorer') {
        var ua = navigator.userAgent;
        var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
        if (re.exec(ua) != null)
            rv = parseFloat(RegExp.$1);
    }
    return rv;
}
var x= getInternetExplorerVersion();
if(x==8){
//codul tau pentru ie8
}else
{


$(function() {
		// set opacity to nill on page load
		$("#blindate a span, #ambulante a span").css("opacity","0");
		// on mouse over
		$("#blindate a").hover(function () {
			// animate opacity to full
			$("#blindate a span.shadow")
				.animate({opacity: .5}, "fast")
				.animate({opacity: .3}, "fast");
			$("#blindate a span.txton")
				.stop().animate({opacity: 1}, "fast");

},
		// on mouse out
		function () {
			// animate opacity to nill
			$("#blindate a span")
				.stop().animate({opacity: 0}, "slow");
		});
		$("#ambulante a").hover(function () {
			// animate opacity to full
			$("#ambulante a span.shadow")
				.animate({opacity: .5}, "fast")
				.animate({opacity: .3}, "fast");
			$("#ambulante a span.txton").stop().animate({
				opacity: 1
			}, "fast");
		},
		// on mouse out
		function () {
			// animate opacity to nill
			$("#ambulante a span").stop().animate({
				opacity: 0
			}, "slow");
		});
});

}
