$j(document).ready(function(){var loadingimg=$j('<img src="/images/loading.gif" />');$j.getScript('/js/common.js');$j('.form_reply').live('submit',function(event){var thisitem=$j(this);var thistext=$j('textarea',thisitem);if(thistext.val()!=''){var data=$j(':input',thisitem).serialize();var first=$j(':input',thisitem).eq(0).val();$j.ajax({url:'/ajax/handle_reply.php',data:data,type:'POST',success:function(returnValue){if(returnValue=='error'){alert('Er is een fout opgetreden')}else{$j('<p id="replysuccess">Je bericht is verstuurd</p>').insertBefore(thisitem);$j('#replysuccess').fadeOut(3000);$j(':submit',thisitem).attr('disabled','disabled');if(first==1){thisitem.parent().parent().prepend(returnValue).hide().fadeIn()}if(first==''){thisitem.parent().prev().prev().prepend(returnValue).hide().fadeIn()}$j('#smilespopup').remove();thistext.val('')}}})}event.preventDefault()});if(document.getElementById('page-home')||document.getElementById('pagehotspots')){function carousel(sclass,num,size,vis,nscroll){$j(sclass+num).jCarouselLite({btnNext:".CarouselNext"+num,btnPrev:".CarouselPrev"+num,visible:vis,scroll:nscroll,size:size,circular:false})}carousel('.carous',1,305,5,5);carousel('.carous',2,305,5,5);carousel('.carousvideo',3,300,4,4);carousel('.carousvideo',4,300,4,4);carousel('.caroushs',1,180,3,3)}$j('.n_l').hover(function(){$j('.n_limg',this).stop().animate({left:'200px'},{queue:false,duration:300})},function(){$j('.n_limg',this).stop().animate({left:'0px'},{queue:false,duration:300})});$j('#menu li').hover(function(){$j(this).find('div').show();$j(this).find('a:first').css({'backgroundColor':'#727272','color':'#000'})},function(){$j(this).find('div').hide();$j(this).find('a:first').css({'backgroundColor':'','color':''})});$j('#login').toggle(function(){$j('#user_menu').animate({'height':'+=150px'},1000,'linear').css('backgroundColor','#333');$j('#login_form').show()},function(){$j('#user_menu').animate({'height':'-=150px'},1000,'swing',function(){$j(this).css('backgroundColor','');$j('#login_form').hide()})});$j('#form_user_login').submit(function(){var data=$j('input',this).serialize();$j.ajax({'url':'/transact/login-transact.php','type':'POST','data':data,'success':function(data){if(data=='error'){$j('<div></div>').prependTo('#login_form').addClass('error').text('Je opgegeven combinatie is niet correct').hide(7000)}else{document.location.href=data}}});return false});if(document.getElementById('pagehotspots')){function getResults(items){var items=items==null?'  ':items.replace(/\//,'').split(':');$j('#hotspots_search_result').empty().append(loadingimg);$j.get('/ajax/gethotspots_list.php',{'data':items,'ajax':'y'},function(data){$j('#hotspots_search_result').empty().append(data)})}function pageloadhotspots(hash){if(hash){getResults(hash)}else{getResults(null)}}$j.historyInit(pageloadhotspots);$j('.hotspots_zoeken ul li').css('cursor','pointer').click(function(){$j.historyLoad(this.id);return false});$j('#search_hotspots').submit(function(){if($j('#search').val()!=''&&$j('#search').val().length>1){$j.historyLoad('single:'+$j('#search').val())}return false})}$j('.search_hotspots_ext').toggle(function(){$j('#search_hotspots_ext').slideDown()},function(){$j('#search_hotspots_ext').slideUp()});$j('#tip_hotspot').click(function(){$j('#send_container').slideDown('slow');$j('#send_content').prepend(loadingimg).show();$j('html,body').animate({scrollTop:0},'slow');$j.get('/ajax/tip_hotspot.php',function(data){$j('#send_content').html(data);loadingimg.remove();$j('#send_tip').submit(function(){var naam=$j("#naam").val();var website=$j("#website").val();var errorMes=$j(' <span> Dit veld is verplicht</span>');$j("#send_tip span").remove();if(naam==''){errorMes.insertAfter('#naam');return false}if(website==''){errorMes.insertAfter('#website');return false}var data=$j('#send_tip').serialize();$j.ajax({'url':'/ajax/tip_hotspot.php','data':data,'type':'POST','success':function(data){if(data=='ok'){$j('#send_hs_container').remove();$j('#send_tip_container').html('<p>Je bericht is verstuurd! We kunnen niet garanderen dat je tip geplaatst wordt!</p>')}else{alert('Er is een probleem contact de admin')}}});return false})});return false});$j('#hotspot_cont_items div').not(':first').hide();$j('.hs_tab_items a').click(function(){var thisclass=$j(this).parent().attr('class');$j('.hs_tab_items a').removeClass('list_tab_active');$j(this).addClass('list_tab_active');$j('#hotspot_cont_items  div:visible').hide();$j('#hotspot_cont_items div[class='+thisclass+']').show().children().show();return false});$j('.hs_video_preview').css('cursor','pointer').click(function(){var thisid=this.id;$j.get('/ajax/hs_video_preview.php',{'id':thisid},function(data){$j(data).appendTo('#hs_video_preview');$j('#hs_video_preview').show()})});$j('#hotspots_email').css('cursor','pointer').click(function(){$j('#hotspots_options_holder').slideToggle();var id=$j('#i_id').val().split(':')[0];$j.get('/ajax/send_hs_info.php',{'id':id},function(data){$j('#hotspots_options_holder').html(data);$j('#send_hs').submit(function(){var naam=$j("#van").val();var email=$j("#email").val();var bericht=$j("#bericht").val();var errorMes=$j(' <span> Dit veld is verplicht</span>');$j("#send_hs span").remove();if(naam==''){errorMes.insertAfter('#van');return false}if(!/.+@.+\.[a-zA-Z]{2,4}$/.test(email)||email==''){errorMes.insertAfter('#email');return false}if(bericht==''){errorMes.insertAfter('#bericht');return false}var data=$j('#send_hs').serialize();$j.ajax({'url':'/ajax/send_hs_info.php','data':data,'type':'POST','success':function(data){if(data=='ok'){$j('#send_hs_container').remove();$j('#hotspots_options_holder').html('<p>Je bericht is verstuurd! We kunnen niet garanderen dat je bericht terugkrijgt!</p>')}else{alert('Er is een probleem contact de admin')}}});return false})})});$j('.hs_route').css('cursor','pointer').click(function(){$j('#hotspots_options_holder').slideToggle();var latlon=this.id;$j.get('/ajax/send_hs_route.php',{'latlon':latlon},function(data){$j('#hotspots_options_holder').html(data)})});var removeHsFavorite=function(){$j('.hotspots_fav_rem').css('cursor','pointer').click(function(){var id=this.id;$j.ajax({'url':'/ajax/hotspotfav.php','data':{'id':id,'type':'df'},'type':'POST','success':function(data){if(data=='ok'){$j('.hotspots_fav_rem').hide();$j('.sucess_txt').css('color','#093');$j('.greenborder').fadeOut(4000)}else{alert('Er is een fout opgetreden')}}});return false})};$j('.hotspots_fav').css('cursor','pointer').click(function(){var splitid=$j('#i_id').val().split(':')[0];$j.ajax({'url':'/ajax/hotspotfav.php','data':{'data':splitid},'type':'POST','success':function(data){if(data=='ok'){$j.get('/ajax/hotspot_success.php',{'id':splitid,'type':'ajax'},function(data){$j(data).insertAfter('#goregistercontent');removeHsFavorite()})}else{alert(data)}}});return false});$j('.ajaxnav').live('click',function(){var page=this.id.split(':');$j.ajax({'url':'/ajax/'+page[0]+'.php','data':{'pages':page[1],'ajax':Math.random(),'id':$j('#id_user').val()},'type':'GET','success':function(data){if(data.length){$j('#res_'+page[0]).empty();$j('#res_'+page[0]).html(data);$j('a[rel="colorbox"],a[rel="colorboxalbum"]').colorbox()}else{loadingimg.remove()}}});return false});$j('.id_rem_item').css('cursor','pointer').live('click',function(){var data=$j(this).parent().prev().parent().attr('id');var thisid=$j(this);$j.ajax({'url':'/ajax/handle_pid.php','data':{'data':data},'type':'POST','success':function(data){if(data=='ok'){thisid.parent().parent().hide('slow')}else{alert('Er is een fout opgetreden')}}});return false});$j('.idbuddies').css('cursor','pointer').click(function(){var thisid=$j('#id_id').val();$j.ajax({'url':'/ajax/idcheckfriends.php','data':{'id':thisid},'type':'GET','success':function(data){if(data=='ok'){$j.get('/ajax/idaddfriends.php',{'type':'ajax'},function(form){$j('#id_header_result').empty().html(form).slideToggle();$j('#id_addfriend').submit(function(){$j.ajax({'url':'/ajax/idaddfriends.php','data':{'id':thisid,'msg':$j('#id_message').val()},'type':'POST','success':function(returnValue){$j('#id_header_result').empty().html(returnValue)}});return false})})}else{$j('#id_header_result').empty().append(data).slideToggle()}}})});$j('.id_send_crush').css('cursor','pointer').click(function(){var thisid=$j('#id_id').val();$j.post('/ajax/idcheckcrushes.php',{'id':thisid},function(data){if(data=='ok'){$j.get('/ajax/idaddcrush.php',{'type':'ajax'},function(form){$j('#id_header_result').empty().html(form).slideToggle();$j('#id_addcrush').submit(function(){var crush=$j("input[name=crush]:checked").val();$j.ajax({'url':'/ajax/idaddcrush.php','data':{'id':thisid,'msg':$j('#id_message').val(),'crush':crush},'type':'POST','success':function(returnValue){$j('#id_header_result').empty().html(returnValue)}});return false})})}else{alert(data)}});return false});$j('.id_tab_list').click(function(){$j('#id_tabs_content').append(loadingimg);$j(this).parent().children().removeClass('active_id');$j(this).addClass('active_id');var thisid=this.id;$j.ajax({'url':'/ajax/idlast'+thisid+'.php','data':{'type':'ajax','id':$j('#id_id').val()},'type':'GET','success':function(data){if(data.length){$j('#id_tabs_content').html(data);$j('a[rel="colorbox"]').colorbox()}else{loadingimg.remove()}}});return false});$j('.id_gespot_img').css('cursor','pointer').click(function(){var thisid=this.id.split(':')[1];$j('#id_gespot_img').attr('src','/uploadfotos/'+thisid)});var removeFavorite=function(){$j('.media_fav').css('cursor','pointer').click(function(e){var data=this.id.split(':');var id=data[1];var me=data[0];$j.ajax({'url':'/ajax/videofav.php','data':{'id':id,'type':'df','m':me},'type':'POST','success':function(data){if(data=='ok'){$j('.media_fav').hide();$j('.sucess_txt').css('color','#093')}else{alert(data)}}});e.preventDefault()})};$j('.video_fav').css('cursor','pointer').click(function(){var data=this.id.split(':');var id=data[1];var me=data[0];$j('.greenborder').remove();$j.ajax({'url':'/ajax/videofav.php','data':{'data':data},'type':'POST','success':function(data){if(data=='ok'){$j.get('/ajax/media_success.php',{'id':id,'type':'ajax','m':me},function(data){$j(data).insertAfter('#goregistercontent');removeFavorite()})}else{alert(data)}}});return false});$j('#video_tracklist').css('cursor','pointer').click(function(){$j('#tracklist').slideToggle()});$j('.vidwho').css('cursor','pointer').click(function(){var id=this.id.split(':')[1];$j('#who_container').slideToggle().append(loadingimg);$j.get('/ajax/videowho.php',{'id':id,'type':'ajax'},function(data){$j('#who_container').html(data);loadingimg.remove()})});$j('.onvideo').css('cursor','pointer').click(function(e){$j('#video_spot_container').slideToggle();e.preventDefault()});$j('#send_vspot').submit(function(){var tijd=$j('#vspot_tijd').val();var uid=$j('#uid').val();var vid=$j('#vid').val();if(tijd.search(/^\d{2}:\d{2}$/i)==-1){alert('Je opgegeven tijd is niet juist!');return false};$j.ajax({'url':'/ajax/videospot.php','data':{'uid':uid,'vid':vid,'tijd':tijd},'type':'POST','success':function(data){if(data=='ok'){$j('#video_spot_remove').show();$j('#remove_vspot').click(function(){$j.ajax({'url':'/ajax/videospot.php','data':{'uid':uid,'vid':vid,'type':'df'},'type':'POST','success':function(data){if(data=='ok'){$j('#video_spot_remove').addClass('success').empty().text('Gelukt! Je bent geen acteur meer in deze video ;)')}else{alert(data)}}});return false})}else{alert(data)}}});return false});$j('.foto_preview').css('cursor','pointer').click(function(){$j('#foto_preview_big').attr('src',this.id);return false});$j('.li_ecard').live('click',function(e){$j('#ecard_container').slideToggle();e.preventDefault()});$j('#send_ecard').live('submit',function(e){if($j('#ecard_naam').val()==''||$j('#ecard_email').val()==''){alert('Vul een naam en emailadres in');return false}if(!/.+@.+\.[a-zA-Z]{2,4}$/.test($j('#ecard_email').val())){alert('Vul een geldig emailadres in');return false}var photo=$j('.li_ecard').attr('id').split(':');$j('<input type="hidden" name="photo" value="'+photo[1]+'_'+photo[2]+'/'+photo[3]+'" />').prependTo('#send_ecard');var data=$j('#send_ecard :input').serialize();$j.ajax({url:'/ajax/send_ecard.php',data:data,type:'POST',success:function(returnValue){if(returnValue=='ok'){$j('#ecard_content').hide();$j('.groen').show('slow',function(){$j('#ecard_container').hide(5000)})}else{$j('.rood').show();alert(returnValue)}}});e.preventDefault()});$j('.li_mms').live('click',function(e){var items=this.id.split(':');window.open("http://resizer.ringtonio.nl/?rtaff=13253&rtlo=32267&wres="+items[1]+"&hres="+items[2]+"&image=www.reveller.nl/uploadfotos/"+items[3]+"_"+items[4]+"/"+items[5]+"&bg=",'MMS','width=585, height=315, toolbar=0, scrollbars=0, location=0, status=0, menubar=0, resizable=0, screenX='+((screen.width-585)/2)+', screenY='+((screen.height-315)/ 2) + ', top=' + ((screen.height - 585)/2)+', left='+((screen.width-315)/2)+'');e.preventDefault()});if(document.getElementById('pagevideos')){function getResults(items){var items=items==null?null:items.replace(/\//,'');$j('#videos_search_result').empty().append(loadingimg);$j.get('/ajax/getvideo_list.php',{'data':items,'ajax':'y'},function(data){$j('#videos_search_result').empty().append(data)})}function pageloadvideosearch(hash){if(hash){getResults(hash)}else{getResults(null)}}$j.historyInit(pageloadvideosearch);$j('#search_videos').submit(function(){if($j('#search').val()!=''&&$j('#search').val().length>1){$j.historyLoad($j('#search').val())}return false})}if(document.getElementById('pagemyvideos')){function getResults(items){var items=items==null?null:items.replace(/\//,'');$j('#myvideos_search_result').empty().append(loadingimg);$j.get('/ajax/getmyvideo_list.php',{'data':items,'ajax':'y'},function(data){$j('#myvideos_search_result').empty().append(data)})}function pageloadmyvideosearch(hash){if(hash){getResults(hash)}else{getResults(null)}}$j.historyInit(pageloadmyvideosearch);$j('#search_myvideos').submit(function(){if($j('#search').val()!=''&&$j('#search').val().length>1){$j.historyLoad($j('#search').val())}return false})}if(document.getElementById('pagephotos')){function getResults(items){var items=items==null?null:items.replace(/\//,'');$j('#photos_search_result').empty().append(loadingimg);$j.get('/ajax/getfotoboek.php',{'data':items,'ajax':'y'},function(data){$j('#photos_search_result').empty().append(data)})}function pageloadphotosearch(hash){if(hash){getResults(hash)}else{getResults(null)}}$j.historyInit(pageloadphotosearch);$j('#search_photos').submit(function(){if($j('#search').val()!=''&&$j('#search').val().length>1){$j.historyLoad($j('#search').val())}return false})}if(document.getElementById('pagesphotoinfo')){function loadPhoto(id){var ids=id.split(':');$j('#content_items').append(loadingimg).show();$j.get('/ajax/getphoto.php',{'fid':ids[1],'id':ids[0],'ajax':Math.random()},function(data){$j('#content_items').empty().html(data);var script='http://s7.addthis.com/js/250/addthis_widget.js#username=reveller';if(window.addthis){window.addthis=null}$j.getScript(script);editonPhoto()})}function pageloadphotoinfo(hash){if(hash){loadPhoto(hash)}else{loadPhoto($j('#pagesphotoinfo').val())}}$j.historyInit(pageloadphotoinfo);$j('.ajaxphotonav').css('cursor','pointer').live('click',function(e){var thisitems=this.id.split(':');$j.historyLoad(thisitems[1]+':'+thisitems[2]);e.preventDefault()})}$j('.onphoto').live('click',function(e){var thisid=$j('#username').val();var saveit=true;$j('.onphoto_saved_holder').each(function(){if(this.id==thisid){alert('Je staat al op deze foto.');saveit=false}});if(saveit){onphoto(thisid)}$j(this).unbind('click');e.preventDefault()});function onphoto(id){$j('<div class="onphoto_holder"></div>').html(id).appendTo('#photo_holder');onPhotoHandler('.onphoto_holder')}function onPhotoHandler(container){$j(container).css('cursor','move').draggable({'helper':'original','cursor':'move','containment':'#photo_holder','stop':function(ev,ui){var info=$j('#id_information').val().split(':');$j.ajax({'url':'/ajax/savephotopos.php','data':{'ui':info[0],'x':ui.position.left,'y':ui.position.top,'fid':info[1]},'type':'POST','success':function(data){if(data=='ok'){$j('<div class="groen">Je positie is opgeslagen</div>').appendTo('#photo_holder').css('zIndex',9999).hide(6000)}else{$j('<div class="groen">'+data+'</div>').appendTo('#photo_holder').css('zIndex',9999).hide(6000)}}})}})}var editonPhoto=function(){$j('.onphoto_saved_holder').each(function(){var thisid=this.id;var thisus=$j('#id_information').val().split(':');if(thisid==thisus[2]){$j('<span id="ui:'+thisus[0]+'" class="u_tag_rem"> [Remove]</span>').appendTo($j(this));onPhotoHandler($j(this))}})};$j('.u_tag_rem').css('cursor','pointer').live('click',function(e){var thisobject=$j(this).parent('div');var info=$j('#id_information').val().split(':')[1];$j.ajax({'url':'/ajax/savephotopos.php','data':{'ui':this.id,'lab':'JSthjt','fid':info},'type':'POST','success':function(data){if(data=='ok'){thisobject.hide('slow')}else{alert('Error')}}});e.preventDefault()});editonPhoto();if(document.getElementById('pageids')){function getResults(items){var items=items==null?' : ':items.replace(/\//,'').split(':');$j('#ids_search_result').empty().append(loadingimg);$j.get('/ajax/handle_idsearch.php',{'data':items,'ajax':'y'},function(data){$j('#ids_search_result').empty().append(data)})}function pageloadids(hash){if(hash){getResults(hash)}else{$j.get('/includes/profielen/start.php',{'ajax':'y'},function(data){$j('#ids_search_result').empty().append(data)})}}$j.historyInit(pageloadids);$j('#search_id_small').submit(function(){if($j('#search').val()!=''&&$j('#search').val().length>1){$j.historyLoad('s:'+$j('#search').val())}return false});$j('#search_id_large').submit(function(){var string='';$j(':input:not(:submit)',this).each(function(){if($j(this).is(':text')){string+=':'+$j(this).attr('name')+'#'+$j(this).val()}if($j(this).is(':checkbox')&&$j(this).is(':checked')){string+=':'+$j(this).attr('name')+'#'+$j(this).val()}if($j(this).is(':radio')&&$j(this).is(':checked')){string+=':'+$j(this).attr('name')+'#'+$j(this).val()}});$j.historyLoad('l'+string);return false})}var positionTooltip=function(event){var tPosX=event.pageX-5;var tPosY=event.pageY+20;$j('div.tooltip_trans').css({top:tPosY,left:tPosX})};var showTooltip=function(thisitem,event){$j('div.tooltip_trans').remove();var translation=thisitem.find('span:hidden').html();$j('<div class="tooltip_trans">'+translation+'</div>').appendTo('body');positionTooltip(event)};var hideTooltip=function(){$j('div.tooltip_trans').remove()};$j('.tooltip').live('mouseover mouseout mousemove',function(event){if(event.type=='mouseover'){showTooltip($j(this),event)}if(event.type=='mouseout'){hideTooltip(event)}if(event.type=='mousemove'){positionTooltip(event)}});$j('#faq h2').css('cursor','pointer').toggle(function(event){var thisimage=$j(this).find('img');$j(this).next().addClass('faq').show();thisimage.attr('src','/images/accordion_min.png')},function(){var thisimage=$j(this).find('img');$j(this).next().hide();thisimage.attr('src','/images/accordion_plus.png')});function positionImgEnlarge(){var top=($j(window).height()-$j('#img_lightbox').height())/2;var left=($j(window).width()-$j('#img_lightbox').width())/2;$j('#img_lightbox').css({'top':top+$j(document).scrollTop(),'left':left}).addClass('img_lightbox').fadeIn()}function removeImgEnlarge(){$j('#img_overlay,#img_lightbox').fadeOut('slow',function(){$j(this).remove();$j('body').css('overflow-y','auto')})}$j('.img_enlarge').click(function(event){$j('body').css('overflow-y','hidden');$j('<div id="img_overlay"></div>').css({'top':$j(document).scrollTop(),'opacity':'0'}).animate({'opacity':'0.5'},'slow').appendTo('body');$j('<div id="img_lightbox"></div>').hide().appendTo('body');$j('<img />').attr('src',$j(this).attr('href')).load(function(){positionImgEnlarge()}).click(function(){removeImgEnlarge()}).appendTo('#img_lightbox');event.preventDefault()});$j('.vote_like').live('mouseover mouseout click',function(event){if(event.type=='mouseover'){$j(this).addClass('likeover');$j(this).prev().show().slideDown().css({'top':$j(this).position()['top']-25+'px','left':$j(this).position()['left']})}if(event.type=='mouseout'){$j(this).removeClass('likeover');$j(this).prev().show().hide()}if(event.type=='click'){var items=this.id.split(':');if(items[1]=='loginplease'){$j('<div class="boxgrey mt10 round"><span class="closesmall fright"></span><a href="/aanmelden.html"><span class="bold">Registreer</span></a> of login om te stemmen </div>').appendTo($j(this).parent().parent());$j(this).unbind('click')}}});$j('.vote_unlike').live('mouseover mouseout click',function(event){if(event.type=='mouseover'){$j(this).addClass('unlikeover');$j(this).children().show().slideDown().css({'top':$j(this).position()['top']-25+'px','left':$j(this).position()['left']})}if(event.type=='mouseout'){$j(this).removeClass('unlikeover');$j(this).children().show().hide()}if(event.type=='click'){var items=this.id.split(':');if(items[1]=='loginplease'){$j('<div class="boxgrey mt10 round"><span class="closesmall fright"></span><a href="/aanmelden/"><span class="bold">Registreer</span></a> of login om te stemmen </div>').appendTo($j(this).parent().parent());$j(this).unbind('click')}}});$j('.vote_stats').live('mouseover mouseout',function(event){if(event.type=='mouseover'){$j(this).find('div').show().slideDown().css({'top':$j(this).position()['top']-25+'px','left':$j(this).position()['left']})}if(event.type=='mouseout'){$j(this).find('div').hide()}});$j('.closesmall').live('click',function(){$j(this).parent().remove()});$j('.voteit').live('click',function(){var items=this.id.split(':');var thisitem=$j(this);$j.post('/ajax/handle_votes.php',{data:this.id},function(data){if(data=='error'){alert(data)}else{$j('<div class="boxgrey mt10 round"><span class="closesmall fright"></span>'+data+'</div>').appendTo(thisitem.parent().parent())}});$j('.voteit').unbind('click')});var videolistopened=0;$j('#more_id_videos').css('cursor','pointer').toggle(function(){$j('#idvideo').css({width:450+'px',height:270+'px'});$j('#more_id_videos').text('Verberg lijst');if(videolistopened==0){$j('#id_video_list').append(loadingimg);$j.get('/ajax/handle_gid.php',{'u':$j('#id_id').val(),'t':'video'},function(data){$j('#id_video_list').empty().append(data)});videolistopened++}$j('#id_video_list').show()},function(){$j('#idvideo').css({width:640+'px',height:385+'px'});$j('#more_id_videos').text('Alle video\'s');$j('#id_video_list').hide()});$j('.load_id_vid').css('cursor','pointer').live('click',function(event){var id=this.id.split(':')[1];var thisitem=$j(this);$j.get('/ajax/handle_gid.php',{'i':id,'t':'loadvideo'},function(data){$j('#idplayer').empty().append(data);var alt=thisitem.attr('alt');$j('#id_video_title').empty().text(alt)});event.preventDefault()});var bloglistopened=0;$j('#more_id_blogs').css('cursor','pointer').toggle(function(){$j('#idblogtxt').css('width',450+'px');$j('#more_id_blogs').text('Verberg lijst');if(bloglistopened==0){$j('#id_blog_list').append(loadingimg);$j.get('/ajax/handle_gid.php',{'u':$j('#id_id').val(),'t':'blog'},function(data){$j('#id_blog_list').empty().append(data)});bloglistopened++}$j('#id_blog_list').show()},function(){$j('#idblogtxt').css('width',100+'%');$j('#more_id_blogs').text('Alle blogs');$j('#id_blog_list').hide()});$j('.load_id_blog').css('cursor','pointer').live('click',function(){var id=this.id.split(':')[1];var thisitem=$j(this);$j.get('/ajax/handle_gid.php',{'i':id,'t':'loadblog'},function(data){$j('#idblogtxt').empty().append(data)})});$j('.getsmiles').css('cursor','pointer').live('click',function(){$j('#smilespopup').remove();var txtfield=this.id;var thisitem=$j(this);$j.get('/ajax/handle_gsmiles.php',function(data){$j(data).appendTo('body').css({'top':thisitem.offset()['top']+5+'px','left':thisitem.offset()['left']+50+'px'});$j('#smilespopup').draggable({handle:'#smilesheader'});$j('#smilespopup a').css('cursor','pointer').click(function(){$j('#smile_content').text('Loading..');$j.get('/functies/getsmiles.php',{'c':this.id},function(data){$j('#smile_content').empty().append(data);$j('.addsmile').css('cursor','pointer').click(function(){$j('#'+txtfield+'text').val($j('#'+txtfield+'text').val()+' '+$j(this).attr('title'))})});return false});$j('.addsmile').css('cursor','pointer').click(function(){$j('#'+txtfield+'text').val($j('#'+txtfield+'text').val()+' '+$j(this).attr('title'))});$j('#smilesheader span').css('cursor','pointer').click(function(){$j('#smilespopup').remove()})})});if(document.getElementById('revpage-id')||document.getElementById('page_agenda_read')){$j('a[rel="colorbox"],a[rel="colorboxalbum"]').colorbox()}$j('.id_album_img').live('mouseover mouseout',function(event){if(event.type=='mouseover'){$j(this).parent().find('span').show()}if(event.type=='mouseout'){$j(this).parent().find('span').hide()}});$j('.id_album_popup').live('click',function(){$j('#res_handle_idalbum').append(loadingimg);$j.get('/ajax/handle_gcommon.php',{'data':this.id},function(data){$j('#id_album_reply').show();$j('#res_handle_idalbum').empty().append(data)})});$j('.closesmall_replies,.closesmall_register').live('click',function(){$j(this).parent().hide()});$j('.ajaxnavother').live('click',function(){var page=this.id.split(':');$j.ajax({'url':'/ajax/'+page[0]+'.php','data':{'pages':page[2],'ajax':Math.random(),'data':this.id},'type':'GET','success':function(data){if(data.length){$j('#res_'+page[1]).empty();$j('#res_'+page[1]).html(data)}else{loadingimg.remove()}}});return false});$j('.sendidmessage').css('cursor','pointer').click(function(){document.location.href='/dispatch/inbox?send='+$j('#id_id').val()});$j('#id_username').css('cursor','pointer').click(function(){document.location.href='/'+$j('#id_user').val()});$j('.quote_item').live('click',function(){var items=this.id.split(':');$j('#'+items[0]+'-rid').val(items[1]);var text=$j(this).parent().find('p').text().substring(0,40);$j('#quote_item_info').remove();$j('<div id="quote_item_info" class="boxgrey round mt10"></div>').html('Je geeft nu een reactie op: <span class="bold">'+text+'</span></div>. <span class="quote_item_rem" id="rem:'+items[0]+'">Klik hier om dit ongedaan te maken</span>').insertAfter($j('#'+items[0]+'text')).addClass('quote_holder')});$j('.quote_item_rem').live('click',function(){var id=this.id.split(':')[1];$j('#'+id+'-rid').val('');$j('#quote_item_info').remove()});$j('.id_reageer_direct').live('click',function(){var items=this.id.split(':');$j('#'+items[0]+'-iid').val(items[1]);$j('#'+items[0]+'-widget').val('iddirectmessage');var text=$j(this).parent().find('p').text().substring(0,40);$j('#quote_item_info').remove();$j('<div id="id_quote_item_info" class="boxgrey round mt10"></div>').html('Je geeft nu een reactie op: <span class="bold">'+text+'</span></div>. <span class="id_quote_item_rem" id="rem:'+items[0]+':'+items[2]+'">Klik hier om dit ongedaan te maken</span>').insertAfter($j('#'+items[0]+'text')).addClass('quote_holder')});$j('.id_quote_item_rem').live('click',function(){var id=this.id.split(':');$j('#'+id[1]+'-iid').val(id[2]);$j('#'+id[1]+'-widget').val(1);$j('#id_quote_item_info').remove()});$j('.search_ids_ext').toggle(function(){$j('#search_ids_ext').slideDown()},function(){$j('#search_ids_ext').slideUp()});$j('.logged_in_false').live('click',function(e){$j('.register').show();e.preventDefault()});$j('.senditem').live('click',function(e){$j('#send_container').hide().show();$j('html,body').animate({scrollTop:0},'slow');var items=this.id.split(':');$j.post('/ajax/send_'+items[0]+'.php',{'data':items},function(data){$j('#send_content').empty().append(data)});e.preventDefault()});$j('#form_order_credits').live('submit',function(e){var credits=$j('#total_credits').text();var data=$j(':input',$j(this)).serialize();$j.ajax({url:'/ajax/handle_send.php',data:data,type:'POST',success:function(data){if(data=='ok'){$j('#total_credits').text(credits+2);$j('#no_credits_info').hide();$j('#order_credit_true').show()}else{alert(data)}}});e.preventDefault()});$j('.order_photo').live('click',function(e){var items=this.id.split(':');$j.post('/ajax/handle_send.php',{'type':items[0],'id':items[1]},function(data){if(data=='ok'){$j('#order_credit_true').hide();$j('<p class="success">Bedankt voor je bestelling!<p><p>Je ontvangt de foto binnen 2 dagen in je email!</p>').insertAfter('#order_credit_true')}else{alert(data)}});e.preventDefault()});$j('.send_close').css('cursor','pointer').click(function(){$j(this).parent().parent().hide()});var rotatetime=4000;var currentHeadline=0,oldHeadline=0;var headlineTimeout=false;var headlineCount=3;var rotateInProgress=false;var imgheight=240;var titleheight=240;var headlineRotate=function(){if(!rotateInProgress){rotateInProgress=true;headlineTimeout=false;currentHeadline=(oldHeadline+1)%headlineCount;$j('#promotion_small').find('span').removeClass('roze');$j('.psmall:eq('+currentHeadline+')').find('span:eq(0)').addClass('roze');$j('a[id="img:'+oldHeadline+'"]').animate({'top':imgheight+'px'});$j('div[id="titel:'+oldHeadline+'"]').animate({'top':titleheight+'px'});$j('div[id="titel:'+currentHeadline+'"]').css('top',titleheight+'px').animate({'top':206+'px'});$j('a[id="img:'+currentHeadline+'"]').css('top',-imgheight+'px').animate({'top':0},function(){rotateInProgress=false;if(!headlineTimeout){headlineTimeout=setTimeout(headlineRotate,rotatetime)}});oldHeadline=currentHeadline}};$j('.psmall').css('cursor','pointer').click(function(){document.location.href=$j(this).find('a').attr('href');return false});$j('.psmall').hover(function(){clearInterval(headlineTimeout);$j('#promotion_small').find('span').removeClass('roze');var thisid=this.id.split(':')[1];currentHeadline=thisid;$j(this).find('span:eq(0)').addClass('roze');if(oldHeadline!=thisid){$j('a[id="img:'+oldHeadline+'"]').animate({'top':imgheight+'px'});$j('div[id="titel:'+oldHeadline+'"]').animate({'top':titleheight+'px'});$j('div[id="titel:'+currentHeadline+'"]').css('top',titleheight+'px').animate({'top':206+'px'});$j('a[id="img:'+currentHeadline+'"]').css('top',-imgheight+'px').animate({'top':0})}oldHeadline=thisid},function(){rotateInProgress=true;headlineTimeout=false;rotateInProgress=false;if(!headlineTimeout){headlineTimeout=setTimeout(headlineRotate,rotatetime)}}).stop(true,true);headlineTimeout=setTimeout(headlineRotate,rotatetime);$j('.get_agenda_items').click(function(){$j(this).parent().parent().children().removeClass('agenda_active');$j(this).parent().addClass('agenda_active');$j.ajax({'url':'/ajax/get_agenda_items.php','data':{'type':'ajax','day':this.id.split(':')[1]},'type':'GET','success':function(data){if(data.length){$j('#calendar_content').html(data)}else{}}});return false});$j('#page_content').delegate('.handle_win','click',function(){var thisitem=$j(this);$j.post('/ajax/handle_win.php',{'data':this.id},function(data){if(data=='ok'){thisitem.find('span').addClass('success').text('Je doet mee!');$j('#page_content').undelegate('.handle_win','click')}})});if(document.getElementById('hidden_agenda_amount')){$j.datepicker.regional['nl']={closeText:'Sluiten',prevText:'vorige',nextText:'volgende',currentText:'Vandaag',monthNames:['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december'],monthNamesShort:['jan','feb','maa','apr','mei','jun','jul','aug','sep','okt','nov','dec'],dayNames:['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],dayNamesShort:['zon','maa','din','woe','don','vri','zat'],dayNamesMin:['zo','ma','di','wo','do','vr','za'],weekHeader:'Wk',dateFormat:'yy-mm-dd',defaultDate:$j('#datepicker_ses').val(),firstDay:1,isRTL:false,showWeek:true,showOtherMonths:true,showMonthAfterYear:false,selectOtherMonths:true,yearSuffix:''};$j.datepicker.setDefaults($j.datepicker.regional['nl']);$j("#datepicker").datepicker({onSelect:function(dateText,inst){$j('#agenda_search_result').append(loadingimg);$j.ajax({'url':'/ajax/getagenda_list.php','data':{'datum':dateText},'type':'GET','success':function(data){$j('#agenda_search_result').empty().append(data)}});return false}});var data=$j('#hidden_agenda_amount').val().split('-');$j("#slider-range").slider({range:true,min:0,max:125,step:5,values:[data[0],data[1]],slide:function(event,ui){$j("#agenda_amount").html('&euro;'+ui.values[0]+' - &euro;'+ui.values[1]);$j('#hidden_agenda_amount').val(ui.values[0]+'-'+ui.values[1])},stop:function(event,ui){$j('#agenda_search_result').append(loadingimg);$j.ajax({'url':'/ajax/getagenda_list.php','data':{'prijs':$j('#hidden_agenda_amount').val()},'type':'GET','success':function(data){$j('#agenda_search_result').empty().append(data)}})}})}$j('#page_content').delegate('.filter_search','click',function(){$j.get('/ajax/getagenda_list.php',{'rfilter':this.id},function(data){$j('#agenda_search_result').empty().append(data)})});$j('#page_content').delegate('#city li','click',function(event){$j(this).addClass('agenda_filter_bg').siblings().removeClass('agenda_filter_bg');$j('#agenda_search_result').append(loadingimg);$j.ajax({'url':'/ajax/getagenda_list.php','data':{'stad':$j(this).text()},'type':'GET','success':function(data){$j('#agenda_search_result').empty().append(data)}});event.preventDefault()});$j('#page_content').delegate('#ag_search_hotspot li','click',function(event){$j('#agenda_search_result').append(loadingimg);$j.ajax({'url':'/ajax/getagenda_list.php','data':{'hotspot':$j(this).text()},'type':'GET','success':function(data){$j('#agenda_search_result').empty().append(data)}});event.preventDefault()});$j('#page_content').delegate('#submit_other_city','click',function(event){$j('#agenda_search_result').append(loadingimg);$j.ajax({'url':'/ajax/getagenda_list.php','data':{'stad':$j('#other_city').val()},'type':'GET','success':function(data){$j('#agenda_search_result').empty().append(data)}});event.preventDefault()});$j('#page_content').delegate('#submit_other_spot','click',function(event){$j('#agenda_search_result').append(loadingimg);$j.ajax({'url':'/ajax/getagenda_list.php','data':{'hotspot':$j('#other_spot').val()},'type':'GET','success':function(data){$j('#agenda_search_result').empty().append(data)}});event.preventDefault()});$j('#page_content').delegate('#agenda_int','change',function(event){if($j(this).val()!=''){$j('#agenda_search_result').append(loadingimg);$j.ajax({'url':'/ajax/getagenda_list.php','data':{'genre':$j(this).val()},'type':'GET','success':function(data){$j('#agenda_search_result').empty().append(data)}})}event.preventDefault()});$j('#page_content').delegate('.agenda_add_item','click',function(event){var thisitem=$j(this);$j.ajax({'url':'/ajax/handle_agenda.php','data':{'data':this.id},'type':'POST','success':function(data){if(data=='ok'){thisitem.unbind('click').attr('src','/images/accepted.png').css({'width':'14px','height':'14px'})}else{alert(data)}}});event.preventDefault()});$j('#page_content').delegate('.agendaread_add_item,.agendaread_del_item ','click',function(event){var thisitem=$j(this);$j.ajax({'url':'/ajax/handle_agenda.php','data':{'data':this.id},'type':'POST','success':function(data){if(data=='ok'){thisitem.hide().siblings().show()}else{alert(data)}}});event.preventDefault()});$j('.agenda_filter_input').focus(function(){$j(this).val('')});$j('#page_content').delegate('.winnen_add_item,.winnen_del_item ','click',function(event){var thisitem=$j(this);$j.ajax({'url':'/ajax/handle_win.php','data':{'data':this.id},'type':'POST','success':function(data){if(data=='ok'){thisitem.hide().siblings().show()}else{alert(data)}}});event.preventDefault()})});
