function Utilities(){} Utilities.generateIDNumber=function(){var timestamp=new Date().getTime();var rand=parseInt((Math.random()*100000));return timestamp+rand;};Utilities.DefaultWindow=window;Utilities.Window=window;Utilities.Window.name="n"+Utilities.generateIDNumber();Utilities.setWindow=function(win){Utilities.Window=win;};Utilities.resetWindow=function(){Utilities.Window=Utilities.DefaultWindow;};if(!Utilities.Window.Node) {Utilities.Node={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3,CDATA_SECTION_NODE:4,ENTITY_REFERENCE_NODE:5,ENTITY_NODE:6,PROCESSING_INSTRUCTION_NODE:7,COMMENT_NODE:8,DOCUMENT_NODE:9,DOCUMENT_TYPE_NODE:10,DOCUMENT_FRAGMENT_NODE:11,NOTATION_NODE:12};} else {Utilities.Node=Utilities.Window.Node;} Utilities.Browser={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(Utilities.Window.navigator.userAgent)||this.searchVersion(Utilities.Window.navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.isOpera=this.browser=="Opera";this.isMozilla=this.browser=="Firefox"||this.browser=="Mozilla"||this.browser=="Netscape";this.isSafari=this.browser=="Safari";this.isIE=this.browser=="Internet Explorer";this.isiCab=this.browser=="iCab";this.isMac=this.OS=="Mac";this.isWin=this.OS=="Windows";this.isLinux=this.OS=="Linux";this.tested_intra=false;if(this.browser=="Firefox"&&parseFloat(this.version)>=1.5)this.tested_intra=true;else if(this.browser=="Safari"&&parseInt(this.version)>=412)this.tested_intra=true;else if(this.browser=="AppleWebKit/KHTML"&&parseInt(this.version)>=418)this.tested_intra=true;else if(this.browser=="SeaMonkey"&&parseFloat(this.version)>=1)this.tested_intra=true;else if(this.browser=="Camino"&&parseInt(this.version)>=1)this.tested_intra=true;this.tested_inter=this.tested_intra;if(this.browser=="Internet Explorer"&&parseInt(this.version)>=6)this.tested_inter=true;else if(this.browser=="Opera"&&parseInt(this.version)>=9)this.tested_inter=true;else if(this.browser=="OmniWeb"&&parseInt(this.version)>=607)this.tested_inter=true;else if(this.browser=="iCab"&&parseInt(this.version)>=3)this.tested_inter=true;else if(this.browser=="Netscape"&&parseInt(this.version)>=8)this.tested_inter=true;var isCMS=(typeof _isCMS=="boolean")?_isCMS:false;if(isCMS&&!this.tested_intra)Utilities.Window.location="http://journalism.indiana.edu/apps/browser_check/";},searchString:function(data){for(var i=0;i text size "); } function setContentFontSize(size) { var items = Utilities.getElements(Utilities.Window.document.getElementById("content"),Utilities.Node.ELEMENT_NODE,function (el) { return el.tagName.toLowerCase()=="div" && Utilities.hasClass(el,"post"); }); for(var i=items.length-1; i>=0; i--) if(items[i]) items[i].style.fontSize = size + "em"; } var _currentSize = Number.MIN_VALUE; function increaseContentFontSize() { if(_currentSize<0.9) { _currentSize = 0.9; setContentFontSize(0.9); } else if(_currentSize<1.4) { _currentSize = 1.4; setContentFontSize(1.4); } } function decreaseContentFontSize() { if(_currentSize>0.9) { _currentSize = 0.9; setContentFontSize(0.9); } else if(_currentSize<=0.9) { _currentSize = 0.8; setContentFontSize(0.8); } } function toggleComments(link) { var comments = Utilities.Window.document.getElementById("allComments"); if(comments) { if(comments.style.display=="none") { comments.style.display = "block"; link.firstChild.nodeValue = "(hide)"; } else { comments.style.display = "none"; link.firstChild.nodeValue = "(show)"; } } }