jQuery.fn.extend({SplitID:function()
{return this.attr("id").split("-").pop();},Slideshow:{Ready:function()
{$("div.tmpSlide").hover(function(){if(jQuery.fn.Slideshow.timer){clearTimeout(jQuery.fn.Slideshow.timer);}
jQuery.fn.Slideshow.Interrupted=true;},function(){if(jQuery.fn.Slideshow.timer){clearTimeout(jQuery.fn.Slideshow.timer);}
jQuery.fn.Slideshow.Interrupted=false;jQuery.fn.Slideshow.timer=setTimeout("jQuery.fn.Slideshow.Transition();",5000);});$("div.tmpSlide a.menu, div.tmpSlide div.menu-img").hover(function(){var id=$(this).SplitID();jQuery.fn.Slideshow.Select(id);});this.Counter=0;this.Interrupted=false;this.Transition();},Select:function(id){this.Last=this.Counter;this.Counter=id;$("div.tmpSlide div#menu-img-"+jQuery.fn.Slideshow.Last).removeClass("menu-img-selected");$("div.tmpSlide div#menu-img-"+jQuery.fn.Slideshow.Counter).addClass("menu-img-selected");$("div.tmpSlide a.tmpSlideImg, div.tmpSlide img.tmpSlideImg2").hide();$("div.tmpSlide a#tmpSlide-img-"+id+", div.tmpSlide img#tmpSlide-img2-"+id).show();},Transition:function()
{if(this.Interrupted){return;}
this.Last=this.Counter;jQuery.fn.Slideshow.Counter++;if(jQuery.fn.Slideshow.Counter>5){jQuery.fn.Slideshow.Counter=1;}
$("div.tmpSlide a#tmpSlide-img-"+this.Last).fadeOut("slow");$("div.tmpSlide div#menu-img-"+jQuery.fn.Slideshow.Last).removeClass("menu-img-selected");$("div.tmpSlide div#menu-img-"+jQuery.fn.Slideshow.Counter).addClass("menu-img-selected");$("div.tmpSlide a#tmpSlide-img-"+this.Counter).stop(true,true).fadeIn("slow",function(){if(jQuery.fn.Slideshow.timer){clearTimeout(jQuery.fn.Slideshow.timer);}
jQuery.fn.Slideshow.timer=setTimeout("jQuery.fn.Slideshow.Transition();",5000);});}}});$(document).ready(function(){jQuery.fn.Slideshow.Ready();});
