
 function MenuSubs(mitem) {
 
    omitem = getCookie('MenuItem');
    
    if(omitem != '' && omitem != null) {
       $('#'+omitem+'Subs').hide(500);
    }
    
    if(mitem == omitem)
       mitem = "";
    else
       $('#'+mitem+'Subs').show(500);
 
    setCookie('MenuItem',mitem);
 
 } // end function
 

 function MenuOpen(citem) {
 
   if(document.getElementById(citem + "Subs")) {
   
      $('#'+citem+'Subs').show(500);
      
   } // end if
 
 } // end function
 
 function PageSendToFriend() {
 
    ContentBoxDisplay('ContentAreaBox', '');
    
    document.getElementById("ContentBoxTitle").innerHTML = document.getElementById("send_to_afriend_link").title;
    
    ContentAreaBoxPage("send_to_afriend");
    
 } // end function
 
 function GetPageContent(page,lid) {
 alert("Aaaaaaa");

    urlpath = "pages/get_content.php";
    
    CABI = document.getElementById("AjaxContainer");
    
    CABI.innerHTML = "<img src='graphics/loader.gif' />";
        
    fields_data = "data=" + urlpath + "&page=" + page + "&lang=" + lid;
    
	var doPagesContent = function(doPagesContentResponse) {
                        
        CABI.innerHTML = doPagesContentResponse; 
                    	      
	} // end 
	
	oAjax.doPost('content.php', fields_data, doPagesContent, 'text');

 } // end function
 
