﻿/*
FILE:       Actions.js
AUTHOR:	    Adriano Grimaldi
CREATED:	01.06.2009
DESC:		Used to control to actions of the YourCall JS object

Jquery Live needed to "re-bind" events as they added. (pagination)
*/
function LoggedIn()
{
    var cookie = $.cookie('persistentTSN');
    return cookie;
}
function JQueryAddOns()
{
    var arry = $.cookie('persistentTSN');
    if(arry != null){ //Logged in
        var CookieArray = arry.split("&");
        //I-Frame - Comment Post
        $('#PostComment').hide();
        $('#HaveYourSay').click(function(){$('#PostComment').toggle(400); return false; });
        $('#HaveYourSayBot').click(function(){$('#PostComment').toggle(400);});
    }
    else{ //Not logged in
        //I-Frame - Comment Post
        $('#HaveYourSayBot').click(function(){$('#HaveYourSay').click();});
    }
}