﻿
function Moredetails(tagName,tblName)
{
	document.getElementById(tagName).style.display=(document.getElementById(tagName).style.display=='none'?'inline':'none');
	document.getElementById(tblName).style.backgroundColor = '#fff'; 

	if (document.getElementById(tagName).style.display=='inline'){
	document.getElementById(tblName).style.backgroundColor = '#e4eef8';
	}
}

function Lessdetails(tagName,tblName)
{
	document.getElementById(tagName).style.display=(document.getElementById(tagName).style.display=='none'?'inline':'none');
	document.getElementById(tblName).style.backgroundColor = '#fff'; 
	if (document.getElementById(tagName).style.display=='none'){
	//	document.getElementById(tagName+'A').innerHTML = '��� ����';
	} else {
	//	document.getElementById(tagName+'A').innerHTML = '����';
	}
}

function popup(id)
{
	window.open(""+id, "_blank","toolbar=no, titlebar=no, fullscreen=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=700, height=400")
}

function popup500(id)
{
	window.open(""+id, "_blank","toolbar=no, titlebar=no, fullscreen=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=750, height=520")
}
function popup650(id)
{
	window.open(""+id, "_blank","toolbar=no, titlebar=no, fullscreen=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=no, copyhistory=no, width=680, height=680")
}

function changePicSrc(itemId,picSrc)
{
document.getElementById(itemId).src=picSrc;	
}

function changeBackground(itemId,backColor)
{
document.getElementById(itemId).style.backgroundColor=backColor;		
}


function changeBigImg(imgSrc)
{
document.getElementById("largeImg").src="images/upload/exhibitions/" + imgSrc
}

function deliverActiveX(content)
{
	document.write(content);	
}




var lastItemOpened = '0';
function doToggle(itemId) {
	textItemSp=document.getElementById("spans_" + itemId);
	headerObj=document.getElementById("header_" + itemId);

	if (itemId == lastItemOpened) {
		textItemSp.style.display="none";
		headerObj.style.backgroundImage="url(images/questionBack.jpg)"
		lastItemOpened = '0';
	} else {
		if (lastItemOpened != '0') {
			textItemSpOld=document.getElementById("spans_" + lastItemOpened);
			headerObjOld=document.getElementById("header_" + lastItemOpened);
			headerObjOld.style.backgroundImage="url(images/questionBack.jpg)"
			textItemSpOld.style.display="none";
		}
		lastItemOpened = itemId;
		headerObj.style.backgroundImage="url(images/questionBackOver.jpg)"
		textItemSp.style.display = "";
	}

}



function clearBubbels()
{
document.getElementById("bubbles").style.display="none";
}

