var path = document.location.pathname; if ( path.charAt(path.length-1) != '/' ) path = path+'/'; var epos = document.location.pathname.indexOf('/',1) == -1 ? document.location.pathname.length : document.location.pathname.indexOf('/',1)-1; var section = document.location.pathname.substr(1, epos ); $(document).ready(init); function init() { $("li").hover( function(){ $(this).addClass('selected'); if ( /MSIE (5\.5|6)/.test(navigator.userAgent) ) { $(this).height(26+$("ul", $(this)).height()); } }, function(){ $(this).removeClass('selected'); if ( /MSIE (5\.5|6)/.test(navigator.userAgent) ) { $(this).height(26); } } ); try { $("table.params tr:nth-child(even), table.params2 tr:nth-child(even)").addClass("grey"); } catch (e) {} /*$("#hits-news .news a").hover( function () { var id = $(this).attr("rel"); $(this).after('
'); $("#box-"+id+" .img").append("") return false; }, function () { var id = $(this).attr("rel"); $("#box-"+id).remove(); } ); $("#images .img a").click( function () { var src = $(this).attr("href"); $("#big-image").attr('src', src); return false; } ); if(typeof sIFR == "function") { sIFR.replaceElement("#data h1.title", named({ sFlashSrc: "/fonts/Micra.swf", sColor: "#ffffff", sWmode: "transparent", sCase: "upper" })); }; try { $("table.params tr:nth-child(even)").addClass("grey"); if ( path != '/' ) { var src = $("#menu a[href^='/"+section+"'] img").attr('src').replace('default','selected'); $("#menu a[href^='/"+section+"'] img").attr('src', src); $("#catalogue a").each ( function () { var href = $(this).attr("href"); if ( path.indexOf(href) == 0 ) { var src = $("#catalogue a[href='"+href+"'] img").attr('src').replace('default','selected'); $("#catalogue a[href='"+href+"'] img").attr('src', src); $('
').appendTo("#catalogue a[href='"+href+"']"); return; } } ); } } catch (e) {} */ }