	/*
	function submitForm(theForm) {
	   var url = theForm.action;
	   var windowname = "constantcontact";
	   var newsletter_popup = window.open(url, windowname, "height=600, width=800");
	   theForm.submit();
	   newsletter_popup.focus();

	} // function submitForm(formName)
	*
	*button: onclick="submitForm(document.ccoptin)"
	*/
( function ($) {
    //jQuery.noConflict();
    $(document).ready ( function() {
	    $('#ccoptin_form').attr('target','iframe_name');
	    $('#ccoptin_button').click( function () {
		confirm_window();
		$('#ccoptin_form').submit( function() {
		    //window.open('','optinwindow','width=600, height=400');
		    //var optin_window = window.open( $(this).attr('target'), '_blank');
		    //$(this).target = 'optinwindow';
		    //optin_window.focus();

    
		    $('#iframe_window').src(''); //commented out, get a blank iframe, uncommented, get error that it's not a function but it works
		    //for now, as of 6/22/10, 12:30pm, re: Mike - leaving as is.
		     //$('#iframe_window').attr('src'); //no error but no content
		    // var action = $(this).attr('action');
		     //alert(action);
		     //$('#iframe_window').attr('src',''); //right site but error page
		    return false;
		});
	    });

    //MODAL WINDOW
	    //if close button is clicked
	    $('.window .close').click(function () {
		    $('#mask, .window').hide();
	    });

	    //if mask is clicked
	    $('#mask').click(function () {
		    $(this).hide();
		    $('.window').hide();
	    });


   //Fake Asych GoDaddy
	    $("#siteseal_gd_1_h_m_dv_iv").appendTo($("#siteseal"));

    });

    function confirm_window() {
	    //Get the screen height and width
	    var maskHeight = $(document).height();
	    var maskWidth = $(window).width();

	    //Set height and width to mask to fill up the whole screen
	    $('#mask').css({'width':maskWidth,'height':maskHeight});

	    //transition effect
	    $('#mask').fadeIn(1000);
	    $('#mask').fadeTo("slow",0.8);

	    //Get the window height and width
	    var winH = $(window).height();
	    var winW = $(window).width();

	    //Set the popup window to center
	    $('#dialog').css('top',  winH/2.5-$('#dialog').height()/2);
	    $('#dialog').css('left', winW/2-$('#dialog').width()/2);

	    //transition effect
	    $('#dialog').fadeIn(2000);
    }
} ) ( jQuery ); 








// jQuery Code added by MRG on 12/10/10 to support .fadeTo function (use class="image-fade" to invoke this function) 

jQuery(document).ready(function($) {

	//	Image fade using jquery

	$('.image-fade').hover(function(){
		$(this).fadeTo("normal", 0.50); // This should set the opacity to 50% on hover
	},function(){
		$(this).fadeTo("normal", 1.0); // This should set the opacity back to 100% on mouseout
	});



  }); 	//     end of ready function

