var maxWidth = 0; function ImageBox(image,width,height,credit,caption) { document.write(''+caption+''); } function PullQuote(quote,quoter) { var s = document.getElementById("inlineBox"); var b = s.appendChild(document.createElement("div")); b.id = "pullquoteBox"; var q = b.appendChild(document.createElement("div")); q.id = "pullquote"; q.innerHTML = """+quote+"""; if ( quoter != "" ) { var r = b.appendChild(document.createElement("div")); r.id = "pullquoter"; r.innerHTML = "-"+quoter+""; } } function InfoBox(headline,text) { var i = document.getElementById("inlineBox"); i.style.display = "block"; var b = i.appendChild(document.createElement("div")); b.id = "infoBox"; b.style.display = "block"; var h = b.appendChild(document.createElement("div")); h.id = "infoBoxHeadline"; h.innerHTML = ""+headline+""; var t = b.appendChild(document.createElement("div")); t.id = "infoBoxText"; if ( text.length > 700 ) { t.style.height = 350; t.style.display = "block"; t.style.overflow = "auto"; } t.innerHTML = ""+text+""; maxWidth = 199; } function sizeInlineBox() { var dis = 'none'; if ( document.getElementById("imageContainer") ) { if ( imageObjArray.length > 0 ) { dis = 'block'; } else if ( document.getElementById("infoBox") || document.getElementById("pullquoteBox") ) { dis = 'block'; document.getElementById("inlineBox").style.width = 200; } if ( document.getElementById("flashVideoBox") ) { dis = 'block'; document.getElementById("inlineBox").style.width = 252; } } if ( document.getElementById("flashVideoBox") ) { dis = 'block'; document.getElementById("inlineBox").style.width = 252; } if ( document.getElementById("infoBox") || document.getElementById("pullquoteBox") ) { dis = 'block'; if ( maxWidth < 200 ) { document.getElementById("inlineBox").style.width = 240; if(document.getElementById("infoBox")){ document.getElementById("infoBox").style.width = 240; } if(document.getElementById("pullquoteBox")){ document.getElementById("pullquoteBox").style.width = 240; } } } document.getElementById("inlineBox").style.display = ''+dis+''; return 0; }