
//    sHTML += searchBoxHTML


var sHTML = "";
sHTML = "<div id='signincontainer' class='right-promo1' >"
    sHTML += "<div id='signinform'></div>";
    sHTML += "<div id='signinformaddition'>";
        sHTML += "<a href='http://www.wolfframeworks.com/register.asp'>Create a new account</a><br/>"
        sHTML += "<a href='javascript:wolf.loginServices.form_forgotPassword()'>Forgot Password</a>";
    sHTML += "</div>"


//    sHTML += '<div id="recentcom" class="rightlistbox"><div class="rightheader">Recent Comments</div></div>';
        
sHTML += "</div>"

document.write(sHTML)

/*quick links*/
sHTML = '<div class="right-promo1" ><div id="quicklinks" class="rightlistbox"><div class="rightheader">Quick Links</div>';
    sHTML += "<div class='item'><a href='http://www.addthis.com/bookmark.php?v=250&amp;pub=xa-4a791f503a349af5' onmouseover=\"return addthis_open(this, '', '[URL]', '[TITLE]')\" onmouseout='addthis_close()' onclick='return addthis_sendto()'><img src='http://s7.addthis.com/static/btn/lg-share-en.gif' width='125' height='16' alt='Bookmark and Share' style='border:0'/></a><script type='text/javascript' src='http://s7.addthis.com/js/250/addthis_widget.js?pub=xa-4a791f503a349af5'></script></div>";
    sHTML += "<div class='item'><a href='http://connect.wolfframeworks.com/wf.forum.pages/feeds.aspx'><img src='images/rss_16.gif' style='border:0px;' align='absmiddle'/> RSS Feeds </a></div>"
    sHTML += "<div class='item'><a href='mailto:support@wolfframeworks.com?body=I need help with...'>Contact Wolf Support</a></div>"
sHTML += "</div></div>"        
document.write(sHTML)


showAuthenticationForm()
function showAuthenticationForm()
{   
    if(window.profileDocument == null)
    {
        setTimeout(showAuthenticationForm, 100)
        return
    }
    
    if(window.profileDocument.record.UserName == null)
    {
        //settings used by loginform.js/
        wolf.cancelHandler      = function(){}
        wolf.formContainerId    = "signinform";
        
//        wolf.loginServices.loginBox     =   document.getElementById("te_sysUsers.WFlogin");wolf.loginServices.passwordBox  =   document.getElementById("te_sysUsers.WFpassword");

        //add script
        var htmlElement   = document.createElement("script");
        htmlElement.type  = "text/javascript";
        htmlElement.src   = "http://demo.wolfframeworks.com/ewidgets/loginform.js";
        
        document.getElementsByTagName("HEAD")[0].appendChild(htmlElement);
        
        
        htmlElement         = document.createElement("link");
        htmlElement.type    = "text/css";
        htmlElement.href    = "http://demo.wolfframeworks.com/ewidgets/forms.css";
        htmlElement.rel     = "stylesheet";
        
        document.getElementsByTagName("HEAD")[0].appendChild(htmlElement);
        
        document.getElementById("signincontainer").style.display = "block";
        
        //done

        setTimeout(function(){wolf.loginServices.onSignInSuccess = signoutHandler}, 10000)
        
    }
}


//writeRecentCom();



