/**
 * @author lyykfi
**/

var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
var IE7 = false /*@cc_on || @_jscript_version == 5.7 @*/;
var gteIE7 = false /*@cc_on || @_jscript_version >= 5.7 @*/;
var isMSIE = /*@cc_on!@*/false;
var isOpera=window.opera?1:0;

var flashvars = {};
var params = {
};
var attributes = {};

swfobject.embedSWF("/assets/templates/smart/swf/banner_main.swf?clickTAG=http://www.smhealth.ru/services.html", "flash1_2", "100%", "246px", "9.0.0","expressInstall.swf", flashvars, params);

function str_replace(haystack, needle, replacement) { 
	var temp = haystack.split(needle); 
	return temp.join(replacement); 
} 

$(function (){
    $("#clients img").hover(
        function(){
            $(this).attr("src",str_replace($(this).attr("src"),".png","_hover.png"));
        }, function() {
            $(this).attr("src",str_replace($(this).attr("src"),"_hover.png",".png"));
        }
    );
    
    $("#topnav ul li .item_1").hover(
        function(){
	if($(this).parent().prev("li").attr("class") == 'current' || $(this).parent().prev("li").attr("class") == 'current first-child') $(this).addClass("hover_top1");
	else $(this).addClass("hover_top");

            $(this).parent().next("li").find(".item_1").addClass("hover");
        }, function() {
if($(this).parent().prev("li").attr("class") == 'current' || $(this).parent().prev("li").attr("class") == 'current first-child') $(this).removeClass("hover_top1");
	else $(this).removeClass("hover_top");		

            $(this).parent().next("li").find(".item_1").removeClass("hover");
        }
    );
});

