var actuLanCalendar = new function() {this.offsetXPoint = -60;this.offsetYPoint = 20;this.ie = document.all;this.ns6 = document.getElementById && !document.all;this.toolTipBlock = null;this.ietruebody = function() {return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;};this.showTip = function(thetext) {if (this.ns6||this.ie) {this.toolTipBlock.innerHTML = thetext;this.addClass(this.toolTipBlock, "active");}};this.hideTip = function() {if (this.ns6||this.ie) {this.removeClass(this.toolTipBlock, "active");}};this.positionTip = function(e) {if(this.hasClass(this.toolTipBlock, "active")) {var curX = (this.ns6) ? e.pageX : event.x + this.ietruebody().scrollLeft;var curY = (this.ns6) ? e.pageY : event.y + (this.ie ? 0 : this.ietruebody().scrollTop);var rightedge=this.ie&&!window.opera? this.ietruebody().clientWidth-event.clientX-this.offsetXPoint : window.innerWidth-e.clientX-this.offsetXPoint-20;var bottomedge=this.ie&&!window.opera? this.ietruebody().clientHeight-event.clientY-this.offsetYPoint : window.innerHeight-e.clientY-this.offsetYPoint-20;var leftedge=(this.offsetXPoint<0)? this.offsetXPoint*(-1) : -1000;if (rightedge<this.toolTipBlock.offsetWidth) {this.toolTipBlock.style.left=this.ie? this.ietruebody().scrollLeft+event.clientX-this.toolTipBlock.offsetWidth+"px" : window.pageXOffset+e.clientX-this.toolTipBlock.offsetWidth+"px";} else if (curX<leftedge) {this.toolTipBlock.style.left="5px";} else {this.toolTipBlock.style.left=curX+this.offsetXPoint+"px";}if (bottomedge<this.toolTipBlock.offsetHeight) {this.toolTipBlock.style.top=this.ie? this.ietruebody().scrollTop+event.clientY-this.toolTipBlock.offsetHeight-this.offsetYPoint+"px" : window.pageYOffset+e.clientY-this.toolTipBlock.offsetHeight-this.offsetYPoint+"px";} else {this.toolTipBlock.style.top=curY+this.offsetYPoint+"px";}}};this.hasClass = function (ele,cls) {return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));};this.addClass = function (ele,cls) {if (!this.hasClass(ele,cls))ele.className += " "+cls;};this.removeClass = function (ele,cls) {if (this.hasClass(ele,cls)) {var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');ele.className=ele.className.replace(reg,' ');}};this.createStyle = function(styleText) {var head = document.getElementsByTagName('head')[0],style = document.createElement('style'),rules = document.createTextNode(styleText);style.type = 'text/css';if(style.styleSheet)style.styleSheet.cssText = rules.nodeValue;else style.appendChild(rules);head.appendChild(style);};this.addListener = function(element, type, expression, bubbling) {bubbling = bubbling || false;if(window.addEventListener) {element.addEventListener(type, expression, bubbling);return true;} else if(window.attachEvent) {element.attachEvent('on' + type, expression);return true;} else {return false;}};this.build = function() {document.write('<div id="actuLanCalendarToolTip"><\/div>');document.write('<div id="actuLanCalendar">');document.write('<h2>Lans de Février 2012<\/h2>');document.write('<table>');document.write('<tr><th>Lu<\/th><th>Ma<\/th><th>Me<\/th><th>Je<\/th><th>Ve<\/th><th>Sa<\/th><th>Di<\/th><\/tr>');document.write('<tr>');document.write('<td class="" >30<\/td>');document.write('<td class="" >31<\/td>');document.write('<td class="active" >1<\/td>');document.write('<td class="active" >2<\/td>');document.write('<td class="nbEvents_3 active" onmouseover="actuLanCalendar.showTip(\'<ul><li>BDE ICE\\\'T #2 (Indre-et-Loire)</li><li>Cyber Val d\\\'Orèa 25 (Drôme)</li><li>Clam\\\'Arena \\\'12 (Hauts-de-Seine)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >3<\/a><\/td>');document.write('<td class="nbEvents_3 today active" onmouseover="actuLanCalendar.showTip(\'<ul><li>Buykey Arena (Yvelines)</li><li>Nantarena 12.2 (Loire-Atlantique)</li><li>FragTimeNancy 02/2012 (Meurthe-et-Moselle)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >4<\/a><\/td>');document.write('<td class="active" >5<\/td>');document.write('<\/tr>');document.write('<tr>');document.write('<td class="active" >6<\/td>');document.write('<td class="active" >7<\/td>');document.write('<td class="active" >8<\/td>');document.write('<td class="active" >9<\/td>');document.write('<td class="nbEvents_2 active" onmouseover="actuLanCalendar.showTip(\'<ul><li>InsaLan 7 (Ille-et-Vilaine)</li><li>Simm\\\'s Club (Mayenne)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >10<\/a><\/td>');document.write('<td class="nbEvents_1 active" onmouseover="actuLanCalendar.showTip(\'<ul><li>Play For Mamou (Nord)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >11<\/a><\/td>');document.write('<td class="active" >12<\/td>');document.write('<\/tr>');document.write('<tr>');document.write('<td class="active" >13<\/td>');document.write('<td class="active" >14<\/td>');document.write('<td class="active" >15<\/td>');document.write('<td class="active" >16<\/td>');document.write('<td class="nbEvents_2 active" onmouseover="actuLanCalendar.showTip(\'<ul><li>Restless 41 (Val-d\\\'Oise)</li><li>GAMONLIVE #1 (Pas-de-Calais)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >17<\/a><\/td>');document.write('<td class="nbEvents_7 active" onmouseover="actuLanCalendar.showTip(\'<ul><li>PEJ LAN (Nord)</li><li>Vaillante Lan 17ème (Haute-Savoie)</li><li>Lanrunners (18-19 fevrier) (Maine-et-Loire)</li><li>Gaming Lan Arena #13 (Lot)</li><li>LAN COOL V6 (Rhône)</li><li>Quimper Lan (Finistère)</li><li>GAFI #6 (Pas-de-Calais)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >18<\/a><\/td>');document.write('<td class="active" >19<\/td>');document.write('<\/tr>');document.write('<tr>');document.write('<td class="active" >20<\/td>');document.write('<td class="active" >21<\/td>');document.write('<td class="active" >22<\/td>');document.write('<td class="active" >23<\/td>');document.write('<td class="nbEvents_3 active" onmouseover="actuLanCalendar.showTip(\'<ul><li>LuxLan (Luxembourg)</li><li>95 Gaming #7 (Val-d\\\'Oise)</li><li>LANKHAOS #16 (Haute-Garonne)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >24<\/a><\/td>');document.write('<td class="nbEvents_1 active" onmouseover="actuLanCalendar.showTip(\'<ul><li>LanUp #26 (Bas-Rhin)</li></ul>\');" onmouseout="actuLanCalendar.hideTip();"><a href="http://www.actu-lan.com/calendrier_2012_2.html" >25<\/a><\/td>');document.write('<td class="active" >26<\/td>');document.write('<\/tr>');document.write('<tr>');document.write('<td class="active" >27<\/td>');document.write('<td class="active" >28<\/td>');document.write('<td class="active" >29<\/td>');document.write('<td class="" >1<\/td>');document.write('<td class="" >2<\/td>');document.write('<td class="" >3<\/td>');document.write('<td class="" >4<\/td>');document.write('<\/tr>');document.write('<\/table>');document.write('<\/div>');};this.run = function() {if(!Function.prototype.bind) {Function.prototype.bind = function(scope) {var _function = this;return function() {return _function.apply(scope, arguments);}}}this.createStyle("#actuLanCalendar{ text-align: center; width: 200px;}" +"#actuLanCalendar h2{ font-size: 14px; font-weight: bold; margin: 0;}" +"#actuLanCalendar table{ font-size: 11px; font-family: Arial, Verdana, serif; font-weight: normal; text-align: center; width: 100%; border-top: solid 1px #000;}" +"#actuLanCalendar table td, #actuLanCalendar table th{ color: #bbb; padding: 2px;}" +"#actuLanCalendar table td.today{ font-weight: bold;}" +"#actuLanCalendar table td.active{ background: #EAF9FF; color : #000;}" +"#actuLanCalendar table td.nbEvents_1{ background: #CAEEFF;}" +"#actuLanCalendar table td.nbEvents_2{ background: #B5E6FF;}" +"#actuLanCalendar table td.nbEvents_3{ background: #AAE3FF;}" +"#actuLanCalendar table td.nbEvents_4{ background: #9FE4FF;}" +"#actuLanCalendar table td.nbEvents_5{ background: #95E2FF;}" +"#actuLanCalendar table td.nbEvents_6{ background: #8ADFFF;}" +"#actuLanCalendar table td.nbEvents_7{ background: #80DCFF;}" +"#actuLanCalendar table td.nbEvents_8{ background: #75D9FF;}" +"#actuLanCalendar table td.nbEvents_9{ background: #6AD7FF;}" +"#actuLanCalendar table td.nbEvents_10{ background: #60D3FF;}" +"#actuLanCalendar table td.nbEvents_11{ background: #55D0FF;}" +"#actuLanCalendar table td.nbEvents_12{ background: #4ACDFF;}" +"#actuLanCalendar table td.nbEvents_13{ background: #40CBFF;}" +"#actuLanCalendar table td.nbEvents_14{ background: #35C8FF;}" +"#actuLanCalendar table td.nbEvents_15{ background: #2BC5FF;}" +"#actuLanCalendar table td.nbEvents_16{ background: #20C1FF;}" +"#actuLanCalendar table td.nbEvents_17{ background: #15BFFF;}" +"#actuLanCalendarToolTip{ background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #008BBF; padding: 10px; position: absolute; display: none; z-index: 100;} " +"#actuLanCalendarToolTip ul{ margin: 0; padding: 0 0 0 17px;} " +"#actuLanCalendarToolTip.active{ display: block;}");this.build();this.toolTipBlock = document.getElementById("actuLanCalendarToolTip");this.addListener(document, 'mousemove', this.positionTip.bind(this));};};

actuLanCalendar.run();
