function makeSlash ()
{
	var currUrl = location.href;
	var lastChar = currUrl.charAt (currUrl.length-1);
	if (lastChar != "/")
	{
		newUrl = currUrl + "/";
		location.href = newUrl;
	}
}

function galleryMO ($id)
{
	var $bp = document.getElementById ('bigPic');
	var $bpdiv = document.getElementById ('bigPicDiv');
	var $bpTxt = document.getElementById ('bigTxt');
	$bp.src = ($bigpicAr[$id]).src;
	$bp.alt = ($bigpicAr[$id]).alt;
	$bp.width = ($bigpicAr[$id]).width;
	$bp.height = ($bigpicAr[$id]).height;
	$bp.style.paddingTop = ($bigpicMaxH - ($bigpicAr[$id]).height) + 'px';
	$bpTxt.style.width = ($bigpicAr[$id]).width;
	$bpTxt.innerHTML = $picTxt[$id];
}


function showstrip ($id)
{
	document.getElementById ('bstrip-' + $id).style.visibility = 'visible';
}

function hidestrip ($id)
{
	document.getElementById ('bstrip-' + $id).style.visibility = 'hidden';
}

function movestrip (e)	//$navObj)
{
	/*$ol = $navObj.offsetLeft;
	$or = $navObj.offsetRight;
	$shulaim = (document.documentElement.clientWidth - document.documentElement.width) / 2;
	$x = $shulaim;*/
	var $x = 0;
	var $y = 0;
	var e1 = e;
	var $eWidth = 80;
	if (e.id != 'home')
	{
		$eWidth = e.scrollWidth;
	}
	while (e)
	{
		$x += e.offsetLeft;
		e = e.offsetParent;
	}
	while (e1)
	{
		$y += e1.offsetTop;
		e1 = e1.offsetParent;
	}
	document.getElementById ('bstrip').style.visibility = 'visible';
	document.getElementById ('bstrip').style.left = ($x - 80 + $eWidth) + 'px';
	document.getElementById ('bstrip').style.top = ($y + 15) + 'px';
	//alert ('offsetLeft = ' + $ol + '\noffsetRight = ' + $or + '\nX = ' + $x);
}

function hidestrip2 ()
{
	document.getElementById ('bstrip').style.visibility = 'hidden';
}

function gotoLang ($langNum)
{
	if ($langNum != 0)
	{
		location.href = $homeUrl + 'langpage/page/' + $langNum + '/';
	}
}

function init1 ()
{
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu1", //menu TD id
		//customtheme: ["#1c5a80", "#18374a"], //override default menu CSS background values? Uncomment: ["normal_background", "hover_background"]
		//customtheme: ["url(images/navbg.jpg)", "url(images/navbg-over.jpg)"], //override default menu CSS background values? Uncomment: ["normal_background", "hover_background"]
		//customtheme: ["url(images/topnavbtn.gif)", "url(images/topnavbtn_mo.gif)", "#edf6e3", "#edf6e3"],
		customtheme: ["", "", "#639bb5", "#639bb5"],
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu2",
		customtheme: ["", "", "#639bb5", "#639bb5"],
		contentsource: "markup"
	});
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu3",
		customtheme: ["", "", "#639bb5", "#639bb5"],
		contentsource: "markup"
	});
	ddsmoothmenu.init({
		mainmenuid: "smoothmenu4",
		customtheme: ["", "", "#639bb5", "#639bb5"],
		contentsource: "markup"
	});
}
