function MultiDimensionalArray(iRows,iCols){var i;var j;var a=new Array(iRows);for(i=0;i<iRows;i++){a[i]=new Array(iCols);for(j=0;j<iCols;j++){a[i][j]=""}}return(a)}function initial(){clockImages[0][0]="-611";clockImages[0][1]="26";clockImages[0][2]="37";clockImages[1][0]="-637";clockImages[1][1]="26";clockImages[1][2]="37";clockImages[2][0]="-663";clockImages[2][1]="26";clockImages[2][2]="37";clockImages[3][0]="-689";clockImages[3][1]="26";clockImages[3][2]="37";clockImages[4][0]="-715";clockImages[4][1]="26";clockImages[4][2]="37";clockImages[5][0]="-741";clockImages[5][1]="26";clockImages[5][2]="37";clockImages[6][0]="-767";clockImages[6][1]="26";clockImages[6][2]="37";clockImages[7][0]="-793";clockImages[7][1]="26";clockImages[7][2]="37";clockImages[8][0]="-820";clockImages[8][1]="26";clockImages[8][2]="37";clockImages[9][0]="-846";clockImages[9][1]="26";clockImages[9][2]="37";clockImages[10][0]="-605";clockImages[10][1]="6";clockImages[10][2]="37";window.setInterval("timeCountDown()",120)}var clockImages=new MultiDimensionalArray(11,2);function timeCountDown(){var timer=new Date();if(timer.getSeconds()!=realSeconds){getTime();realSeconds=timer.getSeconds()}}function getTime(){if(seconds!=0||minutes!=0||hours!=0){if(seconds==0){seconds=59;if(minutes==0){minutes=59;hours=hours-1;if(hours<0){hours=0}}else{minutes=minutes-1}}else{seconds=seconds-1}}var clockh1=document.getElementById("clockh1");var clockh2=document.getElementById("clockh2");var clockm1=document.getElementById("clockm1");var clockm2=document.getElementById("clockm2");var clocks1=document.getElementById("clocks1");var clocks2=document.getElementById("clocks2");var clockColon1=document.getElementById("clockColon1");var clockColon2=document.getElementById("clockColon2");clockh1.style.backgroundPosition=clockImages[Math.floor(hours/10)][0]+"px "+0+"px";clockh1.style.width=clockImages[Math.floor(hours/10)][1]+"px";clockh1.style.height=clockImages[Math.floor(hours/10)][2]+"px";clockh2.style.backgroundPosition=clockImages[(hours%10)][0]+"px "+0+"px";clockh2.style.width=clockImages[(hours%10)][1]+"px";clockh2.style.height=clockImages[(hours%10)][2]+"px";clockm1.style.backgroundPosition=clockImages[Math.floor(minutes/10)][0]+"px "+0+"px";clockm1.style.width=clockImages[Math.floor(minutes/10)][1]+"px";clockm1.style.height=clockImages[Math.floor(minutes/10)][2]+"px";clockm2.style.backgroundPosition=clockImages[(minutes%10)][0]+"px "+0+"px";clockm2.style.width=clockImages[(minutes%10)][1]+"px";clockm2.style.height=clockImages[(minutes%10)][2]+"px";clocks1.style.backgroundPosition=clockImages[Math.floor(seconds/10)][0]+"px "+0+"px";clocks1.style.width=clockImages[Math.floor(seconds/10)][1]+"px";clocks1.style.height=clockImages[Math.floor(seconds/10)][2]+"px";clocks2.style.backgroundPosition=clockImages[(seconds%10)][0]+"px "+0+"px";clocks2.style.width=clockImages[(seconds%10)][1]+"px";clocks2.style.height=clockImages[(seconds%10)][2]+"px";clockColon1.style.backgroundPosition=clockImages[10][0]+"px "+0+"px";clockColon1.style.width=clockImages[10][1]+"px";clockColon1.style.height=clockImages[10][2]+"px";clockColon2.style.backgroundPosition=clockImages[10][0]+"px "+0+"px";clockColon2.style.width=clockImages[10][1]+"px";clockColon2.style.height=clockImages[10][2]+"px"}var interval=30000;var maxrepeat=40;var ksa=setInterval(function(){$.get('/keepSessionAlive.do')},interval);setTimeout(function(){clearInterval(ksa)},maxrepeat*interval);function pageURL(){return document.location.href}(function($){$.fn.placeholder=function(){return this.each(function(i,o){var og=$(o).attr('placeholder');if(og=='')return this;return $(o).val(og).blur(function(){if($(this).val()==''){$(this).val(og)}}).focus(function(){if($(this).val()==og){$(this).val('')}})})}})(jQuery);
