var xmlHttp = false;
var xmlHttp2 = false;

try {
    xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {
        xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp  = false;
    }
}

if (!xmlHttp  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}

try {
    xmlHttp2  = new ActiveXObject("Msxml2.XMLHTTP");
} catch(e) {
    try {
        xmlHttp2  = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        xmlHttp2  = false;
    }
}

if (!xmlHttp2  && typeof XMLHttpRequest != 'undefined') {
    xmlHttp2 = new XMLHttpRequest();
}
function removeContentBoxes() {
	document.getElementById("ContentBox").innerHTML = '<table width=\'670\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\'><tr><td align=\'center\'><img src=\'http://www.kamangir.nl/img/pik.gif\' width=\'28\' height=\'28\' align=\'center\'></td></tr></table>';
	document.getElementById("TitleTop").innerHTML = '';
	document.getElementById("ItemsBelow").innerHTML = '';
}
//#############################################################################################################################################
function openHL(id) {
	document.getElementById("ContentBox").innerHTML = '<table width=\'670\' border=\'0\' cellpadding=\'0\' cellspacing=\'0\'><tr><td align=\'center\'><img src=\'http://www.kamangir.nl/img/pik.gif\' width=\'28\' height=\'28\' align=\'center\'></td></tr></table>';
	
	if (xmlHttp) {
		xmlHttp.open('GET', 'headlines.php?getID='+id, true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
			}
		}
		xmlHttp.send(null);
	}
}
function getToHome() {
	//removeContentBoxes();
	getToItemsHome();
	if (xmlHttp) {
		xmlHttp.open('GET', 'content_.php?CB=1', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
				document.getElementById("Header").innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"1000\" height=\"250\"><param name=\"movie\" value=\"img/flash/header_1.swf\"><param name=\"quality\" value=\"high\"><embed src=\"img/flash/header_1.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"250\"></embed></object>"
			}
		}
		xmlHttp.send(null);
	}
}
function getToItemsHome() {
	if (xmlHttp2) {
		xmlHttp2.open('GET', 'content_.php?IB=1', true);
		xmlHttp2.onreadystatechange = function () {
			if (xmlHttp2.readyState == 4) {
				document.getElementById("ItemsBelow").innerHTML = xmlHttp2.responseText;
			}
		}
		xmlHttp2.send(null);
	}
}
//#############################################################################################################################################
function getToTRS() {
	removeContentBoxes();
	getToItemsTRS();
	if (xmlHttp) {
		xmlHttp.open('GET', 'content_.php?CB=2', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
				document.getElementById("Header").innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"1000\" height=\"250\"><param name=\"movie\" value=\"img/flash/header_2.swf\"><param name=\"quality\" value=\"high\"><embed src=\"img/flash/header_2.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"250\"></embed></object>"
			}
		}
		xmlHttp.send(null);
	}
}
function getToItemsTRS() {
	if (xmlHttp2) {
		xmlHttp2.open('GET', 'content_.php?IB=2', true);
		xmlHttp2.onreadystatechange = function () {
			if (xmlHttp2.readyState == 4) {
				document.getElementById("ItemsBelow").innerHTML = xmlHttp2.responseText;
			}
		}
		xmlHttp2.send(null);
	}
}
//#############################################################################################################################################
function getToBio() {
	removeContentBoxes();
	getToItemsBio();
	if (xmlHttp) {
		xmlHttp.open('GET', 'content_.php?CB=3', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
				document.getElementById("Header").innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"1000\" height=\"250\"><param name=\"movie\" value=\"img/flash/header_3.swf\"><param name=\"quality\" value=\"high\"><embed src=\"img/flash/header_3.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"250\"></embed></object>"
			}
		}
		xmlHttp.send(null);
	}
}
function getToItemsBio() {
	if (xmlHttp2) {
		xmlHttp2.open('GET', 'content_.php?IB=3', true);
		xmlHttp2.onreadystatechange = function () {
			if (xmlHttp2.readyState == 4) {
				document.getElementById("ItemsBelow").innerHTML = xmlHttp2.responseText;
			}
		}
		xmlHttp2.send(null);
	}
}
//#############################################################################################################################################
function getToExtras() {
	removeContentBoxes();
	getToItemsExtras();
	if (xmlHttp) {
		xmlHttp.open('GET', 'content_.php?CB=4', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
				document.getElementById("Header").innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"1000\" height=\"250\"><param name=\"movie\" value=\"img/flash/header_4.swf\"><param name=\"quality\" value=\"high\"><embed src=\"img/flash/header_4.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"250\"></embed></object>"
			}
		}
		xmlHttp.send(null);
	}
}
function getToItemsExtras() {
	if (xmlHttp2) {
		xmlHttp2.open('GET', 'content_.php?IB=4', true);
		xmlHttp2.onreadystatechange = function () {
			if (xmlHttp2.readyState == 4) {
				document.getElementById("ItemsBelow").innerHTML = xmlHttp2.responseText;
			}
		}
		xmlHttp2.send(null);
	}
}
//#############################################################################################################################################
function getToDownloads() {
	removeContentBoxes();
	getToItemsDownloads();
	if (xmlHttp) {
		xmlHttp.open('GET', 'content_.php?CB=5', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
				document.getElementById("Header").innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"1000\" height=\"250\"><param name=\"movie\" value=\"img/flash/header_5.swf\"><param name=\"quality\" value=\"high\"><embed src=\"img/flash/header_5.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"250\"></embed></object>"
			}
		}
		xmlHttp.send(null);
	}
}
function getToItemsDownloads() {
	if (xmlHttp2) {
		xmlHttp2.open('GET', 'content_.php?IB=5', true);
		xmlHttp2.onreadystatechange = function () {
			if (xmlHttp2.readyState == 4) {
				document.getElementById("ItemsBelow").innerHTML = xmlHttp2.responseText;
			}
		}
		xmlHttp2.send(null);
	}
}
//#############################################################################################################################################
function getToLinks() {
	removeContentBoxes();
	getToItemsLinks();
	if (xmlHttp) {
		xmlHttp.open('GET', 'content_.php?CB=6', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
				document.getElementById("Header").innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"1000\" height=\"250\"><param name=\"movie\" value=\"img/flash/header_6.swf\"><param name=\"quality\" value=\"high\"><embed src=\"img/flash/header_6.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"250\"></embed></object>"
			}
		}
		xmlHttp.send(null);
	}
}
function getToItemsLinks() {
	if (xmlHttp2) {
		xmlHttp2.open('GET', 'content_.php?IB=6', true);
		xmlHttp2.onreadystatechange = function () {
			if (xmlHttp2.readyState == 4) {
				document.getElementById("ItemsBelow").innerHTML = xmlHttp2.responseText;
			}
		}
		xmlHttp2.send(null);
	}
}
//#############################################################################################################################################
function getToContact() {
	removeContentBoxes();
	getToItemsContact();
	if (xmlHttp) {
		xmlHttp.open('GET', 'content_.php?CB=7', true);
		xmlHttp.onreadystatechange = function () {
			if (xmlHttp.readyState == 4) {
				document.getElementById("ContentBox").innerHTML = xmlHttp.responseText;
				document.getElementById("Header").innerHTML = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0\" width=\"1000\" height=\"250\"><param name=\"movie\" value=\"img/flash/header_7.swf\"><param name=\"quality\" value=\"high\"><embed src=\"img/flash/header_7.swf\" quality=\"high\" pluginspage=\"http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"1000\" height=\"250\"></embed></object>"
			}
		}
		xmlHttp.send(null);
	}
}
function getToItemsContact() {
	if (xmlHttp2) {
		xmlHttp2.open('GET', 'content_.php?IB=7', true);
		xmlHttp2.onreadystatechange = function () {
			if (xmlHttp2.readyState == 4) {
				document.getElementById("ItemsBelow").innerHTML = xmlHttp2.responseText;
			}
		}
		xmlHttp2.send(null);
	}
}
//#############################################################################################################################################