$(function() {
	$('ul#projects-menu').lavaLamp({
		fx: 'easeOutQuad',
		speed: 500,
		returnDelay:1000
	});
	// fix for li:hover in IE
	if (document.all && document.getElementById) {
	  navRoot = document.getElementById("projects-menu");
	  for (i=0; i<navRoot.childNodes.length; i++) {
		node = navRoot.childNodes[i];
		if (node.nodeName=="LI") {
		   node.onmouseover=function() {
		    this.className+=" over";
		   }
		   node.onmouseout=function() {
		    this.className=this.className.replace(" over", "");
		   }
		 }
	  }
	}

});


function goCueme()
{
	window.location = "cueme/index.htm";
}
function goResearchVideo()
{
	window.open('osplayer.php?murl=researchanalystvideo.swf',"offer","width=600,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left=65,top=80 ");  
}
function goMmiVideo()
{
	window.open('osplayer.php?murl=osmmi.swf',"offer","width=600,height=400,toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left=65,top=80 ");  
}

function goCuemeDemo()
{
	window.open('osplayer.php?murl=cueme_demo.swf',"offer","width=800,height=600,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,left=65,top=80 ");  
}
function goMf1Demo()
{
	//window.open('http://www.youtube.com/watch?v=EVQjPIN5AsQ&feature=related',"offer","width=600,height=500,toolbar=no,location=0,status=no,menubar=no,scrollbars=0,resizable=0,left=65,top=80 ");  
	window.open('osplayer.php?murl=mobileforceone.swf',"offer","width=600,height=500,toolbar=no,location=no,status=yes,menubar=no,scrollbars=0,resizable=0,left=65,top=80 "); 
}

function goMf1()
{
	window.location = "solutions_mf1.htm";
}
function goPage(pg)
{
	window.location = pg;
}
function showChild(selobj)
{
   //alert(selobj);
   var children = selobj.getElementsByTagName('ul');
   var cnode = children[0];
   //alert(cnode.getAttribute("className"));
   cnode.style.display = "block";
   
}

function hideChild(selobj)
{

   var children = selobj.getElementsByTagName('ul');
   alert(children.length);
   var cnode = children[0];
   //alert(cnode.style.visibility);
   cnode.style.display = "none";
   

}
function showImage(selobj, imgsrc)
{
	selobj.src = imgsrc;
}
