// DG_JavaScript Document

$(document).ready(function() {
	$(".refer").fancybox({ 'width' : 420, 'height' : 270, 'autoScale' : false, 'transitionIn' : 'elastic', 'transitionOut' : 'elastic', 'centerOnScroll':true, 'type' : 'iframe'
	});
	
$("a[rel=dg_group]").fancybox({'transitionIn' : 'elastic','transitionOut' : 'elastic', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return ''; }
	});

$("a.video").click(function() { $.fancybox({ 'padding' : 0, 'autoScale' : false, 'transitionIn' : 'none', 'transitionOut' : 'none', 'title' : this.title, 'width' : 680, 'height' : 495, 'href' : this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'), 'type' : 'swf', 'swf' : {'allowfullscreen':'true'}}); return false; }); 

$(".main .jCarouselLite").jCarouselLite({btnNext: ".main .next", btnPrev: ".main .prev", speed: 1000, auto: 2800,mouseWheel: true,scroll: 1,visible: 7,vertical: false, circular: true
    });});
$(window).load(function() {
	$('#DG_Slider').nivoSlider();
});
