// JavaScript Document
$.fn.delay = function( time, name ) {

    return this.queue( ( name || "fx" ), function() {
        var self = this;
        setTimeout(function() { $.dequeue(self); } , time );
    } );

};

$.fn.detach = function( selector ) {
		return this.remove( selector, true );
};



$(document).ready(function(){
	$("#g3lScrollingHotSpot").click(function() {
		location.href = "";	// <<<========================= PLACE URL BETWEEN PARENTHESIS
	});	
	
	
	$("#g3lScrollingHotSpot").mouseover(function() {
		$("#g3lScroll").smoothDivScroll("stopAutoScroll");	
	});
	
	$("#g3lScrollingHotSpot").mouseout(function() {
		$("#g3lScroll").smoothDivScroll("startAutoScroll");	
	});
	
	
	$(window).load(function(){
		$(function() {
		$("#g3lScroll").smoothDivScroll({ autoScroll: "onstart", autoScrollDirection: "endlessloopright", autoScrollStep: 1, autoScrollInterval: 15});
		});
	});
});
