function getSize() {
	var y;
    if (self.innerHeight) // all except Explorer
	{
				y = self.innerHeight;
	}
	else if (document.documentElement && document.documentElement.clientHeight)
				// Explorer 6 Strict Mode
	{
				y = document.documentElement.clientHeight;
	}
	else if (document.body) // other Explorers
	{
				y = document.body.clientHeight;
	}

// x = x minus header - footer
    y = y-100-190;

    return y
}


function slideInOut(whereto,inout) {
    whereto = "#" + whereto;
    var they = getSize()+"px";
 //   $(".entry").css({height:they, overflow:"hidden" });
    $(whereto).css({height:"auto",  overflow:"none" });  // doesn work: min-height: they,
}

function commenthere(whereto,id) {
    whereto = "#" + whereto;
    what = "index.php?p=" + id +"&ajax=ajax";
    $(whereto).load(what,{ name: 'John'},$(whereto).fadeIn(1000));
}

function flipbuylinksout() {

 $("#singlebuylinks").show("slow");
}

function flipbuylinksin() {
 $("#singlebuylinks").hide("slow");
}
