 $(document).ready( function(){
    var url = document.location.href;
    var startDeel = url.indexOf('index.php');
    url = url.slice(startDeel);

    $('ul.linkermenu a').each(function(){

        if($(this).attr("href") == url){
           $(this).addClass("active");
        }
    });

    if( $('#datumPrikken').length > 0 ){
       $('#datumPrikken').datepick();
    }

    if( $('div#videoLinks').length > 0){
        $('div#videoLinks a').click( function(){

             $('div#videoLinks a').each(function(){
                $(this).removeClass('active');
             });

             $(this).addClass('active');

             var jaar = $(this).attr('id');

             switch(jaar)
             {
                case '2009':
                    $('div#playert').html('<div id="ilsemedia_player_block"><embed height="218" width="360" flashvars="width=420&amp;height=254&amp;backcolor=0xFFFFFF&amp;frontcolor=0x000000&amp;showdigits=true&amp;autostart=true&amp;autostart_preroll=true&amp;file=http://belegger.smm.bin.ilsemedia.nl/m/m1czuxgs2vc5.flv&amp;button_playbig=button_playbig.swf&amp;button_playsmall=button_playsmall.swf&amp;preroll=http://ad.nl.doubleclick.net/pfadx/P4442.Belegger.nl/preroll;sz=640x360&amp;preroll_overstretch=false&amp;roadblocksize=234x60&amp;ad_img_url=http://st.ilsemedia.nl/video/smm/preroll.png" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#000000" name="single" id="single" style="" src="http://st.ilsemedia.nl/video/smm_player.swf?7172" type="application/x-shockwave-flash"/></div>');
                    break;
                case '2008':
                     $('div#playert').html('<div id="ilsemedia_player_block"><embed height="218" width="360" flashvars="width=420&amp;height=254&amp;backcolor=0xFFFFFF&amp;frontcolor=0x000000&amp;showdigits=true&amp;autostart=true&amp;autostart_preroll=true&amp;file=http://belegger.smm.bin.ilsemedia.nl/m/m1cz7i5sgrlo.flv&amp;button_playbig=button_playbig.swf&amp;button_playsmall=button_playsmall.swf&amp;preroll=http://ad.nl.doubleclick.net/pfadx/P4442.Belegger.nl/preroll;sz=640x360&amp;preroll_overstretch=false&amp;roadblocksize=234x60&amp;ad_img_url=http://st.ilsemedia.nl/video/smm/preroll.png" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#000000" name="single" id="single" style="" src="http://st.ilsemedia.nl/video/smm_player.swf?28787" type="application/x-shockwave-flash"/></div>');
                    break;
                case '2007':
                    $('div#playert').html('<div id="ilsemedia_player_block"><embed height="218" width="360" flashvars="width=420&amp;height=254&amp;backcolor=0xFFFFFF&amp;frontcolor=0x000000&amp;showdigits=true&amp;autostart=true&amp;autostart_preroll=true&amp;file=http://belegger.smm.bin.ilsemedia.nl/m/m1czequsmd7y.flv&amp;button_playbig=button_playbig.swf&amp;button_playsmall=button_playsmall.swf&amp;preroll=http://ad.nl.doubleclick.net/pfadx/P4442.Belegger.nl/preroll;sz=640x360&amp;preroll_overstretch=false&amp;roadblocksize=234x60&amp;ad_img_url=http://st.ilsemedia.nl/video/smm/preroll.png" allowscriptaccess="always" allowfullscreen="true" quality="high" bgcolor="#000000" name="single" id="single" style="" src="http://st.ilsemedia.nl/video/smm_player.swf?81556" type="application/x-shockwave-flash"/></div>');
                    break;

             }

        });
    }

});

if (document.images) {
    img1 = new Image();
    img1.src = "images/big/overktc.JPG";
    img2 = new Image();
    img2.src = "images/big/events.JPG";
    img3 = new Image();
    img3.src = "images/big/communicatie.JPG";
    img4 = new Image();
    img4.src = "images/big/portfolio.JPG";
    img5 = new Image();
    img5.src = "images/big/web.JPG";
    img5 = new Image();
    img5.src = "images/big/overig.JPG";
}

function RequiredNames()
    {

    naam = document.form1.naam.value;
    emailadres = document.form1.emailadres.value;
	betreft = document.form1.betreft.value;
	opmerking = document.form1.opmerking.value;
    budget = document.form1.budget.value;
    deadline = document.form1.deadline.value;
    laatste = document.form1.laatste.value;

	if (naam == '')
		{
		alert("U bent vergeten uw naam in te vullen.");
		return false;
        }
	if (emailadres == '')
		{
		alert("U bent vergeten uw emailadres in te vullen.");
		return false;
		}
   if (betreft == '')
		{
		alert("U bent vergeten wat de aanvraag betreft.");
		return false;
		}
   if (opmerking == '')
		{
		alert("U bent vergeten uw vraag in te vullen.");
		return false;
		}
   if (budget == '')
		{
		alert("U bent vergeten het budget in te vullen.");
		return false;
		}
   if (laatste != '')
		{
		return false;
		}
   document.forms.form1.submit();
}

function RequiredNames2()
    {

    naam = document.form2.naam.value;
    emailadres = document.form2.emailadres.value;
	opmerking = document.form2.opmerking.value;
    laatste = document.form2.laatste.value;

	if (naam == '')
		{
		alert("U bent vergeten uw naam in te vullen.");
		return false;
        }
	if (emailadres == '')
		{
		alert("U bent vergeten uw emailadres in te vullen.");
		return false;
		}
   if (opmerking == '')
		{
		alert("U bent vergeten uw vraag in te vullen.");
		return false;
		}
   if (laatste != '')
		{
		return false;
		}
   document.forms.form2.submit();
}

function RequiredNames3()
    {


    emailadres = document.form3.emailadres.value;
    laatste = document.form3.laatste.value;

	if (emailadres == '')
		{
		alert("U bent vergeten uw emailadres in te vullen.");
		return false;
		}
   if (laatste != '')
		{
		return false;
		}
   document.forms.form3.submit();
}


