﻿//$(document).ready(function() {
//    lastBlock = $("#a1");
//    maxWidth = 210;
//    minWidth = 75;

//    $("ul li a").hover(
//      function() {
//          $(lastBlock).animate({ width: minWidth + "px" }, { queue: false, duration: 400 });
//          $(this).animate({ width: maxWidth + "px" }, { queue: false, duration: 400 });
//          lastBlock = this;
//      }
//    );
//});
$(document).ready(function() {
    $('.slideshow').cycle({
        fx: 'fade',  // choose your transition type, ex: fade, scrollUp, shuffle, etc...
        cleartype: 1,  // enable cleartype corrections 
        speed: 2000
    });
    $("a.lightbox").fancybox({
        'titleShow': true,
        'transitionIn': 'elastic',
        'transitionOut': 'elastic',
        'titlePosition': 'over'

    });
//   
//    $("a.linkfooter").click(function() {
//        $('#imageAdd').attr('src', imgFldr + this.value);
//    });

});
function change_map(name) {
    imgFldr = '/images/';
    //document.getElementById('change_map').innerHTML = '<a title="TRƯỜNG SUỐI NHẠC"  href="/' + imgFldr + name + '.jpg" class="lightbox"><img src="' + imgFldr + name + '.jpg" width=400 height=175 /></a>';
    //document.getElementById('imageAdd').setAttribute("scr", imgFldr + name + '.jpg');
    document.getElementById('imageAdd').src = imgFldr + name + '.jpg';
    document.getElementById('linkimageAdd').href = imgFldr + name + '.jpg';
}
function change_map(namefile, name) {
    imgFldr = '/images/';
    document.getElementById('imageAdd').src = imgFldr + namefile + '.jpg';
    document.getElementById('linkimageAdd').href = imgFldr + namefile + '.jpg';
    document.getElementById('linkimageAdd').title = name;
}

