// JavaScript Document
$(document).ready(function() {
$(".refer ").fancybox({'width' : 700,'height' : 280,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});  
$(".associates").fancybox({'width' : 710,'height' : 400,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});

$(".video").fancybox({'width' : 545,'height' : 480,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});		


$("a[rel=dg_group]").fancybox({
			'transitionIn'	: 'elastic',
			'transitionOut'	: 'elastic',
			'titlePosition' : 'over',
			'titleFormat'   : function(title, currentArray, currentIndex, currentOpts) {
				return '';
		  }
	});
		
			
		
});

function slide_dg(toHide,toShow){
for(d=0; d<toHide.length; d++){
$(toHide[d]).slideUp(400,function(){
for(g=0; g<toShow.length; g++){
$(toShow[g]).slideDown(400)
}
})		
}}

