// Magyar Ortodoxia - common site methods, by (c) Interpressfact 2004


function setValue(obj, value){ 
obj.value = value
}

function hl(obj, BorderValue, bgValue) { 
obj.style.borderColor = BorderValue
obj.bgColor = bgValue
}


function nhl(state, obj, bg) { 

var myStyle = obj.style

if (state == 1) 
{
obj.style.background='url(/images/moe.jpg)';
} 
else  { 

if (bg==1) {obj.style.background='url(/images/menu-bg1.gif)';} else {obj.style.background='url(/images/menu-bg2.gif)';}

}

}



function navHome() {
window.location="http://magyarorthodoxia.org";		//Careful!
}

function n(url) {
window.location=url;	
}

var fullscreenMode = false
function toggleSize() {

controlName="contentTable"

	if (!fullscreenMode)
	{
		parent.document.getElementById(controlName).runtimeStyle.position = "Absolute"
		parent.document.getElementById(controlName).runtimeStyle.zIndex = "999"
		parent.document.getElementById(controlName).runtimeStyle.posTop = 10
		parent.document.getElementById(controlName).runtimeStyle.posLeft = 10
		parent.document.getElementById(controlName).runtimeStyle.width = parent.document.body.clientWidth - 15
		parent.document.getElementById(controlName).runtimeStyle.height = parent.document.body.offsetHeight - 30
		parent.document.getElementById(controlName).focus()
//		button_down(document.getElementById("fullscreen"))
//		button_down(document.getElementById("fullscreen2"))
		fullscreenMode = true
	} else {
		parent.document.getElementById(controlName).runtimeStyle.cssText = ""
		parent.document.getElementById(controlName).focus()
//		button_out(document.getElementById("fullscreen"))
//		button_out(document.getElementById("fullscreen2"))
		fullscreenMode = false
	}
}


function SendContent(id) {
SendMaterial=window.open("/controls/sendContent.aspx?id=" + id, "SendMaterial", "top=100,left=100,height=150,width=350,scrollbars=no");
 }

function doPostBack(sNewFormAction)
{
    document.forms[0].action = sNewFormAction;
    document.forms[0].__VIEWSTATE.name = 'NOVIEWSTATE';
}

function addbookmark(bookmarkurl, bookmarktitle){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

