/* 
 * JS magic courtesy of Ferenc Radius
 *
 * @author: lang.huxley@limpninja.com
 * @version: 7.0.1
 *
 */
 
$.requireCache = false;
$.require([
    "core/Class.js",
    "core/dom-extend.js",
    "mvc/Controller.js" 
    ]);

mvc.add(new mvc.Urls(""),
    [
        "jquery/jquery.tweet.js",
        "outline/maps.js",
        "cufon/cufon-yui.1.0.9.js",
        "cufon/font.js"
    ],
        new mvc.Action(
    {

        onload: function() {
          Cufon.replace('h2', {
            textShadow: '0 2px rgba(0,0,0,0.5)',
            color: '-linear-gradient(#fff, 0.15=#dde2d0, 0.7=#dde2d0, #777e70)'

          });
          Cufon.replace('h1', {textShadow: '0 2px rgba(0,0,0,0.5)'});
        },

        success: function() {

            
            if(typeof(google) != 'undefined') 
            {
                initialize();
            

                $("#tweet").tweet({
                    avatar_size: 60,
                    query: "outline2010+OR+outlinedemoparty",
                    count: 10,
                    loading_text: "Searching for tweets..."
                });

            }
        }
    })
);

