jQuery(document).ready(function() {
	jQuery('.tab1').click(function() {
		jQuery('.tab1').addClass('active');
		jQuery('.tab2').removeClass('active');
		jQuery('.tab3').removeClass('active');
		jQuery('#cont1').css('display','block');
		jQuery('#cont2').css('display','none');
		jQuery('#cont3').css('display','none');
	});
	jQuery('.tab2').click(function() {
		jQuery('.tab2').addClass('active');
		jQuery('.tab1').removeClass('active');
		jQuery('.tab3').removeClass('active');
		jQuery('#cont1').css('display','none');
		jQuery('#cont2').css('display','block');
		jQuery('#cont3').css('display','none');
	});
	jQuery('.tab3').click(function() {
		jQuery('.tab3').addClass('active');
		jQuery('.tab2').removeClass('active');
		jQuery('.tab1').removeClass('active');
		jQuery('#cont1').css('display','none');
		jQuery('#cont2').css('display','none');
		jQuery('#cont3').css('display','block');
	});
});

/**
 *
 * @access public
 * @return void
 **/
function voidx(){
	var x;
}


/*-----------------login popup-------------*/

function dermatologuePopUp(){
	var size = getPageSize();
		jQuery("#dermatologuePopUp").height(size[1]+'px');
//		$("#dermatologuePopUpInside"+id).css('top',s+'px');
		jQuery("#dermatologuePopUpInside").css('position','fixed');
		jQuery("#dermatologuePopUpInside").css('top','50%');
		jQuery("#dermatologuePopUpInside").css('margin-top','-200px');
		jQuery("#dermatologuePopUp").fadeTo('fast', 0.7, function() {
  		jQuery("#dermatologuePopUp"+", #dermatologuePopUpInside").fadeIn(900);
		});
	//setTimeout("goToTop()", 300);
}

function closeDermatologuePopUp(){
 	jQuery("#dermatologuePopUp"+", #dermatologuePopUpInside").fadeOut(900);
}

function getPageSize(){
	var xScroll,yScroll;
	if(window.innerHeight&&window.scrollMaxY){
		xScroll=document.body.scrollWidth;
		yScroll=window.innerHeight+window.scrollMaxY;
	}else if(document.body.scrollHeight>document.body.offsetHeight){
		xScroll=document.body.scrollWidth;
		yScroll=document.body.scrollHeight;
	}else{
		xScroll=document.body.offsetWidth;
		yScroll=document.body.offsetHeight;
	}

	var windowWidth,windowHeight;
	if(self.innerHeight){
		windowWidth=self.innerWidth;
		windowHeight=self.innerHeight;
	}else if(document.documentElement&&document.documentElement.clientHeight){
		windowWidth=document.documentElement.clientWidth;
		windowHeight=document.documentElement.clientHeight;
	}else if(document.body){
		windowWidth=document.body.clientWidth;
		windowHeight=document.body.clientHeight;
	}

	if(yScroll<windowHeight){
		pageHeight=windowHeight;
	}else{
		pageHeight=yScroll;
	}
	if(xScroll<windowWidth){
		pageWidth=windowWidth;
	}else{
		pageWidth=xScroll;
	}

	arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);
	return arrayPageSize;
}

jQuery(document).ready(function() {
	jQuery('.clientPro').click(function() {
		dermatologuePopUp();
	});

	jQuery('.close').click(function() {
		closeDermatologuePopUp();
	});

	jQuery('.submit').click(function() {
		closeDermatologuePopUp();
	});

});
