
		
	function clearAllmonyhStyles() {
			for(i=1;i<monthsPixelCoords.length;i++) {
			monthsIframe.document.getElementById('call'+monthsPixelCoords[i]).className = 'calendar';
			}
		}
	
	function scrollMonths(moveDir) {
		if (typeof(startMove) != 'undefined') { 
			clearInterval(startMove); 
			if (movedFor != 0 ) {
				movedFor = moveStep - movedFor;
				movedFor+=1}
			}
		if (moveDir == 'left') {
			if (pixelCounter >= 160) {
				currSelMonth--;
				clearAllmonyhStyles();
				monthsIframe.document.getElementById('call'+monthsPixelCoords[currSelMonth]).className = 'calendaractive';
				startMove = setInterval("moveDiv('left')",30);
				}
			}
		if (moveDir == 'rigth') {
			if (pixelCounter < 960) {
				currSelMonth++;
				clearAllmonyhStyles();
				monthsIframe.document.getElementById('call'+monthsPixelCoords[currSelMonth]).className = 'calendaractive';
				startMove = setInterval("moveDiv('rigth')",30);
				}
			}
		}
	function moveDiv(dir) {
		if (dir == 'left') {
			window.monthsIframe.scrollBy(-10,0);
			pixelCounter -= 10;
			}
		if (dir == 'rigth') { 
			window.monthsIframe.scrollBy(10,0); 
			pixelCounter += 10;
			}
		
		movedFor+=1;
		if (movedFor > moveStep) { 
			movedFor = 0;
			clearInterval(startMove); 
			}
		}
		
	function MoveToCurrentMonth(month) {
		if (month > 2)	window.monthsIframe.scrollBy(20,0); 
		pixelCounter += 20;
		if ( (pixelCounter == ((month-2)*160)) || (month <= 2) ) {
			clearInterval(startMoveCurr);
			currSelMonth = month;
			monthsIframe.document.getElementById('call'+monthsPixelCoords[currSelMonth]).className = 'calendaractive';
			}
		}
	function startMoveToCurrentMonth(monthC) {
		startMoveCurr = setInterval('MoveToCurrentMonth('+monthC+')',20);
		}
