    /*
    * Author: Alex Baskov, 2010
    * NOTE: make sure you include this script *after* jquery.js
    *
    * Feel free to include your custom logic if you want it to be on *every* page.
    */
    
    //JSON Wrapper
    var __json = null;
    if (typeof JSON !== "undefined") {
        __json = JSON;
    }
    var browser = $.browser;
    var JSON = {
        parse: function(text) {
            if (__json !== null) {
                return __json.parse(text);
            }
            if (!browser.msie) {
                return new Function("return " + text)();
            }
            return eval( "(" + text + ")" );
        }
    };  

    $(document).ready(function () {
        //
        
        
    });
    
    function goUrl(url) {
        window.location = url;
    }   
    
    function addCookie(name,value,days) {
	if (days) {
	    var date = new Date();
	    date.setTime(date.getTime()+(days*24*60*60*1000));
	    var expires = "; expires="+date.toGMTString();
	}
	else 
	    var expires = "";
	document.cookie = name+"="+value + "; path=/";
    }
    
    function readCookie(name) {
	var nameEQ = name + "=";
        var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
	    var c = ca[i];
	    while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
        }
        return null;
    }
    
    function eraseCookie(name) {
        addCookie(name,"",-1);
    } 

