<!--

//flash 
var j=1;
var timer;
function show1(){
MM_showHideLayers('flashpic01','','show','flashpic02','','hide','flashpic03','','hide','flashpic04','','hide');
j=2;
}
function show2(){
MM_showHideLayers('flashpic01','','hide','flashpic02','','show','flashpic03','','hide','flashpic04','','hide');
j=3;
}
function show3(){
MM_showHideLayers('flashpic01','','hide','flashpic02','','hide','flashpic03','','show','flashpic04','','hide');
j=4;
}
function show4(){
MM_showHideLayers('flashpic01','','hide','flashpic02','','hide','flashpic03','','hide','flashpic04','','show');
j=1;
}

function chshow(){
    eval("show"+j+"()");
    timer=setTimeout(chshow,3500) ;
    
}
function cleart(){
    clearTimeout(timer);
}

timer=setTimeout(chshow,3500) ;



var timerID = null;
var timerRunning = false;

function stopclock(){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}

function startclock(){
stopclock();
showtime();
}

function showtime(){

    var now = new Date();
    var hours = now.getHours();
    var minutes = now.getMinutes();
    var seconds = now.getSeconds();
    var timeValue = "" + ((hours > 12) ? hours - 12 : hours);
    timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
    timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
    timeValue += (hours >= 12) ? " P.M." : " A.M.";
   
    $('#time').get(0).innerText = timeValue;
     
    timerID = setTimeout("showtime()",1000);
    timerRunning = true;
}


function GetCal(yy,mm){
    
	
	  $.ajax({
        url: '/partial/Calendar.aspx',
        data: { mm:mm,yy:yy },
        type: 'POST',
        error: function(xhr) {  },
        success: function(response) {
            var txt = response;
            $('#mycal').get(0).innerHTML=txt;
        }
    });
	
    showtime();
   
}
var myobj="";
function showmsg(event,obj){
    if (myobj!="" && myobj!=obj){
     $('#'+myobj).get(0).style.display='none';
     $('#'+myobj).get(0).style.zIndex="1";
    }
    myobj=obj;
    $('#'+obj).get(0).style.display='block';
    $('#'+obj).get(0).style.zIndex="1000";
    $('#'+obj).get(0).style.left= event.clientX+"px";
    $('#'+obj).get(0).style.top = event.clientY-2+"px";
	
  
   
}
function hidemsg(){
    if (myobj!=""){
     $('#'+myobj).get(0).style.display='none';
      $('#'+myobj).get(0).style.zIndex="1";
    }
}
//-->