// JavaScript Document
$(document).ready(function() {
$(".contact-pup").fancybox({'width' : 730,'height' : 245,'autoScale' : false,'type' : 'iframe'});
$(".password").fancybox({'width' : 730,'height' : 230,'autoScale' : false,'type' : 'iframe'});
$(".forgot").fancybox({'width' : 730,'height' : 180,'autoScale' : false,'type' : 'iframe'});
$(".news").fancybox({'width' : 730,'height' : 225,'autoScale' : false,'type' : 'iframe'});
$(".search").fancybox({'width' : 730,'height' : 285,'autoScale' : false,'type' : 'iframe'});
$(".refer").fancybox({'width' : 730,'height' : 300,'autoScale' : false,'type' : 'iframe'});
$(".enq-pup").fancybox({'width' : 730,'height' : 310,'autoScale' : false,'type' : 'iframe'});
$(".testimonial").fancybox({'width' : 800,'height' : 400,'autoScale' : false,'type' : 'iframe'});
$(".enq-comp").fancybox({'width' : 730,'height' : 270,'autoScale' : false,'type' : 'iframe'});
$(".comp-enq-dtl").fancybox({'width' : 730,'height' : 280,'autoScale' : false,'type' : 'iframe'});
$(".upload-logo").fancybox({'width' : 730,'height' : 210,'autoScale' : false,'type' : 'iframe'});
$(".invoice-pup").fancybox({'width' : 880,'height' : 610,'autoScale' : false,'type' : 'iframe'});
$(".mem").fancybox({'width' : 730,'height' : 440,'autoScale' : false,'type' : 'iframe'});
$(".mem1").fancybox({'width' : 820,'height' : 510,'autoScale' : false,'type' : 'iframe'});
$(".reply").fancybox({'width' : 720,'height' : 500,'autoScale' : false,'type' : 'iframe'});
$(".forward").fancybox({'width' : 720,'height' : 180,'autoScale' : false,'type' : 'iframe'});
$(".forwarded").fancybox({'width' : 720,'height' : 75,'autoScale' : false,'type' : 'iframe'});
$(".profile").fancybox({'width' : 720,'height' : 180,'autoScale' : false,'type' : 'iframe'});
$(".venq").fancybox({'width' : 720,'height' : 190,'autoScale' : false,'type' : 'iframe'});
$(".employee").fancybox({'width' : 720,'height' : 205,'autoScale' : false,'type' : 'iframe'});
$(".terms").fancybox({'width' : 720,'height' : 360,'autoScale' : false,'type' : 'iframe'});
$(".tips").fancybox({'width' : 720,'height' : 210,'autoScale' : false,'type' : 'iframe'});
$(".reply1").fancybox({'width' : 720,'height' : 360,'autoScale' : false,'type' : 'iframe'});
$(".delete").fancybox({'width' : 720,'height' : 180,'autoScale' : false,'type' : 'iframe'});
$(".cont").fancybox({'width' : 720,'height' : 250,'autoScale' : false,'type' : 'iframe'});
$(".video").fancybox({'width' : 730,'height' : 600,'autoScale' : false,'type' : 'iframe'});
$(".post-wanted").fancybox({'width' : 800,'height' :535,'autoScale' : false,'type' : 'iframe'});
$(".product").fancybox({'width' : 730,'height' : 450,'autoScale' : false,'type' : 'iframe'});
$(".feedback").fancybox({'width' : 730,'height' : 500,'autoScale' : false,'type' : 'iframe'});
$(".post-com").fancybox({'width' : 800,'height' :355,'autoScale' : false,'type' : 'iframe'});
$(".view-pro").fancybox({'width' : 800,'height' :200,'autoScale' : false,'type' : 'iframe'});
$(".topic").fancybox({'width' : 800,'height' :240,'autoScale' : false,'type' : 'iframe'});

$(".terms").fancybox({'width' : 730,'height' : 500,'autoScale' : false,'type' : 'iframe'});

$(".pop1").fancybox({'width' : 770,'height' : 500,'autoScale' : false,'type' : 'iframe'});



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

$(".main .jCarouselLite").jCarouselLite({ btnNext: ".main .next", btnPrev: ".main .prev", speed: 5000,hoverPause:true, auto: 2000, speed: 1000, scroll: 1, visible: 4,  vertical: false, circular: true, easing: "easeinout"}); 
 
});

$(function() {
$(".newsticker-jcarousellite1").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 1,
auto:2000,
speed:400
});
});
$(function() {
$(".newsticker-jcarousellite1x").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 5,
auto:2000,
speed:400
});
});
$(function() {
$(".newsticker-jcarousellite2").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 2,
auto:2000,
speed:400
});
});
$(function() {
$(".newsticker-jcarousellite2x").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 3,
auto:2000,
speed:400
});
});

$(function() {
$(".newsticker-jcarousellite3").jCarouselLite({
vertical: true,
hoverPause:true,
visible: 7,
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)	
			}
		})
	}
}


