/** dropdown.js Start here **/
var disappeardelay=100;  //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)
//No further editting needed
var ie5=document.all
var ns6=document.getElementById&&!document.all
function getposOffset(what,offsettype){var totaloffset=(offsettype=="left")?what.offsetLeft:what.offsetTop;var parentEl=what.offsetParent;while(parentEl!=null){totaloffset=(offsettype=="left")?totaloffset+parentEl.offsetLeft:totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}
return totaloffset;}
function showhide(obj,e,visible,hidden){if(ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if(e.type=="click"&&obj.visibility==hidden||e.type=="mouseover")
obj.visibility=visible
else if(e.type=="click")
obj.visibility=hidden}
function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function clearbrowseredge(obj,whichedge){var edgeoffset=0
if(whichedge=="rightedge"){var windowedge=ie5&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if(windowedge-dropmenuobj.x<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth}
else{var windowedge=ie5&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if(windowedge-dropmenuobj.y<dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight}
return edgeoffset}
function dropdownmenu(obj,e,dropmenuID){if(window.event)event.cancelBubble=true
else if(e.stopPropagation)e.stopPropagation()
if (typeof dropmenuobj!="undefined") //hide previous menu
dropmenuobj.style.visibility="hidden"
clearhidemenu()
if(ie5||ns6){obj.onmouseout=delayhidemenu
dropmenuobj=document.getElementById(dropmenuID)
if(hidemenu_onclick)dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
dropmenuobj.onmouseover=clearhidemenu
dropmenuobj.onmouseout=ie5?function(){dynamichide(event)}:function(event){dynamichide(event)}
showhide(dropmenuobj.style,e,"visible","hidden")
dropmenuobj.x=getposOffset(obj,"left")
dropmenuobj.y=getposOffset(obj,"top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj,"rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj,"bottomedge")+obj.offsetHeight+"px"}
return clickreturnvalue()}
function clickreturnvalue(){if((ie5||ns6)&&!enableanchorlink)return false
else return true}
function contains_ns6(a,b){while(b.parentNode)
if((b=b.parentNode)==a)
return true;return false;}
function dynamichide(e){if(ie5&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if(ns6&&e.currentTarget!=e.relatedTarget&&!contains_ns6(e.currentTarget,e.relatedTarget))
delayhidemenu()}
function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)}
function clearhidemenu(){if(typeof delayhide!="undefined")
clearTimeout(delayhide)} 
/** dropdown.js End here **/

/** search-auto-suggestion.js Start here **/
function configuration(SearchBoxId,SuggestionBoxId,SearchButtonId){this.SearchBoxId=SearchBoxId;this.SuggestionBoxId=SuggestionBoxId;this.HighLightedClass='current';this.SuggestionTableId='Table_'+SuggestionBoxId;this.isTextBoxFocused=false;this.SearchButtonId=SearchButtonId;this.hideSuggestionsAfter=function(timeout){setTimeout('document.getElementById("'+this.SuggestionBoxId+'").style.visibility="hidden"',timeout);}
this.hideSuggestions=function(){$('#'+this.SuggestionBoxId).css('visibility','hidden');}
this.getLeft=function(oNode){var iLeft=0;while(oNode.tagName!="BODY"&&oNode.tagName!="HTML"){iLeft+=oNode.offsetLeft;oNode=oNode.offsetParent;}
return iLeft;}
this.getTop=function(oNode){var iTop=0;while(oNode.tagName!="BODY"&&oNode.tagName!="HTML"){iTop+=oNode.offsetTop;oNode=oNode.offsetParent;}
return iTop;}
this.CreateDropDownMenu=function(oEvent){var val=$('#'+this.SearchBoxId).val();
var iKeyCode = oEvent.keyCode;
//for backspace (8) and delete (46), shows suggestions without typeahead
if (iKeyCode == 8 || iKeyCode == 46) { this.getSuggestion(val,this);
//make sure not to interfere with non-character keys
}else if (iKeyCode < 32 || (iKeyCode >= 33 && iKeyCode < 46) || (iKeyCode >= 112 && iKeyCode <= 123)) {  //ignore
}else{this.getSuggestion(val,this);}}
this.getSuggestion=function(str,Conf){var p=/^\s*$/;var THIS=this;if(!p.test(str)){var prefix,url;prefix="/include/ajax/";url="auto-suggestion-ajax.php";$.post(prefix+url,{SearchFor:str,MaxLength:35,TableId:this.SuggestionTableId},function(data,textStatus){
// alert(typeof(data.suggestion)+data.suggestion.length); // return false;
var p=/^\s*$/;var val=$('#'+THIS.SearchBoxId).val();if(THIS.isTextBoxFocused&&!p.test(val)){if(typeof(data.suggestion)=='object'&&data.suggestion.length>0){var suggest='',tbl='';tbl+='<table width="100%" class="auto_suggest" id="'+THIS.SuggestionTableId+'" >';for(var i=0;i<data.suggestion.length;i++){var suggest=data.suggestion[i].suggestion;var text=suggest;var re=new RegExp(data.search,"g");text=text.replace(re,'<b>'+data.search+'</b>');tbl+='<tr><td>'+text+'<input type="hidden" value="'+suggest+'" ></td></tr>';}
tbl+='</table>';var txtBox=document.getElementById(THIS.SearchBoxId);var left=THIS.getLeft(txtBox);var top=22+THIS.getTop(txtBox);$('#'+THIS.SuggestionBoxId).html(tbl).css('visibility','visible').css('left',''+left+'px').css('top',''+top+'px');$('#'+THIS.SuggestionBoxId+' td:not(.SuggestionType)').mouseover(function(){$('#'+THIS.SuggestionBoxId+' td:not(.SuggestionType)').removeClass(THIS.HighLightedClass);$(this).addClass(THIS.HighLightedClass);});$('#'+THIS.SuggestionBoxId+' td:not(.SuggestionType)').click(function(){var current_suggestion=$(this).children('input').val();$('#'+THIS.SearchBoxId).val(current_suggestion);$('#'+THIS.SearchButtonId).click();});}
else{$('#'+THIS.SuggestionBoxId).css('visibility','hidden');}}},"json");}else{$('#'+this.SuggestionBoxId).css('visibility','hidden');}}
this.HighLightSuggestion=function(oEvent){var iKeyCode=oEvent.keyCode;var Visibility=$('#'+this.SuggestionBoxId).css('visibility');if(Visibility!='hidden'){switch(iKeyCode){
case 38: //up arrow
this.previousSuggestion(); break;
case 40: //down arrow 
this.nextSuggestion(); break;
case 27: //escape
this.hideSuggestions(); break;
case 13: //enter
//alert(this);
return true;
break;}}
else{if(iKeyCode==13){return false;}}
return true;}
this.previousSuggestion=function(){var Table=document.getElementById(this.SuggestionTableId);var Rows=Table.childNodes[0].rows;var Length=Table.childNodes[0].rows.length;if(Length>0){if(this.getSelectedIndex()==-1){$(Rows[Length-1].cells[0]).addClass(this.HighLightedClass);this.selectCurrentSuggestion();return true;}
for(i=0;i<Length;i++){var Class=Rows[i].cells[0].className;if(Class.indexOf(this.HighLightedClass)!=-1){if(i>0){$(Rows[i].cells[0]).removeClass(this.HighLightedClass);if(Rows[i-1].cells[0].className.indexOf(this.SuggestionType)==-1){$(Rows[i-1].cells[0]).addClass(this.HighLightedClass);}
else{$(Rows[i-2].cells[0]).addClass(this.HighLightedClass);}
break;}}}
this.selectCurrentSuggestion();}
return true;}
this.nextSuggestion=function(){var Table=document.getElementById(this.SuggestionTableId);var Rows=Table.childNodes[0].rows;if(!Rows){return true;}
var Length=Table.childNodes[0].rows.length;if(Length>0){if(this.getSelectedIndex()==-1){$(Rows[0].cells[0]).addClass(this.HighLightedClass);this.selectCurrentSuggestion();return true;}
for(i=0;i<Length;i++){var Class=Rows[i].cells[0].className;if(Class.indexOf(this.HighLightedClass)!=-1){if(i!=Length-1){$(Rows[i].cells[0]).removeClass(this.HighLightedClass);if(Rows[i+1].cells[0].className.indexOf(this.SuggestionType)==-1){$(Rows[i+1].cells[0]).addClass(this.HighLightedClass);}
else{$(Rows[i+2].cells[0]).addClass(this.HighLightedClass);}
break;}}}
this.selectCurrentSuggestion();}
return true;}
this.getSelectedIndex=function(){var Table=document.getElementById(this.SuggestionTableId);var Length=Table.childNodes[0].rows.length;var Rows=Table.childNodes[0].rows;var i;for(i=0;i<Length;i++){var Class=Rows[i].cells[0].className;if(Class.indexOf(this.HighLightedClass)!=-1){return i;}}
return-1;}
this.selectCurrentSuggestion=function(){var Table=document.getElementById(this.SuggestionTableId);var Length=Table.childNodes[0].rows.length;var Rows=Table.childNodes[0].rows;var i,cell=null;for(i=0;i<Length;i++){var Class=Rows[i].cells[0].className;if(Class.indexOf(this.HighLightedClass)!=-1){cell=Rows[i].cells[0];$('#'+this.SearchBoxId).val($(cell).children('input').val());break;}}
return cell;}
//end configuration
}
function ClickHandler(Conf){}
function KeyUpHandler(Conf,e){Conf.CreateDropDownMenu(e);}
function KeyDownHandler(Conf,e){return Conf.HighLightSuggestion(e);}
function BlurHandler(Conf){Conf.hideSuggestionsAfter(250);Conf.isTextBoxFocused=false;}
function FocusHandler(Conf){Conf.isTextBoxFocused=true;}
function configureAutoSuggest(Conf){$('#'+Conf.SearchBoxId).click(function(e){ClickHandler(Conf,e)});$('#'+Conf.SearchBoxId).keyup(function(e){KeyUpHandler(Conf,e)});$('#'+Conf.SearchBoxId).keydown(function(e){return KeyDownHandler(Conf,e)});$('#'+Conf.SearchBoxId).blur(function(e){BlurHandler(Conf,e)});$('#'+Conf.SearchBoxId).focus(function(e){FocusHandler(Conf,e)});} 
/** search-auto-suggestion.js End here **/ 

/** mm_menu.js End here  mm_menu 20MAR2002 Version 6.0 **/
function Menu(label,mw,mh,fnt,fs,fclr,fhclr,bg,bgh,halgn,valgn,pad,space,to,sx,sy,srel,opq,vert,idt,aw,ah)
{this.version="020320 [Menu; mm_menu.js]";this.type="Menu";this.menuWidth=mw;this.menuItemHeight=mh;this.fontSize=fs;this.fontWeight="plain";this.fontFamily=fnt;this.fontColor=fclr;this.fontColorHilite=fhclr;this.bgColor="#555555";this.menuBorder=1;this.menuBgOpaque=opq;this.menuItemBorder=1;this.menuItemIndent=idt;this.menuItemBgColor=bg;this.menuItemVAlign=valgn;this.menuItemHAlign=halgn;this.menuItemPadding=pad;this.menuItemSpacing=space;this.menuLiteBgColor="#ffffff";this.menuBorderBgColor="#777777";this.menuHiliteBgColor=bgh;this.menuContainerBgColor="#cccccc";this.childMenuIcon="arrows.gif";this.submenuXOffset=sx;this.submenuYOffset=sy;this.submenuRelativeToItem=srel;this.vertical=vert;this.items=new Array();this.actions=new Array();this.childMenus=new Array();this.hideOnMouseOut=true;this.hideTimeout=to;this.addMenuItem=addMenuItem;this.writeMenus=writeMenus;this.MM_showMenu=MM_showMenu;this.onMenuItemOver=onMenuItemOver;this.onMenuItemAction=onMenuItemAction;this.hideMenu=hideMenu;this.hideChildMenu=hideChildMenu;if(!window.menus)window.menus=new Array();this.label=" "+label;window.menus[this.label]=this;window.menus[window.menus.length]=this;if(!window.activeMenus)window.activeMenus=new Array();}
function addMenuItem(label,action){this.items[this.items.length]=label;this.actions[this.actions.length]=action;}
function FIND(item){if(window.mmIsOpera)return(document.getElementById(item));if(document.all)return(document.all[item]);if(document.getElementById)return(document.getElementById(item));return(false);}
function writeMenus(container){if(window.triedToWriteMenus)return;var agt=navigator.userAgent.toLowerCase();window.mmIsOpera=agt.indexOf("opera")!=-1;if(!container&&document.layers){window.delayWriteMenus=this.writeMenus;var timer=setTimeout('delayWriteMenus()',500);container=new Layer(100);clearTimeout(timer);}else if(document.all||document.hasChildNodes||window.mmIsOpera){document.writeln('<span id="menuContainer"></span>');container=FIND("menuContainer");}
window.mmHideMenuTimer=null;if(!container)return;window.triedToWriteMenus=true;container.isContainer=true;container.menus=new Array();for(var i=0;i<window.menus.length;i++)
container.menus[i]=window.menus[i];window.menus.length=0;var countMenus=0;var countItems=0;var top=0;var content='';var lrs=false;var theStat="";var tsc=0;if(document.layers)lrs=true;for(var i=0;i<container.menus.length;i++,countMenus++){var menu=container.menus[i];if(menu.bgImageUp||!menu.menuBgOpaque){menu.menuBorder=0;menu.menuItemBorder=0;}
if(lrs){var menuLayer=new Layer(100,container);var lite=new Layer(100,menuLayer);lite.top=menu.menuBorder;lite.left=menu.menuBorder;var body=new Layer(100,lite);body.top=menu.menuBorder;body.left=menu.menuBorder;}else{content+=''+'<div id="menuLayer'+countMenus+'" style="position:absolute;z-index:1;left:10px;top:'+(i*100)+'px;visibility:hidden;color:'+menu.menuBorderBgColor+';">\n'+'  <div id="menuLite'+countMenus+'" style="position:absolute;z-index:1;left:'+menu.menuBorder+'px;top:'+menu.menuBorder+'px;visibility:hide;" onmouseout="mouseoutMenu();">\n'+'  <div id="menuFg'+countMenus+'" style="position:absolute;left:'+menu.menuBorder+'px;top:'+menu.menuBorder+'px;visibility:hide;">\n'+'';}
var x=i;for(var i=0;i<menu.items.length;i++){var item=menu.items[i];var childMenu=false;var defaultHeight=menu.fontSize+2*menu.menuItemPadding;if(item.label){item=item.label;childMenu=true;}
menu.menuItemHeight=menu.menuItemHeight||defaultHeight;var itemProps='';if(menu.fontFamily!='')itemProps+='font-family:'+menu.fontFamily+';';itemProps+='font-weight:'+menu.fontWeight+';fontSize:'+menu.fontSize+'px;';if(menu.fontStyle)itemProps+='font-style:'+menu.fontStyle+';';if(document.all||window.mmIsOpera)
itemProps+='font-size:'+menu.fontSize+'px;" onmouseover="onMenuItemOver(null,this);" onclick="onMenuItemAction(null,this);';else if(!document.layers){itemProps+='font-size:'+menu.fontSize+'px;';}
var l;if(lrs){var lw=menu.menuWidth;if(menu.menuItemHAlign=='right')lw-=menu.menuItemPadding;l=new Layer(lw,body);}
var itemLeft=0;var itemTop=i*menu.menuItemHeight;if(!menu.vertical){itemLeft=i*menu.menuWidth;itemTop=0;}
var dTag='<div id="menuItem'+countItems+'" style="position:absolute;left:'+itemLeft+'px;top:'+itemTop+'px;'+itemProps+'">';var dClose='</div>'
if(menu.bgImageUp)dTag='<div id="menuItem'+countItems+'" style="background:url('+menu.bgImageUp+');position:absolute;left:'+itemLeft+'px;top:'+itemTop+'px;'+itemProps+'">';var left=0,top=0,right=0,bottom=0;left=1+menu.menuItemPadding+menu.menuItemIndent;right=left+menu.menuWidth-2*menu.menuItemPadding-menu.menuItemIndent;if(menu.menuItemVAlign=='top')top=menu.menuItemPadding;if(menu.menuItemVAlign=='bottom')top=menu.menuItemHeight-menu.fontSize-1-menu.menuItemPadding;if(menu.menuItemVAlign=='middle')top=((menu.menuItemHeight/2)-(menu.fontSize/2)-1);bottom=menu.menuItemHeight-2*menu.menuItemPadding;var textProps='position:absolute;left:'+left+'px;top:'+top+'px;';if(lrs){textProps+=itemProps+'right:'+right+';bottom:'+bottom+';';dTag="";dClose="";}
if(document.all&&!window.mmIsOpera){item='<div align="'+menu.menuItemHAlign+'">'+item+'</div>';}else if(lrs){item='<div style="text-align:'+menu.menuItemHAlign+';">'+item+'</div>';}else{var hitem=null;if(menu.menuItemHAlign!='left'){if(window.mmIsOpera){var operaWidth=menu.menuItemHAlign=='center'?-(menu.menuWidth-2*menu.menuItemPadding):(menu.menuWidth-6*menu.menuItemPadding);hitem='<div id="menuItemHilite'+countItems+'Shim" style="position:absolute;top:1px;left:'+menu.menuItemPadding+'px;width:'+operaWidth+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';item='<div id="menuItemText'+countItems+'Shim" style="position:absolute;top:1px;left:'+menu.menuItemPadding+'px;width:'+operaWidth+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';}else{hitem='<div id="menuItemHilite'+countItems+'Shim" style="position:absolute;top:1px;left:1px;right:-'+(left+menu.menuWidth-3*menu.menuItemPadding)+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';item='<div id="menuItemText'+countItems+'Shim" style="position:absolute;top:1px;left:1px;right:-'+(left+menu.menuWidth-3*menu.menuItemPadding)+'px;text-align:'
+menu.menuItemHAlign+';visibility:visible;">'+item+'</div>';}}else hitem=null;}
if(document.all&&!window.mmIsOpera)item='<div id="menuItemShim'+countItems+'" style="position:absolute;left:0px;top:0px;">'+item+'</div>';var dText='<div id="menuItemText'+countItems+'" style="'+textProps+'color:'+menu.fontColor+';">'+item+'&nbsp</div>\n'
+'<div id="menuItemHilite'+countItems+'" style="'+textProps+'color:'+menu.fontColorHilite+';visibility:hidden;">'
+(hitem||item)+'&nbsp</div>';if(childMenu)content+=(dTag+dText+'<div id="childMenu'+countItems+'" style="position:absolute;left:0px;top:3px;"><img src="'+menu.childMenuIcon+'"></div>\n'+dClose);else content+=(dTag+dText+dClose);if(lrs){l.document.open("text/html");l.document.writeln(content);l.document.close();content='';theStat+="-";tsc++;if(tsc>50){tsc=0;theStat="";}
status=theStat;}
countItems++;}
if(lrs){var focusItem=new Layer(100,body);focusItem.visiblity="hidden";focusItem.document.open("text/html");focusItem.document.writeln("&nbsp;");focusItem.document.close();}else{content+='   <div id="focusItem'+countMenus+'" style="position:absolute;left:0px;top:0px;visibility:hide;" onclick="onMenuItemAction(null,this);">&nbsp;</div>\n';content+='   </div>\n  </div>\n</div>\n';}
i=x;}
if(document.layers){container.clip.width=window.innerWidth;container.clip.height=window.innerHeight;container.onmouseout=mouseoutMenu;container.menuContainerBgColor=this.menuContainerBgColor;for(var i=0;i<container.document.layers.length;i++){proto=container.menus[i];var menu=container.document.layers[i];container.menus[i].menuLayer=menu;container.menus[i].menuLayer.Menu=container.menus[i];container.menus[i].menuLayer.Menu.container=container;var body=menu.document.layers[0].document.layers[0];body.clip.width=proto.menuWidth||body.clip.width;body.clip.height=proto.menuHeight||body.clip.height;for(var n=0;n<body.document.layers.length-1;n++){var l=body.document.layers[n];l.Menu=container.menus[i];l.menuHiliteBgColor=proto.menuHiliteBgColor;l.document.bgColor=proto.menuItemBgColor;l.saveColor=proto.menuItemBgColor;l.onmouseover=proto.onMenuItemOver;l.onclick=proto.onMenuItemAction;l.mmaction=container.menus[i].actions[n];l.focusItem=body.document.layers[body.document.layers.length-1];l.clip.width=proto.menuWidth||body.clip.width;l.clip.height=proto.menuItemHeight||l.clip.height;if(n>0){if(l.Menu.vertical)l.top=body.document.layers[n-1].top+body.document.layers[n-1].clip.height+proto.menuItemBorder+proto.menuItemSpacing;else l.left=body.document.layers[n-1].left+body.document.layers[n-1].clip.width+proto.menuItemBorder+proto.menuItemSpacing;}
l.hilite=l.document.layers[1];if(proto.bgImageUp)l.background.src=proto.bgImageUp;l.document.layers[1].isHilite=true;if(l.document.layers.length>2){l.childMenu=container.menus[i].items[n].menuLayer;l.document.layers[2].left=l.clip.width-13;l.document.layers[2].top=(l.clip.height/2)-4;l.document.layers[2].clip.left+=3;l.Menu.childMenus[l.Menu.childMenus.length]=l.childMenu;}}
if(proto.menuBgOpaque)body.document.bgColor=proto.bgColor;if(proto.vertical){body.clip.width=l.clip.width+proto.menuBorder;body.clip.height=l.top+l.clip.height+proto.menuBorder;}else{body.clip.height=l.clip.height+proto.menuBorder;body.clip.width=l.left+l.clip.width+proto.menuBorder;if(body.clip.width>window.innerWidth)body.clip.width=window.innerWidth;}
var focusItem=body.document.layers[n];focusItem.clip.width=body.clip.width;focusItem.Menu=l.Menu;focusItem.top=-30;focusItem.captureEvents(Event.MOUSEDOWN);focusItem.onmousedown=onMenuItemDown;if(proto.menuBgOpaque)menu.document.bgColor=proto.menuBorderBgColor;var lite=menu.document.layers[0];if(proto.menuBgOpaque)lite.document.bgColor=proto.menuLiteBgColor;lite.clip.width=body.clip.width+1;lite.clip.height=body.clip.height+1;menu.clip.width=body.clip.width+(proto.menuBorder*3);menu.clip.height=body.clip.height+(proto.menuBorder*3);}}else{if((!document.all)&&(container.hasChildNodes)&&!window.mmIsOpera){container.innerHTML=content;}else{container.document.open("text/html");container.document.writeln(content);container.document.close();}
if(!FIND("menuLayer0"))return;var menuCount=0;for(var x=0;x<container.menus.length;x++){var menuLayer=FIND("menuLayer"+x);container.menus[x].menuLayer="menuLayer"+x;menuLayer.Menu=container.menus[x];menuLayer.Menu.container="menuLayer"+x;menuLayer.style.zindex=1;var s=menuLayer.style;s.pixeltop=-300;s.pixelleft=-300;s.top='-300px';s.left='-300px';var menu=container.menus[x];menu.menuItemWidth=menu.menuWidth||menu.menuIEWidth||140;if(menu.menuBgOpaque)menuLayer.style.backgroundColor=menu.menuBorderBgColor;var top=0;var left=0;menu.menuItemLayers=new Array();for(var i=0;i<container.menus[x].items.length;i++){var l=FIND("menuItem"+menuCount);l.Menu=container.menus[x];l.Menu.menuItemLayers[l.Menu.menuItemLayers.length]=l;if(l.addEventListener||window.mmIsOpera){l.style.width=menu.menuItemWidth+'px';l.style.height=menu.menuItemHeight+'px';l.style.pixelWidth=menu.menuItemWidth;l.style.pixelHeight=menu.menuItemHeight;l.style.top=top+'px';l.style.left=left+'px';if(l.addEventListener){l.addEventListener("mouseover",onMenuItemOver,false);l.addEventListener("click",onMenuItemAction,false);l.addEventListener("mouseout",mouseoutMenu,false);}
if(menu.menuItemHAlign!='left'){l.hiliteShim=FIND("menuItemHilite"+menuCount+"Shim");l.hiliteShim.style.visibility="inherit";l.textShim=FIND("menuItemText"+menuCount+"Shim");l.hiliteShim.style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;l.hiliteShim.style.width=l.hiliteShim.style.pixelWidth;l.textShim.style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;l.textShim.style.width=l.textShim.style.pixelWidth;}}else{l.style.pixelWidth=menu.menuItemWidth;l.style.pixelHeight=menu.menuItemHeight;l.style.pixelTop=top;l.style.pixelLeft=left;if(menu.menuItemHAlign!='left'){var shim=FIND("menuItemShim"+menuCount);shim[0].style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;shim[1].style.pixelWidth=menu.menuItemWidth-2*menu.menuItemPadding-menu.menuItemIndent;shim[0].style.width=shim[0].style.pixelWidth+'px';shim[1].style.width=shim[1].style.pixelWidth+'px';}}
if(menu.vertical)top=top+menu.menuItemHeight+menu.menuItemBorder+menu.menuItemSpacing;else left=left+menu.menuItemWidth+menu.menuItemBorder+menu.menuItemSpacing;l.style.fontSize=menu.fontSize+'px';l.style.backgroundColor=menu.menuItemBgColor;l.style.visibility="inherit";l.saveColor=menu.menuItemBgColor;l.menuHiliteBgColor=menu.menuHiliteBgColor;l.mmaction=container.menus[x].actions[i];l.hilite=FIND("menuItemHilite"+menuCount);l.focusItem=FIND("focusItem"+x);l.focusItem.style.pixelTop=-30;l.focusItem.style.top='-30px';var childItem=FIND("childMenu"+menuCount);if(childItem){l.childMenu=container.menus[x].items[i].menuLayer;childItem.style.pixelLeft=menu.menuItemWidth-11;childItem.style.left=childItem.style.pixelLeft+'px';childItem.style.pixelTop=(menu.menuItemHeight/2)-4;childItem.style.top=childItem.style.pixelTop+'px';l.Menu.childMenus[l.Menu.childMenus.length]=l.childMenu;}
l.style.cursor="pointer";menuCount++;}
if(menu.vertical){menu.menuHeight=top-1-menu.menuItemSpacing;menu.menuWidth=menu.menuItemWidth;}else{menu.menuHeight=menu.menuItemHeight;menu.menuWidth=left-1-menu.menuItemSpacing;}
var lite=FIND("menuLite"+x);var s=lite.style;s.pixelHeight=menu.menuHeight+(menu.menuBorder*2);s.height=s.pixelHeight+'px';s.pixelWidth=menu.menuWidth+(menu.menuBorder*2);s.width=s.pixelWidth+'px';if(menu.menuBgOpaque)s.backgroundColor=menu.menuLiteBgColor;var body=FIND("menuFg"+x);s=body.style;s.pixelHeight=menu.menuHeight+menu.menuBorder;s.height=s.pixelHeight+'px';s.pixelWidth=menu.menuWidth+menu.menuBorder;s.width=s.pixelWidth+'px';if(menu.menuBgOpaque)s.backgroundColor=menu.bgColor;s=menuLayer.style;s.pixelWidth=menu.menuWidth+(menu.menuBorder*4);s.width=s.pixelWidth+'px';s.pixelHeight=menu.menuHeight+(menu.menuBorder*4);s.height=s.pixelHeight+'px';}}
if(document.captureEvents)document.captureEvents(Event.MOUSEUP);if(document.addEventListener)document.addEventListener("mouseup",onMenuItemOver,false);if(document.layers&&window.innerWidth){window.onresize=NS4resize;window.NS4sIW=window.innerWidth;window.NS4sIH=window.innerHeight;setTimeout("NS4resize()",500);}
document.onmouseup=mouseupMenu;window.mmWroteMenu=true;status="";}
function NS4resize(){if(NS4sIW!=window.innerWidth||NS4sIH!=window.innerHeight)window.location.reload();}
function onMenuItemOver(e,l){MM_clearTimeout();l=l||this;var a=window.ActiveMenuItem;if(document.layers){if(a){a.document.bgColor=a.saveColor;if(a.hilite)a.hilite.visibility="hidden";if(a.Menu.bgImageOver)a.background.src=a.Menu.bgImageUp;a.focusItem.top=-100;a.clicked=false;}
if(l.hilite){l.document.bgColor=l.menuHiliteBgColor;l.zIndex=1;l.hilite.visibility="inherit";l.hilite.zIndex=2;l.document.layers[1].zIndex=1;l.focusItem.zIndex=this.zIndex+2;}
if(l.Menu.bgImageOver)l.background.src=l.Menu.bgImageOver;l.focusItem.top=this.top;l.focusItem.left=this.left;l.focusItem.clip.width=l.clip.width;l.focusItem.clip.height=l.clip.height;l.Menu.hideChildMenu(l);}else if(l.style&&l.Menu){if(a){a.style.backgroundColor=a.saveColor;if(a.hilite)a.hilite.style.visibility="hidden";if(a.hiliteShim)a.hiliteShim.style.visibility="inherit";if(a.Menu.bgImageUp)a.style.background="url("+a.Menu.bgImageUp+")";;}
l.style.backgroundColor=l.menuHiliteBgColor;l.zIndex=1;if(l.Menu.bgImageOver)l.style.background="url("+l.Menu.bgImageOver+")";if(l.hilite){l.hilite.style.visibility="inherit";if(l.hiliteShim)l.hiliteShim.style.visibility="visible";}
l.focusItem.style.pixelTop=l.style.pixelTop;l.focusItem.style.top=l.focusItem.style.pixelTop+'px';l.focusItem.style.pixelLeft=l.style.pixelLeft;l.focusItem.style.left=l.focusItem.style.pixelLeft+'px';l.focusItem.style.zIndex=l.zIndex+1;l.Menu.hideChildMenu(l);}else return;window.ActiveMenuItem=l;}
function onMenuItemAction(e,l){l=window.ActiveMenuItem;if(!l)return;hideActiveMenus();if(l.mmaction)eval(""+l.mmaction);window.ActiveMenuItem=0;}
function MM_clearTimeout(){if(mmHideMenuTimer)clearTimeout(mmHideMenuTimer);mmHideMenuTimer=null;mmDHFlag=false;}
function MM_startTimeout(){if(window.ActiveMenu){mmStart=new Date();mmDHFlag=true;mmHideMenuTimer=setTimeout("mmDoHide()",window.ActiveMenu.Menu.hideTimeout);}}
function mmDoHide(){if(!mmDHFlag||!window.ActiveMenu)return;var elapsed=new Date()-mmStart;var timeout=window.ActiveMenu.Menu.hideTimeout;if(elapsed<timeout){mmHideMenuTimer=setTimeout("mmDoHide()",timeout+100-elapsed);return;}
mmDHFlag=false;hideActiveMenus();window.ActiveMenuItem=0;}
function MM_showMenu(menu,x,y,child,imgname){if(!window.mmWroteMenu)return;MM_clearTimeout();if(menu){var obj=FIND(imgname)||document.images[imgname]||document.links[imgname]||document.anchors[imgname];x=moveXbySlicePos(x,obj);y=moveYbySlicePos(y,obj);}
if(document.layers){if(menu){var l=menu.menuLayer||menu;l.top=l.left=1;hideActiveMenus();if(this.visibility)l=this;window.ActiveMenu=l;}else{var l=child;}
if(!l)return;for(var i=0;i<l.layers.length;i++){if(!l.layers[i].isHilite)l.layers[i].visibility="inherit";if(l.layers[i].document.layers.length>0)MM_showMenu(null,"relative","relative",l.layers[i]);}
if(l.parentLayer){if(x!="relative")l.parentLayer.left=x||window.pageX||0;if(l.parentLayer.left+l.clip.width>window.innerWidth)l.parentLayer.left-=(l.parentLayer.left+l.clip.width-window.innerWidth);if(y!="relative")l.parentLayer.top=y||window.pageY||0;if(l.parentLayer.isContainer){l.Menu.xOffset=window.pageXOffset;l.Menu.yOffset=window.pageYOffset;l.parentLayer.clip.width=window.ActiveMenu.clip.width+2;l.parentLayer.clip.height=window.ActiveMenu.clip.height+2;if(l.parentLayer.menuContainerBgColor&&l.Menu.menuBgOpaque)l.parentLayer.document.bgColor=l.parentLayer.menuContainerBgColor;}}
l.visibility="inherit";if(l.Menu)l.Menu.container.visibility="inherit";}else if(FIND("menuItem0")){var l=menu.menuLayer||menu;hideActiveMenus();if(typeof(l)=="string")l=FIND(l);window.ActiveMenu=l;var s=l.style;s.visibility="inherit";if(x!="relative"){s.pixelLeft=x||(window.pageX+document.body.scrollLeft)||0;s.left=s.pixelLeft+'px';}
if(y!="relative"){s.pixelTop=y||(window.pageY+document.body.scrollTop)||0;s.top=s.pixelTop+'px';}
l.Menu.xOffset=document.body.scrollLeft;l.Menu.yOffset=document.body.scrollTop;}
if(menu)window.activeMenus[window.activeMenus.length]=l;MM_clearTimeout();}
function onMenuItemDown(e,l){var a=window.ActiveMenuItem;if(document.layers&&a){a.eX=e.pageX;a.eY=e.pageY;a.clicked=true;}}
function mouseupMenu(e){hideMenu(true,e);hideActiveMenus();return true;}
function getExplorerVersion(){var ieVers=parseFloat(navigator.appVersion);if(navigator.appName!='Microsoft Internet Explorer')return ieVers;var tempVers=navigator.appVersion;var i=tempVers.indexOf('MSIE ');if(i>=0){tempVers=tempVers.substring(i+5);ieVers=parseFloat(tempVers);}
return ieVers;}
function mouseoutMenu(){if((navigator.appName=="Microsoft Internet Explorer")&&(getExplorerVersion()<4.5))
return true;hideMenu(false,false);return true;}
function hideMenu(mouseup,e){var a=window.ActiveMenuItem;if(a&&document.layers){a.document.bgColor=a.saveColor;a.focusItem.top=-30;if(a.hilite)a.hilite.visibility="hidden";if(mouseup&&a.mmaction&&a.clicked&&window.ActiveMenu){if(a.eX<=e.pageX+15&&a.eX>=e.pageX-15&&a.eY<=e.pageY+10&&a.eY>=e.pageY-10){setTimeout('window.ActiveMenu.Menu.onMenuItemAction();',500);}}
a.clicked=false;if(a.Menu.bgImageOver)a.background.src=a.Menu.bgImageUp;}else if(window.ActiveMenu&&FIND("menuItem0")){if(a){a.style.backgroundColor=a.saveColor;if(a.hilite)a.hilite.style.visibility="hidden";if(a.hiliteShim)a.hiliteShim.style.visibility="inherit";if(a.Menu.bgImageUp)a.style.background="url("+a.Menu.bgImageUp+")";}}
if(!mouseup&&window.ActiveMenu){if(window.ActiveMenu.Menu){if(window.ActiveMenu.Menu.hideOnMouseOut)MM_startTimeout();return(true);}}
return(true);}
function hideChildMenu(hcmLayer){MM_clearTimeout();var l=hcmLayer;for(var i=0;i<l.Menu.childMenus.length;i++){var theLayer=l.Menu.childMenus[i];if(document.layers)theLayer.visibility="hidden";else{theLayer=FIND(theLayer);theLayer.style.visibility="hidden";if(theLayer.Menu.menuItemHAlign!='left'){for(var j=0;j<theLayer.Menu.menuItemLayers.length;j++){var itemLayer=theLayer.Menu.menuItemLayers[j];if(itemLayer.textShim)itemLayer.textShim.style.visibility="inherit";}}}
theLayer.Menu.hideChildMenu(theLayer);}
if(l.childMenu){var childMenu=l.childMenu;if(document.layers){l.Menu.MM_showMenu(null,null,null,childMenu.layers[0]);childMenu.zIndex=l.parentLayer.zIndex+1;childMenu.top=l.Menu.menuLayer.top+l.Menu.submenuYOffset;if(l.Menu.vertical){if(l.Menu.submenuRelativeToItem)childMenu.top+=l.top+l.parentLayer.top;childMenu.left=l.parentLayer.left+l.parentLayer.clip.width-(2*l.Menu.menuBorder)+l.Menu.menuLayer.left+l.Menu.submenuXOffset;}else{childMenu.top+=l.top+l.parentLayer.top;if(l.Menu.submenuRelativeToItem)childMenu.left=l.Menu.menuLayer.left+l.left+l.clip.width+(2*l.Menu.menuBorder)+l.Menu.submenuXOffset;else childMenu.left=l.parentLayer.left+l.parentLayer.clip.width-(2*l.Menu.menuBorder)+l.Menu.menuLayer.left+l.Menu.submenuXOffset;}
if(childMenu.left<l.Menu.container.clip.left)l.Menu.container.clip.left=childMenu.left;var w=childMenu.clip.width+childMenu.left-l.Menu.container.clip.left;if(w>l.Menu.container.clip.width)l.Menu.container.clip.width=w;var h=childMenu.clip.height+childMenu.top-l.Menu.container.clip.top;if(h>l.Menu.container.clip.height)l.Menu.container.clip.height=h;l.document.layers[1].zIndex=0;childMenu.visibility="inherit";}else if(FIND("menuItem0")){childMenu=FIND(l.childMenu);var menuLayer=FIND(l.Menu.menuLayer);var s=childMenu.style;s.zIndex=menuLayer.style.zIndex+1;if(document.all||window.mmIsOpera){s.pixelTop=menuLayer.style.pixelTop+l.Menu.submenuYOffset;if(l.Menu.vertical){if(l.Menu.submenuRelativeToItem)s.pixelTop+=l.style.pixelTop;s.pixelLeft=l.style.pixelWidth+menuLayer.style.pixelLeft+l.Menu.submenuXOffset;s.left=s.pixelLeft+'px';}else{s.pixelTop+=l.style.pixelTop;if(l.Menu.submenuRelativeToItem)s.pixelLeft=menuLayer.style.pixelLeft+l.style.pixelLeft+l.style.pixelWidth+(2*l.Menu.menuBorder)+l.Menu.submenuXOffset;else s.pixelLeft=(menuLayer.style.pixelWidth-4*l.Menu.menuBorder)+menuLayer.style.pixelLeft+l.Menu.submenuXOffset;s.left=s.pixelLeft+'px';}}else{var top=parseInt(menuLayer.style.top)+l.Menu.submenuYOffset;var left=0;if(l.Menu.vertical){if(l.Menu.submenuRelativeToItem)top+=parseInt(l.style.top);left=(parseInt(menuLayer.style.width)-4*l.Menu.menuBorder)+parseInt(menuLayer.style.left)+l.Menu.submenuXOffset;}else{top+=parseInt(l.style.top);if(l.Menu.submenuRelativeToItem)left=parseInt(menuLayer.style.left)+parseInt(l.style.left)+parseInt(l.style.width)+(2*l.Menu.menuBorder)+l.Menu.submenuXOffset;else left=(parseInt(menuLayer.style.width)-4*l.Menu.menuBorder)+parseInt(menuLayer.style.left)+l.Menu.submenuXOffset;}
s.top=top+'px';s.left=left+'px';}
childMenu.style.visibility="inherit";}else return;window.activeMenus[window.activeMenus.length]=childMenu;}}
function hideActiveMenus(){if(!window.activeMenus)return;for(var i=0;i<window.activeMenus.length;i++){if(!activeMenus[i])continue;if(activeMenus[i].visibility&&activeMenus[i].Menu&&!window.mmIsOpera){activeMenus[i].visibility="hidden";activeMenus[i].Menu.container.visibility="hidden";activeMenus[i].Menu.container.clip.left=0;}else if(activeMenus[i].style){var s=activeMenus[i].style;s.visibility="hidden";s.left='-200px';s.top='-200px';}}
if(window.ActiveMenuItem)hideMenu(false,false);window.activeMenus.length=0;}
function moveXbySlicePos(x,img){if(!document.layers){var onWindows=navigator.platform?navigator.platform=="Win32":false;var macIE45=document.all&&!onWindows&&getExplorerVersion()==4.5;var par=img;var lastOffset=0;while(par){if(par.leftMargin&&!onWindows)x+=parseInt(par.leftMargin);if((par.offsetLeft!=lastOffset)&&par.offsetLeft)x+=parseInt(par.offsetLeft);if(par.offsetLeft!=0)lastOffset=par.offsetLeft;par=macIE45?par.parentElement:par.offsetParent;}}else if(img.x)x+=img.x;return x;}
function moveYbySlicePos(y,img){if(!document.layers){var onWindows=navigator.platform?navigator.platform=="Win32":false;var macIE45=document.all&&!onWindows&&getExplorerVersion()==4.5;var par=img;var lastOffset=0;while(par){if(par.topMargin&&!onWindows)y+=parseInt(par.topMargin);if((par.offsetTop!=lastOffset)&&par.offsetTop)y+=parseInt(par.offsetTop);if(par.offsetTop!=0)lastOffset=par.offsetTop;par=macIE45?par.parentElement:par.offsetParent;}}else if(img.y>=0)y+=img.y;return y;}
/** mm_menu.js End here **/

/** mm_menu1.js Start here **/
function mmLoadMenus() {
  if (window.mm_menu_0414235457_0) return;
  window.mm_menu_0414235457_0 = new Menu("root",245,25,"Arial, Verdana, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#2F4A79","#687DA4","left","middle",10,0,1000,-5,7,true,true,true,5,true,true);
  mm_menu_0414235457_0.addMenuItem("Credit&nbsp;repair","window.open('/repair/', '_parent');");
  mm_menu_0414235457_0.addMenuItem("Budgeting&nbsp;your&nbsp;expenditures","window.open('/money/', '_parent');");
  mm_menu_0414235457_0.addMenuItem("Debt&nbsp;management","window.open('/loan/', '_parent');");
  mm_menu_0414235457_0.addMenuItem("Improve&nbsp;your&nbsp;credit&nbsp;score","window.open('/graph/', '_parent');");
  mm_menu_0414235457_0.addMenuItem("Announcements&nbsp;Feedback&nbsp;and&nbsp;Pub","window.open('/pub/', '_parent');");
   mm_menu_0414235457_0.hideOnMouseOut=true;
   mm_menu_0414235457_0.bgColor='#687DA4';
   mm_menu_0414235457_0.menuBorder=0;
   mm_menu_0414235457_0.menuLiteBgColor='#687DA4';
   mm_menu_0414235457_0.menuBorderBgColor='#687DA4';

mm_menu_0414235457_0.writeMenus();
} // mmLoadMenus()
/** mm_menu1.js End here **/

/** widget.js Start here **/
if(!"console" in window){window.console={log:function(){}}}TWTR=window.TWTR||{};if(!Array.forEach){Array.prototype.forEach=function(D,E){var C=E||window;for(var B=0,A=this.length;B<A;++B){D.call(C,this[B],B,this)}};Array.prototype.filter=function(E,F){var D=F||window;var A=[];for(var C=0,B=this.length;C<B;++C){if(!E.call(D,this[C],C,this)){continue}A.push(this[C])}return A};Array.prototype.indexOf=function(B,C){var C=C||0;for(var A=0;A<this.length;++A){if(this[A]===B){return A}}return -1}}(function(){if(TWTR&&TWTR.Widget){return }function A(B,D,C){this.el=B;this.prop=D;this.from=C.from;this.to=C.to;this.time=C.time;this.callback=C.callback;this.animDiff=this.to-this.from}A.canTransition=function(){var B=document.createElement("twitter");B.style.cssText="-webkit-transition: all .5s linear;";return !!B.style.webkitTransitionProperty}();A.prototype._setStyle=function(B){switch(this.prop){case"opacity":this.el.style[this.prop]=B;this.el.style.filter="alpha(opacity="+B*100+")";break;default:this.el.style[this.prop]=B+"px";break}};A.prototype._animate=function(){var B=this;this.now=new Date();this.diff=this.now-this.startTime;if(this.diff>this.time){this._setStyle(this.to);if(this.callback){this.callback.call(this)}clearInterval(this.timer);return }this.percentage=(Math.floor((this.diff/this.time)*100)/100);this.val=(this.animDiff*this.percentage)+this.from;this._setStyle(this.val)};A.prototype.start=function(){var B=this;this.startTime=new Date();this.timer=setInterval(function(){B._animate.call(B)},15)};TWTR.Widget=function(B){this.init(B)};(function(){var N={};var a={};var Y=function(d){var b=a[d];if(!b){b=new RegExp("(?:^|\\s+)"+d+"(?:\\s+|$)");a[d]=b}return b};var C=function(g,l,h,j){var l=l||"*";var h=h||document;var d=[],b=h.getElementsByTagName(l),k=Y(g);for(var e=0,f=b.length;e<f;++e){if(k.test(b[e].className)){d[d.length]=b[e];if(j){j.call(b[e],b[e])}}}return d};var Z=function(){var b=navigator.userAgent;return{ie:b.match(/MSIE\s([^;]*)/)}}();var G=function(b){if(typeof b=="string"){return document.getElementById(b)}return b};var S=function(b){return b.replace(/^\s+|\s+$/g,"")};var R=function(){var b=self.innerHeight;var c=document.compatMode;if((c||Z.ie)){b=(c=="CSS1Compat")?document.documentElement.clientHeight:document.body.clientHeight}return b};var X=function(d,b){var c=d.target||d.srcElement;return b(c)};var P=function(c){try{if(c&&3==c.nodeType){return c.parentNode}else{return c}}catch(b){}};var Q=function(c){var b=c.relatedTarget;if(!b){if(c.type=="mouseout"){b=c.toElement}else{if(c.type=="mouseover"){b=c.fromElement}}}return P(b)};var U=function(c,b){b.parentNode.insertBefore(c,b.nextSibling)};var V=function(c){try{c.parentNode.removeChild(c)}catch(b){}};var T=function(b){return b.firstChild};var B=function(d){var c=Q(d);while(c&&c!=this){try{c=c.parentNode}catch(b){c=this}}if(c!=this){return true}return false};var F=function(){if(document.defaultView&&document.defaultView.getComputedStyle){return function(c,f){var e=null;var d=document.defaultView.getComputedStyle(c,"");if(d){e=d[f]}var b=c.style[f]||e;return b}}else{if(document.documentElement.currentStyle&&Z.ie){return function(b,d){var c=b.currentStyle?b.currentStyle[d]:null;return(b.style[d]||c)}}}}();var W={has:function(b,d){return new RegExp("(^|\\s)"+d+"(\\s|$)").test(G(b).className)},add:function(b,d){if(!this.has(b,d)){G(b).className=S(G(b).className)+" "+d}},remove:function(b,d){if(this.has(b,d)){G(b).className=G(b).className.replace(new RegExp("(^|\\s)"+d+"(\\s|$)","g"),"")}}};var D={add:function(d,c,b){if(d.addEventListener){d.addEventListener(c,b,false)}else{d.attachEvent("on"+c,function(){b.call(d,window.event)})}},remove:function(d,c,b){if(d.removeEventListener){d.removeEventListener(c,b,false)}else{d.detachEvent("on"+c,b)}}};var H={bool:function(c){return typeof c==="boolean"},def:function(b){return !(typeof b==="undefined")},number:function(b){return typeof b==="number"&&isFinite(b)},string:function(b){return typeof b==="string"},fn:function(b){return typeof b==="function"},array:function(b){if(b){return H.number(b.length)&&H.fn(b.splice)}return false}};var L=["January","February","March","April","May","June","July","August","September","October","November","December"];var O=function(f){var i=new Date(f);if(Z.ie){i=Date.parse(f.replace(/( \+)/," UTC$1"))}var c="";var b=function(){var d=i.getHours();if(d>0&&d<13){c="am";return d}else{if(d<1){c="am";return 12}else{c="pm";return d-12}}}();var e=i.getMinutes();var h=i.getSeconds();function g(){var d=new Date();if(d.getDate()!=i.getDate()||d.getYear()!=i.getYear()||d.getMonth()!=i.getMonth()){return" - "+L[i.getMonth()]+" "+i.getDate()+", "+i.getFullYear()}else{return""}}return b+":"+e+c+g()};var J=function(h){var j=new Date();var f=new Date(h);if(Z.ie){f=Date.parse(h.replace(/( \+)/," UTC$1"))}var i=j-f;var c=1000,d=c*60,e=d*60,g=e*24,b=g*7;if(isNaN(i)||i<0){return""}if(i<c*7){return"right now"}if(i<d){return Math.floor(i/c)+" seconds ago"}if(i<d*2){return"about 1 minute ago"}if(i<e){return Math.floor(i/d)+" minutes ago"}if(i<e*2){return"about 1 hour ago"}if(i<g){return Math.floor(i/e)+" hours ago"}if(i>g&&i<g*2){return"yesterday"}if(i<g*365){return Math.floor(i/g)+" days ago"}else{return"over a year ago"}};var E={link:function(b){return b.replace(/\b(((https*\:\/\/)|www\.).+?)(([!?,.\)]+)?(\s|$))/g,function(h,g,e,d,c){var f=e.match(/w/)?"http://":"";return'<a class="twtr-hyperlink" target="_blank" href="'+f+g+'">'+((g.length>25)?g.substr(0,24)+"...":g)+"</a>"+c})},at:function(b){return b.replace(/\B\@([a-zA-Z0-9_]{1,20})/g,function(c,d){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+d+'">'+d+"</a>"})},list:function(b){return b.replace(/\B\@([a-zA-Z0-9_]{1,20}\/\w+)/g,function(c,d){return'@<a target="_blank" class="twtr-atreply" href="http://twitter.com/'+d+'">'+d+"</a>"})},hash:function(b){return b.replace(/\B\#(\w+)/gi,function(c,d){return'<a target="_blank" class="twtr-hashtag" href="http://twitter.com/search?q=%23'+d+'">#'+d+"</a>"})},clean:function(b){return this.hash(this.at(this.list(this.link(b))))}};function M(c,d,b){this.job=c;this.decayFn=d;this.interval=b;this.decayRate=1;this.decayMultiplier=1.25;this.maxDecayTime=3*60*1000}M.prototype={start:function(){this.stop().run();return this},stop:function(){if(this.worker){window.clearTimeout(this.worker)}return this},run:function(){var b=this;this.job(function(){b.decayRate=b.decayFn()?Math.max(1,b.decayRate/b.decayMultiplier):b.decayRate*b.decayMultiplier;var c=b.interval*b.decayRate;c=(c>=b.maxDecayTime)?b.maxDecayTime:c;c=Math.floor(c);b.worker=window.setTimeout(function(){b.run.call(b)},c)})},destroy:function(){this.stop();this.decayRate=1;return this}};function I(c,d,b,e){this.time=d||6000;this.loop=b||false;this.repeated=0;this.total=c.length;this.callback=e;this.haystack=c}I.prototype={start:function(b){var c=this;if(b){this.repeated=0}this.stop()._job();this.timer=window.setInterval(function(){c._job.call(c)},this.time);return this},stop:function(){if(this.timer){window.clearInterval(this.timer)}return this},_job:function(){if(this.repeated===this.total){if(this.loop){this.repeated=0}else{this.stop();return }}this.callback(this.haystack[this.repeated]);this.repeated++;return this}};function K(c){var b='<div class="twtr-tweet-wrap">         <div class="twtr-avatar">           <div class="twtr-img"><a target="_blank" href="http://twitter.com/'+c.user+'"><img alt="'+c.user+' profile" src="'+c.avatar+'"></a></div>         </div>         <div class="twtr-tweet-text">           <p>             <a target="_blank" href="http://twitter.com/'+c.user+'" class="twtr-user">'+c.user+"</a> "+c.tweet+'             <i>            <a target="_blank" class="twtr-timestamp" time="'+c.timestamp+'" href="http://twitter.com/'+c.user+"/status/"+c.id+'">'+c.created_at+'</a>             <a target="_blank" class="twtr-reply" href="http://twitter.com/?status=@'+c.user+"%20&in_reply_to_status_id="+c.id+"&in_reply_to="+c.user+'">reply</a>             </i>           </p>         </div>       </div>';var d=document.createElement("div");d.id="tweet-id-"+ ++K._tweetCount;d.className="twtr-tweet";d.innerHTML=b;this.element=d}K._tweetCount=0;N.loadStyleSheet=function(d,c){if(!TWTR.Widget.loadingStyleSheet){TWTR.Widget.loadingStyleSheet=true;var b=document.createElement("link");b.href=d;b.rel="stylesheet";b.type="text/css";document.getElementsByTagName("head")[0].appendChild(b);var e=setInterval(function(){var f=F(c,"position");if(f=="relative"){clearInterval(e);TWTR.Widget.hasLoadedStyleSheet=true}},50)}};(function(){var b=false;N.css=function(e){var d=document.createElement("style");d.type="text/css";if(Z.ie){d.styleSheet.cssText=e}else{var f=document.createDocumentFragment();f.appendChild(document.createTextNode(e));d.appendChild(f)}function c(){document.getElementsByTagName("head")[0].appendChild(d)}if(!Z.ie||b){c()}else{window.attachEvent("onload",function(){b=true;c()})}}})();TWTR.Widget.isLoaded=false;TWTR.Widget.loadingStyleSheet=false;TWTR.Widget.hasLoadedStyleSheet=false;TWTR.Widget.WIDGET_NUMBER=0;TWTR.Widget.matches={mentions:/^@[a-zA-Z0-9_]{1,20}\b/,any_mentions:/\b@[a-zA-Z0-9_]{1,20}\b/};TWTR.Widget.jsonP=function(c,d){var b=document.createElement("script");b.type="text/javascript";b.src=c;document.getElementsByTagName("head")[0].appendChild(b);d(b);return b};TWTR.Widget.prototype=function(){var f="http://search.twitter.com/search.";var g="http://twitter.com/statuses/user_timeline.";var d="http://twitter.com/favorites/";var e="http://twitter.com/";var c=20000;var b="http://widgets.twimg.com/j/1/default.gif";return{init:function(i){var h=this;this._widgetNumber=++TWTR.Widget.WIDGET_NUMBER;TWTR.Widget["receiveCallback_"+this._widgetNumber]=function(j){h._prePlay.call(h,j)};this._cb="TWTR.Widget.receiveCallback_"+this._widgetNumber;this.opts=i;this._base=f;this._isRunning=false;this._hasOfficiallyStarted=false;this._rendered=false;this._profileImage=false;this._isCreator=!!i.creator;this._setWidgetType(i.type);this.timesRequested=0;this.runOnce=false;this.newResults=false;this.results=[];this.jsonMaxRequestTimeOut=19000;this.showedResults=[];this.sinceId=1;this.source="TWITTERINC_WIDGET";this.id=i.id||"twtr-widget-"+this._widgetNumber;this.tweets=0;this.setDimensions(i.width,i.height);this.interval=i.interval||6000;this.format="json";this.rpp=i.rpp||50;this.subject=i.subject||"";this.title=i.title||"";this.setFooterText(i.footer);this.setSearch(i.search);this._setUrl();this.theme=i.theme?i.theme:this._getDefaultTheme();if(!i.id){document.write('<div class="twtr-widget" id="'+this.id+'"></div>')}this.widgetEl=G(this.id);if(i.id){W.add(this.widgetEl,"twtr-widget")}if(i.version>=2&&!TWTR.Widget.hasLoadedStyleSheet){N.loadStyleSheet("http://widgets.twimg.com/j/2/widget.css",this.widgetEl)}this.occasionalJob=new M(function(j){h.decay=j;h._getResults.call(h)},function(){return h._decayDecider.call(h)},c);this._ready=H.fn(i.ready)?i.ready:function(){};this._isRelativeTime=true;this._tweetFilter=false;this._avatars=true;this._isFullScreen=false;this._isLive=true;this._isScroll=false;this._loop=true;this._behavior="default";this.setFeatures(this.opts.features);return this},setDimensions:function(i,j){this.wh=(i&&j)?[i,j]:[250,300];if(i=="auto"||i=="100%"){this.wh[0]="100%"}else{this.wh[0]=((this.wh[0]<150)?150:this.wh[0])+"px"}this.wh[1]=((this.wh[1]<100)?100:this.wh[1])+"px";return this},setRpp:function(h){var h=parseInt(h);this.rpp=(H.number(h)&&(h>0&&h<=100))?h:30;return this},_setWidgetType:function(h){this._isSearchWidget=false,this._isProfileWidget=false,this._isFavsWidget=false,this._isListWidget=false;switch(h){case"profile":this._isProfileWidget=true;break;case"search":this._isSearchWidget=true,this.search=this.opts.search;break;case"faves":case"favs":this._isFavsWidget=true;break;case"list":case"lists":this._isListWidget=true;break}return this},setFeatures:function(h){if(h){if(H.def(h.filters)){this._tweetFilter=h.filters}if(H.def(h.dateformat)){this._isRelativeTime=!!(h.dateformat!=="absolute")}if(H.def(h.fullscreen)&&H.bool(h.fullscreen)){if(h.fullscreen){this._isFullScreen=true;this.wh[0]="100%";this.wh[1]=(R()-90)+"px";var i=this;D.add(window,"resize",function(l){i.wh[1]=R();i._fullScreenResize()})}}if(H.def(h.loop)&&H.bool(h.loop)){this._loop=h.loop}if(H.def(h.behavior)&&H.string(h.behavior)){switch(h.behavior){case"all":this._behavior="all";break;default:this._behavior="default";break}}if(H.def(h.avatars)&&H.bool(h.avatars)){if(!h.avatars){N.css("#"+this.id+" .twtr-avatar, #"+this.id+" .twtr-user { display: none; } #"+this.id+" .twtr-tweet-text { margin-left: 0; }");this._avatars=false}else{var j=(this._isFullScreen)?"90px":"40px";N.css("#"+this.id+" .twtr-avatar { display: block; } #"+this.id+" .twtr-user { display: inline; } #"+this.id+" .twtr-tweet-text { margin-left: "+j+"; }");this._avatars=true}}else{if(this._isProfileWidget){this.setFeatures({avatars:false});this._avatars=false}else{this.setFeatures({avatars:true});this._avatars=true}}if(H.def(h.hashtags)&&H.bool(h.hashtags)){(!h.hashtags)?N.css("#"+this.id+" a.twtr-hashtag { display: none; }"):""}if(H.def(h.timestamp)&&H.bool(h.timestamp)){var k=h.timestamp?"block":"none";N.css("#"+this.id+" i { display: "+k+"; }")}if(H.def(h.live)&&H.bool(h.live)){this._isLive=h.live}if(H.def(h.scrollbar)&&H.bool(h.scrollbar)){this._isScroll=h.scrollbar}}else{if(this._isProfileWidget){this.setFeatures({avatars:false});this._avatars=false}if(this._isProfileWidget||this._isFavsWidget){this.setFeatures({behavior:"all"})}}return this},_fullScreenResize:function(){var h=C("twtr-timeline","div",document.body,function(i){i.style.height=(R()-90)+"px"})},setTweetInterval:function(h){this.interval=h;return this},setBase:function(h){this._base=h;return this},setUser:function(i,h){this.username=i;this.realname=h||" ";if(this._isFavsWidget){this.setBase(d+i+".")}else{if(this._isProfileWidget){this.setBase(g+this.format+"?screen_name="+i)}}this.setSearch(" ");return this},setList:function(i,h){this.listslug=h.replace(/ /g,"-").toLowerCase();this.username=i;this.setBase(e+i+"/lists/"+this.listslug+"/statuses.");this.setSearch(" ");return this},setProfileImage:function(h){this._profileImage=h;this.byClass("twtr-profile-img","img").src=h;this.byClass("twtr-profile-img-anchor","a").href="http://twitter.com/"+this.username;return this},setTitle:function(h){this.title=h;this.widgetEl.getElementsByTagName("h3")[0].innerHTML=this.title;return this},setCaption:function(h){this.subject=h;this.widgetEl.getElementsByTagName("h4")[0].innerHTML=this.subject;return this},setFooterText:function(h){this.footerText=(H.def(h)&&H.string(h))?h:"";if(this._rendered){this.byClass("twtr-join-conv","a").innerHTML=this.footerText}return this},setSearch:function(i){this.searchString=i||"";this.s=this.searchString.replace(" ","+");this.search=escape("-RT "+this.s);this._setUrl();if(this._rendered){var h=this.byClass("twtr-join-conv","a");h.href="http://twitter.com/"+this._getWidgetPath()}return this},_getWidgetPath:function(){if(this._isProfileWidget){return this.username}else{if(this._isFavsWidget){return this.username+"/favorites"}else{if(this._isListWidget){return this.username+"/lists/"+this.listslug}else{return"#search?q="+this.search}}}},_setUrl:function(){var h=this;function i(){return(h.sinceId==1)?"":"&since_id="+h.sinceId+"&refresh=true"}if(this._isProfileWidget){this.url=this._base+"&callback="+this._cb+"&count="+this.rpp+i()+"&clientsource="+this.source}else{if(this._isFavsWidget||this._isListWidget){this.url=this._base+this.format+"?callback="+this._cb+i()+"&clientsource="+this.source}else{this.url=this._base+this.format+"?q="+this.search+"&callback="+this._cb+"&rpp="+this.rpp+i()+"&clientsource="+this.source}}return this},setTheme:function(m,h){var k=this;var i=" !important";var l=((window.location.hostname.match(/twitter\.com/))&&(window.location.pathname.match(/goodies/)));if(h||l){i=""}this.theme={shell:{background:function(){return m.shell.background||k._getDefaultTheme().shell.background}(),color:function(){return m.shell.color||k._getDefaultTheme().shell.color}()},tweets:{background:function(){return m.tweets.background||k._getDefaultTheme().tweets.background}(),color:function(){return m.tweets.color||k._getDefaultTheme().tweets.color}(),links:function(){return m.tweets.links||k._getDefaultTheme().tweets.links}()}};var j="#"+this.id+" .twtr-doc,                      #"+this.id+" .twtr-hd a,                      #"+this.id+" h3,                      #"+this.id+" h4 {            background: "+this.theme.shell.background+i+";            color: "+this.theme.shell.color+i+";          }          #"+this.id+" .twtr-tweet a {            color: "+this.theme.tweets.links+i+";          }          #"+this.id+" .twtr-bd, #"+this.id+" .twtr-timeline i a,           #"+this.id+" .twtr-bd p {            color: "+this.theme.tweets.color+i+";          }          #"+this.id+" .twtr-new-results,           #"+this.id+" .twtr-results-inner,           #"+this.id+" .twtr-timeline {            background: "+this.theme.tweets.background+i+";          }";if(Z.ie){j+="#"+this.id+" .twtr-tweet { background: "+this.theme.tweets.background+i+"; }"}N.css(j);return this},byClass:function(k,h,i){var j=C(k,h,G(this.id));return(i)?j:j[0]},render:function(){var j=this;if(!TWTR.Widget.hasLoadedStyleSheet){window.setTimeout(function(){j.render.call(j)},50);return this}this.setTheme(this.theme,this._isCreator);if(this._isProfileWidget){W.add(this.widgetEl,"twtr-widget-profile")}if(this._isScroll){W.add(this.widgetEl,"twtr-scroll")}if(!this._isLive&&!this._isScroll){this.wh[1]="auto"}if(this._isSearchWidget&&this._isFullScreen){document.title="Twitter search: "+escape(this.searchString)}this.widgetEl.innerHTML=this._getWidgetHtml();this.spinner=this.byClass("twtr-spinner","div");var i=this.byClass("twtr-timeline","div");if(this._isLive&&!this._isFullScreen){var k=function(l){if(B.call(this,l)){j.pause.call(j)}};var h=function(l){if(B.call(this,l)){j.resume.call(j)}};this.removeEvents=function(){D.remove(i,"mouseover",k);D.remove(i,"mouseout",h)};D.add(i,"mouseover",k);D.add(i,"mouseout",h)}this._rendered=true;this._ready();return this},removeEvents:function(){},_getDefaultTheme:function(){return{shell:{background:"#8ec1da",color:"#ffffff"},tweets:{background:"#ffffff",color:"#444444",links:"#1985b5"}}},_getWidgetHtml:function(){var k=this;function l(){if(k._isProfileWidget){return'<a target="_blank" href="http://twitter.com/" class="twtr-profile-img-anchor"><img alt="profile" class="twtr-profile-img" src="'+b+'"></a>                      <h3></h3>                      <h4></h4>'}else{return"<h3>"+k.title+"</h3><h4>"+k.subject+"</h4>"}}function j(){if(!k._isFullScreen){return' height="15"'}return""}function i(){return k._isFullScreen?" twtr-fullscreen":""}var h='<div class="twtr-doc'+i()+'" style="width: '+this.wh[0]+';">            <div class="twtr-hd">'+l()+'               <div class="twtr-spinner twtr-inactive"></div>            </div>            <div class="twtr-bd">              <div class="twtr-timeline" style="height: '+this.wh[1]+';">                <div class="twtr-tweets">                  <div class="twtr-reference-tweet"></div>                  <!-- tweets show here -->                </div>              </div>            </div>            <div class="twtr-ft">              <div><a target="_blank" href="http://twitter.com"><img alt="" src="http://widgets.twimg.com/j/1/twitter_logo_s.'+(Z.ie?"gif":"png")+'"'+j()+'></a>                <span><a target="_blank" class="twtr-join-conv" style="color:'+this.theme.shell.color+'" href="http://twitter.com/'+this._getWidgetPath()+'">'+this.footerText+"</a></span>              </div>            </div>          </div>";return h},_appendTweet:function(h){U(h,this.byClass("twtr-reference-tweet","div"));return this},_slide:function(i){var j=this;var h=T(i).offsetHeight;if(this.runOnce){new A(i,"height",{from:0,to:h,time:500,callback:function(){j._fade.call(j,i)}}).start()}return this},_fade:function(h){var i=this;if(A.canTransition){h.style.webkitTransition="opacity 0.5s ease-out";h.style.opacity=1;return this}new A(h,"opacity",{from:0,to:1,time:500}).start();return this},_chop:function(){if(this._isScroll){return this}var n=this.byClass("twtr-tweet","div",true);var o=this.byClass("twtr-new-results","div",true);if(n.length){for(var k=n.length-1;k>=0;k--){var m=n[k];var l=parseInt(m.offsetTop);if(l>parseInt(this.wh[1])){V(m)}else{break}}if(o.length>0){var h=o[o.length-1];var j=parseInt(h.offsetTop);if(j>parseInt(this.wh[1])){V(h)}}}return this},_appendSlideFade:function(i){var h=i||this.tweet.element;this._chop()._appendTweet(h)._slide(h);return this},_createTweet:function(h){h.timestamp=h.created_at;h.created_at=this._isRelativeTime?J(h.created_at):O(h.created_at);this.tweet=new K(h);if(this._isLive&&this.runOnce){this.tweet.element.style.opacity=0;this.tweet.element.style.filter="alpha(opacity:0)";this.tweet.element.style.height="0"}return this},_getResults:function(){var h=this;this.timesRequested++;this.jsonRequestRunning=true;this.jsonRequestTimer=window.setTimeout(function(){if(h.jsonRequestRunning){clearTimeout(h.jsonRequestTimer);W.add(h.spinner,"twtr-inactive")}h.jsonRequestRunning=false;V(h.scriptElement);h.newResults=false;h.decay()},this.jsonMaxRequestTimeOut);W.remove(this.spinner,"twtr-inactive");TWTR.Widget.jsonP(h.url,function(i){h.scriptElement=i})},clear:function(){var i=this.byClass("twtr-tweet","div",true);var h=this.byClass("twtr-new-results","div",true);i=i.concat(h);i.forEach(function(j){V(j)});return this},_sortByLatest:function(h){this.results=h;this.results=this.results.slice(0,this.rpp);this.results.reverse();return this},_sortByMagic:function(h){var h=h;var i=this;if(this._tweetFilter){if(this._tweetFilter.negatives){h=h.filter(function(j){if(!i._tweetFilter.negatives.test(j.text)){return j}})}if(this._tweetFilter.positives){h=h.filter(function(j){if(i._tweetFilter.positives.test(j.text)){return j}})}}switch(this._behavior){case"all":this._sortByLatest(h);break;default:this._sortByDefault(h);break}return this},_sortByDefault:function(i){var j=this;var h=function(){if(Z.ie){return function(k){return Date.parse(k.replace(/( \+)/," UTC$1"))}}else{return function(k){return new Date(k)}}}();this.results.unshift.apply(this.results,i);this.results.forEach(function(k){if(!k.views){k.views=0}});this.results.sort(function(l,k){if(h(l.created_at)<h(k.created_at)){return 1}else{if(h(l.created_at)>h(k.created_at)){return -1}else{return 0}}});this.results=this.results.slice(0,this.rpp);if(!this._isLive){this.results.reverse()}this.results.sort(function(l,k){if(l.views>k.views){return 1}else{if(l.views<k.views){return -1}}return 0})},_prePlay:function(i){if(this.jsonRequestTimer){clearTimeout(this.jsonRequestTimer)}if(!Z.ie){V(this.scriptElement)}if(i.error){this.newResults=false}else{if(i.results&&i.results.length>0){this.response=i;if(this.intervalJob){this.intervalJob.stop()}this.newResults=true;this.sinceId=i.max_id;this._sortByMagic(i.results);if(this.isRunning()){this._play()}}else{if((this._isProfileWidget||this._isFavsWidget||this._isListWidget)&&H.array(i)&&i.length>0){if(this.intervalJob){this.intervalJob.stop()}this.newResults=true;if(!this._profileImage&&this._isProfileWidget){var h=i[0].user.screen_name;this.setProfileImage(i[0].user.profile_image_url);this.setTitle(i[0].user.name);this.setCaption('<a target="_blank" href="http://twitter.com/'+h+'">'+h+"</a>")}this.sinceId=i[0].id;this._sortByMagic(i);if(this.isRunning()){this._play()}}else{this.newResults=false}}}this._setUrl();if(this._isLive){this.decay()}W.add(this.spinner,"twtr-inactive")},_play:function(){var h=this;if(this._avatars){this._preloadImages(this.results)}if(this._isRelativeTime&&this._behavior=="all"){this.byClass("twtr-timestamp","a",true).forEach(function(i){i.innerHTML=J(i.getAttribute("time"))})}if(!this._isLive||this._behavior=="all"){this.results.forEach(function(j){if(h._isProfileWidget){j.from_user=h.username;j.profile_image_url=j.user.profile_image_url}if(h._isFavsWidget||h._isListWidget){j.from_user=j.user.screen_name;j.profile_image_url=j.user.profile_image_url}h._createTweet({id:j.id,user:j.from_user,tweet:E.clean(j.text),avatar:j.profile_image_url,created_at:j.created_at});var i=h.tweet.element;(h._behavior=="all")?h._appendSlideFade(i):h._appendTweet(i)});return this}this._insertNewResultsNumber();this.intervalJob=new I(this.results,this.interval,this._loop,function(i){i.views++;if(h._isProfileWidget){i.from_user=h.username;i.profile_image_url=i.user.profile_image_url}if(h._isFavsWidget||h._isListWidget){i.from_user=i.user.screen_name;i.profile_image_url=i.user.profile_image_url}if(h._isFullScreen){i.profile_image_url=i.profile_image_url.replace(/_normal\./,"_bigger.")}h._createTweet({id:i.id,user:i.from_user,tweet:E.clean(i.text),avatar:i.profile_image_url,created_at:i.created_at})._appendSlideFade()}).start(true);return this},_insertNewResultsNumber:function(){if(this.runOnce&&this._isSearchWidget){var k=this.response.total>this.rpp?this.response.total:this.response.results.length;var h=k>1?"s":"";var j=(this.response.warning&&this.response.warning.match(/adjusted since_id/))?"more than":"";var i=document.createElement("div");W.add(i,"twtr-new-results");i.innerHTML='<div class="twtr-results-inner"> &nbsp; </div><div class="twtr-results-hr"> &nbsp; </div><span>'+j+" <strong>"+k+"</strong> new tweet"+h+"</span>";U(i,this.byClass("twtr-reference-tweet","div"))}},_preloadImages:function(h){if(this._isProfileWidget||this._isFavsWidget||this._isListWidget){h.forEach(function(j){var i=new Image();i.src=j.user.profile_image_url})}else{h.forEach(function(i){(new Image()).src=i.profile_image_url})}},_decayDecider:function(){var h=false;if(!this.runOnce){this.runOnce=true;h=true}else{if(this.newResults){h=true}}return h},start:function(){var h=this;if(!this._rendered){setTimeout(function(){h.start.call(h)},50);return this}if(!this._isLive){this._getResults()}else{this.occasionalJob.start()}this._isRunning=true;this._hasOfficiallyStarted=true;return this},stop:function(){this.occasionalJob.stop();if(this.intervalJob){this.intervalJob.stop()}this._isRunning=false;return this},pause:function(){if(this.isRunning()&&this.intervalJob){this.intervalJob.stop();W.add(this.widgetEl,"twtr-paused");this._isRunning=false}if(this._resumeTimer){clearTimeout(this._resumeTimer)}return this},resume:function(){var h=this;if(!this.isRunning()&&this._hasOfficiallyStarted&&this.intervalJob){this._resumeTimer=window.setTimeout(function(){h.intervalJob.start();h._isRunning=true;W.remove(h.widgetEl,"twtr-paused")},2000)}return this},isRunning:function(){return this._isRunning},destroy:function(){this.stop();this.clear();this.runOnce=false;this._hasOfficiallyStarted=false;this.intervalJob=false;this._profileImage=false;this._isLive=true;this._tweetFilter=false;this._isScroll=false;this.newResults=false;this._isRunning=false;this.sinceId=1;this.results=[];this.showedResults=[];this.occasionalJob.destroy();if(this.jsonRequestRunning){clearTimeout(this.jsonRequestTimer);W.add(this.spinner,"twtr-inactive")}W.remove(this.widgetEl,"twtr-scroll");this.removeEvents();return this}}}()})()})();
/** widget.js End here **/
/**for search box start here**/
function clearBG(){var txtBox=document.getElementById("txt_search_box_id");txtBox.style.backgroundImage="";}
function toggleBG(){var txtBox=document.getElementById("txt_search_box_id");if(txtBox.value==""){txtBox.style.backgroundImage="url(http://3static.creditmagic.org/img/google_custom_search_watermark.gif)";}
else{txtBox.style.backgroundImage="";}}
/**for search box end here**/
/**for facebook start here**/
window.fbAsyncInit = function() {
    FB.init({appId: '14a08ebe79f01ae7c96fe772155436ca', status: true, cookie: true,
             xfbml: true});
  };
  (function() {
    var e = document.createElement('script'); e.async = true;
    e.src = document.location.protocol +
      '//connect.facebook.net/en_US/all.js';
    document.getElementById('fb-root').appendChild(e);
  }());
/**for facebook end here**/
/**for google analytics start here**/
var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-476578-1']);
  _gaq.push(['_setDomainName', 'www.creditmagic.org']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
/**for google analytics end here**/ 
jQuery(document).ready(function(){
        configureAutoSuggest(new configuration('txt_search_box_id','div_suggestion_box_id','btn_submit_id'));
        jQuery(window).click(function(){jQuery('#div_suggestion_box_id').css('visibility','hidden');});
        jQuery('#txt_search_box_id').focus();
    });
  
