// Event Calendar
// copyright Stephen Chapman, 10th June 2006, 22nd January 2010

var tb = 't'; // top or bottom (t or b)
var headbg = '#cccccc';  // table heading background colour
var todaybg = '#cccccc'; // current selected date background colour
var textclr = '#000000'; // text colour
var linkclr = 'green'; // link text colour
var noMessage =  'No event messages to display for today'; // message to display when no entry in array

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++] = "20111104 <b>4 Nov 2011 </b> Mr Pradeep Shetty, Project Assistant, CTFD Division, NAL, will speak on CFD Simulation of Flow Past MAV Wings.3:30 p.m., CTFD Seminar Hall, NWTC, Belur Campus";
dA[x++] = "20111108 <b>8 Nov 2011 </b>Mr Sharanappa V Sajjan, Scientist, CTFD Division, NAL will speak on Unsteady RANS Based Impulse Response Studies of AGARD Wing for Aeroelastic and Flutter Analysis.3.00 p.m., CTFD Seminar Hall, NWTC, Belur Campus.";
dA[x++] = "20111115 <b>15 Nov 2011 -</b> Dr. Klaus Hufnagel, Director, Wind Tunnels, Technical University of Darmstadt, Germany will speak on Passive Load Control for large Wind Turbines.11.00 a.m., New Conference Hall, NWTC, Belur Campus.";
dA[x++] = "20111116 <b>16  Nov 2011 -</b> Visit of EADS Delegation, Director's Conference hall at 14.00 hrs  <p> SAROD 2011: (16-18  Nov 2011) 5th Symposium on Applied Aerodynamics and Design of Aerospace Vehicles. Eagleton Resorts, Shyanamangala Cross, Bidadi, Bangalore - Mysore Highway, Karnataka.";
dA[x++] = "20111117 <b>17  Nov 2011 -</b> Inauguration of the Incubation Centre of Flight Simulation by HE Kris Peeters, Minister-President, Flanders Region, Belgium.12.15 p.m., FMCD Lab.";
dA[x++] = "20111118 <b>18  Nov 2011 -</b> Kannada Samskrithika Sangha Competition - Anthakshari at 3.30 p.m, SR Valluri Auditorium.";
dA[x++] = "20111119 <b>19  Nov 2011 -</b> One day Seminar on NOWCASTING WIND on 19 November 2011 at Hotel Atria, Bangalore";
dA[x++] = "20111121 <b>21  Nov 2011 -</b> Quami Ekta Week(19-25 November)-All Staff members are requested to participate in the pledge taking ceremony in their division/section at 11.00 am ";
dA[x++] = "20111122 <b>22  Nov 2011 -</b> Prof. David Mee, Head of School,University of Queensland, Australia will give a talk on Aerodynamics Research at the University of Queensland,Australia  at 2.00p.m on 22 Nov 2011 New Conference Hall,NWTC, Belur. <p> Dr.Shashikumaar Ganesan, Supercomputer Education and Research Centre, Indian Institute of science, Bangalore will give a talk on Finite Element Methods for two-phase Flows with Surfactants at 3.30p.m on November 22,2011,TIFR-CAM (Auditorium Ground Floor), Yelahanka New Town,Bangalore.";
dA[x++] = "20111124 <b>24  Nov 2011 - </b>Dr.Anthony Pais, specialist from Narayana Hrudayalaya will deliver an Awareness talk on cancers affecting women particularly Breast and Cervical cancer - 3.00 to 4.00 PM at the S.R.Valluri Auditorium.";
dA[x++] = "20111128 <b>28  Nov 2011-</b> 2.30 PM, S R Valluri Auditorium - Karnataka Rajyotsava Celebration: Prof.  T.N.Shankara Narayana, Former Head, Department of Kannada, Kuvempu University; Dr.A.R.Upadhya, Former Director, NAL and Prof. Haldodderi Sudheendra, IIATM, Jain University, Global Campus will be Chief Guests. Release of 37th edition of 'Kanaada', kannada magazine by Guests. Mr Shyam Chetty, Acting Director, NAL will preside over the function.Cultural Programme at 6.00 PM,Chief Guest Sri Srinivasa Murthy, Popular Cine Artist, Prize Distribution to winners of various competitions";
dA[x++] = "20111130 <b>30  Nov 2011-</b> Meeting of the Heads of Divisions. 11.30 a.m. Director's Conference Hall.";
dA[x++] = "20111201 <b>1  Dec  2011 -</b>  Visit of Officers from Air Force Test Pilots School  ASTE  Bangalore 2.00 p.m.  onwards <p> Dr.Santosh Ansumali, Engineering Mechanics Unit, JNCASR, Bangalore will give a talk on Mesoscale methods for hydrodynamics and beyond at 4.00 p.m on December 1, 2011 in the Auditorium First Floor of the TIFR-CAM, Yelahanka New Town.";
dA[x++] = "20111202 <b>2  Dec  2011 -</b>  Visit of French Delegation and  Brazilian Delegation 2.00 p.m.  onwards  <p> Open Access Day Celebration at CSIR-CFTRI at Mysore on December 2, 2011.";
dA[x++] = "20111208 <b>8  Dec  2011- </b>B.N.Rajani,Scientist, CTFD Division,NAL will give a talk on LES of flow over circular cylinder at high Reynolds numbers at 3.00 p.m  in CTFD Seminar Hall, NWTC,Belur Campus. <p> Bangalore Nano 2011 Conference (8-9 December 2011) The Lalit Ashok, Bangalore. <p> Visit of M.S. Ramaiah School of Advanced Studies (MSRSAS), Bengaluru, Students to NAL -  9.30 a.m onwards. <p> UKIERI Workshop on Unmanned Air System Technologies at NAL(8-9th December 2011),Hotel Matthan, HAL Airport Road or at NAL." ;
dA[x++] = "20111207 <b>7  Dec  2011 -</b> Technical tour to CSIR-NAL by the delegates of 1st Conference of Transport Research Group (CTRG 2011), Organised by the Indian Institute of Science (IISc, Bangalore).";  
dA[x++] = "20111209 <b>9  Dec  2011 -</b> Crash Test Dummies for Military & Aerospace applications by Mr. Roderick Verschut.";
dA[x++] = "20111213 <b>13  Dec  2011- </b> Transfer of Radome Technology and know-how documents for 13 mtrs- Doppler Weather Radar To BEL, Ghaziabad, 2.30 p.m, Venue- Director's Conference Hall.";
dA[x++] = "20111215 <b>15  Dec  2011 -</b> 26th Indian Engineering Congress (15 - 18 December 2011) Bangalore Palace. <p> Visit of Officers from Military College, EME, Hyderabad 2.00 p.m., onwards.</p>YOGA CLASS BY ISHA FOUNDATION (15-17 December, 2011), Sports Club Hall, NAL <p> Dr. Walter H. Beck,Scientist, Institute for Aerodynamics and Flow Technology, German Aerospace Center DLR,will give a talk on PSP Measurements on a Scramjet Nozzle in the Hypersonic Wind Tunnel H2k,PSP and TSP Measurements on a Ramp in the High Enthalpy Shock Tunnel HEG on 15th December 2011, 10.30 AM at New Conference Hall,NWTC,Belur.";
dA[x++] = "20111216 <b>16  Dec  2011 -</b>Prof. Sankara J.Subramanian, Associate Professor, Department of Engineering Design, Indian Institute of Technology, Madras, will give a talk on Digital Image Correlation (DIC) and its Applications on 16th December 2011, 1.30 PM at ACD Seminar Hall.";
dA[x++] = "20111222 <b>22  Dec  2011 -</b>Election for the post of Vice President, NAL Staff Club, 10.00 AM to 12.00 Noon<br> i)Canteen, Kodihalli (for Kodihalli staff)<br> ii) New Building, NWTC, Belur (for Belur Staff ) <br> iii) Canteen, C-CADD (for C-CADD, C-MMACS & IFCAP Staff)";
dA[x++] = "20111226 <b>26  Dec  2011 -</b>CSIR Programme On Youth For Leadership In Science at 8.45 a.m.";
dA[x++] = "20120102 <b>2 Jan 2012-</b>New Year Address by Director at 8.45 a.m.,  NAL Lawns, Kodihalli Campus ";
dA[x++] = "20120105 <b>5 Jan 2012-</b>Visit of B.Tech Electronics Students from UPE-Uttarkhand,2.00 p.m.KTMD Seminar Hall<p>Dr.T N Venkatesh, Flosolver Unit, NAL will speak on Clear-Air Turbulence and Other Aviation Weather Hazards,3.30 p.m., FMCD Seminar Hall.";
dA[x++] = "20120104 <b>4-7 Jan 2012-</b>Three-day intensive training program on MS-Project professional 2010 will be held during 4-6 January, 2012, at the Digital Training Room of ICAST, Kodihalli from 9:30 am to 4:30 pm <p>Sixth ISSS International Conference on Smart Materials, Structures and Systems (ISSS 2012) at National Science Seminar Complex, Indian Institute of Science, Bangalore.";
dA[x++] = "20120109 9-11 Jan 2012 -9-10 Jan 2012-First Indo-US Workshop on IVHM and Aviation Safety (WIAS),The Oberoi Hotels, Bangalore.";
dA[x++] = "20120111 11 Jan 2012-Tutorial on Integrated Vehicle Health Management(IVHM) and Aviation Safety at SR Valluri Auditorium, Visit of C-DAC Engineers to Flosolver Division";
dA[x++] = "20120112 12 Jan 2012-Prof. George Vachtsevaros, Professor Emeritus, Georgia Tech will speak on Health Management of Aircraft Systems at 2.30 P.M in KTMD Seminar Hall";
dA[x++] = "20120113 13 Jan 2012-Visit of M.Sc Engineering students from M.S Ramaih Instititute.";
dA[x++] = "20120116 16 Jan 2012-Visit of students from Daita Madhusudana  Sastry Sri Venkateshwara Hindu College of Engineering, Machilipatnam, A.P.to NAL at 9.30am.";
dA[x++] = "20120119 19 Jan 2012-Visit of delegation from Astronautics C.A Ltd., Israel.";
dA[x++] = "20120124 24 Jan 2012-Visit of B.Tech Aeronautical Engineering students Gurunanak College at 9.30 am.";
dA[x++] = "20120131 <b>31 Jan 2012-</b>Visit of B.Tech (E&Tc) students  from Pimpri chinchwad College of Engineering Nigdi,Pune at 9.30am <p> Visit of Canadian Delegation.";
dA[x++] = "20120126 26 Jan 2012 - Republic Day Celebration - The National flag will be unfurled by Director, NAL at 9.30 am. Ms Jyothi R, KTMD will address the gathering.";
dA[x++] = "20120130 30 Jan 2012 -Presentation on SBI-Bank's Services and Products at 11.30A.M in KTMD Seminar Hall and at 2.30P.M in Belur in NTAF Seminar Hall. <p> Martyrs Day-Observation of two minutes silence at 11.00 am on 30.01.2012."; 
dA[x++] = "20120127 27 Jan 2012 -Second meeting of the Joint Venture Committee at 11.00 hrs at the Director's Conference HALL, NAL, Bangalore.";
dA[x++] = "20120201 01 Feb 2012 -Visit of Aeronautical Engineering trainees from NIAT,Kochi at 9.30am.";
dA[x++] = "20120203 03 Feb 2012 -Presentation on CSIR Purchase Procedure - 2008 and Deputation guidelines at 9.15AM at S R Valluri Auditorium.<p>Prof.Terence G Langdon, University of Southampton, UK and University of Southern California, Los Angeles, USA will speak on New Developments in the Processing and Properties of Ultrafine-Grained Metals. 11.00 a.m., KTMD Seminar Hall.<p>Professor Samir K. Brahmachari,Director General,Council of Scientific and Industrial Research(CSIR) and Secretary, Government of India will speak on A Tale of Three Cities: A Molecular Journey at 3.45 p.m at CSIR-National Chemical Laboratory Auditorium,Pune.";
dA[x++] = "20120202 2 Feb 2012- Meeting of the Heads of Divisions. 9.15 a.m. Director's Conference Hall.";
dA[x++] = "20120206 6 Feb 2012 - Club Day Celebration at 3.30PM in S.R.Valluri Auditorium, NAL, Bangalore.";

dA[x++] = "20120207 07 Feb 2012 -Prof. Sanjoy Mitters, Department of Electrical Engineering, Massachusetts Institute of Technology, Cambridge will give a series of lectures on Statistical Inference and Statistical mechanics of Nonlinear Diffusion Processes from 7-10 February in Auditorium (First Floor), TIFR-CAM, Yelahanka New Town.";
 dA[x++] = "20120209 09 Feb 2012 Visit of  Diploma Electronics & Communication Students from D.S.Dinakar National Polytechnic College, Shimoga."; 
dA[x++] = "20120211 11 Feb 2012 NALOC Cultural Evening  at 5.30 PM in SR Valluri Auditorium.";
dA[x++] = "20120217 17 Feb 2012- Vidyodaya NAL Nursery School Annual Day Function at 10:30am in Dr S R Valluri Auditorium, NAL. <br>Visit of B.Tech(EEE)students from K.L.N. College of Engineering at 9.30am.";

// dA[x++] = "20060610 New Event Calendar Started today";

// permission is granted to use this javascript provided that the below code is not altered
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="background:' + todaybg + '" align="center"><b>'; var td_start = '<td width="30" align="center">'; var cal = '<div id="cal"><div style="border:1pt solid #cccccc;width:238px"><table border="0" cellspacing="0" cellpadding="2" align="center"><tr><td colspan="7" style="background:' + headbg + '" align="center"><b>' + moy[month]  + ' ' + year + '<\/b><\/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><a href="#" onclick="if (cala = dispCal('+yb+','+mm+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"><<</a></td><td><a href="#" onclick="if (cala = dispCal('+yyb+','+mmb+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}"><</a></td><td align="right"><a href="#" onclick="if (cala = dispCal('+yya+','+mma+')) {document.getElementById(\'cal\').innerHTML = cala; return false;}">></a></td><td align="right"><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:1pt solid #cccccc;width:238px"><\/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+'"'; else return 'style="cursor:pointer;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;}
