$(document).ready(function(){
if ($('#slider1').length) { 
$('#slider1').bxSlider({
    displaySlideQty: 6,
    moveSlideQty: 1,
    pager: false,
    auto: true
  });
}

if ($('#slider2').length) { // implies *not* zero
  $('#slider2').bxSlider({
    displaySlideQty: 9,
    moveSlideQty: 1,
    pager: false,
    auto: true
  });
}
  
if ($('.slideShow').length) { // implies *not* zero
  	$('.slideShow').orbit({
		bullets: true
		});
}

//Vertical Sliding
$('#slider1 li').hover(function(){
		$(".cover", this).stop().animate({top:'50px'},{queue:false,duration:300});
	}, function() {
		$(".cover", this).stop().animate({top:'260px'},{queue:false,duration:300});
	});


$('#loadYoutube').click(function(e){
e.preventDefault();
var htm = '<object width="530" height="299"><param name="movie" value="http://www.youtube.com/v/D4fJtPl9YAU?version=3&amp;hl=en_US&amp;rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/D4fJtPl9YAU?version=3&amp;hl=en_US&amp;rel=0" type="application/x-shockwave-flash" width="530" height="299" allowscriptaccess="always" allowfullscreen="true"></embed></object>';
$('.modal-body').html(htm);
});

 $('.close').click(function(){
		$('#.modal-body iframe').remove();
});



  });


	



