﻿


function SetFullScreen(a){
    a.onclick=function(){        
        if(this.href.indexOf('/articles/2/')!=-1 && logined){
            if(this.getAttribute("isMoney")=="0"){
                window.open(this.href,this.target,'left=0,top=0,width=1024,height=720,toolbar=no,scrollbars=yes,menubar=no,status=yes,fullscreen=yes');
                return false;
            }else if(allowRead>0){
                window.open(this.href,this.target,'left=0,top=0,width=1024,height=720,toolbar=no,scrollbars=yes,menubar=no,status=yes,fullscreen=yes');
                return false;
            }
        }
        
        if(this.href.indexOf('/module_6/')!=-1){
            window.open(this.href,this.target,'left=0,top=0,width=1024,height=720,toolbar=no,scrollbars=yes,menubar=no,status=yes,fullscreen=yes');
            return false;
        }
        
    }
}

try{
    var linkList=window.document.getElementsByTagName("A");
    for(var i=0;i<linkList.length;i++){
        var a=linkList[i];
        SetFullScreen(a);
        /*
        if(a.getAttribute('target')=='fullScreen' || (a.getAttribute('href').indexOf('/articles/2/')!=-1) ||){
            SetFullScreen(a);
        }*/
    }
}catch(err){
}
