﻿
$(
	function(){
		$.afterLoadScript(
						  function(){
						  //---------------	
						      	$('#keyword').get(0).onclick=function(){
								$('#keyword').val("");$('#keyword').get(0).onclick=function(){}
								
								
							}	
							if($("#marquee div").size()<10){
                                $("#marquee div").each(function(){
                                    $(this).clone().appendTo($("#marquee"))
                                })
                            }
                            if($("#marquee div").size()<10){
                                $("#marquee div").each(function(){
                                    $(this).clone().appendTo($("#marquee"))
                                })
                            }
							marquee()
							   
					//----------------------	
						  		
	                            });
	}
)

function marquee(){
    
    var c1=$("#marquee div:eq(0)");
   // if(c1.scrollTop()<=-22){
        c1.remove();
        c1.appendTo($("#marquee"))
    //}
     $("#marquee div:eq(0)").get(0).scrollTop="100px";
   // $("#marquee div:eq(0)").scrollTop($("#marquee div:eq(0)").scrollTop()+2);
    //alert($("#marquee div:eq(0)").get(0).scrollTop)
    setTimeout("marquee()",2000); 
}

