	$.easing.easeInOutCubic = function (x, t, b, c, d) {////
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	};
	
	$.easing.easeOutCubic = function (x, t, b, c, d) {////
		return c*((t=t/d-1)*t*t + 1) + b;
	}
	
	function scroll() {
		$(window).scroll(function() {
		});
	}
	
	
	/////twitter feed
	function tweet(){
		$(".tweet").tweet({
            username: "tigraba",
            join_text: "auto",
            avatar_size: 0,
            count: 1,
            auto_join_text_default: "", 
            auto_join_text_ed: "",
            auto_join_text_ing: "",
            auto_join_text_reply: "",
            auto_join_text_url: "",
            loading_text: ""
        });
	}
	//// read more rollover
	function readMore(){
		$("a.titleLink").hover(function() {
			$(this).parent().parent().next().css("display","block");
		})
		$("a.replace").mouseout(function() {
			$(this).css("display","none");
		})
		$("a.replace").mouseover(function() {
			//alert("wassup")
			$(this).css("display","block");
		})
	}
	
	function initiate(siteURL){
	////
	
	$("div.catContainer #search").click(function () { 
			if( $(this).attr('value') == 'search...' ){
				$(this).val('')
			}
      		; 
    	});
    	$("div.catContainer #search").blur(function(){
    		if( $(this).attr('value') == '' ){
				$(this).val('search...')
			}
      		; 
    	});
    	$("div.previous a").mouseover(function() {
    		$(this).parent().stop().animate(
			{backgroundPosition: 0}, 
			{duration:1000,
             easing: 'easeOutCubic'})
    	});
    	$("div.previous a").mouseout(function() {
    		$(this).parent().stop().animate(
			{backgroundPosition: -180}, 
			{duration:1000,
             easing: 'easeInOutCubic'})
    	});
    	$("div.next a").mouseover(function() {
    		$(this).parent().stop().animate(
			{backgroundPosition: -540}, 
			{duration:1000,
             easing: 'easeOutCubic'})
    	});
    	$("div.next a").mouseout(function() {
    		$(this).parent().stop().animate(
			{backgroundPosition: -360}, 
			{duration:1000,
             easing: 'easeInOutCubic'})
    	});
    	
    	////
    	
    			$("div.catContainer").css("top", $("div.postContainer:first").offset().top - 27);
		//alert($("div.catContainer li a").attr("id"))
		$("div.catContainer li a").each(function(){
			//alert($(this).attr("id"))
			//alert($(this).text())
			$(this).attr("id", $(this).text().replace(/ /g,'-'))
		})

		idStore = null;
		
		//
		
		$("div.postContainer").hover(
   				function() {
   				
   				/////////////////tag stuf///////////
   				
   				//check if what you're hovering on is the same as last time
   				if($(this).attr('id') != idStore)
   				{
   				
   					//
   					
   						//checks if there is an a.tag present
   						//if there us it removes it (face out) and creates a new one based on the slected post
   						//if not it generates one from the selected post
   						//also generates tag friendly links, need to change WordPress settings to accomodate for this to work properly
   						if ( $('a.tag').length ){
								var currObj = $(this).children("span.tags")
								
								$("span.hash").stop().fadeOut(400);
								$('a.tag').stop().fadeOut(400, function() {
								finished = true;
									$('a.tag').parent().remove()
									
									
									if ( $('a.tag').length ){
									} else {
										currObj.each (
											function(){
												$("#search").after("<div class='popl'><span class='hash' style='display:none'># </span><a href='"+ siteURL +"/tag/" + $(this).text().replace(/ /g,'-') +"' class='tag' style='display : none;'>" + $(this).text() + "</a></div>");
												
											}
										)
										//
										Cufon.replace('span.hash');
										Cufon.replace('a.tag');
										$("span.hash").stop().fadeIn(400)
										$("a.tag").stop().fadeIn(400)
									}
								})
								
						} else {
							$(this).children("span.tags").each (
								function(){
									$("#search").after("<div  class='popl'><span class='hash' style='display:none'># </span><a href='"+ siteURL +"/tag/" + $(this).text().replace(/ /g,'-') +"' class='tag' style='display : none;'>" + $(this).text() + "</a></div>");
								})
							Cufon.replace('span.hash');
							Cufon.replace('a.tag');
							$("span.hash").stop().fadeIn(400)
							$("a.tag").stop().fadeIn(400)
						}
							
							//
							
							////////////////////cat stuf///////////////
   				
   				//vars
   					idStore = $(this).attr('id')
   					var theOffset = $(this).offset();
					var topOffset = theOffset.top;
				
					$("div.catContainer li a").addClass("close").removeClass("open").parent().stop().animate({ backgroundColor: "#fffffb" }, 'fast')
					$("div.catContainer #"+$(this).attr('class').split(' ').slice(-1)).addClass("open").removeClass("close").parent().stop().animate({ backgroundColor: "#F0F052" }, 'fast')
   					$("div.catContainer").stop().animate( { top : topOffset - 27}, {
                    		duration: 800,
                    		easing: 'easeInOutCubic'
                	} )
   				}
   				
   				////////////////////end tag stuf///////////////
   				
   				
   				}
   			);
    	
    	////
	}
	