// JavaScript Document
$(document).ready(function () {
    var speed = 30; //数字越大速度越慢
	if(!document.getElementById("textScrollArea"))return false;
	if(!document.getElementById("textScrollCon1"))return false;
	if(!document.getElementById("textScrollCon2"))return false;
    var tab = document.getElementById("textScrollArea");
    var tab1 = document.getElementById("textScrollCon1");
    var tab2 = document.getElementById("textScrollCon2");
    tab2.innerHTML = tab1.innerHTML;
    function Marquee() {
        if (tab2.offsetWidth - tab.scrollLeft <= 0)
            tab.scrollLeft -= tab1.offsetWidth
        else
            tab.scrollLeft++;
    }
    var MyMar = setInterval(Marquee, speed);
    tab.onmouseover = function () { clearInterval(MyMar) };
    tab.onmouseout = function () { MyMar = setInterval(Marquee, speed) };
   //$("img[original]").lazyload({ placeholder: "/images/indicator.gif" });
  // new dhooo({ btns: UIs.call(UI('myTab_btns'), 'LI'), className: 'hot', contentID: 'main', len: 339, dir: 'top', auto: true });
    //new Slide('#sidead', { index: 1, firstDelay: 8 });
   // $(".p_img").each(function (i) {
        //$(this).mouseover(function () { $(this).attr("class", "p_img_hover") }).mouseout(function () { $(this).attr("class", "p_img") });
  // })
});

