var adiq = jQuery.noConflict();

function showPopup(){
	adiq('#adiqPopups').css('display', 'block');
		
	jQuery.each(jQuery.browser, function(i) {
		//if browser is Firfox or Safari apply these styles to the pages
		if(adiq.browser.mozilla || adiq.browser.safari){
			adiq('#adiqPopups').css('width', '438px');
			adiq('#adiqPopups').css('height', '220px');
		}
	});
}

function hidePopup(){
	
	adiq('#adiqPopups').css('display', 'none');
}

function formatFormPanel(formType){
	
	//if the consumer is submitting an sms apply these changes
	if(formType == 'sms'){
		jQuery.each(jQuery.browser, function(i) {
		
			//if browser is Firfox apply these styles to the pages
			if(adiq.browser.mozilla){
				adiq('#adiqTitlePanel').css('top', '12px');
				adiq('.adiqMessagePanel').css('top', '70px');
				adiq('#adiqSubmit').css('left', '160px');
				
			//else if browser is Safari apply these styles to the pages
			}else if(adiq.browser.safari){
			
			//else apply these styles for IE support
			}else{
			}
		});
	}
	
	//if the consumer is submitting a nearest apply these changes
	if(formType == 'nearest'){
		jQuery.each(jQuery.browser, function(i) {
		
			//if browser is Firfox apply these styles to the pages
			if(adiq.browser.mozilla){
				adiq('#adiqFormPanel').css('top', '105px');
				adiq('#adiqFormPanel').css('left', '35px');
			
			//else if browser is Safari apply these styles to the pages
			}else if(adiq.browser.safari){
				adiq('#adiqFormPanel').css('top', '100px');
				adiq('#adiqFormPanel').css('left', '35px');
			
			//else apply these styles for IE support
			}else{
			}
		});
	}
	
	//if the consumer is submitting a postal apply these changes
	if(formType == 'address'){
		jQuery.each(jQuery.browser, function(i) {
		
			//if browser is Firfox apply these styles to the pages
			if(adiq.browser.mozilla){
				adiq('#adiqFormPanel').css('top', '86px');
				adiq('#adiqFormPanel').css('left', '35px');
			
			//else if browser is Safari apply these styles to the pages
			}else if(adiq.browser.safari){
				adiq('#adiqFormPanel').css('top', '90px');
				adiq('#adiqFormPanel').css('left', '35px');
			
			//else apply these styles for IE support
			}else{
			}
		});
		
	}
}

