// TO-DO // Spotlight video // Hit count function put(txt) { document.write(txt); } put('' +'' +'' +''); function getCookie(name, defaultValue) { if (document.cookie.length > 0) { start = document.cookie.indexOf(name+"="); if (start != -1) { start = start + name.length + 1; end = document.cookie.indexOf(";", start); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(start,end)); } } return defaultValue; } function setCookie(name,value) { document.cookie=name+"="+escape(value); } function toggleCookie(name) { if (getCookie(name,1) == 1) setCookie(name,0); else setCookie(name,1); window.location.reload(false); } function docName() { var url = document.URL; var slash = url.lastIndexOf('\\') + 1; var dot = url.lastIndexOf('.'); return url.substring(slash,dot); } //============================================================================= var oWidth = 630; // Width of outer table var iWidth = 614; // Width of inner tables var sMargin = ( oWidth - iWidth ) / 2; // Side margins var oBorder = getCookie('oBorder',0); // Outside Border var iBorder = getCookie('iBorder',0); // Inside Border var hBorder = getCookie('hBorder',0); // Header/footer Border var hHeader = 174; // Hieght of header block var hBody = 420; // Default hieght of body block (slider) //var tFudge = iWidth - 186 - ( 10 * 4 ) - 350; // Added to the page title to force right column to be the correct width var tFudge = iWidth - 186 - ( 10 * 4 ); var mmm = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"); var tabImgs = new Array(); var t1 = 50; var t2 = 78; var t3 = 37; var t4 = 53; var t5 = 39; var t6 = 71; var t7 = 44; var t8 = 31; var tabs = t1 + t2 + t3 + t4 + t5 + t6 + t7 + t8; var hGap = 5; var gap = ( iWidth - tabs - ( hGap * 2 ) ) / 8; var g1 = t1 + gap; var g2 = t2 + gap; var g3 = t3 + gap; var g4 = t4 + gap; var g5 = t5 + gap; var g6 = t6 + gap; var g7 = t7 + gap; var g8 = t8 + gap; var checkSum = hGap + g1 + g2 + g3 + g4 + g5 + g6 + g7 + g8 + hGap; function values() { //put(''); put(''); put(''); put('
Fudge value: '+tFudge); put('
Screen size: '+screen.width+' x '+screen.height); put('
Header height: '+hHeader); //put('
Body height (slider): '+hBody+' ['+winHeight()+' - '+hHeader+' - 20]'); put('
Outside table width: '+oWidth); put('
Inside table width: '+iWidth); put('
Side margin: '+sMargin); put('
Borders: outside ' +' body ' +' header/footer'); //put('
Slider flag: '+slider); put('
Tabs: '+t1+' '+t2+' '+t3+' '+t4+' '+t5+' '+t6+' '+t7+' '+t8); put('
'+(hGap+g1+g2)+' '+(g3+g4+g5+g6)+' '+(g7+g8+hGap)); put('
Total tabs: '+tabs); put('
Gap: '+gap); //put('
Gaps: '+g1+' '+g2+' '+g3+' '+g4+' '+g5+' '+g6+' '+g7+' '+g8); put('
Check sum: '+checkSum); put('
Doc name: '+docName()); put('
Test Page: TEST PAGE'); put('
'); } //============================================================================= function ddmmmyy() { var d = ddmmmyy.arguments[0]; uDate = new Date(d.lastModified); return uDate.getDate()+' '+mmm[uDate.getMonth()]+' '+uDate.getFullYear(); } function lastLine() { uDate = new Date(document.lastModified); put('
' +'updated: '+ddmmmyy(document) // +uDate.getDate()+' '+mmm[uDate.getMonth()]+' '+uDate.getFullYear() +''); } function lastLine2(fText) { if (fText) { uDate = new Date(document.lastModified); put(''); put(' '); put(' ' +' ' +' ' +' ' +' ' +' ' +'

updated: '+ddmmmyy(document)+'
' +' '); put(' '); put(''); } put(''); } function bodyBegin(frames) { put(''); put('
'); put(''); put(''); put(' '); put(' '); put(''); if (!frames) { put(''); put(' '); put(' '); lastLine2(fBottomText); put('
'); header(); put('
'); } } function bodyEnd(fBottomText) { put('
'); } function topImage() { if (!topImage.arguments[2]) topImage.arguments[2] = ""; put('' +'' +' ' +' ' +'
'); for (var i=2; i'+topImage.arguments[i]); put('' +'
' +'

'+topImage.arguments[1]+'

'); // +'

'); } function topImageEnd(fLastLine) { // if (fLastLine) lastLine(); put('
'); } function frontPage() { put('' +'
' +' ' +' ' +'
'); } function header() { put(''); put('' +'' +' ' +' ' +' ' +'
' +' '); put('' +' ' +' ' +' ' +' ' +' ' +' ' +' ' +' ' +' ' +' ' +' ' +' '); put('' +' ' +' ' +' '); put('' +' ' +' '); put('' +' '); put(''); putTab('aboutus', "What we are"); putTab('neighborhood', "Where we live"); putTab('people', "Who we are"); putTab('programs', "What we do"); putTab('community', "What we look like"); putTab('getinvolved', "What you can do"); putTab('contact', "Who to call"); putTab('news', "What we're doing"); put(''); put(''); put('' +'
the LIFT, CDC' // HEADER INFO +'

See us on
' // +'

MATCHING GIFT DAY
Click Here to Double Your Donation
on Tuesday, November 16, 2010
' // +' ' // HEADER INFO +'
 
' +'

"The LORD lifts up those who are bowed down."

' +'
' +' ' +' '); putTab('books', 'What we need'); put('' +' ' +' ' +' ' +' ' +' ' +' ' +'
' // +'
' // +' ' // +' ' // +' ' // +'
' // +' Donatebutton_narrow' +' Monitary donations' +'
' +'


' +'
' +''); } function putTab(tag, txt) { put('' + ' ' + ''+txt+'' + '' +''); } function swapImage(id, redFlag) { var elm = document.getElementById(id); var img = 'gifs/'+(redFlag?(id+'_red'):id)+'.gif'; document.getElementById(id).src = img; } function picQuote() { // position:0|1|5|9 left|right who text [ overwriteName ] var a=picQuote.arguments; if (a[0] == 0 || a[0] == 5) put(''); put(''); if (a[0] == 9 || a[0] == 5) put('
'); put('

'); put(''); put('
') put(''+(a[4] || a[2])+': '); put(a[3]); put('

'); } function space() { // inTable?[0:1] width height if (space.arguments[0] == 1) put(''); put(''); if (space.arguments[0] == 1) put(''); } function dot() { // position:0|1|5|9 dotImage(9x9) text var a=dot.arguments; if (a[0] == 0 || a[0] == 5) put(''); put('' +'' +' ' +' '); if (a[0] == 9 || a[0] == 5) put('
'); for (var i=2; i
'); } function calWindow(url,name) { if (screen.width > 0) wide = screen.width - 12; else wide = 800; if (screen.height > 0) high = screen.height - 30; else high = 600; var newwindow = window.open(url,name,'height='+high+',width='+wide+',resizable=yes,scrollbars=yes,menubar=yes,left=0,top=0'); if (window.focus) newwindow.focus(); } function calendars() { // Calendars var a=calendars.arguments; var x = 0; for (var i=0; i'+a[i+1]+''); dot(x,"gifs/dotRed.gif",''+a[i+1]+''); } space(0,1,6); } function needsList() { // Text item [item...] var a=needsList.arguments; if (a[0] != "") { space(0,1,6); put('

'+a[0]); } var x=0; for (var i=1; i' +'' +'

'+a[0]+'

'); for (var i=1; i' +'' +' ' +'

'+a[i]+'' +''); put(''); } function documents() { // title doc [doc...] var a=documents.arguments; put('' +''); for (var i=1; i'+a[i]+''); put('

'+a[0]+'

'); } function picWindow(url) { var pic = window.document.createElement("img"); pic.src = url; if (pic.width > 0) wide = pic.width + 20; else wide = 500; if (pic.height > 0) high = pic.height + 30; else high = 500; var dot = url.lastIndexOf('.'); var slsh = url.lastIndexOf('/') + 1; var name = 'pic'+url.substring(slsh,dot); var newwindow = window.open(url,name,'height='+high+',width='+wide+',resizable=yes'); if (window.focus) newwindow.focus(); } function thumbNail() { // picNumbers put(''); for (var i=0; i') put('') } function slideshowThumbnails() { // picNumbers... for (var i=0; i'); } function googleMap() { // type var map1 = 'http://maps.google.com/maps?q=925+Payne+Ave+Ste+B1,+Saint+Paul,+MN+55130&hl=en&ll=44.969216,-93.073683&spn=0.011264,0.027788&sll=44.977519,-93.055165&sspn=0.011263,0.027788&z=16'; var map2 = 'http://maps.google.com/maps?q=925+Payne+Ave,+Saint+Paul,+MN+55106&hl=en&ll=44.963583,-93.018494&spn=0.180247,0.444603&sll=44.898201,-92.872925&sspn=0.360904,0.889206&z=12'; put(''+googleMap.arguments[1]+''); } //-- iPhone function updateOrientation() { var orientation=window.orientation; switch(orientation) { case 0: document.body.setAttribute("class","portrait"); document.getElementById("currentOrientation").innerHTML=""; document.getElementById("leftContainer").innerHTML='the LIFT, CDC'; document.getElementById("rightContainer").innerHTML=''; break; case 90: document.body.setAttribute("class","landscapeLeft"); document.getElementById("currentOrientation").innerHTML='

The LORD lifts up those who are bowed down.

'; document.getElementById("leftContainer").innerHTML=''; document.getElementById("rightContainer").innerHTML=''; break; case -90: document.body.setAttribute("class","landscapeRight"); document.getElementById("currentOrientation").innerHTML='

The LORD lifts up those who are bowed down.

'; document.getElementById("leftContainer").innerHTML=''; document.getElementById("rightContainer").innerHTML=''; break; } } window.onorientationchange=updateOrientation; updateOrientation();