$(document).ready(function(){
	$("#menu_inner a").blend();
});

$(document).ready(function() {
    $("#comment-post").each(function() {
        $(".comment-hide").hide();

		$("#comment-post #comment").click(function() {
 
            $(this).parent().children(".comment-hide").show(500);
			$(".close").show(500);
        });
        
		$(".close .close-inner").click(function() {
		
			$(".close").hide(100);
			

		});
		
    });



});


$(document).ready(function() {
    $(".comment-post").each(function() {
        $(".comment-hide-1").hide();
		$(".comment-hide-2").hide();
		$(".comment-hide-3").hide();
		$(".comment-hide-4").hide();
		$(".comment-hide-5").hide();
		$(".comment-hide-6").hide();
		$(".comment-hide-7").hide();
		$(".comment-hide-8").hide();
		$(".comment-hide-9").hide();
		$(".comment-hide-10").hide();		
		$(".comment-hide-11").hide();
		$(".comment-hide-12").hide();		
		$(".comment-hide-13").hide();
		$(".comment-hide-14").hide();		
		$(".comment-hide-15").hide();
		$(".comment-hide-16").hide();		
		$(".comment-hide-17").hide();
		$(".comment-hide-18").hide();		
		$(".comment-hide-19").hide();				
		$(".comment-hide-20").hide();
		$(".comment-hide-21").hide();		
		$(".comment-hide-22").hide();		
		$(".comment-hide-23").hide();
		$(".comment-hide-24").hide();
		$(".comment-hide-25").hide();		
		$(".comment-hide-26").hide();			
		$(".comment-hide-27").hide();		
		$(".comment-hide-28").hide();
		$(".comment-hide-29").hide();		
		$(".comment-hide-30").hide();
		$(".comment-hide-31").hide();
		
		$(".comment-post .comment1").click(function() {
            $(this).parent().children(".comment-hide-1").show(1);
			$(".close").show(1);
        });
		$(".comment-post .comment2").click(function() {
			$(this).parent().children(".comment-hide-2").show(1);
			$(".close").show(1);
        });		
		$(".comment-post .comment3").click(function() {
			$(this).parent().children(".comment-hide-3").show(1);
			$(".close").show(1);
        });		
		$(".comment-post .comment4").click(function() {
			$(this).parent().children(".comment-hide-4").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment5").click(function() {
			$(this).parent().children(".comment-hide-5").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment6").click(function() {
			$(this).parent().children(".comment-hide-6").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment7").click(function() {
			$(this).parent().children(".comment-hide-7").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment8").click(function() {
			$(this).parent().children(".comment-hide-8").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment9").click(function() {
			$(this).parent().children(".comment-hide-9").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment10").click(function() {
			$(this).parent().children(".comment-hide-10").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment11").click(function() {
			$(this).parent().children(".comment-hide-11").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment12").click(function() {
			$(this).parent().children(".comment-hide-12").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment13").click(function() {
			$(this).parent().children(".comment-hide-13").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment14").click(function() {
			$(this).parent().children(".comment-hide-14").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment15").click(function() {
			$(this).parent().children(".comment-hide-15").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment16").click(function() {
			$(this).parent().children(".comment-hide-16").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment17").click(function() {
			$(this).parent().children(".comment-hide-17").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment18").click(function() {
			$(this).parent().children(".comment-hide-18").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment19").click(function() {
			$(this).parent().children(".comment-hide-19").show(1);
			$(".close").show(1);
        });				
		$(".comment-post .comment20").click(function() {
			$(this).parent().children(".comment-hide-20").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment21").click(function() {
			$(this).parent().children(".comment-hide-21").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment22").click(function() {
			$(this).parent().children(".comment-hide-22").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment23").click(function() {
			$(this).parent().children(".comment-hide-23").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment24").click(function() {
			$(this).parent().children(".comment-hide-24").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment25").click(function() {
			$(this).parent().children(".comment-hide-25").show(1);
			$(".close").show(1);
        });					
		$(".comment-post .comment26").click(function() {
			$(this).parent().children(".comment-hide-26").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment27").click(function() {
			$(this).parent().children(".comment-hide-27").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment28").click(function() {
			$(this).parent().children(".comment-hide-28").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment29").click(function() {
			$(this).parent().children(".comment-hide-29").show(1);
			$(".close").show(1);
        });			
		$(".comment-post .comment30").click(function() {
			$(this).parent().children(".comment-hide-30").show(1);
			$(".close").show(1);
        });	
		$(".comment-post .comment31").click(function() {
			$(this).parent().children(".comment-hide-31").show(1);
			$(".close").show(1);
        });	
		
		$(".comment-post .calendar_text_inner").click(function() {
		$(".comment-hide-1").hide(1);
		$(".comment-hide-2").hide(1);	
		$(".comment-hide-3").hide(1);	
		$(".comment-hide-4").hide(1);	
		$(".comment-hide-5").hide(1);	
		$(".comment-hide-6").hide(1);	
		$(".comment-hide-7").hide(1);		
		$(".comment-hide-8").hide(1);
		$(".comment-hide-9").hide(1);
		$(".comment-hide-10").hide(1);		
		$(".comment-hide-11").hide(1);
		$(".comment-hide-12").hide(1);		
		$(".comment-hide-13").hide(1);
		$(".comment-hide-14").hide(1);		
		$(".comment-hide-15").hide(1);
		$(".comment-hide-16").hide(1);		
		$(".comment-hide-17").hide(1);
		$(".comment-hide-18").hide(1);		
		$(".comment-hide-19").hide(1);				
		$(".comment-hide-20").hide(1);
		$(".comment-hide-21").hide(1);				
		$(".comment-hide-22").hide(1);		
		$(".comment-hide-23").hide(1);
		$(".comment-hide-24").hide(1);
		$(".comment-hide-25").hide(1);		
		$(".comment-hide-26").hide(1);		
		$(".comment-hide-27").hide(1);		
		$(".comment-hide-28").hide(1);
		$(".comment-hide-29").hide(1);		
		$(".comment-hide-30").hide(1);
		$(".comment-hide-31").hide(1);
		
		});
		
    });



});









/*
var temp, temp2, cookieArray, cookieArray2, cookieCount;

function initiate(){

  cookieCount=0;

  if(document.cookie){

    cookieArray=document.cookie.split(";");
    cookieArray2=new Array();

    for(i in cookieArray){
      cookieArray2[cookieArray[i].split("=")[0].replace(/ /g,"")]=cookieArray[i].split("=")[1].replace(/ /g,"");
    }

  }

  cookieArray=(document.cookie.indexOf("state=")>=0)?cookieArray2["state"].split(","):new Array();
  temp=document.getElementById("containerul");
  for(var o=0;o<temp.getElementsByTagName("li").length;o++){
    if(temp.getElementsByTagName("li")[o].getElementsByTagName("ul").length>0){
      temp2                                = document.createElement("span");
      temp2.className                        = "symbols";
      temp2.style.backgroundImage        = (cookieArray.length>0)?((cookieArray[cookieCount]=="true")?"url(images/minus01.gif)":"url(images/plus01.gif)"):"url(images/plus01.gif)";
      temp2.onclick=function(){
        showhide(this.parentNode);
        writeCookie();
      }

      temp.getElementsByTagName("li")[o].insertBefore(temp2,temp.getElementsByTagName("li")[o].firstChild)

      temp.getElementsByTagName("li")[o].getElementsByTagName("ul")[0].style.display = "none";

      if(cookieArray[cookieCount]=="true"){
        showhide(temp.getElementsByTagName("li")[o]);
      }

      cookieCount++;

    }
    else{

      temp2                                = document.createElement("span");
      temp2.className                        = "symbols";
      temp2.style.backgroundImage        = "url(images/page01.gif)";

      temp.getElementsByTagName("li")[o].insertBefore(temp2,temp.getElementsByTagName("li")[o].firstChild);

    }

  }

}



function showhide(el){

  el.getElementsByTagName("ul")[0].style.display=(el.getElementsByTagName("ul")[0].style.display=="block")?"none":"block";

  el.getElementsByTagName("span")[0].style.backgroundImage=(el.getElementsByTagName("ul")[0].style.display=="block")?"url(images/minus01.gif)":"url(images/plus01.gif)";

}



function writeCookie(){                // Runs through the menu and puts the "states" of each nested list into an array, the array is then joined together and assigned to a cookie.

  cookieArray=new Array()

  for(var q=0;q<temp.getElementsByTagName("li").length;q++){

    if(temp.getElementsByTagName("li")[q].childNodes.length>0){
      if(temp.getElementsByTagName("li")[q].childNodes[0].nodeName=="SPAN" && temp.getElementsByTagName("li")[q].getElementsByTagName("ul").length>0){

        cookieArray[cookieArray.length]=(temp.getElementsByTagName("li")[q].getElementsByTagName("ul")[0].style.display=="block");

      }
    }

  }

  document.cookie="state="+cookieArray.join(",")+";expires="+new Date(new Date().getTime() + 365*24*60*60*1000).toGMTString();

}*/
