﻿//(function ($) {
//    $.fn.imgRotation = function (method) {
//        if (methods[method]) {
//            return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
//        } else if (typeof method === 'object' || !method) {
//            return methods.init.apply(this, arguments);
//        } else {
//            $.error('Method ' + method + ' does not exist on jQuery.imgRotation');
//        }
//    };
//    
//    var methods = {
//        init : function(options) {
//        
//            var defaults = {
//                imgDelay: 5000,
//                imagesToRotate: []
//            };

//            options = $.extend({}, defaults, options);
//            
//            return this.each(function() {
//                
//                var $this = $(this),
//                    data = $this.data('imgRotation')
//                    
//                //if the plugin hasn't been initialized yet:
//                if(!data) {
//                    data = {
//                        target: $this,
//                        options: options,
//                        arrayIndex: 0
//                    };
//                    
//                    $(this).data('imgRotation', data);
//                    
//                    
//                }
//            });
//        },
//        rotate: function() {
//        
//            return this.each(function() {
//            var $this = $(this),
//                data = $this.data('imgRotation');
//            });
//            
//        }
//    };
//    

//        
//    $.fn.imgRotation = function (options) {
//        

//        //have to override some of the CSS

//        $.extend(settings.wrapperCss, { 'position': 'relative' });

//        var methods = {
//            init: function (options) {
//                return $(this).each(function () {
//                    var $this = $(this);
//                    var wrapperDiv = $('<div></div>');
//                    var descriptionDiv = $('<div></div>');

//                    wrapperDiv.css(settings.wrapperCss);
//                    descriptionDiv.addClass(settings.descriptionCssClass);
//                    if (settings.animate) {
//                        descriptionDiv.css({ 'position': 'absolute', 'display': 'none' });
//                    } else {
//                        descriptionDiv.css({ 'position': 'absolute' });
//                    }

//                    descriptionDiv.css('width', $this.width() - (2 * parseInt(settings.padding, 10)));
//                    wrapperDiv.css('width', $this.width());
//                    descriptionDiv.html($this.attr('rel'));

//                    if ($this.css('float') !== '' || $this.css('float') != null) {
//                        wrapperDiv.css('float', $this.css('float'));
//                        $this.css('float', '');
//                    }

//                    $this.wrap(wrapperDiv);
//                    $this.before(descriptionDiv);

//                    if (settings.animate) {
//                        $this.mouseenter(function () {
//                            if ($this.data('downlock', '0') && $this.data('uplock', '0')) {
//                                $this.data('downlock', '1');

//                                $(this).prev().slideDown(settings.speed, function () {
//                                    $this.data('downlock', '0');
//                                });
//                            }
//                        });

//                        $this.mouseleave(function () {
//                            if ($this.data('downlock', '0') && $this.data('uplock', '0')) {
//                                $this.data('uplock', '1');

//                                $(this).prev().slideUp(settings.speed, function () {
//                                    $this.data('uplock', '0');
//                                });
//                            }
//                        });
//                    }
//                });
//            }
//        };
//        methods.init.apply(this, arguments);
//    };
//})(jQuery);  //imgDescription

$(function () {
//    $('#leftcol a').hover(function () {
//        $(this).stop().animate({ paddingLeft: '15px', paddingRight: '10px', backgroundPosition: 0 }, 100);
//    }, function () {
//        $(this).stop().animate({ paddingLeft: '10px', paddingRight: 0, backgroundPosition: '-5px' }, 100);
//    });

//    document.ESDMenu = new ESDMenu('dnn_leftMenu_ctlleftMenuctr');
//    document.ESDMenu.Init();

    //adds image to the end of all links marked with el as their class.  Helps for external links
    $('.el').attr({ target: "_blank", title: "Opens in a new window" }).append('&nbsp;<img src="/WebResources/images/el.png" alt="Opens in a new window" />');
    $('.el_ni').attr({ target: "_blank", title: "Opens in a new window" });

    //$('img.desc, a.desc').imgDescription();
    //$('#country').divSlideShow({ height: 270, hideNumbers: true });
   
});
