;jQuery.nowplaying={build:function(options){try{jQuery(this).log("Class loaded","info","jQuery.nowplaying");var defaults={showImages:true,imageLoading:"/static/img/loading-small.gif",imageRefresh:"/static/img/refresh-small.gif",refreshTimeout:10000,url:"/ajax/nowplaying"}
var options=jQuery.extend(defaults,options);var object=this;jQuery(object).everyTime(options.refreshTimeout,"refresh",function(){updateFields();});if(options.showImages){jQuery(object).append('<img src="'+options.imageRefresh+'" alt="Refresh" class="nowplaying_interaction" />');}
jQuery(object).find(".nowplaying_interaction").unbind("click").click(function(){updateFields();return false;});function updateFields(){jQuery(object).find(".nowplaying_interaction").attr("src",options.imageLoading);$.ajax({type:"GET",url:options.url,dataType:"xml",success:function(xml){jQuery(object).find(".artist").html(jQuery(xml).find("artist").text());jQuery(object).find(".track").html(jQuery(xml).find("track").text());jQuery(object).find(".nowplaying_interaction").attr("src",options.imageRefresh);}});}
updateFields();}
catch(err){jQuery(this).log(err.toString(),"error","jQuery.nowplaying");}
return this;}};jQuery.fn.extend({nowplaying:jQuery.nowplaying.build});jQuery(function(){if(jQuery(".nowplaying").length>0)
jQuery(".nowplaying").nowplaying();});;jQuery.youtube_homepage={build:function(options){try{jQuery(this).log("Class loaded","info","jQuery.youtube_homepage");var defaults={moviePlayer:".youtube_player",movieList:".youtube_thumb_list",movieTitle:".youtube_title",width:480,height:340}
var options=jQuery.extend(defaults,options);var object=this;jQuery(object).find(options.movieList+" li a").unbind("click").click(function(){var movieUrl=jQuery(this).attr("href");var movieUrlSplit=movieUrl.split("?v=");var movieCode=movieUrlSplit[1];var movieTitle=jQuery(this).parents("li").find("h3").html();var movie='<object type="application/x-shockwave-flash" data="http://www.youtube-nocookie.com/v/'+movieCode+'&amp;hl=nl&amp;fs=1&amp;showsearch=0" width="'+options.width+'" height="'+options.height+'">';movie+='<param name="movie" value="http://www.youtube-nocookie.com/v/'+movieCode+'&amp;hl=nl&amp;fs=1&amp;showsearch=0" />';movie+='<param name="allowFullScreen" value="true"></param>';movie+='<param name="allowscriptaccess" value="always"></param>';movie+='<param name="wmode" value="opaque"></param>';movie+='</object>';jQuery(object).find(options.moviePlayer).html(movie);jQuery(object).find(options.movieTitle).html(movieTitle);return false;});$(".youtube_thumb_list").children("li").eq(0).children("a").eq(0).click();}
catch(err){jQuery(this).log(err.toString(),"error","jQuery.youtube_homepage");}}};jQuery.fn.extend({youtube_homepage:jQuery.youtube_homepage.build});jQuery(function(){jQuery(".youtube_homepage").youtube_homepage();});;jQuery.newscover={build:function(options){try{var defaults={title:"jQuery.newscover",effectSpeed:750,rotationTimeout:3000,mouseOverTimeout:5000}
var options=jQuery.extend(defaults,options);var object=this;var index=0;var mouseOver=false;var mouseOverCheck=false;var mouseOverCounter=0;jQuery(this).log("Class loaded","info",options.title);changeImage();jQuery(object).hover(function(){mouseOver=true;mouseOverCheck=true;mouseOverCounter=0;},function(){mouseOver=false;mouseOverCounter=0;});jQuery(object).find(".list_news_cover li").hover(function(){index=jQuery(object).find(".list_news_cover li").index(this);changeImage();},function(){});jQuery(object).everyTime(options.rotationTimeout,"rotation",function(){if(mouseOverCheck==false){index++;if(index>=jQuery(object).find(".list_news_cover li").length)index=0;changeImage();}});jQuery(object).everyTime(options.mouseOverTimeout/10,function(){if(mouseOver==false&&mouseOverCheck==true){mouseOverCounter++;}
if(mouseOver==false&&mouseOverCounter>=10){mouseOverCheck=false;mouseOverCounter=0;}});}
catch(err){jQuery(this).log("Error during loading - "+err,"error",options.name);}
function changeImage(){jQuery(object).find(".list_news_cover li a").removeClass("active");jQuery(object).find(".list_news_cover li:eq("+index+") a").addClass("active");jQuery(object).find(".list_news_cover_images li").stop(true,true);jQuery(object).find(".list_news_cover_images li").hide();jQuery(object).find(".list_news_cover_images li:eq("+index+")").fadeIn(options.effectSpeed);}
return this;}};jQuery.fn.extend({newscover:jQuery.newscover.build});jQuery(function(){jQuery("#news_cover").newscover();jQuery("#acties_switcher").newscover();});;jQuery.fotolog_homepage={build:function(options){try{jQuery(this).log("Class loaded","info","jQuery.fotolog_homepage");var defaults={defaultSize:"m",thumbList:".fotolog_thumb_list",bigImage:".fotolog_big"}
var options=jQuery.extend(defaults,options);var object=this;jQuery(object).find(options.thumbList+" li a").unbind("click").click(function(){var imageUrl=jQuery(this).find("img").attr("src");var href=jQuery(this).attr("href");var title=jQuery(this).attr("title");var alt=jQuery(this).find("img").attr("alt");var newImageUrl=imageUrl.replace("_s.jpg","_"+(options.defaultSize+".jpg"));jQuery(object).find(options.bigImage+" img").attr("src",newImageUrl);jQuery(object).find(options.bigImage+" img").attr("alt",alt);jQuery(object).find(options.bigImage+" img").attr("title",title);jQuery(object).find(options.bigImage+" a").attr("href",href);return false;});}
catch(err){jQuery(this).log(err.toString(),"error","jQuery.fotolog_homepage");}}};jQuery.fn.extend({fotolog_homepage:jQuery.fotolog_homepage.build});jQuery(function(){jQuery(".fotolog_homepage").fotolog_homepage();});
