Я попробовал подключить скрипт в шаблоне компонента - теперь в IE скрипт вообще не работает, а в остальных браузерах все нормально.
Вот заголовок файла header.php:
<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?echo LANG_CHARSET;?>">
<?$APPLICATION->ShowMeta("keywords")?>
<?$APPLICATION->ShowMeta("description")?>
<title><?$APPLICATION->ShowTitle()?></title>
<?$APPLICATION->ShowCSS();?>
<?$APPLICATION->ShowHeadStrings()?>
<?$APPLICATION->ShowHeadScripts()?>
<link rel="stylesheet" type="text/css" href="<?=SITE_TEMPLATE_PATH?>/fancybox/jquery.fancybox-1.2.6.css" media="screen" />
<script type="text/javascript" src="<?=SITE_TEMPLATE_PATH?>/js/jquery-1.2.6.pack.js"></script>
<script type="text/javascript" src="<?=SITE_TEMPLATE_PATH?>/js/jquery.scrollFollow.js"></script>
<script type="text/javascript" src="<?=SITE_TEMPLATE_PATH?>/js/toggleformtext.js"></script>
<script type="text/javascript" src="<?=SITE_TEMPLATE_PATH?>/fancybox/jquery.fancybox-1.2.6.pack.js"></script>
<script type="text/javascript">
$(function() {
jQuery.noConflict();
jQuery(".catalog_item").click(function(){
jQuery(this).addClass("selected").find("span.item_span").slideDown(300).end().find("b").hide().end().find("a").show(); jQuery(this).siblings(".catalog_item").find("span.item_span").hide().parent(".catalog_item").removeClass("selected").find("a").hide().end().find("b").show();
jQuery("#igm0").animate({ opacity: 'hide', right: '700'}, 300);
var title = jQuery(this).find("b").attr("title");
jQuery("#" + title).siblings(".igm").animate({ opacity: 'hide', right: '700'}, 300);
jQuery("#" + title).animate({ right: '-700'}, 1);
jQuery("#" + title).animate({opacity: 'show', right: '0'}, 400);
jQuery("#" + title).animate({ right: '0'}, 0.5);
});
//jQuery("#catalog_table").find("div").hide();
//jQuery(".krova_list").slideDown(700);
//jQuery("#krova").addClass("select");
jQuery("#krova").click(function() {
jQuery(this).toggleClass("select");
jQuery(".krova_list").slideToggle(300);
return false;
});
jQuery("#tumbo").click(function() {
jQuery(this).toggleClass("select");
jQuery(".tumbo_list").slideToggle(300);
return false;
});
jQuery("#shkafi").click(function() {
jQuery(this).toggleClass("select");
jQuery(".shkafi_list").slideToggle(300);
return false;
});
jQuery("#stol").click(function() {
jQuery(this).toggleClass("select");
jQuery(".stol_list").slideToggle(300);
return false;
});
jQuery("#dopol").click(function() {
jQuery(this).toggleClass("select");
jQuery(".dopol_list").slideToggle(300);
return false;
});
jQuery("#stul").click(function() {
jQuery(this).toggleClass("select");
jQuery(".stul_list").slideToggle(300);
return false;
});
jQuery("#all_cat").click(function() {
location.href="/catalog/";
});
var nav = jQuery(".breadcrumb-navigation > li:last").find("a").attr("title");
jQuery("b." + nav).parent().addClass("selected").find("span.item_span").slideDown(400);
if (nav === undefined)
{ jQuery(".catalog_item:eq(3)").addClass("selected").find("span.item_span").slideDown(300).end().find("b").hide().end().find("a").show(); }
jQuery("input[name='user_name']").val("");
jQuery("input[name='user_email']").val("");
jQuery("a.zoom").fancybox();
jQuery("a.zoom1").fancybox({
'overlayOpacity' : 0.7,
'overlayColor' : '#000000'
});
jQuery("a.zoom2").fancybox({
'zoomSpeedIn' : 500,
'zoomSpeedOut' : 500
});
jQuery( "#right_menu_follow" ).scrollFollow();
});
</script>
<!--[if IE 6]>
<script type='text/javascript'>
$(function() {
$("#alarm").text("Обновите Ваш браузер! Для нормальной работы сайта необходим Internet Explorer 7 и выше.");
});
</script>
<![endif]-->
</head>