/*<script>*/
/*
2006 © ® Kesh ICT SERVICES / BEDUM
www.kesh.nl
*/
//---------------------------
// Gedeelde variabelen
var imgPath		= "../../../img/";
var sId			= 0;
var msIE 		= false;
var cnt			= 0;
//---------------------------
// Simpele browser check
if (navigator.appName == "Microsoft Internet Explorer")
{
	msIE = true;
}
//---------------------------
// Verberg de image toolbar in IE 6
document.write("<META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\">");
//---------------------------
//Statusbalk tekst
defaultStatus = "";
//Status tekst verbergen bij links - by Blackbox Hosting
function hidestatus()
{
	window.status=''
	return true
}
if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover	= hidestatus;
document.onmouseout		= hidestatus;
//---------------------------
// Breedte van het scherm
var scr_w = screen.availWidth;
var scr_h = screen.availHeight;
var browseWidth, browseHeight;

if (document.layers)
{
   //browseWidth	= window.outerWidth;
   //browseHeight	= window.outerHeight;
}
if (document.all)
{
   //browseWidth	= document.body.clientWidth;
   //browseHeight	= document.body.clientHeight;
}
//---------------------------
// Opmaak mainpages deel I
function tbl_part_01()
{
	t = "";
	t += "<table border=\"0\" width=\"100%\" height=\"100%\">";
	//t += "<tr>";
	//t += "<td valign=\"top\" class=\"textTd\" height=\"10px;\"></td>";
	//t += "</tr>";
	t += "<tr>";
	t += "<td valign=\"top\" class=\"textTd\" style=\"padding: 30px;\">";
	document.write(t);
}
//---------------------------
// Opmaak mainpages deel II
function tbl_part_02()
{
	t = "";	
	t += "</td>";
	t += "</tr>";
	t += "</table>";

	document.write(t);	
}
//---------------------------
sI = "<img id=\"img_kesh\" src=\"" + imgPath + "icons/info/info_icon_of.gif\" width=\"9\" height=\"9\" border=\"0\" " + 
     "onmouseover=\"fMo(this);\" onmouseout=\"fMo(this);\" alt=\"Klik hier voor meer informatie over deze website\" align=\"absmiddle\">";
//---------------------------
function fInfo()
{
	openMyPopup('../main/info.html',400,300,'Informatie',"yes");
}
//---------------------------
function fW(obj)
{
	document.write(obj);
}
//---------------------------
// Voor gecentreerde popUps
function openMyPopup(url,W,H,target,scroll,resize,title)
{
   if (!url){url = "";}
   if (!W){W = 200;}
   if (!H){H = 200;}
   if (!target){target = "_new"};
   if (!scroll){scroll = "no"};
   if (!resize){resize = "no"};
   if (!title){title = "no"};


   var X = (screen.width/2)-(W/2);
   var Y = (screen.height/2)-(H/2);

   var winPref = "width=" + W + ", height=" + H + ", left=" + X + ", top=" + Y + ", " +
	 							 "dependent=yes, titlebar=" + title + ", scrollbars=" + scroll + ", resizable=" + resize + "";

   win = window.open(url,target,winPref);
   win.focus();
}
//---------------------------
// Afbeelding wisselen
function fMo(obj)
{
	if(obj)
	{
		sImg = obj.src;
		
		if(sImg.indexOf('_of') != -1)
		{
			sImg = sImg.replace('_of','_on');
		}
		else
		{
			sImg = sImg.replace('_on','_of');
		}
		
		obj.src = sImg;
	}
}
//---------------------------
// Afbeelding wisselen vanuit een link
function fMo3(id,obj)
{
	if(id && obj)
	{
		sImg = document.getElementById(id);
		
		if(sImg)
		{
			sImg.src = obj;
		}
	}
}
//-----------------
// onmouseover & onmouseout
function fOv(id)
{
	if(id)
	{
		img = document.getElementById(id);
		if(img)
		{
			sImg = img.src;
			if(sImg.indexOf("_do") == -1)
			{
				if(sImg.indexOf("_on") != -1)
				{
					sImg = sImg.replace("_on","_of");
				}
				else
				{
					sImg = sImg.replace("_of","_on");
				}
				img.src = sImg;
			}
		}
	}
	else
	{
		defaultStatus = "ID mist voor 'fOv(id,sNm)'";
	}
}
//---------------------------
// Open een pagina
function fOpenPage(url,mode)
{
	window.open(url,'mainFrame');
}
//---------------------------
function fSwitchLang()
{
	t = "";
	t += "<a class=\"menuLink\" href=\"javascript:fInfo(); void('');\">" + sI + "</a>";
	document.write(t);
}
//---------------------------
/*</script>*/
