//http://ec2-50-16-76-160.compute-1.amazonaws.com
//localhost:8084

//var PersonalTube_AppServerPath = "http://ec2-50-16-76-160.compute-1.amazonaws.com";
function loginPopUp(loginType)
{
    href= "/popLogin.jsp";
    if(loginType == "mypersonaltube")
        href="/popMyLogin.jsp";
     if(loginType == "mypersonaltubeSignup")
         href="/popSignUp.jsp";
     if(loginType == "publisher_personaltube")
        href="/popLogin.jsp";
    //pop_windowCS = window.open(href,"_blank","top=50px,left=325px,width=600px,height=520px,menubar=0,toolbar=0,location=0, directories=0, status=0, menubar=0,scrollbars=0,resizable=0");

    /**************/
        if($("#ptPopUpDiv").length == 0) {
            var div3 = document.createElement('div');
            div3.id = 'ptClose';
            div3.style.display = 'none';
            if (document.body.firstChild)
                document.body.insertBefore(div3, document.body.firstChild);
            else
                document.body.appendChild(div2);

            var div2 = document.createElement('div');
            div2.id = 'ptPopUpDiv';
            div2.style.display = 'none';
            if (document.body.firstChild)
                document.body.insertBefore(div2, document.body.firstChild);
            else
                document.body.appendChild(div2);

            var div1 = document.createElement('div');
            div1.id = 'ptBlanket';
            div1.style.display = 'none';
            if (document.body.firstChild)
                document.body.insertBefore(div1, document.body.firstChild);
            else
                document.body.appendChild(div1);

            $("#ptPopUpDiv").css("width","550px");
            $("#ptPopUpDiv").css("height","500px");

            $("#ptBlanket").attr("onClick","popup('ptPopUpDiv')");
        }
            
            //END of popup playback page
            var html = "<iframe src='"+href+"' frameborder='no' scrollable='no' height='100%' width='100%' scrolling='no'></iframe>";
            $("#ptPopUpDiv").html(html);
            popup('ptPopUpDiv');
            /**************/
}
