
$(function(for_tizers){    
var t_block = $('.t_block')

	t_block.hover(function(){  
   $(this).children('.t_text').stop().animate({"top": '0px'}, 100);}, 
   function(){  
   $(this).children('.t_text').stop().animate({"top": '105px'}, 600);}); 
    
	t_block.click(function(){
		window.location=$(this).find("a").attr("href"); return false;
});
  
});  

$(function (for_corners) {
  $('div[class*=corner]').append('<abbr class="tr"><abbr class="tl"></abbr></abbr><abbr class="br"><abbr class="bl"></abbr></abbr>');
  $('div[class*=c_black]').append('<abbr class="tr"></abbr><abbr class="tl"></abbr><abbr class="br"></abbr><abbr class="bl"></abbr>');
  $('div[class*=c_comm]').append('<abbr class="tr"></abbr><abbr class="tl"></abbr><abbr class="br"></abbr><abbr class="bl"></abbr>');
  });
 
$(function for_comments () {
	$(".comm").hover(
			function() { $(this).addClass("hover"); },
			function() { $(this).removeClass("hover"); }
		);
	});
  
$(function inputs_style () {
	$('input:text:not(#story), input:password, input:file, select, textarea')
		 .addClass('inputs')
	.focus(function(){
		$(this).addClass("focus");
		$(this).parents('label').addClass("over");
	})
	.blur(function(){
		$(this).removeClass("focus");
		$(this).parents('label').removeClass("over");
	})
});





function simple_tooltip(target_items, name){
 $(target_items).each(function(i){
		$("body").append("<div class='"+name+"' id='"+name+i+"'><p>"+$(this).attr('title')+"</p></div>");
		var tooltip = $("#"+name+i);
		if($(this).attr("title") != "" && $(this).attr("title") != "undefined" ){
		$(this).removeAttr("title").mouseover(function(){
				tooltip.css({opacity:0.9, display:"none"}).fadeIn(30);
		}).mousemove(function(kmouse){
				tooltip.css({left:kmouse.pageX+15, top:kmouse.pageY+15});
		}).mouseout(function(){
				tooltip.fadeOut(10);
		});
		}
	});
}
$(function () {
simple_tooltip(".ttp_lnk a","tooltip");
});
