// Algemene variabelen
//---------------------------
var siteTitle 	= "Copy Shop Joure";
var path		= "";
var altPath;
var img 		= "";
var frameNm		= "mainFrame";
var h	 		= "";
var f			= "";
var txt;
//---------------------------
// Bepaalt het pad naar de SubMappen
if (altPath == "0") { path = "";}
if (altPath == "1") { path = "../";}
if ((altPath == "") || (altPath == undefined)) { path = "../../"; }
//---------------------------
var imgPath = path + "img/";
var imgid	= 0;
//---------------------------
// De titel in elke webpagina
if (document.title == "")
{
	document.write("<title>" + siteTitle + "</title>");
}
//---------------------------
function slogan_01()
{

}
//---------------------------
function address_01()
{
	a = "";
	//a += "www.copyshopjoure.nl<br>";
	//a += "info@copyshopjoure.nl<br>";
	a += "Midstraat 153<br>";
	a += "8501 AL  Joure<br>";
	a += "Tel. 0513 418153<br>";
	a += "of   0513 415989<br>";
	a += "Fax 0513 410380<br>";
	a += "Bank: Rabo 359599788<br>";
	a += "B.t.w 0662.84.259.B.01<br>";
	a += "K.v.K L’Warden 01098933<br>";
	document.write(a);
	a = "";
}
//---------------------------
function email_01()
{
	mail = "";
	mail += "info";
	mail += "@";
	mail += "copyshopjoure";
	mail += ".nl";
	
	t = "E: ";
	t += "<a class=\"\" href=\"mailto:" + mail;
	t += "?Subject=Info aanvraag via de website";
	t += "&Body=Geachte heer / mevrouw\">" + mail + "</a>";
	document.write(t);
	t = "";
}
//---------------------------
// Verberg de image toolbar in IE 6
document.write("<META HTTP-EQUIV=\"imagetoolbar\" CONTENT=\"no\">");
//---------------------------
// StyleSheet
document.write("<link rel=\"stylesheet\" href=\"" + path + "css/global/styles.css\">");
//---------------------------
// Menu Bullet
function bull()
{
	document.write("<nobr>&nbsp;»&nbsp;</nobr>");
}
//---------------------------
function kesh()
{
	img = "";
	img += "<a href=\"http://www.kesh.nl\" target=\"_blank\">";
	img += "<img border=\"0\" src=\"" + path + "img/logos/kesh/kesh_logo_18x18.gif\" alt=\"Ontworpen door Kesh ICT Services\">";
	img += "</a>";
	//img += "<p>"
	document.write(img);
	img = "";
}
//---------------------------
// Pagina kop
function header(txt)
{
	if(!(txt) || (txt == ""))
	{
		txt = "<strong class=\"header2\">Welkom op de website van </strong><strong class=\"header\">" + siteTitle + "</strong>";
	}
	else
	{
		txt = "<strong class=\"header\">" + txt + "</strong>";
	}

	h += "<table border=\"0\" cellspacing=\"0\" cellpadding=\"1\" height=\"100%\" width=\"600\">";
 	h += "<tr>";
  	h += "<td class=\"headerTd\" valign=\"top\" height=\"1%\">" + txt + "</td>";
 	h += "</tr>";
	h += "<tr>";
	h += "<td class=\"textTd\" height=\"98%\" valign=\"top\">";

	document.write(h);
	h = "";
}
//---------------------------
// Pagina einde
function footer()
{
	f += "</td>";
 	f += "</tr>";
 	f += "<tr>";
  	f += "<td class=\"footerTd\" valign=\"bottom\" height=\"1%\"><strong class=\"smallLine\">" + siteTitle + " (c)</strong></td>";
 	f += "</tr>";
	f += "</table>";

	document.write(f);
	f = "";
}
//---------------------------
//Statusbalk tekst
defaultStatus = siteTitle;
//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
//---------------------------
function writeMenuButton(img,url)
{
	var btn = "";
	
	if((img) || (url))
	{
		btn += "<a href=\"#.html\" onclick=\"parent.frames['" + frameNm + "'].location='" + url + "'\" ";
		btn += "onMouseOver=\"document.getElementById('" + imgid + "').src='" + imgPath + img + "_on.gif';\" ";
		btn += "onMouseOut=\"document.getElementById('" + imgid + "').src='" + imgPath + img + "_off.gif';\" ";
		btn += ">";
		btn += "<img id=\"" + imgid + "\" src=\"" + imgPath + img + "_off.gif\" border=\"0\">";  
		btn += "</a> "; 
		imgid++;
	}
	else
	{
		btn = "Error";
	}
	document.write(btn);
	btn = "";
}
//---------------------------
// MOUSEOVER tabellen
// Variabele voor het aan of uit zetten van geselecteerde rijen
var sel = false;
var ORule = false;
// TR Onclick - Selecteer een rij of deselecteer deze
function selTr(row)
{
	if(row.sel == true)
	{
		row.className = 'menuTr';
		row.sel = false;
	}
	else
	{
		selectOneTR(row);
		row.className = 'menuDoTr';
		row.sel = true;
	}
}
// TR Mouseover - klasse wijziging
function overTr(row,oRule)
{
	// Is de huidige rij geselecteerd
	if (row.sel != true)
	{
		row.className = 'menuOvTr';
	}
}
// TR Mouseout - klasse wijziging
function outTr(row,oRule)
{
	// Wanneer er een selectie wordt opgeheven
	if (ORule == true)
	{
		// Zorgt er voor dat de gedeselecteerde rij gereset wordt
		row.sel = false;
	}
	// Wanneer een rij niet geselecteerd is
	if (row.sel != true)
	{
		row.className = 'menuTr';
		row.sel = false;
		ORule = false;
	}
}
// Controleer of er al een rij was geselecteerd
function selectOneTR(row)
{
	sTr = document.getElementById("thisTable");
	for(var i = 0; i < sTr.getElementsByTagName("tr").length; i++)
	{
    	if(sTr.getElementsByTagName("tr")[i].className == "menuDoTr")
		{
			// Reset alle rijen die voldoen aan de klasse
		  	sTr.getElementsByTagName("tr")[i].className = "menuTr";
		  	ORule = true;
			// Ga naar deze functie om de gedeselecteerde rij te resetten
			outTr(sTr.getElementsByTagName("tr")[i],ORule)
		}
	}
}
//---------------------------
