var isIE=!!(navigator.userAgent.toLowerCase().indexOf('msie')>=0&&document.all);var isOpera=!!(window.opera&&document.getElementById);var isMoz=(!isIE);var ini_top;var zIndex=10;
function uprise(id,sh){

	shauprise("web");
	shauprise("id");
	shauprise("about");
	shauprise("contact");


	id='#'+id;
	if($(id).css('position')!='absolute'){
		$(id).css('position','absolute');
		$(id).css('left',0);
		$(id).css('top',$('.maintable').get(0).offsetHeight+0+'px');
		ini_top=$('.maintable').get(0).offsetHeight+0
	}	
		
		if(parseInt($(id).css('height'))>1){
			new_height=0;
			new_top=ini_top;
		} else { 
		$(id).css('z-index',++zIndex);
		new_height=0+$(id+' > .content').get(0).offsetHeight;
		if(new_height<300){new_height=300;
			if(sh=="m1"){
			document.getElementById(sh).className = "OnClickMenuBordA";
			}
			else if(sh=="m2"){
			document.getElementById(sh).className = "OnClickMenuBordB";
			}
			else if(sh=="m3"){
			document.getElementById(sh).className = "OnClickMenuBordC";
			}
			else if(sh=="m4"){
			document.getElementById(sh).className = "OnClickMenuBordD";
			}
		}
		else {
			document.getElementById("m1").className = "menu_li_1";
			document.getElementById("m2").className = "menu_li_2";
			document.getElementById("m3").className = "menu_li_3";
			document.getElementById("m4").className = "menu_li_4";
		}
		if(!isMoz)new_height+=0;
		new_top=parseInt($(id).css('top'))-new_height}$(id).animate({
			height:new_height+'px',top:new_top+'px'
			},500)}
		function down(id){id='#'+id;$(id).animate({height:'1px',top:ini_top+'px'},1000)}
		
		
		
		
		
function shauprise(id){


document.getElementById("m1").className = "menu_li_1";
document.getElementById("m2").className = "menu_li_2";
document.getElementById("m3").className = "menu_li_3";
document.getElementById("m4").className = "menu_li_4";


	id='#'+id;
	if($(id).css('position')!='absolute'){
		$(id).css('position','absolute');
		$(id).css('left',0);
		$(id).css('top',$('.maintable').get(0).offsetHeight+0+'px');
		ini_top=$('.maintable').get(0).offsetHeight+0
	}	
		
		if(parseInt($(id).css('height'))>1){
			new_height=0;
			new_top=ini_top;
		} else { 
		$(id).css('z-index',++zIndex);
		new_height=0+$(id+' > .content').get(0).offsetHeight;
		if(!isMoz)new_height+=0;
		new_top=parseInt($(id).css('top'))-new_height}$(id).animate({
			height:new_height+'px',top:new_top+'px'
			},500)}
		function down(id){id='#'+id;$(id).animate({height:'1px',top:ini_top+'px'},1000)}