	function outer_div_ref(post_url, class_nm)
	{
		var arr = new Array ('Wall','Message','Notification','Task','Dashbord','esp','Services','LB');
		if(class_nm != '')
		{
			for(var i=0; i<arr.length; i++) 
			{
				if (arr[i] == class_nm)
				{
					document.getElementById(class_nm).className = 'right-select '+class_nm;
				}
				else
				{
					document.getElementById(arr[i]).className = arr[i];
				}
			}
		}
		frame_load (post_url, class_nm);
	}
	
	function frame_load(post_url, class_nm)
	{
		
		var strURL= post_url+"&/=%";
		//alert(document.location.href);
		var uri = document.location.href;
		var p_ap = "document";

		if(uri.indexOf("person.php") < 0 && uri.indexOf("&semi_p=1") < 0 && uri.indexOf("?op=labels&action=view&name=") < 0)
		{
			p_ap = "parent.document";
			eval(p_ap).getElementById("left_main").style.display = "none";
			eval(p_ap).getElementById("dt").style.display = "none";

		}
		else if(uri.indexOf("?op=labels&action=view&name=") >= 0)
		{
			document.getElementById("left").style.display = "none";
		}
		if (eval(p_ap).getElementById("page_top_menu")){
		  eval(p_ap).getElementById("page_top_menu").style.display = "none";
		}
		eval(p_ap).getElementById("mid_div").style.display = "block";
		var iframe = eval(p_ap).getElementById("mid_div"); 
		iframe.src = strURL; 
		if(class_nm != 'Services' && class_nm != 'Abo' && (post_url != '/index_ajax.php?op=user&action=new_p&picto=5' ||  post_url =='/index_ajax.php?op=user&action=new_p&picto=sub_faq' || post_url =='/index_ajax.php?op=user&action=new_p&picto=espnew4') )
		{
			eval(p_ap).getElementById("mid_div").style.width = "715px";
			eval(p_ap).getElementById("wrapper").style.width = "950px";
			eval(p_ap).getElementById("top").style.marginLeft = "0px";
			eval(p_ap).getElementById("center").style.marginTop = "0px";
		}
		if(class_nm == 'Services' && (post_url != '/index_ajax.php?op=user&action=new_p&picto=5' ||  post_url =='/index_ajax.php?op=user&action=new_p&picto=sub_faq' || post_url =='/index_ajax.php?op=user&action=new_p&picto=espnew4' || post_url =='/index_ajax.php?op=user&action=new_p&picto=label' || post_url =='/index_ajax.php?op=user&action=new_p&picto=artist1' || post_url =='/index_ajax.php?op=user&action=new_p&picto=services') )
		{
			eval(p_ap).getElementById("mid_div").style.width = "740px";
			eval(p_ap).getElementById("wrapper").style.width = "990px";
			eval(p_ap).getElementById("top").style.marginLeft = "20px";
			if(post_url =='/index_ajax.php?op=user&action=new_p&picto=label')
			{
				eval(p_ap).getElementById("center").style.marginTop = "-15px";
			}
			else if(post_url =='/index_ajax.php?op=user&action=new_p&picto=artist1')
			{
				eval(p_ap).getElementById("center").style.marginTop = "-20px";
			}
			else if(post_url =='/index_ajax.php?op=user&action=new_p&picto=services')
			{
				eval(p_ap).getElementById("center").style.marginTop = "-10px";
			}
			else
			{
				eval(p_ap).getElementById("center").style.marginTop = "-3px";
			}
		}
		if((post_url == '/index_ajax.php?op=user&action=new_p&picto=5' && eval(p_ap).getElementById("logged_in_id").value != '') ||  post_url =='/index_ajax.php?op=user&action=new_p&picto=sub_faq' || post_url =='/index_ajax.php?op=user&action=new_p&picto=espnew4' || post_url =='/index_ajax.php?op=user&action=new_p&picto=investor_text.php&t=other' || post_url =='/index_ajax.php?op=user&action=new_p&picto=stage_formation_1')
		{
			eval(p_ap).getElementById("mid_div").innerHTML = "";
			if(post_url =='/index_ajax.php?op=user&action=new_p&picto=stage_formation_1')
			{
				eval(p_ap).getElementById("mid_div").style.width = "756px";
			}
			else
			{
				eval(p_ap).getElementById("mid_div").style.width = "750px";
			}
			eval(p_ap).getElementById("wrapper").style.width = "1000px";
			eval(p_ap).getElementById("top").style.marginLeft = "25px";
			if(post_url =='/index_ajax.php?op=user&action=new_p&picto=sub_faq' || post_url =='/index_ajax.php?op=user&action=new_p&picto=investor_text.php&t=other' )
			{
				setTimeout('parent.document.getElementById("center").style.marginTop = "0px";',200);
			}
			else if(post_url =='/index_ajax.php?op=user&action=new_p&picto=stage_formation_1')
			{
				setTimeout('parent.document.getElementById("center").style.marginTop = "-8px";',200);
			}
			else if(post_url =='/index_ajax.php?op=user&action=new_p&picto=espnew4')
			{
				setTimeout('parent.document.getElementById("center").style.marginTop = "-15px";',200);
			}
			else
			{
				setTimeout('parent.document.getElementById("center").style.marginTop = "-20px";',200);
			}
		}
		if(class_nm == 'Abo')
		{
			eval(p_ap).getElementById("mid_div").style.width = "746px";
			eval(p_ap).getElementById("wrapper").style.width = "994px";
			eval(p_ap).getElementById("top").style.marginLeft = "22px";
			eval(p_ap).getElementById("center").style.marginTop = "-10px";
		}
		//iframe.reload();   
	}
