$(document).ready(function(){jQuery.fn.exists=jQuery.fn.size;function Menu(){this.target="";this.splitter=document.createElement("div");Menu.prototype.build=function(){$("#rollover-navigation").append(this.splitter);$("#topmenu div.menuitem").each(function(){$(this).hover(function(){$(this).css("background-color","#405774");menu.target=$(this).attr("id");if(!$("#nav-"+menu.target).exists()){return;}
$("#rollover-navigation div.nav-group").each(function(){if($(this).attr("id")!="nav-"+menu.target){$(this).css("display","none");}else{$(this).css("display","inline");}});menu.render($(this).offset().left,$(this).offset().top+24);},function(){$(this).css("background-color","transparent");});});};$("#pageheader, #content, #home, #blanker, #Bookmark, #BookmarkPopup").bind("mouseover",function(){menu.hide();});Menu.prototype.render=function(left,top){$("#rollover-navigation").hover(function(){$("#"+menu.target).css("background-color","#405774");},function(){$("#"+menu.target).css("background-color","transparent");});menu.fixMenu();if((left+$("#rollover-navigation").width())>($("#topmenu").offset().left+$("#topmenu").width())){left=($("#topmenu").offset().left+$("#topmenu").width()-$("#rollover-navigation").width())-4;}
$("#rollover-navigation").css({"top":top,"left":left,"display":"block"});if($.browser.msie){$("#rollover-navigation").css({"margin-top":"3px"});}};Menu.prototype.hide=function(){$("#rollover-navigation").hide();};Menu.prototype.fixMenu=function(){if($("#nav-"+menu.target).hasClass("short")&&$("#nav-"+menu.target).css("display")=="inline"){$("#nav-"+menu.target).parent().css("width","175px");}else{$("#nav-"+menu.target).parent().css("width","350px");}
$("div.rollover-column").each(function(){if($.browser.msie){$(this).css("margin-top","30px");}});};}
function externalLinks(){if(!document.getElementsByTagName){return;}
var anchors=document.getElementsByTagName("a");for(var i=0;i<anchors.length;i++){var anchor=anchors[i];if(anchor.getAttribute("href")&&anchor.getAttribute("rel")=="external"){anchor.target="_blank";}}}
var menu=new Menu();menu.build();externalLinks();});function GetContentWnd(){return parent;}
function OnEmail(){var oWnd=GetContentWnd();var oDoc=oWnd.document;var oDesc=oDoc.getElementById("description");var strURL="mailto:?subject=I thought you might like this...&body=";if(oDoc.title!==""){strURL=strURL+escape("Title: "+oDoc.title+String.fromCharCode(13));}
if((oDesc!==null)&&(oDesc.content!=="")){strURL=strURL+escape("Description: "+oDesc.content+String.fromCharCode(13));}
strURL=strURL+escape("URL: "+oWnd.location.href+String.fromCharCode(13));window.open(strURL);}

