 // JavaScript Document unique to Home Page

    $(function () {
   
    	$('#carousel').infiniteCarousel({
    		displayTime : 11000
    	});

	$('a.newwindow').click(function(){
		window.open(this.href);
		return false;
	});

$('.popupDedicationLink').click(function(){ 
	$('#popupDedication').hide();
	$('#popupCommunication').hide();	
    $.openDOMWindow({ 
        windowSourceID:'#popupDedication', 
        height:310,  
        width:320, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupDedicationLink', 
        positionLeft:-120
    }); 
    return false; 
}); 

$('.popupCommunicationLink').click(function(){ 
	$('#popupDedication').hide();
	$('#popupCommunication').hide();	

    $.openDOMWindow({ 
        windowSourceID:'#popupCommunication', 
        height:230,  
        width:320, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupCommunicationLink', 
        positionLeft:-120
    }); 
    return false; 
}); 

$('.popupPaperClaimsLink').click(function(){
    $.openDOMWindow({ 
        windowSourceID:'#popupPaperClaims', 
        height:120,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupPaperClaimsLink', 
        positionLeft:-120
    }); 
	$('.popupPaperClaims').removeClass('hide');	
	$('.popupPharmacyRecon').addClass('hide');
	$('.popupPBA').addClass('hide');		
    return false; 
}); 

$('.popupPharmacyReconLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupPharmacyRecon', 
        height:140,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupPharmacyReconLink', 
        positionLeft:-80
    }); 
	$('.popupPharmacyRecon').removeClass('hide');	
	$('.popupPaperClaims').addClass('hide');
	$('.popupPBA').addClass('hide');		
    return false; 
}); 

$('.popupPBALink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupPBA', 
        height:200,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupPBALink', 
        positionLeft:-80
    }); 
	$('.popupPharmacyRecon').addClass('hide');	
	$('.popupPaperClaims').addClass('hide');
	$('.popupPBA').removeClass('hide');		
    return false; 
}); 


$('.popupMedPharmLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupMedPharm', 
        height:80,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupMedPharmLink', 
        positionLeft:-80
    }); 

	$('.popupMedPharm').removeClass('hide');	
	$('.popupIONetwork').addClass('hide');
	$('.popupRMO').addClass('hide');	
	$('.popupBG').addClass('hide');			

    return false; 
}); 

$('.popupIONetworkLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupIONetwork', 
        height:80,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupIONetworkLink', 
        positionLeft:-80
    }); 
	$('.popupMedPharm').addClass('hide');	
	$('.popupIONetwork').removeClass('hide');
	$('.popupRMO').addClass('hide');	
	$('.popupBG').addClass('hide');	
    return false; 
}); 

$('.popupRMOLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupRMO', 
        height:80,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupRMOLink', 
        positionLeft:-80
    }); 
	$('.popupMedPharm').addClass('hide');	
	$('.popupIONetwork').addClass('hide');
	$('.popupRMO').removeClass('hide');	
	$('.popupBG').addClass('hide');	
    return false; 
}); 

$('.popupBGLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupBG', 
        height:80,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupBGLink', 
        positionLeft:-80
    }); 
	$('.popupMedPharm').addClass('hide');	
	$('.popupIONetwork').addClass('hide');
	$('.popupRMO').addClass('hide');	
	$('.popupBG').removeClass('hide');	
    return false; 
}); 

$('.popupIntegratesHedisLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupIntegratesHedis', 
        height:130,  
        width:350, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupIntegratesHedisLink', 
        positionLeft:-80
    }); 
	$('.popupIntegratesHedis').removeClass('hide');	
	$('.popupNCQA').addClass('hide');
    return false; 
}); 

$('.popupNCQALink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupNCQA', 
        height:80,  
        width:200, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupNCQALink', 
        positionLeft:-40
    }); 
	$('.popupIntegratesHedis').addClass('hide');	
	$('.popupNCQA').removeClass('hide');
    return false; 
}); 

$('.popupDiagnosesLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupDiagnoses', 
        height:120,  
        width:280, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupDiagnosesLink', 
        positionLeft:-40
    }); 
    return false; 
}); 

$('.popupFullyCompliantLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupFullyCompliant', 
        height:200,  
        width:430, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupFullyCompliantLink', 
        positionLeft:-40
    });
	$('.popupFullyCompliant').removeClass('hide');	
	$('.popupEnhancedInfo').addClass('hide');	 
    return false; 
}); 

$('.popupEnhancedInfoLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupEnhancedInfo', 
        height:180,  
        width:430, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupEnhancedInfoLink', 
        positionLeft:-100
    }); 
	$('.popupFullyCompliant').addClass('hide');	
	$('.popupEnhancedInfo').removeClass('hide');	 	
    return false; 
}); 

$('.popupReportCubesLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupReportCubes', 
        height:90,  
        width:430, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupReportCubesLink', 
        positionLeft:-40
    }); 
 	$('.popupReportCubes').removeClass('hide');
	$('.popupAdhocQuery').addClass('hide');
	$('.popupExecDashboard').addClass('hide');
	$('.popupStandardRpt').addClass('hide');		
    return false; 
}); 

$('.popupAdhocQueryLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupAdhocQuery', 
        height:100,  
        width:430, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupAdhocQueryLink', 
        positionLeft:-40
    }); 
 	$('.popupReportCubes').addClass('hide');
	$('.popupAdhocQuery').removeClass('hide');
	$('.popupExecDashboard').addClass('hide');
	$('.popupStandardRpt').addClass('hide');	
    return false; 
}); 

$('.popupExecDashboardLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupExecDashboard', 
        height:130,  
        width:430, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupExecDashboardLink', 
        positionLeft:-40,
		positionTop:-30
    }); 
 	$('.popupReportCubes').addClass('hide');
	$('.popupAdhocQuery').addClass('hide');
	$('.popupExecDashboard').removeClass('hide');
	$('.popupStandardRpt').addClass('hide');	
    return false; 
}); 

$('.popupStandardRptLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupStandardRpt', 
        height:180,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupStandardRptLink', 
        positionLeft:-40,
		positionTop:-120
    }); 
 	$('.popupReportCubes').addClass('hide');
	$('.popupAdhocQuery').addClass('hide');
	$('.popupExecDashboard').addClass('hide');
	$('.popupStandardRpt').removeClass('hide');	
    return false; 
}); 

$('.popupBiotechDrugLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupBiotechDrug', 
        height:160,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupBiotechDrugLink', 
        positionLeft:-30,
		positionTop:-30
    }); 
 	$('.popupBiotechDrug').removeClass('hide');
 	$('.popupInaccurate').addClass('hide');
 	$('.popupTighterControl').addClass('hide');
    return false; 
}); 


$('.popupInaccurateLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupInaccurate', 
        height:90,  
        width:500, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupInaccurateLink', 
        positionLeft:-210,
		positionTop:-50
    }); 
 	$('.popupBiotechDrug').addClass('hide');
 	$('.popupInaccurate').removeClass('hide');
 	$('.popupTighterControl').addClass('hide');
    return false; 
}); 

$('.popupTighterControlLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupTighterControl', 
        height:160,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupTighterControlLink', 
        positionLeft:-30,
		positionTop:-30
    }); 
 	$('.popupBiotechDrug').addClass('hide');
 	$('.popupInaccurate').addClass('hide');
 	$('.popupTighterControl').removeClass('hide');
    return false; 
}); 

$('.popupCpoLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupCpo', 
        height:200,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupCpoLink', 
        positionLeft:-30,
		positionTop:-30
    }); 

    return false; 
}); 

$('.popupEvaluateLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupEvaluate', 
        height:125,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupEvaluateLink', 
        positionLeft:-30,
		positionTop:-30
    }); 

    return false; 
}); 

$('.popupSuperiorTechLink').click(function(){ 

    $.openDOMWindow({ 
        windowSourceID:'#popupSuperiorTech', 
        height:420,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupSuperiorTechLink', 
        positionLeft:-30,
		positionTop:-30
    }); 

    return false; 
}); 

$('.popupDurEditsLink').click(function(){ 

    $.openDOMWindow({ 
        windowSourceID:'#popupDurEdits', 
        height:210,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupDurEditsLink', 
        positionLeft:-80,
		positionTop:-60
    }); 

    return false; 
}); 


$('.popupClinicalProgramsLink').click(function(){ 

    $.openDOMWindow({ 
        windowSourceID:'#popupClinicalPrograms', 
        height:240,  
        width:480, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupClinicalProgramsLink', 
        positionLeft:-80,
		positionTop:-60
    }); 

    return false; 
}); 

$('.popupReapRewardsLink').click(function(){
	
	$('#DOMWindow').hide();	
 	$('.popupPaSolution').addClass('hide');
 	$('.popupIntegrated').addClass('hide');	
    $.openDOMWindow({ 
        windowSourceID:'#popupReapRewards', 
        height:325,  
        width:300, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupReapRewardsLink', 
        positionLeft:-180,
		positionTop:5
    }); 
 	$('.popupReapRewards').removeClass('hide');

    return false; 
}); 

$('.popupPaSolutionLink').click(function(){ 
	$('#DOMWindow').hide();
 	$('.popupReapRewards').addClass('hide');
 	$('.popupPaSolution').removeClass('hide');
	$.openDOMWindow({ 
        windowSourceID:'#popupPaSolution', 
        height:330,  
        width:300, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupPaSolutionLink', 
        positionLeft:-80,
		positionTop:-330
    }); 

 	$('.popupIntegrated').addClass('hide');
    return false; 
}); 

$('.popupIntegratedLink').click(function(){ 
	$('#DOMWindow').hide();	
 	$('.popupReapRewards').addClass('hide');
 	$('.popupPaSolution').addClass('hide');	
    $.openDOMWindow({ 
        windowSourceID:'#popupIntegrated', 
        height:340,  
        width:600, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupIntegratedLink', 
        positionLeft:-80,
		positionTop:-345
    }); 

 	$('.popupIntegrated').removeClass('hide');
    return false; 
}); 
$('.popupInterventionLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupIntervention', 
        height:500,  
        width:600, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupInterventionLink', 
        positionLeft:-180,
		positionTop:-280
    }); 

    return false; 
}); 

$('.popupNinetyDayLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupNinetyDay', 
        height:100,  
        width:600, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupNinetyDayLink', 
        positionLeft:-80,
		positionTop:-100
    }); 
 	$('.popupNinetyDay').removeClass('hide');
 	$('.popupCustomNetwork').addClass('hide');
    return false; 
}); 

$('.popupCustomNetworkLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupCustomNetwork', 
        height:230,  
        width:600, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupCustomNetworkLink', 
        positionLeft:-80,
		positionTop:-330
    }); 
 	$('.popupNinetyDay').addClass('hide');
 	$('.popupCustomNetwork').removeClass('hide');
    return false; 
}); 

$('.popupFiveTypesEditLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupFiveTypesEdit', 
        height:80,  
        width:300, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupFiveTypesEditLink', 
        positionLeft:-80,
		positionTop:-60
    }); 

    return false;

}); 

$('.popupItWftLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupItWft', 
        height:110,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupItWftLink', 
        positionLeft:-80
    }); 
	$('.popupItWft').removeClass('hide');	
	$('.popupItFtp').addClass('hide');
	$('.popupItNdm').addClass('hide');		
    return false; 
}); 

$('.popupItFtpLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupItFtp', 
        height:110,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupItFtpLink', 
        positionLeft:-80,
		positionTop:-15
    }); 
	$('.popupItWft').addClass('hide');	
	$('.popupItFtp').removeClass('hide');
	$('.popupItNdm').addClass('hide');		
    return false; 
}); 

$('.popupItNdmLink').click(function(){ 
    $.openDOMWindow({ 
        windowSourceID:'#popupItNdm', 
        height:110,  
        width:250, 
        overlay:0, 
        positionType:'anchoredSingleWindow',  
        windowPadding:20,  
        windowBGColor:'#fff',  
        borderSize:'1', 
        anchoredSelector:'.popupItNdmLink', 
        positionLeft:-80,
		positionTop:-30
    }); 
	$('.popupItWft').addClass('hide');	
	$('.popupItFtp').addClass('hide');
	$('.popupItNdm').removeClass('hide');		
    return false; 
}); 

$('#memberaccess div.diagram a').click(function(){
	var isVisible = $(this).parent().find('p').is(':visible');
	if (isVisible == true) {
		$(this).parent().find('p').hide();
	} else {
		$(this).parent().find('p').show();		
	}
	return false;
});


    	$('li#services a').click(function() {
		
    		if ($('#servicesList').is(':visible')) {
    			$(this).hideServices();
    			$(this).removeClass('selected');
    		} else {
    			if ($('#supportList').is(':visible')) {
        			$('li#support a').removeClass('selected');    				
       				$(this).addClass('selected')
        			$('#supportList').slideUp('slow');   			
    				$('#supportList').queue(function (){

    				$(this).showServices();

    				$(this).dequeue();
    				});
    			} else {
    				$(this).addClass('selected')    
    				$(this).showServices();
				
    			}	
    		}	
   	});
 
    	$('li#support a').click(function() {

    		if ($('#supportList').is(':visible')) {
    			$(this).hideSupport();
				$(this).removeClass('selected')
    		} else {
    			if ($('#servicesList').is(':visible')) {
        			$('li#services a').removeClass('selected');     				
    				$(this).addClass('selected')
        			$('#servicesList').slideUp('slow');   			
    				$('#servicesList').queue(function (){

    					$(this).showSupport();

    				$(this).dequeue();
    				});
    			} else {
    				$(this).addClass('selected')
    				$(this).showSupport();

    			}	
    		}	
    	});   	
    	
        $.fn.hideServices = function() {
    		$('#servicesList').slideUp('slow');
    		return true
        };     	
        $.fn.showServices = function() {
    		$('#servicesList').slideDown('slow');
    		return true
        };     
        $.fn.hideSupport = function() {
    		$('#supportList').slideUp('slow');
    		return true
        };     	
        $.fn.showSupport = function() {
    		$('#supportList').slideDown('slow');
    		return true
        };     
        
        $('#prclose').click(function(){
        	$(this).parent().fadeOut('slow');
        });4
		$('a.tips').click(function(){
			$(this).cluetip({activation: 'click', width: 400});
		});
		
		$('#claimsProcessing a.superiortech').click(function(){
			$('div.superiortech').toggle();
		});
//---- 
    });	
