$(document).ready(function(){$("ul.dropdown li").dropdown();});$.fn.dropdown=function(){$(this).hover(function(){$(this).addClass("hover");$('> .dir',this).addClass("open");$('ul:first',this).css('visibility','visible');},function(){$(this).removeClass("hover");$('.open',this).removeClass("open");$('ul:first',this).css('visibility','hidden');});$("#myid img").each(function(){var $this=$(this);var h=$this.height();var w=$this.width();var nh=100;var nw=150;var k1=nh/nw;var k2=h/w;h=h*(nw/w);w=nw;$this.width(w);$this.height(h);});$(".myNPA tr:even").each(function(){$(this).css('background-color','#efebde');});$(".myNPA tr:odd").each(function(){$(this).css('background-color','FFFFFF');});$(".categories-list ul li:even").each(function(){$(this).css('background-color','#DCEBF9');});$(".categories-list ul li:odd").each(function(){$(this).css('background-color','FFFFFF');});$(".categories-list ul li").each(function(){$(this).css('list-style-type','square');});$(".newsflash-item p a img").each(function(){var MaxWidth=$(this).css('width');MaxWidth=parseFloat(MaxWidth);if(MaxWidth>'530'){$(this).width('520px');}});}