$(function() { $('#pub a').css("display", "none") ; nb = $('#pub a').length ; rdm = Math.floor(Math.random()*nb) ; $('#pub a:eq('+rdm+')').css("display", "inline") ; });  
(function($){$.fn.jHelperTip=function(options){var opts=$.extend({},$.fn.jHelperTip.defaults,options);if($(opts.ttC).length==0)
$('<div id="'+opts.ttC.slice(1)+'"></div>').appendTo("body");if($(opts.dC).length==0)
$('<div id="'+opts.dC.slice(1)+'"></div>').appendTo("body");if($(opts.aC).length==0)
$('<div id="'+opts.aC.slice(1)+'"></div>').appendTo("body");$(opts.ttC).add(opts.aC).css({position:"absolute",display:"inline"}).hide();$(opts.dC).hide();var closeBox=function(){if(opts.source=="attribute")
$(opts.aC).hide().empty();else
$(opts.ttC).hide().empty();};$(".jHelperTipClose").bind("click",closeBox);$(opts.ttC).bind("mouseover",function(){$(opts.ttC).show();return false;});var getData=function(obj,e){if(opts.source=="ajax"){getPosition(e);$(opts.ttC).html('<div><img src="'+opts.loadingImg+'"/> '+opts.loadingText+'</div>').show();$.ajax({type:opts.type,url:opts.url,data:opts.data,success:function(msg){$(opts.ttC).html(msg);$(".jHelperTipClose").unbind("click",closeBox);$(".jHelperTipClose").bind("click",closeBox);}});}
else if(opts.source=="container"){$(opts.ttC).show().empty();$(opts.dC).clone(true).show().appendTo(opts.ttC);}
if(opts.source=="attribute"){$(opts.aC).html($(obj).attr(opts.attrName));}};var getPosition=function(e){var top=e.pageY+opts.topOff;var left=e.pageX+opts.leftOff;if(opts.source=="attribute"){$(opts.aC).css({top:top,left:left,opacity:opts.opacity}).show();}
else{$(opts.ttC).css({top:top,left:left,opacity:opts.opacity}).show();}};if(opts.trigger=="hover"){$(this).bind("mouseover",function(e){e.preventDefault();getData(this,e);return false;});$(this).bind("mousemove",function(e){getPosition(e);return false;});$(this).bind("mouseout",function(e){if(opts.source=="attribute")
$(opts.aC).hide().empty();else
$(opts.ttC).hide().empty();return false;});}
else if(opts.trigger=="click"){$(this).bind("click",function(e){getData(this,e);getPosition(e);$(document).bind("click",function(e){if(opts.autoClose){if(opts.source=="attribute")
$(opts.aC).hide().empty();else
$(opts.ttC).hide().empty();}});return false;});}};$.fn.jHelperTip.defaults={trigger:"click",topOff:-40,leftOff:20,source:"container",attrName:'',ttC:"#jHelperTipContainer",dC:"#jHelperTipDataContainer",aC:"#jHelperTipAttrContainer",opacity:1.0,loadingImg:"ajax-loader.gif",loadingText:"Loading...",type:"GET",autoClose:true};})(jQuery);

var arrowimages={down:['downarrowclass','spacer.gif',0],right:['rightarrowclass','spacer.gif']}
var jquerycssmenu={animateduration:{over:200,out:100},buildmenu:function(menuid,arrowsvar){jQuery(document).ready(function($){var $mainmenu=$("#"+menuid+">ul")
var $headers=$mainmenu.find("ul").parent()
$headers.each(function(i){var $curobj=$(this)
var $subul=$(this).find('ul:eq(0)')
this._dimensions={w:this.offsetWidth,h:this.offsetHeight,subulw:$subul.outerWidth(),subulh:$subul.outerHeight()}
this.istopheader=$curobj.parents("ul").length==1?true:false
$subul.css({top:this.istopheader?this._dimensions.h+"px":0})
$curobj.hover(function(e){var $targetul=$(this).children("ul:eq(0)")
this._offsets={left:$(this).offset().left,top:$(this).offset().top}
var menuleft=this.istopheader?0:this._dimensions.w
menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>$(window).width())?(this.istopheader?-this._dimensions.subulw+this._dimensions.w:-this._dimensions.w):menuleft
$targetul.css({left:menuleft+"px"}).fadeIn(jquerycssmenu.animateduration.over)},function(e){var $targetul=$(this).children("ul:eq(0)")
$targetul.fadeOut(jquerycssmenu.animateduration.out)})})
$mainmenu.find("ul").css({display:'none',visibility:'visible'})})}}
jquerycssmenu.buildmenu("myjquerymenu",arrowimages)
function youAreHere(n) { $('#myjquerymenu ul li.f:eq('+n+') a:first').css("background-image", "url(../images/bg/menu_on.gif)") ;$('#myjquerymenu ul li.f:eq('+n+') a:first').css("background-color", "#C3CBCE") ;}