			jQuery.noConflict();

            jQuery(document).ready(function(){

				jQuery('#callForm').ajaxForm(function() { 
					jQuery('#callForm').hide();
                	jQuery('#messageSent').show("fast");
                	setTimeout('jQuery("#messageSent").hide();jQuery("#call-container").fadeOut("medium");jQuery("#bg-click").hide();jQuery(".dropShadow").fadeOut("medium")', 2000); 
            	}); 
            	
				jQuery('#emailForm').ajaxForm(function() { 
					jQuery('#emailForm').hide();
                	jQuery('#emailSent').show("fast");
                	setTimeout('jQuery("#emailSent").hide();jQuery("#contact-form-container").fadeOut("medium");jQuery("#bg-click").hide();jQuery(".dropShadow").fadeOut("medium")', 2000); 
            	}); 

                jQuery("#calllnk").click(function(){
                    if (jQuery("#call-container").is(":hidden")){
                        jQuery("#call-container").fadeIn("fast");
                        jQuery("#callForm").show();
                        jQuery("#call-container").dropShadow({left: 2, top: 10, opacity: 0.5, blur: 3});
                        setUpBlurLayer();
                        
                        jQuery('#bg-click').click( function(){
				    		window.setTimeout("jQuery('#call-container').fadeOut('fast');jQuery('#bg-click').hide();jQuery('.dropShadow').fadeOut('fast');", 200);
				    	});
                    }
                    else{
                        jQuery("#call-container").fadeOut("fast");
                        jQuery(".dropShadow").fadeOut("fast");
                    }
                });

                jQuery("#emaillnk").click(function(){
                    if (jQuery("#contact-form-container").is(":hidden")){
                        jQuery("#contact-form-container").fadeIn("fast");
                        jQuery("#emailForm").show();
                        jQuery("#contact-form-container").dropShadow({left: 2, top: 10, opacity: 0.5, blur: 3});
                        setUpBlurLayer();
                        jQuery('#bg-click').click( function(){
				    		window.setTimeout("jQuery('#contact-form-container').fadeOut('fast');jQuery('#bg-click').hide();jQuery('.dropShadow').fadeOut('fast');", 200);
				    	});
                    }
                    else{
                        jQuery("#contact-form-container").fadeOut("fast");
                        jQuery(".dropShadow").fadeOut("fast");
                    }
                });
                
				jQuery('#regForm').ajaxForm(function() { 
					jQuery('#regForm').hide();
                	jQuery('#regSent').show("fast");
                	setTimeout('jQuery("#regSent").hide();jQuery("#reg-form-container").fadeOut("medium");jQuery("#bg-click").hide();jQuery(".dropShadow").fadeOut("medium")', 2000); 
            	}); 

                jQuery(".register").click(function(e){
                	
                	setUpBlurLayer();
                	
                	var regform = jQuery('#reg-form-container');
                	
				    //getting height and width of the message box
				    var height = jQuery(regform).height();
				    var width = jQuery(regform).width();
				    //calculating offset for displaying popup message
				    leftVal=e.pageX-(width/4)+"px";
				    topVal=e.pageY+10+"px"; 
				    //show the popup message and hide with fading effect
				    jQuery('#reg-form-container').css({left:leftVal,top:topVal}).show();
				    if (jQuery('#regForm').is(":hidden")){ jQuery('#regForm').show(); }
				    jQuery("#reg-form-container").dropShadow({left: 2, top: 10, opacity: 0.5, blur: 3});
				    fillRegValues(this.hash);
				    jQuery('#bg-click').click( function(){
				    	lostFocus();
				    });

				}); 

				jQuery('#globalForm').ajaxForm(function() { 
					jQuery('#globalForm').hide();
                	jQuery('#globalSent').show("fast");
                	setTimeout('jQuery("#globalSent").hide();jQuery("#global-form-container").fadeOut("medium");jQuery("#bg-click").hide();jQuery(".dropShadow").fadeOut("medium")', 2000); 
            	}); 


                jQuery(".contactlink").click(function(e){
                	
                	setUpBlurLayer();
                	
                	var gcform = jQuery('#global-form-container');
                	
				    //getting height and width of the message box
				    var height = jQuery(gcform).height();
				    var width = jQuery(gcform).width();
				    //calculating offset for displaying popup message
				    leftVal=e.pageX-(width/4)+"px";
				    topVal=e.pageY+10+"px"; 
				    //show the popup message and hide with fading effect
				    jQuery('#global-form-container').css({left:leftVal,top:topVal}).show();
				    if (jQuery('#globalForm').is(":hidden")){ jQuery('#globalForm').show(); }
				    jQuery("#global-form-container").dropShadow({left: 2, top: 10, opacity: 0.5, blur: 3});
				    jQuery('#bg-click').click( function(){
				    	globalLostFocus();
				    });

				}); 
				
				function setUpBlurLayer(){
                	//set up bg window
                	var w = jQuery(window).width();
	                var h = jQuery(window).height(); 
                	
                	jQuery('#bg-click').css({width: w, height: h});
                	jQuery('#bg-click').show();				
				}
				
				function fillRegValues(courseid){
				    var text = jQuery(courseid+" h4").text();
      				jQuery("#CourseName").val(text);
				}
								
				function lostFocus(event) {
            		window.setTimeout("jQuery('#reg-form-container').hide();jQuery('#bg-click').hide();jQuery('.dropShadow').hide();", 200);
        		}
				function globalLostFocus(event) {
            		window.setTimeout("jQuery('#global-form-container').hide();jQuery('#bg-click').hide();jQuery('.dropShadow').hide();", 200);
        		}

            });
            
			function closeReg(){
				jQuery('#reg-form-container').hide();
				jQuery('.dropShadow').hide();
				jQuery('#bg-click').hide();
			}
			function closeGlobal(){
				jQuery('#global-form-container').hide();
				jQuery('.dropShadow').hide();
				jQuery('#bg-click').hide();
			}
		
			function closeCall(){
				jQuery('#call-container').hide();
				jQuery('.dropShadow').hide();
				jQuery('#bg-click').hide();
			}
			
			function closeMail(){
				jQuery('#contact-form-container').hide();
				jQuery('.dropShadow').hide();
				jQuery('#bg-click').hide();
			}

