$(document).ready(function() { $("#LocalNav li a").each( function() { var url = document.URL.split("#"); if ( this == url[0] || this + "index.html" == url[0]) { $(this).parent().addClass("Current"); } }); $("#Content a[@target='_blank'], #Footer a[@target='_blank']").each(function() { var blankLink = $(this).html(); if ( blankLink.indexOf("src=") < 0 ) { $(this).append(''); } }); $("#Content .Section p + *,#Content .Section ul + *,#Content .Section ol + *,#Content .Section dl + *") .css("margin-top", "30px"); $("#Content .Section ul.list + h3").css("margin-top", "15px" ); $("ul.ArrowSingle li + li,#Content .Section ol li + li,#Content .Section ul li + li") .css("margin-top", "10px"); $("#System ol ol li + li") .css("margin-top", "0"); $("#Content .Section .PageNav li + li") .css("margin-top", "0px"); $("#Content .Section .PageNav + table") .css("margin-top", "10px"); $("#Content .Section ol li + li p,#Content .Section ul li + li p") .css("padding-top", "10px"); $("#Content .Section table.Normal tbody ul li + li") .css("margin-top", "5px"); $("#LocalNav ul li.Current > a, #LocalNav ul li.Current > span") .css("background-color", "#d8d6e0") .css("background-image", "url(/common/images/ico_nav_current.gif)") .css("background-position", "20px .6em") $("#LocalNav ul ul li.Current > a, #LocalNav ul ul li.Current > span") .css("background-color", "#d8d6e0") .css("background-image", "url(/common/images/ico_nav_current.gif)") .css("background-position", "29px .6em"); $("#LocalNav ul ul ul li.Current > a,#LocalNav ul ul ul li.Current > span") .css("background-color", "#d8d6e0") .css("background-image", "url(/common/images/ico_nav_current.gif)") .css("background-position", "38px .6em"); $("#Products .Description dl dt + dt").css("margin-top", "12px"); updateCheck(); }); function updateCheck() { $(".ReportList dt").each(function() { var date = $(this).html(); date = date.substr(0,4) + date.substr(5,2) + date.substr(8,4); var from = 20100831 var to = 20100905 if ( date >= 20100831 ) { if ( $(this).attr("class") != "NoIcon" ) { $(this).append('NEW'); $(this).addClass("New"); } } $(this).css("width", "auto"); var wide = this.offsetWidth; $(this).css("width", wide + "px"); $(this).next().css("padding-left", wide + "px"); var wide_new = Number(wide) + 1; $("dt.New").css("width", wide_new + "px"); $("dt.New").next().css("padding-left", wide_new + "px"); }); }