﻿/// <reference path="jquery-1.4.1.js" />
jQuery.noConflict();
//jQuery(document).ready(function () {

//    jQuery(function () {
//        if (jQuery("ul#ticker01") != null) { jQuery("ul#ticker01").liScroll(); }
//    });
//});
jQuery(document).ready(function () {
    jQuery(function () {
        // basic version is: jQuery('div.demo marquee').marquee() - but we're doing some sexy extras

        jQuery('div.runstr marquee').marquee('pointer').mouseover(function () {
            jQuery(this).trigger('stop');
        }).mouseout(function () {
            jQuery(this).trigger('start');
        }).mousemove(function (event) {
            if (jQuery(this).data('drag') == true) {
                this.scrollLeft = jQuery(this).data('scrollX') + (jQuery(this).data('x') - event.clientX);
            }
        }).mousedown(function (event) {
            jQuery(this).data('drag', true).data('x', event.clientX).data('scrollX', this.scrollLeft);
        }).mouseup(function () {
            jQuery(this).data('drag', false);
        });
    });
});
