﻿// JScript File

//  Script for opening shadow box through javascript
// Author : Shashidhar P T
//http://www.chattertree.com/ live site url

function url_loadgrowyourfamily(varLoadGrowyourFamily) {

           //alert(varLoadGiftcornerURL);
                Shadowbox.open({

                    player: 'qt',
                    content: varLoadGrowyourFamily,
                    height: 550,
                    width: 740,
                    title: ''

                });           

        };


function url_loadgiftcorner(LoggedinUsers_UID) {

var varLoadGiftcornerURL = 'http://www.chattertree.com/GiftCorner/YourFamilyGiftCorner_Products.aspx?GCUserID='+ LoggedinUsers_UID;
           //alert(varLoadGiftcornerURL);
                Shadowbox.open({

                    player: 'iframe',
                    content: varLoadGiftcornerURL,
                    height: 600,
                    width: 670,
                    title: ''

                });           

        };
        
function url_loadPhoto(Users_UID, Album_UID, Photo_UID) 
{
//    var varLoadPhotoURL = 'http://www.chattertree.com/Photo/MemberPhotos.aspx?UID='+ Users_UID+'&AID='+Album_UID+'&PID='+Photo_UID;
        //alert(varLoadPhotoURL);       
           
//                Shadowbox.open({

//                    player: 'iframe',
//                    content: varLoadPhotoURL,
//                    height: 600,
//                    width: 580,
//                    title: ''

//                });         
window.location = 'http://www.chattertree.com/Photo/MemberPhotos.aspx?UID='+ Users_UID+'&AID='+Album_UID+'&PID='+Photo_UID;  

};
        
function url_loadVideo(LoggedinUsers_UID,Video_UID) 
{
    var varVideoPageUrl='http://www.chattertree.com/Video/ViewVideo.aspx?User_UID='+LoggedinUsers_UID+'&VideoUID='+Video_UID;
       
                Shadowbox.open({

                    player: 'iframe',
                    content: varVideoPageUrl,
                    height: 600,
                    width: 560,
                    title: ''

                });           

        };
        
 //Modified by Shashidhar P T on 22 Dec 2009
 function url_loadCreateRoom(createnewroomurl) {
           
                Shadowbox.open({

                    player: 'iframe',
                    content: createnewroomurl,
                    height: 280,//previously 480
                    width: 600, // previously 800
                    title: ''

                });           

        };
        
//Modified by Divyesh Gohil..5/Feb/10
function url_loadEditRoomSettings(editroomsettingsurl) {
           
                Shadowbox.open({

                    player: 'iframe',
                    content: editroomsettingsurl,
                    height: 600,
                    width: 560,
                    title: 'Edit Room Settings'

                });           

};
        
function url_loadInviteNonMembers(InviteNonMembers) {                   
                Shadowbox.open({

                    player: 'iframe',
                    content: InviteNonMembers,
                    height: 550,
                    width: 740,
                    title: ''

                });           
            
};
        
function url_loadViewOthersProfile(Users_UID)
{
    window.location = 'http://www.chattertree.com/ViewOthersProfile/ViewOthersProfile.aspx?UID='+Users_UID;
}
        
function url_loadEvent(Users_UID, StartYear, StartMonth, StartDay)
{
    window.location = 'http://www.chattertree.com/Calendar/CalendarEvents.aspx?historyUrl='+Users_UID+'&StartYear='+StartYear+'&StartMonth='+StartMonth+'&StartDay'+StartDay;
}
        
//Modified by Divyesh on 14 Dec 2009    
function url_loadEditEmailTemplates(editemailtemplatesurl) {
           
                Shadowbox.open({

                    player: 'iframe',
                    content: editemailtemplatesurl,
                    height: 1950,
                    width: 800,
                    title: ''

                });           

};


//Added on 18.11.2009
//Modified by Divyesh Gohil..8/Feb/10
function url_loadRoomIdeas(roomideasurl) {
                Shadowbox.open({

                    player: 'iframe',
                    content: roomideasurl,
                    height: 200,
                    width: 400,
                    title: 'Room Ideas'

                });           

};

//Added on 19.11.2009 by Shashidhar P T
function url_loadCreateNewPhotoAlbum(createphotoalbum) 
{
//alert(createphotoalbum);
                Shadowbox.open({

                    player: 'iframe',
                    content: createphotoalbum,
                    height: 400,
                    width: 600,
                    title: ''

                });           

};

//Added on 24.11.2009 by Shashidhar P T
function url_loadViewCalendar(viewcalendar)
{
window.location = viewcalendar;
////alert(viewcalendar);
//                Shadowbox.open({
//                
//                    player: 'iframe',
//                    content: viewcalendar,
//                    height: 1750,
//                    width: 960,
//                    title: ''

//                }); 
}

//Modified by Divyesh Gohil..28/Jan/10
//Added on 24.11.2009 by Shashidhar P T
function url_loadUploadPhotoAlbum(uploadphotoalbum) 
{
//alert(createphotoalbum);
                Shadowbox.open({

                    player: 'iframe',
                    content: uploadphotoalbum,
                    height: 630,
                    width: 605,
                    title: ''

                });           

};

//Modified by Divyesh Gohil..28/Jan/10
//Added by Kumar Amit 24-11-2009
function url_loadProfileImageUpload(ProfileImageUploadURL) {  
                Shadowbox.open({

                    player: 'iframe',
                    content: ProfileImageUploadURL,
                    height: 630,
                    width: 740,
                    title: ''

                });           
            
};

//Added by Kumar Amit 25-11-2009
function url_loadOtherMemberVideo(OtherMemberVideoURL) {                   
                Shadowbox.open({

                    player: 'iframe',
                    content: OtherMemberVideoURL,
                    height: 1000,
                    width: 580,
                    title: ''

                });           
            
};


//Added on 02.12.2009 by Shashidhar P T
//Modified by Divyesh Gohil..6/Jan/10
function url_loadUploadNewVideo(uploadvideo) 
{
//alert(createphotoalbum);
                Shadowbox.open({

                    player: 'iframe',
                    content: uploadvideo,
                    height: 450,
                    width: 600,
                    title: ''

                });           

};

//End
//Added on 03-12-2009 by visweswara rao Start

function url_loadSinUppage(strSignUpURL) 
{

 window.location=strSignUpURL;         

};

function url_loadFeatures(strFeaturesURL) 
{

 window.location=strFeaturesURL;         

};
//Added on 03-12-2009 by visweswara rao End

//Added on 03-12-2009 by visweswara rao Start

function url_loadAboutUs(strFeaturesURL) 
{

 window.location=strFeaturesURL;         

};
function url_FamilyResources(strFeaturesURL) 
{

 window.location=strFeaturesURL;         

};
function url_ContactUs(strFeaturesURL) 
{

 window.location=strFeaturesURL;         

};

//Added on 03-12-2009 by visweswara rao End

//Added by vissu on 11-12-2009
function url_Testimoinals(strFeaturesURL) 
{

 window.location=strFeaturesURL;         

};
//End by vissu on 11-12-2009
//Added by vissu on 15-12-2009
function url_FANPartners(strFANPartners) 
{

 window.location=strFANPartners;         

};

//Added on 15-12-2009 by visweswara rao End
//Added by Nitin on 07-06-2010
function url_TopFamilyCompanies(strTopFamilyCompanies) {

    window.location = strTopFamilyCompanies;

};

//Added on 07-06-2010 by Nitin End

//Added by Shashidhar P T on 21 Jan 2010
function url_LoginPage()
{
    window.location = 'http://www.chattertree.com/login.aspx';
}

//Added by Divyesh Gohil..1/Feb/10
function url_loadTopRankedRoom(topRankedRoomURL)
{
    Shadowbox.open({
                    player: 'iframe',
                    content: topRankedRoomURL,
                    height: 600,
                    width: 700,
                    title: ''
   });
}

//Added by Divyesh Gohil..1/Feb/10
function url_loadTopRankedRoom(topRankedRoomURL)
{
    Shadowbox.open({
                    player: 'iframe',
                    content: topRankedRoomURL,
                    height: 600,
                    width: 700,
                    title: ''
   });
}

//Added by Divyesh Gohil..10/Feb/10
function url_loadRoomPointStructure(roomRankProcessURL)
{
    Shadowbox.open({
        player: 'iframe',
        content: roomRankProcessURL,
        height: 560,
        width: 680,
        title: 'Top Ranked Rooms - How it works?'
    });
}


//Added by Divyesh Gohil..15/Feb/10
function LoadContactWinner(ContactRoomWinnerURL)
{
    Shadowbox.open({
        player: 'iframe',
        content: ContactRoomWinnerURL,
        height: 500,
        width: 550,
        title: 'Contact Room Winner'
    });
}

//Added by Shashidhar P T on 19 Feb 2010
function url_loadApproveInvites(ApproveInvitesURL) {
           
                Shadowbox.open({

                    player: 'iframe',
                    content: ApproveInvitesURL,
                    height: 600,
                    width: 560,
                    title: 'People to be invited to the room (Waiting for approval)'

                });           

};

//Added by Shashidhar P T on 26 Feb 2010
function CloseShadowBoxRedirectToChat()
        {
            var HasAcceptedInvitation = document.getElementById('hdnAcceptInvitation').value;
            if(HasAcceptedInvitation == "1")
            {
                window.location = 'http://www.chattertree.com/ChatGroup_Home/Room_Chat_Redirect.aspx';
            }
            else
            {
                parent.Shadowbox.close();
            }
            return false;
        }
 //Added by Nitin Mohnani on 17 June 2010
        function CloseShadowBoxRedirectToRoomInvite() {
            var HasAcceptedInvitation = document.getElementById('hdnAcceptInvitation').value;
            if (HasAcceptedInvitation == "1") {
                window.location = 'http://www.chattertree.com/ChatGroup_Home/Room_CreateNew_UploadPhoto_Redirect.aspx';
            }
            else {
              
                parent.Shadowbox.close();
            }
            return false;
        }