// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
/*$(function(){
$(".navigation map area").hover(
 function()
 {
      //this.src = this.src.replace("_off","_on");
      //$(".change img").src = $(".change img").src.replace("_off","_on");
    //  alert( $("img.change").attr("src") );
      $("img.change").attr({src :$("img.change").attr("src").replace("_off","_on")});   
 },
 function()
 {
            //this.src = this.src.replace("_on","_off");
            $("img.change").attr({src :$("img.change").attr("src").replace("_on","_off")});
 }
);
});

*/

 $(document).ready(function(){

              $('.demo').slideshow({
                    title:false,
                    playframe:false,
                    play:true,
                    effect:'fade',
                    help:'Effect "fade"'
              });
        });

function change1( i ){
      $("img.change"+i).attr({src :$("img.change"+i).attr("src").replace("_off","_on")});
 }

function change2( i ){
            $("img.change"+i).attr({src :$("img.change"+i).attr("src").replace("_on","_off")});
 }

