
$(document).ready(function() {
	//Login
	$('#login-aanmelden').click(function() {
		window.location = "/aanmaken_account";    

	});
	$('#login-wachtwoordvergeten').click(function() {
		window.location =  "/wachtwoord_vergeten";    
	});
	$('#mijnvl').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=mijnvl'
      });
	$('#ditkoopik').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=ditkoopik'
      });
	 $('#wgegevens').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=wgegevens'
      });
	 $('#wijzigww').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=wijzigww'
      });
	  $('#snellijst').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=snellijst'
      });
	  	  $('#vragen').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=vragen'
      });
	   $('#fotolink').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=fotolink'
      });
	  $('#fotozoeken').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=fotozoeken'
      });
	  $('#speelgoedzoeker').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=speelgoedzoeker'
      });
	  $('#datumlijst').infoBox({
        animation: ['opacity', 'bottom'],
		ajaxURL: '/help.asp?help=datumlijst'
      });
	  $("#add-verlanglijstjeui").click(function(){
		  
			$('#dialog').dialog('open');
		});

		$('#dialog_link').click(function(){
			$('#dialog').dialog('open');
			return false;
		
		});
	  
});
function getcss(waarde)
{
				var thema;
			/*	if(waarde==3)
				{
					thema = "";
				}
				if(waarde==1)
				{
					thema = "/cssnew/theme_sinterklaas.css";
				}
				if(waarde==2)
				{
					thema = "/cssnew/theme_kerst.css";
				}
				if(waarde==0)
				{
					thema = "/cssnew/theme_verjaardag.css";
				}
				if(waarde==4)
				{
					thema = "/cssnew/theme_trouwen.css";
				}
				if(waarde==5)
				{
					thema = "/cssnew/theme_kraamfeest_jongen.css";
				}
				if(waarde==6)
				{
					thema = "/cssnew/theme_kraamfeest_meisje.css";
				}
				if(waarde==7)
				{
					thema = "/cssnew/theme_housewarming.css";
				}
				if(waarde==8)
				{
					thema = "/cssnew/theme_luxefeest.css";
				}
				*/
				$("link[id=thema]").attr("href","/cssnew/theme_standard.asp?styletype="+waarde);
}



// fotoscipt
this.imagePreview = function(){	
		xOffset = 10;
		yOffset = 30;
		
	$("a.preview").hover(function(e){
		this.t = this.title;
		this.title = "";	
		var c = (this.t != "") ? "<br/>" + this.t : "";
		$("body").append("<p id='preview'><img src='"+ this.name +"' width='300px' alt='Image preview' />"+ c +"</p>");								 
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");						
    },
	function(){
		this.title = this.t;	
		$("#preview").remove();
    });	
	$("a.preview").mousemove(function(e){
		$("#preview")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};


// starting the script on page load
$(document).ready(function(){
	imagePreview();
});
