$(document).ready(function(){
// bind 'myForm' and provide a simple callback function 
     $('#myForm').ajaxForm(function() { 
                alert("Thank you for your comment!"); 
     }); 
//Placeholder
	$(":text").placehold()
//Dropdown
	$(".dropdown").hide();
	$("#menu li").hover(
      function () {
        $(this).find(".dropdown").show();
      }, 
      function () {
        $(this).find(".dropdown").hide();
      }
    );
//sroll 
		
	$('.nuoli-down').click(function(ev) {
	    singlepostheight = $(this).siblings('.raami').find('.post').attr('offsetHeight');
		postsheight = $(this).siblings('.raami').find('.posts').attr('offsetHeight');
		currenttop = parseInt($(this).siblings('.raami').find('.posts').css('marginTop'));
		if(currenttop > (-1*postsheight+singlepostheight) && ev.detail == 1){
		$(this).siblings('.raami').find('.posts').animate({ marginTop : "-="+singlepostheight },1000);
		}
		});
	$('.nuoli-up').click(function(ev) {
		singlepostheight = $(this).siblings('.raami').find('.post').attr('offsetHeight');
		postsheight = $(this).siblings('.raami').find('.posts').attr('offsetHeight');
		currenttop = parseInt($(this).siblings('.raami').find('.posts').css('marginTop'));
       	if(currenttop < 0 && ev.detail == 1){
      	$(this).siblings('.raami').find('.posts').animate({ marginTop : "+="+singlepostheight},1000);
      	}
       	});
});