﻿/*highlight*/
$(function(){
   var path = location.pathname.substring(1);
   if ( path )
     $('#nav_main a[href$="' + path + '"]').attr('class', 'current');
 });
 
 /*slideshow*/
$(function() {
    $('#slideshow').cycle({
        fx:     'fade',
        speed:  1000,
        timeout: 5000,
		pause:true,
        pager:  '.controls',
		slideExpr: 'img',
        pagerAnchorBuilder: function(idx, slide) {
            // return sel string for existing anchor
            return '.controls li:eq(' + (idx) + ') a';
        }
    });
});

/*dropmenu*/
$(function() {
	$("#nav_main").dropmenu();
});


 
