// JavaScript Document

        i_pr = 0;
        //alert('i_pr = '+i_pr);
        function load_prof()
        {
            //alert('label');
            if(login.length!=0)
            {
                //alert('login = '+login[i_pr]);
                document.getElementById('link1').href='<?=$GLOBALVARS['url_members']?>/'+login[i_pr]+'/';
                        document.getElementById('img1').src=img[i_pr].src;
                        //alert(typeof(img1[i_pr]));
                        time_tmp=time[i_pr];
                        if (i_pr!=login.length-1)
                        {
                                i_pr=i_pr+1;
                        }
                        else
                        {
                                i_pr=0;
                        }
                        //alert('ok!');
                        window.setTimeout("load_prof()", time_tmp);
                }
                else
                {
                        //alert('err!');
                }
        }
        
        function adjustIFrameSize(id)
        {
                var myIframe = document.getElementById(id);
                if (myIframe)
                {
        
                        if (myIframe.contentDocument && myIframe.contentDocument.body.offsetHeight)
                        {
                                myIframe.height = myIframe.contentDocument.body.offsetHeight+100;
                        }
                        else if (myIframe.Document && myIframe.Document.body.scrollHeight)
                        {
                                myIframe.height = myIframe.Document.body.scrollHeight+100;
                        }
                        else if (myIframe.contentWindow && myIframe.contentWindow.document)
                        {
                                if (myIframe.contentWindow.document.documentElement && myIframe.contentWindow.document.documentElement.scrollHeight)
                                {
                                        myIframe.height = myIframe.contentWindow.document.documentElement.scrollHeight+25;
                                }
                        }
                }
        }