function getEleId(id)
{var ele=document.getElementById(id);
return ele;
}
$dShow=1
function showDebug(){

	$("#debug").toggle();
}

$(document.getElementById('keybox')).ready(function() {
  if ($('#keybox').length) 
	{
		$('#tokeybox').append($('#keybox').html());
		$('#tokeybox').addClass('keybox');
		$('#keybox').remove();
	}
});




$(document).ready(function() {

		$("#show-debug").click(function(){  $("#debug").toggle(); });
	 $("#search-input").focus();	
   $(".hash").click(function() {
    document.location.href=location.hostname+"?hash="+$(this).attr("id"); 
   });
   
    $('.hash').hover(function(){
               $(this).addClass('over');
    }, function() {
        $(this).removeClass('over');
    });

	$("#readmore").click(function(){ 
		$(this).css("display","none");
	 	$("#more").slideDown(300);
	 });
		
	if (typeof verifyAge != 'undefined') 
	{
		$('#overlay').css({ opacity: 0.8, width: '100%', height: $(document).height()+'px' });
	}
	//$("#tokeybox").css("paddingBottom",$("#keybox").innerHeight()+10+"px");
	//alert($("#keybox").innerHeight()) 
 });

	function setVerifyAge(aDomain)
	{
		document.cookie="verifyAge=1 ; path=/; domain="+aDomain+";";
		$('#overlay').remove();
		$('#verify-box').remove();
	}







