// JavaScript Document

function openMediabestand (mediabestand_id,breedte,hoogte) {
	new $.nyroModalManual({
		bgColor: '#000000',
		width: breedte, // default Width If null, will be calculate automatically
		height: (hoogte*1) + 20, // default Height If null, will be calculate automatically
		autoSizable: false,
		forceType: 'iframe',
		url: '/mediabestand.asp?mediabestand=' + mediabestand_id
	});
}

function openFerneyleden (provincie) {
	new $.nyroModalManual({
		bgColor: '#000000',
		width: null, // default Width If null, will be calculate automatically
		height: null, // default Height If null, will be calculate automatically
		minWidth: 600, // Minimum width
		minHeight: 600, // Minimum height
		autoSizable: true,
		forceType: 'iframe',
		url: '/ferneyleden.asp?provincie=' + provincie
	});
}

function openFlippingbook (url) {
	new $.nyroModalManual({
		bgColor: '#000000',
		width: $(window).width()-32,
		height: $(window).height()-32,
		autoSizable: false,
		resizable: false,
		url: url
	});
}

function openGoogleMaps (adres,webcode) {
	if (webcode != '') {
		url = 'http://www.ferney.nl/googlemaps.asp?webcode=' + webcode;
	}
	else {
		url = 'http://www.ferney.nl/googlemaps.asp?adres=' + adres;
	}
	new $.nyroModalManual({
		bgColor: '#000000',
		width: $(window).width()-32, // default Width If null, will be calculate automatically
		height: $(window).width()-32, // default Height If null, will be calculate automatically
		autoSizable: true,
		forceType: 'iframe',
		url: url
	});
}

function zoekLeden () {
	$('#Id').val('');
	$('#Provincie').val('');
	$('#zoekForm').submit();
}
function gaNaarLedenlijst (provincie) {
	$('#Provincie').val(provincie);
	$('#Bedrijfsnaam').val('');
	$('#Plaats').val('');
	$('#zoekForm').submit();
}
function gaNaarLid (id) {
	$('#Id').val(id);
	$('#Provincie').val('');
	$('#Bedrijfsnaam').val('');
	$('#Plaats').val('');
	$('#zoekForm').submit();
}
function zoekBestanden (id) {
	$('#productgroep').val(id);
	$('#zoekForm').submit();
}
