var dolphintabs={
	subcontainers:[], last_accessed_tab:null,

	revealsubmenu:function(curtabref){
	this.hideallsubs()
	if (this.last_accessed_tab!=null)
		this.last_accessed_tab.className=""
	if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current"
	this.last_accessed_tab=curtabref
	},

	hideallsubs:function(){
	for (var i=0; i<this.subcontainers.length; i++)
		document.getElementById(this.subcontainers[i]).style.display="none"
	},


	init:function(menuId, selectedIndex){
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item
			if (i==selectedIndex){ //if this tab item should be selected by default
				tabItems[i].className="current"
				this.revealsubmenu(tabItems[i])
			}
		tabItems[i].onclick=function(){
		dolphintabs.revealsubmenu(this)
		}
		} //END FOR LOOP
	}


}

var menuizq={
	subcontainersIzq:[], last_accessed_tabIzq:null,
	
	
	revealsubmenu:function(curtabref){
	this.hideallsubs()
	if (this.last_accessed_tabIzq!=null)
		this.last_accessed_tabIzq.className=""
	if (curtabref.getAttribute("rel")) //If there's a sub menu defined for this tab item, show it
	document.getElementById(curtabref.getAttribute("rel")).style.display="block"
	curtabref.className="current"
	this.last_accessed_tabIzq=curtabref
	},



	hideallsubs:function(){
	for (var i=0; i<this.subcontainersIzq.length; i++)
		document.getElementById(this.subcontainersIzq[i]).style.display="none"
	},
	
	
	

	cambia:function(menuId, selectedIndex){
	var tabItems=document.getElementById(menuId).getElementsByTagName("a")
		for (var i=0; i<tabItems.length; i++){
			if (tabItems[i].getAttribute("rel"))
				this.subcontainers[this.subcontainers.length]=tabItems[i].getAttribute("rel") //store id of submenu div of tab menu item
			if (i==selectedIndex){ //if this tab item should be selected by default
				tabItems[i].className="current"
				this.revealsubmenu(tabItems[i])
			}
		tabItems[i].onclick=function(){
		menuizq.revealsubmenu(this)
		}
		} //END FOR LOOP
	}


}


function cambiaPosicion()
{
	browser = navigator.appName;
	//1280 Validation
	if(browser=="Microsoft Internet Explorer" && screen.width==1280)
	{
		document.write("<li><div style='position:relative; top:-19px; left:-522px; width:170px; height:23px; display:block'></div>");
	}else{
			
	if(browser!="Microsoft Internet Explorer" && screen.width==1280){
		document.write("<li><div style='position:relative; top:4px; left:-522px; width:170px;'></div>");}
	}
					
	//1024 Validation
	if(browser=="Microsoft Internet Explorer" && screen.width==1024)
	{
		document.write("<li><div style='position:relative; top:-19px; left:-522px; width:180px; height:23px; display:block'></div>");
	}else{
				
	if(browser!="Microsoft Internet Explorer" && screen.width==1024){
		document.write("<li><div style='position:relative; top:4px; left:-523px; width:165px; height=2px'></div>");}
	}
					

	//1280 x 1024 Validation
	if(browser=="Microsoft Internet Explorer" && screen.width==1280 && screen.height==1024)
	{
		document.write("<li><div style='position:absolute; top:137px; left:366px; width:188px; height:23px; display:block'></div>");
	}else{
					
	if(browser!="Microsoft Internet Explorer" && screen.width==1280 && screen.height==1024){
		document.write("<li><div style='position:absolute; top:130px; left:367px; width:188px; height:23px; display:block'></div>");}
	}

}



