if(top != self){	top.location.href = self.location.href;	}
window.onload = function(){
	if(window.innerHeight != undefined){
		var tmp = window.innerHeight - document.getElementById("wrapper").offsetHeight;
		if(tmp > 20){
			document.getElementById("wrapper_bottom").style.height = tmp + "px";
		}else{
			document.getElementById("wrapper_bottom").style.height = 20 + "px";
		}
	}else{
		var tmp = document.body.clientHeight - document.getElementById("wrapper").offsetHeight;
		if(tmp > 20){
			document.getElementById("wrapper_bottom").style.height = tmp + "px";
		}else{
			document.getElementById("wrapper_bottom").style.height = 20 + "px";
		}
	}
}

$(function(){
	$("table#obi_table tr td div.hover_thumbnail").hover(function(){
		$("div.bigthumbnail", $(this)).css({ display: "block" });
	}, function(){
		$("div.bigthumbnail", $(this)).css({ display: "none" });
	});

	$("table#obi_table tr").hover(function(){
		$(this).addClass("hover");
	}, function(){
		$(this).removeClass("hover");
	});

	$("table#obi_table tr").click(function(){
		var gohref = $("td > div > a[@href]", this).get();
		if(gohref != ""){
			window.location.href = gohref;
		}
	});
});
