// Main Data TD 

id="data_td1";

id2= "data_td2"

top_height =152;

bottom_height=45;



function resize1(){

	document.getElementById(id).style.height = (document.documentElement.clientHeight - (top_height + bottom_height))+"px";

	if(document.getElementById(id2)){

		document.getElementById(id2).style.height = (document.documentElement.clientHeight - (top_height + bottom_height))+"px";

	}

}





mnu_count=6;

mnu_start_name="tl";

class1 = "top_mnu_active";



function top_link1(){	

	for(i=1; i<=mnu_count;i++){

		var id_link1 = mnu_start_name+i;

		var id_link = document.getElementById(id_link1);

		if(document.location.href==id_link.href){

			id_link.className = class1;

		}

		

	}

}



mnu_count2=20;

mnu_start_name2="lm";

class2 = "l_mnu1_active";



function top_link2(){	

	for(i=1; i<=mnu_count2;i++){

		var id_link1 = mnu_start_name2+i;

		var id_link = document.getElementById(id_link1);

		if(document.location.href==id_link.href){

			id_link.className = class2;

		}

		

	}

}



window.onload=function(){ 

	//resize1(); 

	var m2=mnu_start_name2+"1";

	if(document.getElementById(m2)){

		top_link2();

	}

	top_link1();

}

//window.onresize = function(){ resize1(); }
