// JavaScript Document
// loads specific contents onto page
var script_url = path + '/php_lib/content.browser.php';

function getHomepage(){
	var cont = $('#main-body');
	$.get(script_url, { _r: Math.random(), a: 'homepage' }, function(d){
			cont.append(d);
		   });
	return false;
	}
	
function getWPDetails(cmd, hd, cue){
	var cue = typeof(cue) == 'undefined' ? '' : cue ;
	var hd = typeof(hd) == 'undefined' ? 'yes' : hd ;
	var cont = $('#wrapper');
	$.get(script_url, { _r: Math.random(), a: 'wp-dtls', cmd: cmd, hd: hd, cue: cue }, function(d){
		   cont.append(d);
		   if(cmd == 'SERVICES' || cmd == 'PROFILE'){
			   cont.ready(function(){
					var content = window.location.hash;
					var curritem = (content.length)? content : '#def' ;
					$(".submenu").hide();
					$(curritem).show("fast");
					});
		   		}
		   });
	return false;
	}
