
    handling=false;  
    var img1,img2,img3,img4,img5,img6,img7,img8,img9,counterC;
    var isexecute=false;
    
    function scroll(arg){
        new Effect.ScrollTo(arg);
    }
                         
    function firstrun(){

        img1=new Image(); 
        img1.src=tmpl_folder+"img/narezka/strings.jpg";            
        img1.onload=function(){img1.hoganComplete=true; show(1);};    
        
                         
        img2=new Image(); 
        if(!Prototype.Browser.IE)
            img2.src=tmpl_folder+"img/narezka/backgroundstringNoShaddow.png";              
        else
            img2.src=tmpl_folder+"img/narezka/backgroundstringNoShaddow.gif";
        img2.onload=function(){img2.hoganComplete=true;  show(2);};                
        document.getElementById('first').style.backgroundImage="url("+img2.src+")";  
        document.getElementById('first').style.backgroundRepeat="repeat-x"; 
        
        img3=new Image(); 
        img3.src=tmpl_folder+"img/narezka/string.jpg";
        img3.onload=function(){img3.hoganComplete=true;  show(3);};
        document.getElementById('string').style.backgroundImage="url("+img3.src+")";  
        document.getElementById('string').style.backgroundRepeat="no-repeat"; 
        document.getElementById('string').style.backgroundColor="black";  
        document.getElementById('string').style.backgroundPosition="left";
        
        img4=new Image(); 
        img4.src=tmpl_folder+"img/narezka/logoarso.jpg"; 
        img4.onload=function(){img4.hoganComplete=true;  show(4);};  
        document.getElementById('logo').style.backgroundImage="url("+img4.src+")";  
        document.getElementById('logo').style.backgroundRepeat="no-repeat";   

        img5=new Image(); 
        img5.src=tmpl_folder+"img/narezka/arrowdown.jpg";            
        img5.onload=function(){img5.hoganComplete=true; show(5);};
        var tmp5=document.createElement('img');          
        tmp5.src=img5.src;
        document.getElementById('title').appendChild(tmp5); 
                   
        img6=new Image(); 
        img6.src=tmpl_folder+"img/narezka/arso.jpg";            
        img6.onload=function(){img6.hoganComplete=true; show(6);};
        var tmp6=document.createElement('img');          
        tmp6.src=img6.src;
        var tmp7=document.createElement('img');          
        tmp7.src=img6.src;
        document.getElementById('downarso').appendChild(tmp6); 
        document.getElementById('hiddendownarso').appendChild(tmp7);   
        
        img7=new Image(); 
        if(!Prototype.Browser.IE)
            img7.src=tmpl_folder+"img/narezka/TopShaddow.png";              
        else
            img7.src=tmpl_folder+"img/narezka/TopShaddow.gif";
     //   img7.onload=function(){img7.hoganComplete=true;  show(7);};
        document.getElementById('topShaddow').style.backgroundImage="url("+img7.src+")";  
        document.getElementById('topShaddow').style.backgroundRepeat="no-repeat"; 

        img8=new Image(); 
        if(!Prototype.Browser.IE)
            img8.src=tmpl_folder+"img/narezka/BottomShaddow.png";              
        else
            img8.src=tmpl_folder+"img/narezka/BottomShaddow.gif";
     //   img8.onload=function(){img8.hoganComplete=true;  show(8);};
        document.getElementById('bottomShaddow').style.backgroundImage="url("+img8.src+")";  
        document.getElementById('bottomShaddow').style.backgroundRepeat="no-repeat"; 

        img9=new Image(); 
        if(!Prototype.Browser.IE)
            img9.src=tmpl_folder+"img/narezka/RightShaddow.png";              
        else
            img9.src=tmpl_folder+"img/narezka/RightShaddow.gif";
     //   img9.onload=function(){img9.hoganComplete=true;  show(9);};
        document.getElementById('rightShaddow').style.backgroundImage="url("+img9.src+")";  
        document.getElementById('rightShaddow').style.backgroundRepeat="no-repeat"; 

        img10=new Image(); 
        if(!Prototype.Browser.IE)
            img10.src=tmpl_folder+"img/narezka/BottomContactShaddow.png";              
        else
            img10.src=tmpl_folder+"img/narezka/BottomContactShaddow.gif";
     //   img10.onload=function(){img10.hoganComplete=true;  show(10);};
        document.getElementById('bottomContactShaddow').style.backgroundImage="url("+img10.src+")";  
        document.getElementById('bottomContactShaddow').style.backgroundRepeat="no-repeat"; 
                        
         if(Prototype.Browser.Opera){
            while(!img1.complete || !img2.complete || !img3.complete || !img4.complete || !img5.complete || !img6.complete)
            {
                  if(img2.hoganComplete  && img1.hoganComplete && img3.hoganComplete  && img4.hoganComplete && img5.hoganComplete && img6.hoganComplete ){
                    break;
                  }
            }           
            img1.hoganComplete=img2.hoganComplete=img3.hoganComplete=img4.hoganComplete=img5.hoganComplete=img6.hoganComplete=true;
            show(17);
         }                                    
         show(18);

    }
        
    function show(i){       
       // alert(i+'\n '+'\n 1 '+img1.complete+'\n 2 '+img2.complete+'\n 3 '+img3.complete+'\n 4 '+img4.complete+'\n 5 '+img5.complete+'\n 6 '+img6.complete);    
        var img;
        for(var j=1;j<7;j++){
           img=eval('img'+j);
           if(img.complete)
            img.hoganComplete=img.complete; 
        }
        if(img2.hoganComplete  && img1.hoganComplete && img3.hoganComplete  && img4.hoganComplete && img5.hoganComplete && img6.hoganComplete && !isexecute){  
            isexecute=true;          
            img1.onload=img2.onload=img3.onload=img4.onload=img5.onload=img6.onload=function(){};
          //  alert(i);
            handling=true;  
            document.body.removeChild(document.getElementById("loading1").parentNode);        
                            
            document.body.style.display="none";
            
            var firstid=document.getElementById('first').cloneNode(true); 
            var footherid=document.getElementById('foother').cloneNode(true); 
            var lastblockid=document.getElementById('lastblock').cloneNode(true); 
            
            document.body.removeChild(document.getElementById('tmp'));
            document.body.appendChild(firstid);
            document.body.appendChild(footherid);
            document.body.appendChild(lastblockid);
            
            if(!Prototype.Browser.IE){
                document.body.style.backgroundImage="url("+img1.src+")";  
                document.body.style.backgroundPosition="0px 30px"; 
                document.body.style.backgroundRepeat="repeat-x"; 
                document.getElementById('first').style.display="block";
                
                 new Effect.Appear(document.body,{duration:2.5, afterFinishInternal: function(effect) { 
                    new Effect.Parallel(  
                                [ new Effect.Appear(document.getElementById('topShaddow'),{duration:0.5}), 
                                  new Effect.Appear(document.getElementById('bottomShaddow'),{duration:0.5})
                                ],{}
                    );  
                    handling=false;               
                 }});
                                
  
            } 
            else{
                document.body.style.display="block";
                new Effect.Appear(document.getElementById('first'),{duration: 2.5, afterFinishInternal: function(effect) {
                    handling=false;
                    new Effect.Parallel(  
                                [ new Effect.Appear(document.getElementById('topShaddow'),{duration:0.5}), 
                                  new Effect.Appear(document.getElementById('bottomShaddow'),{duration:0.5})
                                ],{}
                    );                      
                    document.body.style.backgroundImage="url("+img1.src+")";  
                    document.body.style.backgroundPosition="0px 30px"; 
                    document.body.style.backgroundRepeat="repeat-x"; 
                    document.getElementById('first').style.display="block";
                }});        
            }
            init(); 
        
        }
    }
   /*        
    function init(){
        titletext="Последнее ";           
        unitid='main';    
        
              
        image1=new Image();        
        original1=new Image(); 
        original1.src= document.getElementById("img1").src;
        image1.src=tmpl_folder+"img/narezka/preview1rollover.jpg";
        document.getElementById("img1").onmouseover=roll1;
        document.getElementById("img1").onmouseout=out1; 
          
        image2=new Image();        
        original2=new Image(); 
        original2.src= document.getElementById("img2").src;
        image2.src=tmpl_folder+"img/narezka/preview2rollover.jpg";
        document.getElementById("img2").onmouseover=roll2;
        document.getElementById("img2").onmouseout=out2; 
        
        image3=new Image();    
        original3=new Image();  
        original3.src= document.getElementById("img3").src;    
        image3.src=tmpl_folder+"img/narezka/preview3rollover.jpg";
        document.getElementById("img3").onmouseover=roll3;
        document.getElementById("img3").onmouseout=out3; 
        
        image4=new Image();    
        original4=new Image(); 
        original4.src= document.getElementById("img4").src;                 
        image4.src=tmpl_folder+"img/narezka/preview4rollover.jpg";
        document.getElementById("img4").onmouseover=roll4;
        document.getElementById("img4").onmouseout=out4; 
        
        image5=new Image();       
        original5=new Image(); 
        original5.src= document.getElementById("img5").src;         
        image5.src=tmpl_folder+"img/narezka/preview5rollover.jpg";
        document.getElementById("img5").onmouseover=roll5;
        document.getElementById("img5").onmouseout=out5; 
    }    */        
    function roll1(){
        document.getElementById("img1").src=image1.src;
    }

    function out1(){
        document.getElementById("img1").src=original1.src;
    }
    
    function roll2(){
        document.getElementById("img2").src=image2.src;
    }
    
    function out2(){
        document.getElementById("img2").src=original2.src;
    }
    
    function roll3(){
        document.getElementById("img3").src=image3.src;
    }
    
    function out3(){
        document.getElementById("img3").src=original3.src;
    }

    function roll4(){
        document.getElementById("img4").src=image4.src;
    }
    
    function out4(){
        document.getElementById("img4").src=original4.src;
    }

    function roll5(){
        document.getElementById("img5").src=image5.src;
    }
    
    function out5(){
        document.getElementById("img5").src=original5.src;
    }
    
    function subm(){
        if(submchecker()){
            var url=site_url+"wp-hogan-comments-post.php";
            var params="author="+$('nametext').firstChild.value+"&email="+$('mailtext').firstChild.value+"&comment="+$('comment').value+"&comment_post_ID=1";        
            var myAjaxs= new Ajax.Request(url,{method:'post', parameters: params, onComplete:submHandler});
        }
    }
           
    function submchecker(){
        var errstring="";
        if($('nametext').firstChild.value.length<2)
            errstring+='Введите имя\n'; 
        var mail=$('mailtext').firstChild.value;
        if($('mailtext').firstChild.value.length<2){
            errstring+='Введите e-mail\n';        
        }   
        else{
            if(mail.match('\\s*?[\\w-.]+@[\\w-]+(\\.[\\w-]+)+\\s*?')==null || mail.match('\\s*?[\\w-.]+@[\\w-]+(\\.[\\w-]+)*\\s*')[0]!=mail)
                errstring+='Введите корректный e-mail\n';                
        } 
        if($('comment').value.length<2){
            errstring+='Введите комментарий\n';        
        }    
        if(errstring){
            confirm(errstring+"\n Все поля являются необходимыми для заполнения.");
            return false;        
        }     
        return true;    
    }                    
       
    function submHandler(originalRequest){
         if( originalRequest.responseText==="true"){
             $('nametext').firstChild.value="";
             $('mailtext').firstChild.value="";
             $('comment').value="";
             alert("Сообщение дошло до сервера");          
         }
         else {
            alert(originalRequest.responseText+"\nСообщение не дошло, попробуйте отправить еще раз");        
         }
    }
         
    function initkeypr(){
        $("forma").onsubmit=function(e){
            if(!e)
                e=event;
            e.returnValue = false;
            return false;          
        }
        document.onkeydown= function (e){ 
            if(!e)
                e=event;
            if(e.altKey&&e.keyCode==13&&unitid=='contact'&&Prototype.Browser.Gecko){
            
                subm();
                e.returnValue = false;
                return false;
            }
            else if(e.ctrlKey&&e.keyCode==13&&unitid=='contact'&&!(Prototype.Browser.Gecko)){
                subm();
                e.returnValue = false;
                return false;
            }
        }
    }
          
    function changepage(page){
        switch(page){
            case('Design Portfolio'):
                page='design';
                break;
            case('Graffiti'):
                page='graffiti';
                break;
            case('Links'):
                page='links';
                break;
            case('Downloads'):
                page='download';
                break;
            case('Contact'):
                page='contact';
                break;
            default:
                break;
        }
        if((arguments[2] || page!=unitid) && !handling){
            anker="";
            if(arguments[1]){
                anker=arguments[1];
            }
            handling=true;  
            dissappear=false;
            switch (unitid) {
                default:
 //                   Effect.hoganShake('logo'); 
                    Effect.Fade('topShaddow',{ duration: 1,restoreAfterFinish: false});
                    if(unitid=='main')        
                        Effect.Fade('bottomShaddow',{ duration: 0.2,restoreAfterFinish: false});                                                  
                    if(unitid=='contact')
                        Effect.Fade('bottomContactShaddow',{ duration: 0.2,restoreAfterFinish: false});  
                    if(unitid=='design' || unitid=='graffiti'  || unitid=='download' || unitid=='tag'){   
                        new Effect.Fade('rightShaddow',{ duration: 1,restoreAfterFinish: false}); 
                      //  Effect.Fade('copyrightrezerv',{ duration: 2,restoreAfterFinish: false}); 
                        if(Prototype.Browser.Gecko){    
                            new Effect.Parallel(
                                [ new Effect.ScrollTo('first'),
                                  new Effect.Fade('foother'),
                                //  new Effect.Fade('topShaddow'), 
                                  new Effect.Fade('copyrightrezerv'), 
                                  new Effect.Fade('toppagemenu'),
                                  new Effect.Fade('title'),
                                  new Effect.SlideUp('contentplaceholder',{delay: 0.3, afterFinishInternal: function(effect) {gabbegecliner()}})                                  
                                ], {duration: 2,restoreAfterFinish: false,sync: true}
                              );
                        }
                        else{
                            new Effect.Parallel(
                                [ new Effect.Fade('foother'),
                                 // new Effect.Fade('topShaddow'),                                 
                                  new Effect.Fade('copyrightrezerv'), 
                                  new Effect.Fade('toppagemenu'),
                                  new Effect.Fade('title'),
                                  new Effect.SlideUp('contentplaceholder',{afterFinishInternal: function(effect) {gabbegecliner()}})                                  
                                ], {duration: 2,restoreAfterFinish: false,sync: true}
                              );                        
                        }          
                    }
                    else{
                        new Effect.Parallel(
                            [ new Effect.Fade('title'),
                            //  new Effect.Fade('topShadow'),                             
                              new Effect.SlideUp('contentplaceholder',{ afterFinishInternal: function(effect) {gabbegecliner()}})                                  
                            ], {duration: 2,restoreAfterFinish: false,sync: true}
                          );                    
                    }
                    break;
            };
            eval(page+'(arguments[2])'); 
        }   
    }
    
    function gabbegecliner(){
        dissappear=true;
        document.getElementById("loading22").style.display="";  
        var div=document.createElement('div');
        div.setAttribute('id','contentplaceholder');
        div.style.display= "none";
        document.getElementById('contentplaceholder').parentNode.replaceChild(div,document.getElementById('contentplaceholder'));
        if(document.getElementById('toppagemenu'))    
            document.getElementById('toppagemenu').parentNode.removeChild(document.getElementById('toppagemenu'));      
    }
 
    function main(){ 
        titletext="Последнее ";           
        unitid='main';     
        var url=site_url;
        var params="ajax=true";
        
        var myAjaxs= new Ajax.Request( url,{method:'get', parameters: params, onComplete: whaitDissapearing});
 
    }   
    
    function mainHandler(originalRequest){
        makeAppear(originalRequest);
        init();      
    }

     function design(){
        titletext="Портфолио. Дизайн ";
        unittext="Дизайн";
        unitid='design';    
        var url=site_url+"category/design-portfolio";    // /page/2
        if (arguments[0])
            url+="/page/"+arguments[0]; 
        var params="ajax=true";
        
        var myAjaxs= new Ajax.Request(url,{method:'get', parameters: params, onComplete: whaitDissapearing});
    }
    
    function designHandler(originalRequest){
        makeAppear(originalRequest);
    }
    
     function tag(){
        titletext="Tag "+arguments[0]+" ";
        unittext="Tag";
        unitid='tag';    
        var url=site_url+"tag/";    // /page/2
        arguments[0]=arguments[0].replace(' ','-');
        if (arguments[0])
            url+="/"+arguments[0];   
        var params="ajax=true";
        
        var myAjaxs= new Ajax.Request(url,{method:'get', parameters: params, onComplete: whaitDissapearing});
    }
    
    function tagHandler(originalRequest){
        makeAppear(originalRequest);
    }       

    function graffiti(){
        titletext="Портфолио. Граффити ";
        unittext="Граффити";
        unitid='graffiti';      
        var url=site_url+"category/graffiti";
        if (arguments[0])
            url+="/page/"+arguments[0];         
        var params="ajax=true";
        
        var myAjaxs= new Ajax.Request( url,{method:'get', parameters: params, onComplete: whaitDissapearing});
    }
    
    function graffitiHandler(originalRequest){
        makeAppear(originalRequest);
    }
    
    function links(){
        titletext="Ссылки ";
        unittext="Ссылки";
        unitid='links';      
        var url=site_url+"category/links";
        var params="ajax=true";
        
        var myAjaxs= new Ajax.Request(url,{method:'get', parameters: params, onComplete: whaitDissapearing});
    }
    
    function linksHandler(originalRequest){
        makeAppear(originalRequest);
    }
    
    function download(){
        titletext="Скачать ";
        unittext="Скачать";
        unitid='download';      
        var url=site_url+"category/downloads";
        if (arguments[0])
            url+="/page/"+arguments[0];         
        var params="ajax=true";
        
        var myAjaxs= new Ajax.Request(url,{method:'get', parameters: params, onComplete: whaitDissapearing});
    }
    
    function downloadHandler(originalRequest){
        makeAppear(originalRequest); 
    }
    
    function contact(){
        titletext="Форма обратной связи ";
        unittext="Связаться";
        unitid='contact';      
        var url=site_url+"category/contact";
        var params="ajax=true";                 
        var myAjaxs= new Ajax.Request(url,{method:'get', parameters: params, onComplete: whaitDissapearing});
    }

    function contactHandler(originalRequest){   
        makeAppear(originalRequest);
        if(Prototype.Browser.Gecko){
            document.getElementById("enter").firstChild.nodeValue='(Alt+Enter)';
        }
        initkeypr();
    }

    function whaitDissapearing(originalRequest){
        setTimeout(function() {if(!dissappear){whaitDissapearing(originalRequest)}else{ eval(unitid+'Handler(originalRequest)')}}, 250); 
    }
    
    function makeAppear(originalRequest){    
        new Insertion.Top('contentplaceholder', originalRequest.responseText);           
        menuHandler();
        document.getElementById("loading22").style.display="none"; 
        if(unitid=='main'){
            var tmp6=document.createElement('img');          
            tmp6.src=img6.src;
            document.getElementById('downarso').appendChild(tmp6); 
        }
        if(unitid=='design' || unitid=='graffiti'  || unitid=='download' || unitid=='tag'){  
            new Effect.Parallel(
                [ new Effect.Appear('title'),                                
                  new Effect.Appear('foother'),    
                  new Effect.Appear('toppagemenu'),          
                  new Effect.Appear('copyrightrezerv'),    
                  new Effect.SlideDown('contentplaceholder',{duration: 3, restoreAfterFinish: false, afterFinishInternal: function(effect) {handling=false; showShadder();document.getElementById('contentplaceholder').style.height=''; if(anker!=''){new Effect.ScrollTo(anker)} }})                     
                ], {duration: 2,restoreAfterFinish: false,sync: true}
              ); 
        }
        else{
            new Effect.Parallel(
                [ new Effect.Appear('title'),                                
                  new Effect.SlideDown('contentplaceholder',{restoreAfterFinish: false, afterFinishInternal: function(effect) {showShadder();handling=false;if(unitid=='contact'){} }})   
                ], {duration: 2,restoreAfterFinish: false,sync: true,afterFinishInternal: function(effect){document.getElementById('contentplaceholder').style.height=''}}
              ); 
        }                 
    }
    
    function showShadder(){
        switch(unitid){
            case ('main'):     
                document.getElementById('bottomShaddow').style.backgroundImage="url("+img8.src+")";  
                document.getElementById('bottomShaddow').style.backgroundRepeat="no-repeat";             
                new Effect.Parallel(
                                [ new Effect.Appear('bottomShaddow',{ duration: 1,restoreAfterFinish: false}), 
                                  new Effect.Appear('topShaddow',{ duration: 1,restoreAfterFinish: false})
                                ],{ duration: 1,restoreAfterFinish: false} 
                );
                break;
            case ('contact'):
                document.getElementById('contentcontact').style.height='auto'; 
                if(Prototype.Browser.IE)
                    document.getElementById('contentplaceholder').style.height='650px';
                else
                    document.getElementById('contentplaceholder').style.height='auto';     
                new Effect.Parallel(
                                [ new Effect.Appear('topShaddow',{ duration: 1,restoreAfterFinish: false})
                              //    new Effect.Appear('bottomContactShaddow',{ duration: 1,restoreAfterFinish: false})
                                ],{}
                ); 
                break;                        
            case ('links'):
                Effect.Appear('topShaddow',{ duration: 1,restoreAfterFinish: false});                
                break; 
            default:
                new Effect.Parallel(
                                [ new Effect.Appear('topShaddow',{ duration: 1,restoreAfterFinish: false}),
                                  new Effect.Appear('rightShaddow',{ duration: 1,restoreAfterFinish: false})
                                ],{}
                );    
                break;              
        }                    
    }
    
    function menuHandler(){
        var title=document.getElementById('title');
        title.firstChild.nodeValue=titletext;
        for(var i=0;i<document.getElementById('string').childNodes.length;i++){
            if(document.getElementById('string').childNodes[i].nodeName.toLowerCase()=="span"){
                var id=document.getElementById('string').childNodes[i].getAttribute('id');
                var name=document.getElementById('string').childNodes[i].firstChild.nodeValue;      
                var a=document.createElement('a');
                var txt=document.createTextNode(name); 
                a.appendChild(txt);
                a.setAttribute('href',"javascript:changepage('"+id+"')");  
            var downa=a.cloneNode(true);
                a.setAttribute('id',id);
            downa.setAttribute('id',"down"+id);                     
                document.getElementById('string').replaceChild(a,document.getElementById('string').childNodes[i]);
                new Effect.Highlight(document.getElementById('string').childNodes[i],{duration:1, startcolor: '#FDAE00' ,endcolor: '#000000' ,restoreAfterFinish: false});
            document.getElementById('down'+id).parentNode.replaceChild(downa,document.getElementById('down'+id));    
            }  
        } 
        if(unitid!='main' && unitid!='tag'){  
            var span=document.createElement('span');
            var txt=document.createTextNode(unittext);     
            span.setAttribute('class','selected');
            span.style.color="#FDAE00";
            span.appendChild(txt);    
        var downspan=span.cloneNode(true);             
            span.setAttribute('id',unitid);     
        downspan.setAttribute('id',"down"+unitid);                    
            document.getElementById('string').replaceChild(span,document.getElementById(unitid));
            if(unitid!='main') 
                new Effect.Highlight(document.getElementById(unitid),{duration:1, startcolor: '#000000' ,endcolor: '#FDAE00' ,restoreAfterFinish: false});
        document.getElementById('down'+unitid).parentNode.replaceChild(downspan,document.getElementById('down'+unitid));               
        }
        if(unitid=='design' || unitid=='graffiti'  || unitid=='download' || unitid =='tag' ){   
            var pagesmenu=document.getElementById('toppagemenu').cloneNode(true);
            document.getElementById('toppagemenu').parentNode.removeChild(document.getElementById('toppagemenu'));  
            pagesmenu.style.display="none"; 
            document.getElementById('first').appendChild(pagesmenu);                     
        } 
  
    }
    
    Effect.hoganShake = function(element) {
      element = $(element);
      var oldStyle = {
        top: element.getStyle('top'),
        left: element.getStyle('left') };
        return new Effect.Move(element,
          { x: -5, y: 0, duration: 0.1,  afterFinishInternal: function(effect) {
        new Effect.Move(effect.element,
          { x:  5, y: 0, duration: 0.1,  afterFinishInternal: function(effect) {
            if(handling){   
                new Effect.hoganShake(effect.element);
            }
            else{
                effect.element.undoPositioned().setStyle(oldStyle);
            }
      }}) }});       
    } 
    
    counterC=0;
    
    function counter(postId){
        var url=site_url+"category/counter";
        counterC++;       
        var params="ajax=true&postId="+postId+"&c="+counterC;
        
        var myAjaxs= new Ajax.Request( url,{method:'get', parameters: params, onComplete: emptyfunc}); 
    }    
    
    function emptyfunc(originalRequest)
    {
    }