$(document).ready(function(){
	$(".popupvideo").colorbox({iframe:true, innerWidth:480, innerHeight:360});
});

$(document).ready(function(){
	$(".lightbox").colorbox();
});

$(document).ready(function(){
	$(".popupvideo2").colorbox({iframe:true, innerWidth:480, innerHeight:400});
});



function MoveLeft()
{
	var divinfo = document.getElementById('scroller');
	if(divinfo.style.marginLeft == "")
	{
			$('#scroller').animate({
			marginLeft: "-516px",
	  }, 1000, function() {
		// Animation complete.
	  });

	}

	
	if(divinfo.style.marginLeft == "0px")
	{
	   $('#scroller').animate({
			marginLeft: "-516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
	
	if(divinfo.style.marginLeft == "-516px")
	{
		$('#scroller').animate({
			marginLeft: "-=516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
	
	if(divinfo.style.marginLeft == "-1032px")
	{
				$('#scroller').animate({
			marginLeft: "-=516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
	
	if(divinfo.style.marginLeft == "-1548px")
	{
				$('#scroller').animate({
			marginLeft: "-=516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
		
}

function MoveRight()
{
	var divinfo = document.getElementById('scroller');	
	
	if(divinfo.style.marginLeft == "-516px")
	{
			$('#scroller').animate({
			marginLeft: "+=516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
		
	if(divinfo.style.marginLeft == "-1032px")
	{
					$('#scroller').animate({
			marginLeft: "+=516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
	
	if(divinfo.style.marginLeft == "-1548px")
	{
					$('#scroller').animate({
			marginLeft: "+=516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
	
	if(divinfo.style.marginLeft == "-2064px")
	{
					$('#scroller').animate({
			marginLeft: "+=516px",
	  }, 1000, function() {
		// Animation complete.
	  });
	}
		
}
