// JavaScript Document

function fButtonSelect()
{
	for(vI=0; vI<((fButtonSelect.arguments.length)/2); vI++)
	{
		document.getElementById(fButtonSelect.arguments[(vI*2)]).style.backgroundPosition = fButtonSelect.arguments[(vI*2)+1];
		document.getElementById(fButtonSelect.arguments[(vI*2)]).style.cursor = 'pointer';
	}
}

function fBackgroundChange()
{
	for(vI=0; vI<((fBackgroundChange.arguments.length)/4); vI++)
	{
		if(!fBackgroundChange.arguments[(vI*4)+1]) document.getElementById(fBackgroundChange.arguments[(vI*4)]).style.backgroundImage = '';
		else document.getElementById(fBackgroundChange.arguments[(vI*4)]).style.backgroundImage = 'url('+fBackgroundChange.arguments[(vI*4)+1]+')';
		if(!fBackgroundChange.arguments[(vI*4)+2]) document.getElementById(fBackgroundChange.arguments[(vI*4)]).style.backgroundPosition = '';
		else document.getElementById(fBackgroundChange.arguments[(vI*4)]).style.backgroundPosition = fBackgroundChange.arguments[(vI*4)+2];
		if(!fBackgroundChange.arguments[(vI*4)+3]) document.getElementById(fBackgroundChange.arguments[(vI*4)]).style.backgroundRepeat = '';
		else document.getElementById(fBackgroundChange.arguments[(vI*4)]).style.backgroundRepeat = fBackgroundChange.arguments[(vI*4)+3];
	}
}

function fZIndexShifter()
{
	for(vI=0; vI<((fZIndexShifter.arguments.length)/2); vI++)
	{
		document.getElementById(fZIndexShifter.arguments[(vI*2)]).style.zIndex = fZIndexShifter.arguments[(vI*2)+1];
		document.getElementById(fZIndexShifter.arguments[(vI*2)]).style.display = 'none';
		document.getElementById(fZIndexShifter.arguments[(vI*2)]).style.display = 'block';
	}
}

function fSwitcher()
{
	for(vI=1; vI<fSwitcher.arguments[0]+1; vI++)
	{
		document.getElementById(fSwitcher.arguments[vI]).style.display = 'block';
	}
	for(vJ=fSwitcher.arguments[0]+1; vJ<fSwitcher.arguments.length; vJ++)
	{
		document.getElementById(fSwitcher.arguments[vJ]).style.display = 'none';
	}
}

function fFormFiller()
{
	var oFormId = document.getElementById(fFormFiller.arguments[1]);
	for(vI=0; vI<((fFormFiller.arguments.length-2)/2); vI++)
	{
		for(var i=0; i<oFormId.length; i++)
		{
			if(oFormId.elements[i].name == fFormFiller.arguments[(vI*2)+2]) oFormId.elements[i].value = fFormFiller.arguments[(vI*2)+3];
		}
	}
	if(fFormFiller.arguments[0] == '1') oFormId.submit();
}

function fDivFiller()
{
	for(vI=0; vI<(fDivFiller.arguments.length/2); vI++)
	{
		var oDivId = document.getElementById(fDivFiller.arguments[(vI*2)]);
		oDivId.innerHTML = fDivFiller.arguments[(vI*2)+1];
	}
}