$(function(){
	$('.homeslideshow').cycle({
		fx: 'fade',
		timeout: 10000,
		manualTrump:   false,
		pager:  '.homeslideshownav'
	});
	
	$('.exploreslideshow1').cycle({
		fx: 'scrollHorz',
		timeout: 10000,
		manualTrump:   false,
		next:   '.btn_homeexplorenavleft', 
    	prev:   '.btn_homeexplorenavright'
	});
	
	$('.exploreslideshow2').cycle({
		fx: 'scrollHorz',
		timeout: 10000,
		manualTrump:   false,
		next:   '.btn_homeexplorenavleft', 
    	prev:   '.btn_homeexplorenavright',
		after: onAfter
	});
	
	function onAfter(curr,next,opts) {
		var msg =  (opts.currSlide + 1) + ' / ' + opts.slideCount;
		$('.homeexplorenav').html(msg);
	};
	
	$(".videobtn").click(function(){
		$(".selectedvideo").removeClass("selectedvideo");
		$(this).parent().addClass("selectedvideo");
		var linktext = $(this).attr('href');
		$("#videobox").attr('src', linktext);
		return false
	});
	
	
									   
	
	
});

$(document).ready(function (){

$('iframe').each(function(){

var url = $(this).attr("src")

$(this).attr("src",url+"?wmode=transparent")

						  });

							});
