
function launchPopUpWindow(sURL, sName, iWidth, iHeight, bScroll) {
	/*if (launchPopUpWindow.arguments.length > 4) {
		iQuadrantID = launchPopUpWindow.arguments[4];
	} else {
		iQuadrantID = 5;
	}
	*/
	iQuadrantID = 5;

	if (launchPopUpWindow.arguments.length > 4) {
		bScroll = launchPopUpWindow.arguments[4];
	} else {
		bScroll = false;
	}

	if (iHeight > screen.height) {
		if (bScroll){
			iHeight = screen.availHheight;
		} else {
			bScroll = true;
			iHeight = screen.availHeight;
			iWidth = iWidth + 20;
		}
	}
	if (iWidth > screen.width) {
		if (bScroll){
			iWidth = screen.availWidth;
		} else {
			iWidth = screen.availWidth;
			bScroll = true;
		}
	}
	iTopX = 0;
	iTopY = 0;
	switch(iQuadrantID){
		case 1:
			iTopX = 0;
			iTopY = 0;
			break;
		case 2:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = 0;
			break;
		case 3:
			iTopX = screen.width - iWidth;
			iTopY = 0;
			break;
		case 4:
			iTopX = 0;
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
		case 5:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
		case 6:
			iTopX = screen.width - iWidth;
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
		case 7:
			iTopX = 0
			iTopY = screen.height - iHeight;
			break;
		case 8:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = screen.height - iHeight;
			break;
		case 9:
			iTopX = screen.width - iWidth;
			iTopY = screen.height - iHeight;
			break;
		default:
			iTopX = (screen.width / 2) - (iWidth / 2);
			iTopY = (screen.height / 2) - (iHeight / 2);
			break;
	}
	if (bScroll) {
		sScrollOption = "yes";
	} else {
		sScrollOption = "no";
	}
	void(mywin=window.open(sURL, sName,'width='+iWidth+',height='+iHeight+',top='+iTopY+',left='+iTopX+',toolbar=no,scrollbars='+sScrollOption+',resizable=no,menubar=no,status=no,directories=no,location=no'));
	mywin.focus();
}


//-----------
function m_over(x) 
{
	if(x == null)
		x= window;
	x.event.srcElement.style.color = "4b617d";
	x.event.srcElement.style.cursor = "hand";
	x.event.srcElement.style.textDecoration = "underline";
}

function m_out(x) 
{
	if(x == null)
		x= window;
	x.event.srcElement.style.color = "28325A";
	x.event.srcElement.style.cursor = "default";
	x.event.srcElement.style.textDecoration = "";
}

function m_click(dest) 
{
	window.navigate(dest);
}


function n_over(x) 
{
	if(x == null)
		x= window;
	x.event.srcElement.style.background="#f4dca5";
	x.event.srcElement.style.color = "800000";
	x.event.srcElement.style.cursor = "hand";
	x.event.srcElement.style.textDecoration = "underline";
}

function n_out(x) 
{
	if(x == null)
		x= window;
	x.event.srcElement.style.background="#f4dca5";
	x.event.srcElement.style.color = "800000";
	x.event.srcElement.style.cursor = "default";
	x.event.srcElement.style.textDecoration = "";
}

function handleMouseover() {
	eSrc = window.event.srcElement;
	eSrcTag=eSrc.tagName.toUpperCase();
	if (eSrcTag == "A") eSrc.style.textDecoration = "underline";
}

function handleMouseout() {
	eSrc = window.event.srcElement;
	eSrcTag=eSrc.tagName.toUpperCase();
	if (eSrcTag == "A") eSrc.style.textDecoration = "";
}
function openDialog(URL)
{
	return window.open(URL,"test","resizable=yes,status=no,toolbar=no,location=no");
}
document.onmouseover=handleMouseover;
document.onmouseout=handleMouseout;

window.onload=window_onload;

function window_onload()
{
	var title = top.document.all("title");
	
	if (title != null)
	{
		title.filters[0].Apply(); 
		title.innerHTML = document.title; 
		title.filters[0].Play(); 
	}	
}
function foto1(url)
{
	return window.showModelessDialog (url, null, 
	"font-size:10px;dialogWidth:390px;dialogHeight:330px;dialogLeft:250px;dialogTop:100px;status:no")
}
function newDialog(url)
{
	return window.showModelessDialog (url, null, 
	"font-size:10px;dialogWidth:400px;dialogHeight:280px;dialogLeft:250px;dialogTop:100px;status:no")
}

function newWindow(url)
{
	return window.showModelessDialog (url, null, 
	"font-size:10px;dialogWidth:770px;dialogHeight:400px;dialogLeft:100px;dialogTop:100px;status:no")
}

