﻿function setBorderWeerOnline() 
{ 
    //if (document.getElementById("weer_online")) document.getElementById("weer_online").getElementsByTagName("table")[0].border = 0; 
}

function setImageWidthNewsteasers() 
{
/*
    var teasers = document.getElementById("newsteasers")
    
    if (teasers)
    {
		var imgs = teasers.getElementsByTagName("img");
		var i = imgs.length;
	    
		while(i--)
		{
			if (imgs[i].width > 209)
			{
				imgs[i].width = 209;
			}
		}
    }
*/
}


function OpenPics(url, iwidth, iheight)
{
	window.open(url,"afbeelding","width="+iwidth+",height="+iheight+",left=125,top=100");
}

function OpenPopupCalendar(dDatum, hidField, tmpField)
{
	popup = window.open('popCalendar.aspx?datum='+ dDatum +'&hidField='+ hidField +'&tmpField='+ tmpField, 'popCalendar', 'height=180, width=200 left=100, top=100, status=no, toolbar=no')
}

$(function(){
	/*
	if ($.cookie('warning') == 'close') {

	} else {
	
		$('<div class="warning" />').css({
			width: '280px',
			height: '180px',
			position: 'absolute',
			left: '50%',
			top: '50%',
			marginLeft: '-150px',
			marginTop: '-100px',
			background: 'white',
			'z-index': '3',
			padding: '10px',
			border: '5px solid grey'
		}).html('<p>“NIEUW: Fun Valley Beach & play open vanaf 18 december. Indoor adventure binnenkort. Officiële opening volgt. </p><p>Aan deze website wordt gewerkt</p><p>Daarom kan het voorkomen dat functionaliteiten niet werken of beschikbaar zijn</p>').appendTo('body');
	
	} 	
	$('body').find('.warning').append('<a href="#" id="close">Sluiten</a>')
	$('body').find('#close').css({
		position: 'absolute',
		bottom: '5px',
		right: '5px'
	});
	$('#close').live('click',function() {
		$('.warning').remove();
		$.cookie('warning', 'close', { path: '/' });
	});
	*/
	
});
