try {
	$(document).ready(function() {
		try {
			$("a#contactform").fancybox({
				'width'		:	690,
				'height'	:	350,
				'titleShow'	:	false
			});	
		}
		catch (err) {}
	});
	$(document).ready(function() {	
		try {
			$("a.button2").fancybox({
				'width'		:	690,
				'height'	:	410,
				'titleShow'	:	false
			});	
		}
		catch (err) {}
	});
	$(document).ready(function() {	
		try {
			$("a.probeer").fancybox({
				'width'		:	690,
				'height'	:	380,
				'titleShow'	:	false
			});	
		}
		catch (err) {}
	});
}
catch (err) {}

$(document).ready(function () {
    $('.subslider > li > ul').hide();
    $('.subslider > li').click(function (event) {
        if (this !== event.target) {
            return true;
        }
        if ($('.subslider ul').is(':animated')) {
            return false;
        }
        $heading = $(this);
        $expandedSiblings = $heading.siblings().find('ul:visible');
        if ($expandedSiblings.size() > 0) {
            $expandedSiblings.slideUp(300, function () {
                $heading.find('ul').slideDown(300);
            });
        } else {
            $heading.find('ul').slideToggle(300);
        }
		
		if (jQuery.browser.msie)
		{
			//alert(window.onresize);
			
		}
    });
	//alert(jQuery.browser.version);
	resizeBrowserIfIE();
});

function resizeBrowserIfIE()
{
	if (jQuery.browser.msie && parseInt(jQuery.browser.version) < 9)
	{
		try
		{
		//alert(window.onresize);
			window.onresize();
			setTimeout("resizeBrowserIfIE()", 100);
		}
		catch (err) {}
	}
}
