// JavaScript Document
$(document).ready(function() {
  $(".pop1").fancybox({'width' : 735,'height' : 290,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".pop2").fancybox({'width' : 755,'height' : 550,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
   $(".pop3").fancybox({'width' : 370,'height' : 260,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
   $(".pop4").fancybox({'width' : 400,'height' : 410,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
   $(".pop5").fancybox({'width' : 720,'height' : 80,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
    $(".pop6").fancybox({'width' : 720,'height' : 355,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
	 $(".pop7").fancybox({'width' :600,'height' : 755,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
	  $(".pop8").fancybox({'width' : 435,'height' : 410,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
	  $(".enquiry").fancybox({'width' :600,'height' :640,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
	$("a[rel=dg_group]").fancybox({
			'type'	: 'image',
			'titlePosition' : 'over',
			'titleFormat'   : function(title, currentArray, currentIndex, currentOpts) {
				return '';
		  }
	}); 
  $("#mostrar").click(function(event) {event.preventDefault();
  $("#caja").slideToggle();});
  $("#caja a").click(function(event) {event.preventDefault();																																											$("#caja").slideUp();
});
});
$(function() {$("#menu_dg").lavaLamp({fx: "backout",speed: 700,click: function(event, menuItem) {return true;}})
	$(".newsticker-jcarousellite").jCarouselLite({
		vertical: true,
		hoverPause:true,
		visible: 1,
		auto:5000,
		speed:2000
	});
	
;});
$(function() {
	$("#dg_ver").jCarouselLite({ btnNext: "#dg_ver .next",btnPrev: "#dg_ver .prev",hoverPause:true, visible: 4, auto:1000, speed:1000, vertical:true	});
});
function showHide(toHide,toShow){
	for(i=0; i<toHide.length; i++){
		$(toHide[i]).fadeOut('slow',function(){
			for(j=0; j<toShow.length; j++){
				$(toShow[j]).fadeIn('slow')	
			}
		})
	}
}
