﻿$(document).ready(function() {
    var currentPosition = 0; var slideWidth = 560; var slides = $('.slide'); var numberOfSlides = slides.length; $('#slidesContainer').css('overflow', 'hidden'); $('#leftControl').hide(); $('#rightControl').hide(); slides.wrapAll('<div id="slideInner"></div>').css({ 'float': 'left', 'width': slideWidth }); $('#slideInner').css('width', slideWidth * numberOfSlides); manageControls(currentPosition); $('.control').bind('click', function() { currentPosition = ($(this).attr('id') == 'rightControl') ? currentPosition + 1 : currentPosition - 1; manageControls(currentPosition); $('#slideInner').animate({ 'marginLeft': slideWidth * (-currentPosition) }, 2000); }); function manageControls(position) {
        if (position == 0) { $('#leftControl').hide() } else { $('#leftControl').show() }
        if (position == numberOfSlides - 1) { $('#rightControl').hide() } else { $('#rightControl').show() } 
    } 
}); var a = 14; function sizetoincrease() { if (a < 23) { a = a + 2; document.getElementById("news").style.fontSize = a + "px"; document.getElementById("news").style.lineHeight = (a + 11) + "px"; } }
function sizetodecrease() { if (a > 13) { a = a - 2; document.getElementById('news').style.fontSize = a + "px"; document.getElementById("news").style.lineHeight = (a + 11) + "px"; } }
