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() { if ( path != '/' ) { $(".main-menu a[href^='/"+section+"']").addClass("selected"); $(".main-menu a[href^='/"+section+"']").parent().addClass("selected"); if ( section == 's1' ) { $(".header .left").hide(); } if ( section == 's4' ) { $(".header .right").hide(); } $("body").addClass(section); } /*$("#hits-news .news a").hover( function () { var id = $(this).attr("rel"); $(this).after('
")
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");
$("table.params th:first").addClass("left");
$("table.params th:last").addClass("right");
$("table.params").removeAttr('border').removeAttr('style');
$("hr").replaceWith('');
} catch (e) {}
}