function addCommas(nStr) { nStr += ''; x = nStr.split('.'); x1 = x[0]; x2 = x.length > 1 ? '.' + x[1] : ''; var rgx = /(\d+)(\d{3})/; while (rgx.test(x1)) { x1 = x1.replace(rgx, '$1' + ',' + '$2'); } return x1 + x2; } //anylinkcssmenu.init("menu_anchors_class") ////Pass in the CSS class of anchor links (that contain a sub menu) anylinkcssmenu.init("anchorclass"); anylinkcssmenu.init("ac_top"); $(document).ready(function() { $("#showcase").awShowcase( { content_width: 660, content_height: 500, fit_to_parent: false, auto: true, interval: 3000, continuous: true, loading: true, tooltip_width: 200, tooltip_icon_width: 32, tooltip_icon_height: 32, tooltip_offsetx: 18, tooltip_offsety: 0, arrows: false, buttons: false, btn_numbers: false, keybord_keys: false, mousetrace: false, /* Trace x and y coordinates for the mouse */ pauseonover: true, stoponclick: true, transition: 'fade', /* hslide/vslide/fade */ transition_speed: 300, transition_delay: 300, show_caption: 'show', /* onload/onhover/show */ thumbnails: true, thumbnails_position: 'outside-last', /* outside-last/outside-first/inside-last/inside-first */ thumbnails_direction: 'horizontal', /* vertical/horizontal */ thumbnails_slidex: 1, /* 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc. */ dynamic_height: false, /* For dynamic height to work in webkit you need to set the width and height of images in the source. Usually works to only set the dimension of the first slide in the showcase. */ speed_change: false, /* Set to true to prevent users from swithing more then one slide at once. */ viewline: false /* If set to true content_width, thumbnails, transition and dynamic_height will be disabled. As for dynamic height you need to set the width and height of images in the source. */ }); }); $(document).ready(function () { $('#the_weather').weatherfeed( ['JMXX0002'], { highlow: false, wind: false, link: false } ); }); $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 100) { $('.scrollup').fadeIn(); } else { $('.scrollup').fadeOut(); } }); $('.scrollup').click(function(){ $("html, body").animate({ scrollTop: 0 }, 600); return false; }); }); $(document).ready(function(){ $("a#poll_link").fancybox({ 'width' : '45%', 'height' : '55%', 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'type' : 'iframe' }); });