﻿// JavaScript functions for Trouwportaal | Directory.cfm 

function RegionNavShow() {
	var chldrn = document.getElementById("RegionNavigation");
	chldrn.style.height = "auto";
	chldrn.style.overflow = "auto";
	document['RegWinIcon'].src = '/Images/Icons/Skin4/windowcontract.gif';
	document['RegWinIcon'].alt = 'Verberg regio menu';
}	
function RegionNavHide() {
	var chldrn = document.getElementById("RegionNavigation");
	chldrn.style.height = "16px";
	chldrn.style.overflow = "hidden";
	document['RegWinIcon'].src = '/Images/Icons/Skin4/windowexpand.gif';
	document['RegWinIcon'].alt = 'Open regio menu';
}
function RegionNavToggle() {
	var chldrn = document.getElementById("RegionNavigation");
	if (chldrn.style.height == 'auto') RegionNavHide();
	else RegionNavShow();
}
function AdSenseShow() {
	var GoogleAds = document.getElementById("GoogleAds");			
	GoogleAds.style.display = "block";
}	
function AdSenseHide() {
	var GoogleAds = document.getElementById("GoogleAds");			
	GoogleAds.style.display = "none";
}			
function CategoriesShow() {
	var cat = document.getElementById("CategoryList");			
	cat.style.height = "auto";
	cat.style.overflow = "auto";
	document['CatWinIcon'].src = '/Images/Icons/Skin4/windowcontract.gif';
	document['CatWinIcon'].alt = 'Klik om te verbergen..';
	document.getElementById("CatOptText").innerHTML = 'verberg ..';
	AdSenseHide();
}	
function CategoriesHide() {
	var cat = document.getElementById("CategoryList");
	cat.style.height = "200px";
	cat.style.overflow = "hidden";
	document['CatWinIcon'].src = '/Images/Icons/Skin4/windowexpand.gif';
	document['CatWinIcon'].alt = 'Klik voor ALLE rubrieken..';
	document.getElementById("CatOptText").innerHTML = 'laat alle rubrieken zien ..';
	AdSenseShow();
}	
function CategoriesToggle() {
	var cat = document.getElementById("CategoryList");
	if (cat.style.height == 'auto') CategoriesHide();
	else CategoriesShow();
}
function ListingOn(l) {
	var lstng = document.getElementById("Listing" + l);
	lstng.style.backgroundColor = "FFFFF9";
}	
function ListingOff(l) {
	var lstng = document.getElementById("Listing" + l);
	lstng.style.backgroundColor = "FFF";
}