
jQuery(document).ready(function(){
/*
	jQuery("#show_subscribe").click(function(){
		jQuery("#subscribe_form").slideToggle("fast", function(){
			jQuery("#unsubscribe").fadeOut("slow");
			jQuery("#subscribe").fadeIn("slow");
		});
	})
*/
//	jQuery("#show_subscribe").bind("mouseover",function(){
	jQuery("#show_subscribe").click(function(){
		jQuery("#unsubscribe").slideUp("normal");
		jQuery("#subscribe").slideDown("normal");
/*
		jQuery("#unsubscribe").slideUp("normal", function(){
			jQuery("#subscribe").slideDown("slow");
			jQuery("#unsubscribe").hide();
		});
*/
	})
//	jQuery("#show_unsubscribe").bind("mouseover",function(){
	jQuery("#show_unsubscribe").click(function(){
		jQuery("#subscribe").slideUp("normal");
		jQuery("#unsubscribe").slideDown("normal");
/*
		jQuery("#subscribe").slideUp("normal", function(){
			jQuery("#unsubscribe").slideDown("slow");
			jQuery("#subscribe").hide();
		});
*/
	})
//	jQuery("#subscribe_container").bind("mouseleave",function(){
	jQuery(".close_subscribe").click(function(){
//		alert('mouseout');
//        setTimeout(function(){
				jQuery("#subscribe").slideUp("normal");
				jQuery("#unsubscribe").slideUp("normal");
//        },500)
	})
/*
	jQuery("#subscribe_container").bind("mouseenter",function(){
		if(jQuery("#subscribe").css("display")!="none"){
			jQuery("#subscribe").fadeIn("fast");
//			alert('subscribe - display - else');
		}
		if(jQuery("#unsubscribe").css("display")!="none"){
			jQuery("#unsubscribe").fadeIn("fast");
//			alert('unsubscribe - display - else');
		}
	})
*/
})
function switch_subscribe(){
	jQuery("#show_subscribe").click(function(){
		jQuery("#unsubscribe").slideUp("fast", function(){
			jQuery("#subscribe").slideDown("slow");
		});
	})
	jQuery("#show_unsubscribe").click(function(){
		jQuery("#subscribe").slideUp("fast", function(){
			jQuery("#unsubscribe").slideDown("slow");
		});
	})
}
/*
function checkSelected()
{
	foundchecked = false;
	for (c=0;c<document.Form.elements.length;c++)
	{
		if (document.Form.elements[c].type=='checkbox')
		{
			if (document.Form.elements[c].checked)
			{
				foundchecked = true;
			}
		}
	}
	
	if (foundchecked==false)
	{
		alert('Please select a module to download.')
	}
	return foundchecked
}
*/
	