// ActionScript Document


//////////		this script for tabs		//////////
function showdropdown(id)
	{
		document.getElementById(id).style.display='block';
	}

function hidedropdown(id)
	{
		document.getElementById(id).style.display='none';
	}



//////////		this script for tabs		//////////

LastOpenedDiv = "";
function showbox(fieldId)
	{
		document.getElementById(fieldId).className='global_tab_selected';
		 if(LastOpenedDiv != "" && LastOpenedDiv!=fieldId){
			document.getElementById(LastOpenedDiv).className='global_tab_unselect';
			}
		LastOpenedDiv = fieldId;
	}

function formShowbox(fieldId)
	{
		document.getElementById(fieldId).className='global_overlay_tab_selected';
		 if(LastOpenedDiv != "" && LastOpenedDiv!=fieldId){
			document.getElementById(LastOpenedDiv).className='global_overlay_tab_unselect';
			}
		LastOpenedDiv = fieldId;
	}
	
function lanShowbox(fieldId)
	{
		document.getElementById(fieldId).className='global_lan_tab_selected';
		 if(LastOpenedDiv != "" && LastOpenedDiv!=fieldId){
			document.getElementById(LastOpenedDiv).className='global_lan_tab_unselect';
			}
		LastOpenedDiv = fieldId;
	}
	
//////////		this script for list hover		//////////

function changeClass(element,setClass)
	{
	element.className = setClass;
	}

//////////		this script for display handlers		//////////

function onClickShowElement(id)
	{
	document.getElementById(id).style.display="block";
	}
	
	
function onClickHideElement(id)
	{
	document.getElementById(id).style.display="none"
	}

/*Key board monitor function that closes the overlays if at all any is open */
document.onkeydown = function(oEvent)
{
	oEvent = oEvent || window.event;
	keyPressedCode = oEvent.keyCode;
	if(keyPressedCode==27)
	{	
		var OverlayElements = document.getElementsByClassName("global_overlay_conatiner");
		for(i=0;i<OverlayElements.length;i++)
		{
			document.getElementById(OverlayElements[i].id).style.display = "none";
		}
		
	
	}
}



jQuery(function() {
				//alert("testing");
jQuery('.thumbnails a').lightBox();
});

