//window.onload = initAll;



function loadHomePage(){
	//alert('hello');
	window.open('index.html','_self');
}

function loadSupportPage(){
	//alert('hello');
	window.open('http://www.bitmarine.com/ssl','_self');
}

function loadSupportContactPage(){
	window.open('support_contact.html','_self');
}

function loadContactUsPage(){
	window.open('contact_us.html','_self');
}


//findPos function is from http://www.quirksmode.org/js/findpos.html;
//where its workings are explained in more detail.
/*
var home_out=0;
var software_solutions_out=0;
var highlights_out=0;
var testimonial_out=0;
var integration_out=0;
var support_out=0;
var contact_us_out=0;


function make_mouse_over(element)
{
 if(element == 'software_solutions')
 	software_solutions_out=0;
 else if(element == 'highlights')
 	highlights_out=0;
 else if(element == 'testimonial')
 	testimonial_out=0;
 else if(element == 'integration')
 	integration_out=0;
 else if(element == 'support')
 	support_out=0;
 else if(element == 'contact_us')
 	contact_us_out=0;
   //alert('software_solutions_out :'+software_solutions_out ); 	
}


function make_mouse_out(element)
{

 if(element == 'software_solutions')
 	software_solutions_out=1;
 else if(element == 'highlights')
 	highlights_out=1;
 else if(element == 'testimonial')
 	testimonial_out=1;
 else if(element == 'integration')
 	integration_out=1;
 else if(element == 'support')
 	support_out=1;
 else if(element == 'contact_us')
 	contact_us_out=1;
 //alert('software_solutions_out(make out) :'+software_solutions_out ); 
}

*/

/*function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop+38];
}

//Display a named menu, at the position of another object
function display_menu(parent,named)
{
  //hide_menu(named);
//   alert("love U ");document.getElementById('highlights').style.display = "none";
  //document.getElementById()
	//get the named menu
	hide_menu('ok');

	document.getElementById('software_solutions').style.display = "none";
	document.getElementById('highlights').style.display = "none";
	document.getElementById('testimonial').style.display = "none";
	document.getElementById('integration').style.display = "none";
	document.getElementById('support').style.display = "none";
	document.getElementById('contact_us').style.display = "none";

	
	var menu_element = document.getElementById(named);
	if(menu_element.style.display =="none")
	{	
			//override the 'display:none;' style attribute
			menu_element.style.display = "";
			//get the placement of the element that invoked the menu...
			var placement = findPos(parent);
		//	alert(placement);
			//...and put the menu there
			menu_element.style.left = placement[0] + "px";
			menu_element.style.top = placement[1] + "px";
	}
}*/	

/*Hide a named menu
function hide_menu(named)
{
 
//  alert('software_solutions_out :'+software_solutions_out ); 
	//get the named menu
	document.getElementById('software_solutions').style.display = "none";
	document.getElementById('highlights').style.display = "none";
	document.getElementById('testimonial').style.display = "none";
	document.getElementById('integration').style.display = "none";
	document.getElementById('support').style.display = "none";
	document.getElementById('contact_us').style.display = "none";*/


/*	var menu_element = document.getElementById(named);
	if(named == 'software_solutions' && software_solutions_out == 1)
	{
      	//hide it with a style attribute
		menu_element.style.display = "none";
	}
}
*/
