function getID(id) {
	return document.getElementById(id);
}

function batchShowDiv(tName,fName,cssname,cid,num) {
	for (var i = 1; i <= num; i++) {
		getID(tName+i).className = cssname+"2";
		getID(fName+i).style.display = "none";
	}
	getID(tName+cid).className = cssname+"1";
	getID(fName+cid).style.display = "block";
}

function JumpFriendLink(link) {
	if (link != "")
		window.open(link, "_blank");
}

jQuery(document).ready(function(){
	var height1 = jQuery("#divHotList").height(), height2 = jQuery("#divContent").height();
//	alert(height1 + "--" + height2);
	if (height1 > height2) {
		jQuery("#divContent div.center_nn").height(height1);
		jQuery("#divContent").height(height1 + 260);
	}
	else
		jQuery("#divHotList").height(height2 - 260);
});
