$j(function()
{
	
	// capture the uri and activate the slide
	if (location.hash =='')
    {
        $j('#explore_slideshow').cycle(
		{ 
		    fx:     'scrollLeft', 
		    speed:  'medium', 
		    timeout: 0,
		    pause: true,
		    pager:  '.explore_tabs', 
		    pagerAnchorBuilder: function(idx, slide) 
			{ 
		        // return selector string for existing anchor 
		        return '.explore_tabs li:eq(' + idx + ') a'; 
		    }
		});

    }else if(location.hash =='#divKiosk'){   
	 		
        var thehash = location.hash;
				
    	$j('#explore_slideshow').cycle(
		{ 
			
		    fx:     'scrollLeft', 
		    speed:  'medium', 
		    timeout: 0,
		    pause: true,
		    pager:  '.explore_tabs', 
		    startingSlide: 1,
			pagerAnchorBuilder: function(idx, slide) 
			{ 
		        // return selector string for existing anchor 
		        return '.explore_tabs li:eq(' + idx + ') a'; 
		    }
			
		
		});
		
		}else if (location.hash =='#divMobile'){   

	        var thehash = location.hash;

	    	$j('#explore_slideshow').cycle(
			{ 
			    fx:     'scrollLeft', 
			    speed:  'medium', 
			    timeout: 0,
			    pause: true,
			    pager:  '.explore_tabs', 
			    startingSlide: 2,
				pagerAnchorBuilder: function(idx, slide) 
				{ 
			        // return selector string for existing anchor 
			        return '.explore_tabs li:eq(' + idx + ') a'; 
			    }
			});
	
	
	}
	
//start
	
	$j('#slideshow').cycle(
	{ 
	    fx:     'scrollLeft', 
	    speed:  'medium', 
	    timeout: 10000,
	    pause: true,
	    pager:  '.rotator_nav', 
	    pagerAnchorBuilder: function(idx, slide) 
		{ 
	        // return selector string for existing anchor 
	        return '.rotator_nav li:eq(' + idx + ') a'; 
	    } 
	     
 
	});

	//Tabs for Kiosks
  $j('.generic_tabs').tabify();

	//This is for Zooming Images
	$j.imgzoom();

//closing
});


    