// onverse javascript compiled Thu Feb  4 22:05:51 2010 GMT



// source: ../www.onverse.com/Website/web/js/onverse/launch.js

﻿
var app = null;

function processHashLink(hash) {	
   hash = hash.replace(/^.*#/, '');
   if (hash.indexOf('http') != 0 && hash.indexOf('javascript:') != 0 && hash.indexOf('mailto:') != 0) {      
		if (hash.indexOf('profiles/') == 0) {
			document.location = '/my/friendProfile.html?' + hash.substring(9);	  						  					
		}
		else {
			hashRedirect(hash);
		}			
      return false;
   }	
}

// process any hash present
var u = document.URL.toString();
if (u.indexOf('#') > -1) {
	processHashLink(u);  
}

(function($) {

    // Launch js client application
    function launch() {
        OnverseApp.MenuTabs = new OnverseApp.MenuTabsObject();
        app = new OnverseApp();
        
        // maps a href click events (permanently, even for future tags)
        $("a").live('click', function() { return processHashLink(this.href); });        

        // initialize window container
        $(".containerPlus").buildContainers({ containment: "document", elementsPath: "/web/css/elements/" });

        // show friend search
        $('#find_friends').show();
    };

  	launch();
})(jQuery);

