	function Slide( oId, oIdToggle, callback)
	{
		if ($(oId).is(":hidden")) {
			$(oId).slideDown("slow", function() {
				if( $(oIdToggle))
				{
					$(oIdToggle).show();
				}
				if( callback ) {
					callback();
				}
			});
		} else {
			if( $(oIdToggle)) {
				$(oIdToggle).hide();
			}

			//$( oId).slideUp("slow");
			$( oId).hide();
		}
	}
	
	function ShowComments( postid )
	{

		$('#commentl-' + postid).toggle();
		
		if( $("#commentl-" + postid ).is(":hidden") ) {
			$("#show-" + postid ).html( "Show the comments");
		}
		else
		{
			$("#show-" + postid ).html( "Hide the comments");
		}
	}	
	
	function openWindow(theURL,winName,w,h,scrollbars) 
	{ 
	  LeftPosition=(screen.width)?(screen.width-w)/2:100;
	  TopPosition=(screen.height)?(screen.height-h)/2:100;
	  
	  settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scrollbars+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	  URL = theURL;
	  window.open(URL,winName,settings);
	}
	