// JavaScript Document
$(document).ready(function() {
  $(".postvid").fancybox({'width' : 730,'height' : 320,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});				
  $(".postimg").fancybox({'width' : 730,'height' : 231,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".reviews").fancybox({'width' : 730,'height' : 194,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".address").fancybox({'width' : 730,'height' : 280,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".forgot").fancybox({'width' : 730,'height' : 250,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".password").fancybox({'width' : 730,'height' : 260,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".invoice").fancybox({'width' : 800,'height' : 702,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".refer").fancybox({'width' : 730,'height' : 280,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".newsletter").fancybox({'width' : 730,'height' : 255,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".vdo").fancybox({'width' : 562,'height' : 400,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  $(".pop7").fancybox({'width' : 730,'height' : 310,'autoScale' : false,'transitionIn': 'fade','transitionOut': 'fade','type' : 'iframe'});
  	$("a[rel=dg_group]").fancybox({
			'type'	: 'image',
			'titlePosition' : 'over',
			'titleFormat'   : function(title, currentArray, currentIndex, currentOpts) {
				return '';
		  }
});
});	

$(function() {
$(".newsticker-jcarousellite2").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 3,
auto:2000,
speed:400
});
});



function showHide(toHide,toShow){
for(i=0; i<toHide.length; i++){
$(toHide[i]).fadeOut('fast',function(){
for(j=0; j<toShow.length; j++){
$(toShow[j]).fadeIn('fast')
}
})		
}}

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)
}
})		
}}

function showHide1(toHide,toShow){
	for(i=0; i<toHide.length; i++){
		$(toHide[i]).hide('slow',function(){
			for(j=0; j<toShow.length; j++){
				$(toShow[j]).show('slow')	
			}
		})
	}
}

function showHide2(toHide,toShow){
	for(i=0; i<toHide.length; i++){
		$(toHide[i]).hide(0,function(){
			for(j=0; j<toShow.length; j++){
				$(toShow[j]).show(0)	
			}
		})
	}
}


