$(document).ready(function() {
  // we'll put our code here
  // $('#calendar').show();
  
	$('.calendar').hide();
	$('.userMain').corner();
	

});

function BackgroundChanger(pThisID) {

}
  $(function(){ 
  settings = {
          tl: { radius: 20 },
          tr: { radius: 20 },
          bl: { radius: 20 },
          br: { radius: 20 },
          antiAlias: true,
          autoPad: true,
          validTags: ["div"]
      }
  // $('.calendar').corner(settings);
  });
function SlideCalendar(){
$('.calendar').toggle();
//	$('.calendar').animate({ height: 20, width: 50 }, 1500);
//	$('.calendar').html("<a href=\"#\" onclick=\"ShowCalendar();return false;\"> Calendar</a>").corner();
	 
}
function ShowCalendar(){
	$('#calendar').addClass("calendar").removeClass("hidden");
	$('.calendar').corner();
	  $(window).scroll(function() {    $('.calendar').css('top', $(this).scrollTop() + "px");});
	$('.calendar').animate({ height: 150, width: 350 }, 1500);
	$('.calendar').html("<a href=\"#\" onclick=\"SlideCalendar();return false;\"> Calendar</a>").corner();
	 
}

// Rollover script (selfcontained.us): 
$(function() { 
	$('.rollover').hover(function() {       
		var currentImg = $(this).attr('src');       
		$(this).attr('src', $(this).attr('hover')); 
		$(this).attr('hover', currentImg); 
		}, function() {      
		var currentImg = $(this).attr('src');      
		$(this).attr('src', $(this).attr('hover'));         
		$(this).attr('hover', currentImg); 
	}); 
});

function GetCalendarAdd() {
   //var vLink = location.protocol + "//" + location.host + "/_Include/calendar_standalone.php";
    //var obj = window.open("http://overminds.org/_Include/calendar_standalone.php","Add calendar item","menubar=no,width=640,height=250,toolbar=no");
	open('http://overminds.org/_Include/calendar_standalone.php','Calendar','menubar=no,width=840,height=320,toolbar=no');
}