	$(document).ready(function() {
 
  $("#fname_help").css("display","none");
  $("#firstname").focus(function()
  {
	$("#fname_help").css("display","block");
	});
  
  $("#firstname").blur(function()
  {
	$("#fname_help").css("display","none");
		
  });
  
  
  $("#name_help").css("display","none");
  $("#name").focus(function()
  {
	$("#name_help").css("display","block");
 });
  $("#name").blur(function()
  {
	$("#name_help").css("display","none");
  });
  
  
  
  $("#pass_help").css("display","none");
  $("#password").focus(function()
  {
	$("#pass_help").css("display","block");
	});
  $("#password").blur(function()
  {
	$("#pass_help").css("display","none");
  });
  
  
   $("#username_help").css("display","none");
  $("#username").focus(function()
  {
	$("#username_help").css("display","block");
 });
  $("#username").blur(function()
  {
	$("#username_help").css("display","none");
  });
  

  
  
});


function closeadminForm()
{
	document.getElementById('uploadform').style.display = 'none';
		document.getElementById('lp_hider').style.display = 'none';
}
function showLostPass()
{
	document.getElementById('lp_content').style.display = 'block';
	document.getElementById('lp_content').style.left = (document.body.clientWidth-652)/2+'px';
	
	
	document.getElementById('lp_hider').style.display = 'block';
	document.getElementById('lp_hider').style.left = '0px';
	document.getElementById('lp_hider').style.top = '0px';
	document.getElementById('lp_hider').style.width = document.body.clientWidth;
	document.getElementById('lp_hider').style.height = document.body.clientHeight;
}
function closeinviteForm()
{
	document.getElementById('inviteForm').style.display = 'none';
		document.getElementById('lp_hider').style.display = 'none';
}
function popupmenu()
{
document.getElementById('popup').style.display='block';
	document.getElementById('lp_hider').style.width ='20px';

}
function popoff()
{
document.getElementById('popup').style.display='none';

}
/***********************************************
* Pop-it menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

var defaultMenuWidth="420px" //set default menu width.

var linkset=new Array()
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

linkset[0]='<TABLE border="0" cellspacing="0" cellpading="3" width="100%" align="center" height="25px"><tr><td style="background:#3C92CF;" ><a href="index.php?option=com_content&task=category&sectionid=2&id=2&Itemid=11">Design Maven</a></td>'
linkset[0]+='<td  style="background:#C8A160;"><a href="index.php?option=com_content&task=category&sectionid=2&id=5&Itemid=13">Lifestyle Maven</a></td>'
linkset[0]+='<td style="background:#1E7593"><a href="index.php?option=com_content&task=category&sectionid=2&id=4&Itemid=14">Business Maven</a></td></table>'


////No need to edit beyond here

var ie5=document.all && !window.opera
var ns6=document.getElementById
var browserName=navigator.appName; 
var b_version=navigator.appVersion;
var version=parseFloat(b_version);
if (ie5||ns6)
document.write('<div id="popitmenu" onMouseover="clearhidemenu();" onMouseout="dynamichide(event)"></div>')

function iecompattest()
{
return (document.compatMode && document.compatMode.indexOf("CSS")!=-1)? document.documentElement : document.body
}

function showmenu(e, which, optWidth){
if (!document.all&&!document.getElementById)
return
clearhidemenu()
menuobj=ie5? document.all.popitmenu : document.getElementById("popitmenu")
menuobj.innerHTML=which
menuobj.style.width=(typeof optWidth!="undefined")? optWidth : defaultMenuWidth
menuobj.contentwidth=menuobj.offsetWidth
menuobj.contentheight=menuobj.offsetHeight
//eventX=ie5? event.clientX : e.clientX
//eventY=ie5? event.clientY : e.clientY
//Find out how close the mouse is to the corner of the window
//var rightedge=ie5? iecompattest().clientWidth-eventX : window.innerWidth-eventX
//var bottomedge=ie5? iecompattest().clientHeight-eventY : window.innerHeight-eventY
var rightedge=220
var bottomedge=200
//if the horizontal distance isn't enough to accomodate the width of the context menu
if (rightedge<menuobj.contentwidth)
//move the horizontal position of the menu to the left by it's width
//menuobj.style.left=ie5? iecompattest().scrollLeft+eventX-menuobj.contentwidth+"px" : window.pageXOffset+eventX-menuobj.contentwidth+"px"
menuobj.style.left= 450 + "px"
else
//position the horizontal position of the menu where the mouse was clicked
menuobj.style.left=450+"px"
//same concept with the vertical position
if (bottomedge<menuobj.contentheight)
menuobj.style.top=1000+"px" 
else
if (browserName=="Microsoft Internet Explorer" ){
	if (window.XMLHttpRequest)
	{
	//alert(version);
		menuobj.style.top=128+"px" 
	}
	else
	{
	//alert(version);
     menuobj.style.top=132+"px" 
	}
}
else
{
menuobj.style.top=125+"px" 
}
menuobj.style.visibility="visible"
return false
}

function contains_ns6(a, b) {
//Determines if 1 element in contained in another- by Brainjar.com
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.style.visibility="hidden"
}

function dynamichide(e){
if (ie5&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("hidemenu()",500)
}

function clearhidemenu(){
if (window.delayhide)
clearTimeout(delayhide)
}

if (ie5||ns6)
document.onclick=hidemenu




