
$("document").ready(function()
{if(isProject())
{$('.notProject').remove();}
if($('body').hasClass('notTreePage'))
{closeTree();}
$('.tblContentMainOpt .ui-widget-content').hover(function(){$(this).addClass('hovering');},function(){$(this).removeClass('hovering');});$('.mruFullItem').hover(function(){$(this).addClass('hovering');},function(){$(this).removeClass('hovering');});$('#ctl00_btnSearch').click(function(){$(this).fadeTo('fast',0.2);});$('.tblContentMainOptToggle').click(function(){$(this).closest('.tblContentMainOpt').toggleClass('optToggle');});});function isProject()
{try{return $('#pdFrameset',window.top.document).hasClass('projectFrameset');}
catch(e){}
return false;}
function closeTree(){try{if(top.location!=window.parent.frames['procFrame'].location){top.location.href=window.parent.frames['procFrame'].location.href;}}
catch(e){$('#treeClose').css('visibility','hidden');}}
function reloadMainProcWindow(){try{var hash=window.parent.frames['procFrame'].location.href.indexOf('#');var locn=window.parent.frames['procFrame'].location.href;if(hash!=-1)
{locn=locn.substring(0,hash);}
window.parent.frames['procFrame'].location.href=locn+"?t"+cBypass();}
catch(e){}}
function cBypass()
{var dNow=new Date();return dNow.getTime().toString();}
$.fn.reverse=function(){return this.pushStack(this.get().reverse(),arguments);};$.fn['prevALL']=function(matchExpr){var pThis=$(this);var pThisDom=pThis.get(0);var ret=$(matchExpr).filter(function(index,ele){if((ele.compareDocumentPosition(pThisDom)&4)==4){return true;}
return false;});return ret.reverse();};$.fn['nextALL']=function(matchExpr){var pThis=$(this);var pThisDom=pThis.get(0);var ret=$(matchExpr).filter(function(index,ele){if((ele.compareDocumentPosition(pThisDom)&2)==2){return true;}
return false;});return ret;};$.each(['prev','next'],function(unusedIndex,name){$.fn[name+'ALLOLD']=function(matchExpr){var $all=$('body').find('*').andSelf();$all=(name=='prev')?$all.slice(0,$all.index(this)).reverse():$all.slice($all.index(this)+1);if(matchExpr)$all=$all.filter(matchExpr);return $all;};});$.extend({clientID:function(id){return $("[id$='"+id+"']");}});