function showPage(link) {  
      
            var cont = document.getElementById('contentPage');  
            var loading = document.getElementById('loading');  
      
            cont.innerHTML = loading.innerHTML;  
      
            var http = createRequestObject();  
            if( http )   
            {  
                http.open('get', link);  
                http.onreadystatechange = function ()   
                {  
                    if(http.readyState == 4)   
                    {  
                        cont.innerHTML = http.responseText;  
                    }  
                }  
                http.send(null);      
            }  
            else   
            {  
                document.location = link;  
            }  
        }  
      
        // создание ajax объекта  
        function createRequestObject()   
        {  
            try { return new XMLHttpRequest() }  
            catch(e)   
            {  
                try { return new ActiveXObject('Msxml2.XMLHTTP') }  
                catch(e)   
                {  
                    try { return new ActiveXObject('Microsoft.XMLHTTP') }  
                    catch(e) { return null; }  
                }  
            }  
        }  
        
function showRazdel(link) {  
      
            var cont = document.getElementById('contentRazdel');  
            var loading = document.getElementById('load');  
      
            cont.innerHTML = loading.innerHTML;  
      
            var http = createRequestObject();  
            if( http )   
            {  
                http.open('get', link);  
                http.onreadystatechange = function ()   
                {  
                    if(http.readyState == 4)   
                    {  
                        cont.innerHTML = http.responseText;  
                    }  
                }  
                http.send(null);      
            }  
            else   
            {  
                document.location = link;  
            }  
        }  
      
        // создание ajax объекта  
        function createRequestObject()   
        {  
            try { return new XMLHttpRequest() }  
            catch(e)   
            {  
                try { return new ActiveXObject('Msxml2.XMLHTTP') }  
                catch(e)   
                {  
                    try { return new ActiveXObject('Microsoft.XMLHTTP') }  
                    catch(e) { return null; }  
                }  
            }  
        } 
        
        
        
  function showItem(link)
 {

jQuery.ajax({
            type: "GET",
            url:link,
            beforeSend: function() {
                 jQuery('.scrolBarsInMain').html('<table width="100%" height="25%"><tr width="100%" height="25%"><td align="center"><div style="padding:25px; font-family:Tahoma; font-size:13px;"><img src="../img/16.gif" border=0 align=center><br/ > <br/ >Загрузка страницы, пожайлуста подождите...<div></td></tr></table>');
            },
            complete: function(){
                   
  },
            success: function(html){

              jQuery('.scrolBarsInMain').html(html);
              VK.callMethod("setLocation",link );
            }

      });
 }
