function prepareMovieHoverEvents(){
	jQuery("li.movielines").hover(
	function() {
		this.className='liOver';
		jQuery('#'+this.id+' span.rmlink').css('display', 'inline');
		},
	function() {
		this.className='liOut';
		jQuery('#'+this.id+' span.rmlink').css('display', 'none');
		}
	);
}
jQuery(document).ready(function(){
	jQuery("#main_demo").hover(
		function(){jQuery("#main_demo_inner").animate({marginLeft:"-190px"},850);},
		function(){jQuery("#main_demo_inner").animate({marginLeft:"0"},850);}
	);
	
	jQuery("#general").css({position:"relative"});

	jQuery("#sysMsg").animate({backgroundColor:"#fffac6"},2500);
	
	jQuery("#actionbox").draggable({ handle: 'h2', cursor: 'default' });

	jQuery("span.inf").append("<em></em>");
	jQuery("span.inf").hover(function() {
		jQuery(this).find("em").animate({opacity: "show", right: "20"}, "normal");
        var hoverText = jQuery(this).attr("title");
        jQuery(this).find("em").text(hoverText);
        jQuery(this).attr( { title: "" });
		}, function() {
			var hoverText = jQuery(this).find("em").text();
			jQuery(this).find("em").animate({opacity: "hide", right: "50"}, "normal");
			jQuery(this).attr({ title: hoverText });
		});

	jQuery("#explanationMore").click(function(){
		jQuery("#explanationHidden").slideToggle("slow");
		jQuery("#explanationMore").css({display: 'none'});
		jQuery("#explanationLarge p").animate({color: '#248'}, 'slow');
		});
	jQuery("#explanationLess").click(function(){
		jQuery("#explanationHidden").slideToggle("slow");
		jQuery("#explanationMore").css({display: 'inline'});
		jQuery("#explanationLarge p").animate({color: '#999'}, 'slow');
		});
		
	// adding Remove & More links to movieline
	prepareMovieHoverEvents();

		
	// adding Remove user's own list
		jQuery("div.userOwnLink").hover(
		function() {
			jQuery('#'+this.id+' span.rmlink').css('display', 'inline');
			},
		function() {
			jQuery('#'+this.id+' span.rmlink').css('display', 'none');
			}
		);

	// adding Remove user's own review
		jQuery("div.reviews").hover(
		function() {
			jQuery('#'+this.id+' span.rmlink').css('display', 'inline');
			},
		function() {
			jQuery('#'+this.id+' span.rmlink').css('display', 'none');
			}
		);

		jQuery("div.childrenReviews").hover(
		function() {
			jQuery('#'+this.id+' span.rmlink').css('display', 'inline');
			},
		function() {
			jQuery('#'+this.id+' span.rmlink').css('display', 'none');
			}
		);
		
		
});