// JavaScript Document
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function OpenPopup(sPicURL)
{    window.open("http://www.ggweb.nl/popup.php?"+sPicURL, "Vergroting", "resizable=0,HEIGHT=220,WIDTH=220");
} 
function changeImage(Obj)
{
	if( document.getElementById('big') ) 
	{
		document.getElementById('big').src = Obj.src;
	}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

$(document).ready(function($){
	var options = {
	    resizeLgImages:     true,
	    displayNav:         true,
	    handleUnsupported:  'remove',
	    keysClose:          ['s', 27], // c or esc
	    autoplayMovies:     true
	};
	Shadowbox.init(options);
	
	/*/ set up all anchor elements with a 'movie' class to work with Shadowbox
	Shadowbox.setup($('a.movie'), {
	    autoplayMovies:     true
	});*/
	$('#nav li').hover(function(){
		$(this).addClass('hover');
	},function() {
		$(this).removeClass('hover');
	});
	
	$('#newsletter').fadeIn(2000);

	/*$('#newsletter_form').ajaxForm({
		beforeSubmit: function(formArray, jqForm){
			if($('#email').val()==""){
				alert('Geef een geldig e-mailadres op');
				return false;
			}
			$("#btn_submit_newsletter").attr("disabled","true").attr("value", "Bezig...");
			//jQuery('#loading').fadeIn();
			//jQuery(jQuery(this)).addClass('loading');
			return true; 
		},
		success: function(data, status){
		},
		complete: function(){
			//jQuery('#loading').hide();
			//jQuery(jQuery(this)).removeClass('loading');
			$('#newsletter_body').fadeOut();
			$('#newsletter_confirmation').fadeIn();
			//window.location.reload();
		}
	});*/
	
	$("ul#nav2").superfish({ 
            pathClass:  'active'              
    }); 

});


function switchLanguage(lang) {
    u = location.href.split('/');
    u[5] = lang;
    location.href = u.join('/');
}


