// JavaScript Document// Event Calendar// copyright Stephen Chapman, 10th June 2006, 30th October 2006var tb = 'b'; // top or bottom (t or b)var headbg = '#6633cc';  // table heading background colourvar todaybg = '#003366'; // current selected date background colourvar textclr = '#ffffff'; // text colourvar linkclr = '#336699'; // link text colourvar noMessage =  'Click highlighted dates for events';var dA = new Array(); var x = 0;// first 8 characters in ccyymmdd format for single date events// first 8 characters in 0000mmdd format for every year eventsdA[x++] = "20081004 <b>Milwaukee Art Museum</b><br>10/4/08 - 1/11/09<br>Act/React - Interactive Art";dA[x++] = "20081010 <b>INOVA</b><br>10/10/08 - 1/18/09<br>Greater Milwaukee Foundation's Mary L. Nohl Fund Fellowships for Individual Artists 2007 Exhibition";dA[x++] = "20081017 <b>Gallery Night and Day</b><br>10/17/08<br>Please check gallery Web sites for times<br><br><b>Charles Allis Gallery</b><br>Big and Little - Paintings by Susan Diehl<br><br><b>Dean Jensen Gallery:</b><br>Joan Backes - Newspaper House<br><br><b>Delind Gallery</b><br>Vyacheslav Pichugin<br><br><b>Elaine Erickson Gallery:</b><br>Katie Musolff - Drawn from Life<br><br><b>Gingrass Gallery:</b><br>As Time Goes By - Vintage Posters from the 1890s-1980s<br><br><b>The Haggerty Museum</b><br>Closed for Installation<br><br><b>INOVA</b><br>2007 Mary L. Nohl Fellowship Artists Exhibition<br><br><b>MIAD</b><br>Media Projects 2008 - Curated by Jason S. Yi<br><br><b>Milwaukee Art Museum</b><br>Event Name<br><br><b>Cardinal Stritch College</b><br>No Event Today<br><br><b>Peltz Gallery</b><br>The Return of the Men<br><br><b>Tory Folliard Gallery</b><br>Open Lands - A Survey of Landscape Paintings<br><br><b>Villa Terrace Decorative Arts Museum</b><br>Viking Bronzes to American Arts & Crafts: A Tradition Transplanted<br><br><b>Walkers Point Center for the Arts</b><br>The Coalition of Photographic Arts (CoPA) 2nd Annual Regional Juried Exhibition";dA[x++] = "20081018 <b>Gallery Night and Day</b><br>10/18/08<br>Please check gallery Web sites for times<br><br><b>Charles Allis Gallery</b><br>Big and Little - Paintings by Susan Diehl<br><br><b>Dean Jensen Gallery:</b><br>Joan Backes - Newspaper House<br><br><b>Delind Gallery</b><br>Vyacheslav Pichugin<br><br><b>Elaine Erickson Gallery:</b><br>Katie Musolff - Drawn from Life<br><br><b>Gingrass Gallery:</b><br>As Time Goes By - Vintage Posters from the 1890s-1980s<br><br><b>The Haggerty Museum</b><br>Closed for Installation<br><br><b>INOVA</b><br>2007 Mary L. Nohl Fellowship Artists Exhibition<br><br><b>MIAD</b><br>Media Projects 2008 - Curated by Jason S. Yi<br><br><b>Milwaukee Art Museum</b><br>Event Name<br><br><b>Cardinal Stritch College</b><br>No Event Today<br><br><b>Peltz Gallery</b><br>The Return of the Men<br><br><b>Tory Folliard Gallery</b><br>Open Lands - A Survey of Landscape Paintings<br><br><b>Villa Terrace Decorative Arts Museum</b><br>Viking Bronzes to American Arts & Crafts: A Tradition Transplanted<br><br><b>Walkers Point Center for the Arts</b><br>The Coalition of Photographic Arts (CoPA) 2nd Annual Regional Juried Exhibition";dA[x++] = "20081023 <b>The Haggerty Museum</b><br>10/23/08 - 2/22/09<br>stop.look.listen: An Exhibition of Video Works";dA[x++] = "20081024 <b>Northwest Mutual Gallery at Cardinal Stritch College</b><br>10/24 - 11/23/08<br>Wisconsin Painters and Sculptors Juried Portrait Exhibition";dA[x++] = "20081031 <b>Walkers Point Center for the Arts</b><br>10/31 - 10/26/08<br>16th Annual Dia de los Muertos";dA[x++] = "20081101 <b>Katie Gingrass Gallery</b><br>11/1/08<br>Contemporary Signatures (mixed media group exhibition)";dA[x++] = "20081121 <b>Tory Folliard Gallery</b><br>11/21 - 12/27/08<br>Dennis Wojtkiewicz: Ripe and Illuminated<br>Flora Langlois: Matters of Nature<br><br><b>INOVA</b><br>11/21 - 12/13/08<br>MA/MFA Thesis Exhibition";dA[x++] = "20081130 <b>Milwaukee Art Museum</b><br>11/30/08 - exhibition closes<br>Unmasked and Anonymous: Shimon and Lindemann Consider Portraiture";dA[x++] = "20081205 <b>Dean Jensen Gallery</b><br>12/5/08 - 1/24/09<br>Small Bucks/Big, Big Bangs: An Exhibition for the Post-Bust Economy";dA[x++] = "20081206 <b>Walkers Point Center for the Arts</b><br>12/6/08 - 1/9/09<br>WPCA Young People's Exhibition";dA[x++] = "20081210 <b>Villa Terrace Decorative Arts Museum</b><br>12/10/08 - 1/11/09<br>Richard Haas: Thirty Years of Looking at Architecture";dA[x++] = "20081212 <b>Northwest Mutual Gallery at Cardinal Stritch College</b><br>10/12 - 10/24/08<br>BA/BFA Exhibition";dA[x++] = "20090103 <b>Tory Folliard Gallery</b><br>1/1 - 1/31/09<br>Clare Malloy: Pastels and Paintings<br>Russ Vogt: New Sculpture and Paintings<br><br><b>Tory Folliard (East Gallery)</b><br>1/1 - 1/31/09<br>STREETWISE- Kendal Polster, Barry Leibman, and Jeremy Pinc";dA[x++] = "20090104 <b>Milwaukee Art Museum</b><br>1/4/09 - 2 exhibitions close today<br>On Site: Santiago Cucullo (MF Ziggurat)<br><br>The Finest in the Western Country: Wisconsin Decorative Arts 1820-1900";dA[x++] = "20090116 <b>Gallery Night and Day</b><br>1/16/09<br><br><b>Northwest Mutual Gallery at Cardinal Stritch</b><br>Joseph Friebert Centennial Exhibition Landscapes<br><br><b>Walkers Point Center for the Arts</b><br>Wisconsin Painters and Sculptors Southeast Chapter Exhibition";dA[x++] = "20090117 <b>Gallery Night and Day</b><br>1/17/09";dA[x++] = "20090206 <b>Tory Folliard Gallery</b><br>2/6 - 3/7/09<br>Photography Showcase";dA[x++] = "20090206 <b>Milwaukee Art Museum</b><br>2/7 - 4/26/09<br>Jan Lievens";dA[x++] = "20090220 <b>Northwest Mutual Gallery at Cardinal Stritch College</b><br>2/20 - 4/5/09<br>Stritch Alumni Exhibition";dA[x++] = "20090312 <b>The Haggerty Museum</b><br>3/12 - 6/14/09<br>Current Tendencies: Ten Artists From Wisconsin";dA[x++] = "20090313 <b>Tory Folliard Gallery</b><br>3/13 - 4/11/09<br>Bill Reid: New Sculpture<br><br>Jan Serr - Colorful Monotypes<br><br><b>Walkers Point Center for the Arts</b><br>Chicago Artists Gabriel Villa, Rene Arceo and the Artists of Pilsen";dA[x++] = "20090417 <b>Gallery Night and Day</b><br>3/13 - 4/11/09<br>Please check gallery Web sites for times<br><br><b>Tory Folliard Gallery</b><br>Dennis Nechvatal: Large-scale Landscapes<br><br>Richard Taylor: New Sculpture<br><br>Edward Larson: New Sculpture";dA[x++] = "20090418 <b>Gallery Night and Day</b><br>4/18/09";dA[x++] = "20090501 <b>Walkers Point Center for the Arts</b><br>5/1 - 5/30/09<br>MARN Mentors";dA[x++] = "20090606 <b>Milwaukee Art Museum</b><br>6/6 - 8/23/09<br>The Artistic Furniture of Charles Rohlfs<br><br><b>Milwaukee Art Museum</b><br>The Eight and American Modernisms<br><br><b>Tory Folliard Gallery</b><br>6/6 - 7/11/09<br>Jason Rohlf: New Work<br><br><b>Tory Folliard Gallery (East Gallery)</b>Joe Hameister: Still-lifes and Landscapes";dA[x++] = "20090717 <b>Tory Folliard Gallery</b><br>7/17 - 9/5/09<br>Strange Presences, II";dA[x++] = "20090724 <b>Gallery Night and Day</b><br>7/24/09";dA[x++] = "20090725 <b>Gallery Night and Day</b><br>7/25/09";dA[x++] = "20090911 <b>Tory Folliard Gallery</b><br>9/11 - 10/10/09<br>Charles Munch-New Paintings";dA[x++] = "20091016 <b>Gallery Night and Day</b><br>10/16/09";dA[x++] = "20091017 <b>Gallery Night and Day</b><br>10/17/09";dA[x++] = "20100130 <b>Milwaukee Art Museum</b><br>1/30 - 4/25/10<br>Street Seen: The Psychological Gesture in American Photography";var pageLoaded = 0; window.onload = function() {pageLoaded = 1;}function loaded(i,f) {if (document.getElementById && document.getElementById(i) != null) f(); else if (!pageLoaded) setTimeout('loaded(\''+i+'\','+f+')',100);}function monthlength(month,year) {var dd = new Date(year, month, 0);return dd.getDate();}var moy = ['January','February','March','April','May','June','July','August','September','October','November','December'];var today = new Date();var selDate = today.getFullYear()+getmmdd(today.getMonth()+1,today.getDate());function dispCal(yy,mm) {if (mm < 0 || mm > 12) {alert('month must be between 1 and 12'); return false;} if (yy != 0 && (yy < 1901 || yy > 2100)) {alert('year must be after 1900 and before 2101'); return false;} var dow = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; var calendar = new Date();  var today = calendar.getDate(); calendar.setDate(1); if (yy > 1900) calendar.setFullYear(yy); if (mm > 0) calendar.setMonth(mm - 1); var yy = year = calendar.getFullYear(); var month = calendar.getMonth(); calendar.setDate(today); var weekday = calendar.getDay(); var daysInMonth = monthlength(month+1,year); var hilite_start = '<td width="30" style="color:#ffffff;background:' + todaybg + '" align="center"><b>'; var td_start = '<td width="30" align="center">'; var cal = '<div id="cal"><div style="font-family:arial;font-size:10pt;color:#ffffff;height:150px;width:196px;margin-left:7px;"><table border="0" cellspacing="0" cellpadding="2" align="center"><tr><td colspan="7" height="25px" style="font-family:arial;font-weight:800;font-size:10pt;color:#003333;" align="center">' + moy[month]  + ' ' + year + '<\/td><\/tr><tr>'; for(dex=0; dex < 7; dex++) {cal += td_start + dow[dex] + '</td>';} cal += '<\/tr><tr>'; var day2 = today; for (dex = today; dex > 6; dex -=7) day2 = dex; weekday -= day2 - 1; while (weekday < 0) weekday += 7; for(dex=0; dex < weekday; dex++) cal += td_start + ' <\/td>'; for(dex=1; dex <= daysInMonth; dex++) {if(weekday == 7) {cal += '</tr><tr>'; weekday = 0;} if(selDate==year+getmmdd(month+1,dex)) cal += hilite_start +'<span'+clickDate(dex,month,year) + '>'+ dex + '<\/span><\/b><\/td>'; else cal += td_start + '<span '+clickDate(dex,month,year) + '>' + dex + '<\/span><\/td>'; weekday += 1;} for(dex=weekday; dex < 7; dex++) cal += td_start + ' <\/td>'; cal += '<\/tr><\/table><\/div>';if (document.getElementById) {var mmb = month;  mm = month + 1; var yya = yyb = yy; if (mmb <1) {mmb += 12; yyb--;} var mma = month + 2; if (mma > 12) {mma -= 12; yya++;} var yb = yy -1; var ya = yy +1; cal += '<table border="0" cellspacing="0" cellpadding="2" width="210"><tr><td align="center" style="font-size:10pt;font-family:arial;" ><a href="#" onclick="if (cala = dispCal('+yb+','+mm+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"></a></td><td align="center" style="font-size:10pt;font-family:arial;" ><a href="#" onclick="if (cala = dispCal('+yyb+','+mmb+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"><</a></td><td align="center" style="font-size:10pt;font-family:arial;" ><a href="#" onclick="if (cala = dispCal('+yya+','+mma+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}">></a></td><td align="center" style="font-family:arial;font-size:11pt;" ><a href="#" onclick="if (cala = dispCal('+ya+','+mm+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"></a></td></tr></table>';} else {cal += '<div> </div>';} cal += '</div>'; return cal;}function start() {var x = '<div id="calDate" style="border:0;font-family:arial;color:#ffffff;font-size:10pt;padding:8px;text-align:center;"><\/div>'; var y = ''; if (tb == 't') y = x + dispCal(0,0); else y = dispCal(0,0) + x; document.getElementById('calendar').innerHTML = y; ev();}loaded('calendar',start);function clickDate(day, month, year) {var ct = nextDate(year + getmmdd(month+1,day));if (ct == '') ct = nextDate('0000' + getmmdd(month+1,day));if (ct == '') return 'style="color:'+textclr+'font-family:arial;font-size:10pt;"'; else return 'style="cursor:pointer;font-size:10pt;font-weight:bold;background:#99cccc;color:'+linkclr+'" onclick="selDate = '+year+ getmmdd(month+1,day)+'; isDate(' + day + ',' + month + ',' + year + ');return false;"';}function isDate(dayVal,monthVal,yearVal) {var ct = nextDate(yearVal + getmmdd(monthVal+1,dayVal));if (ct == '') ct = nextDate('0000' + getmmdd(monthVal+1,dayVal));if (ct == '') ct = noMessage;document.getElementById('calDate').innerHTML = selDate + ':<br \/>' +ct; return false;}function nextDate(yymmdd) {var x = dA.length;for (var i = 0; i < x; i++) {if (dA[i].substr(0,8) == yymmdd) return dA[i].substr(8);}return '';}function getmmdd(mm,dd) {return (mm > 9 ? '' + mm : '0' + mm) + (dd > 9 ? dd : '0' + dd);}function ev() {var ct = nextDate(selDate);var ct = nextDate(selDate);if (ct == '') ct = nextDate('0000' + selDate.substr(4));if (ct == '') ct = noMessage; document.getElementById('calDate').innerHTML = selDate + ':<br \/> ' +ct;}