function okcoolSite(){this.initAll=function(){this.fixInputPlaceholder();this.topArticleHover();this.monthlyArchiveSelector();}
this.fixInputPlaceholder=function(){$('input[placeholder]').each(function(){var valueFound=false;if(this.value!=""){valueFound=true;var tmpVal=this.value;}
this.defaultValue=$(this).attr('placeholder');if(valueFound==true){this.value=tmpVal;}
this.onfocus=okcool.clearValue;this.onblur=okcool.setValue;});$("form").submit(function(){$('input[placeholder]').each(function(){if(this.value==$(this).attr('placeholder')){this.value="";}});return true;});}
this.topArticleHover=function(){$('#bestofarticle hgroup > a').each(function(){$(this).bind("mouseenter",function(){$('#bestofarticle hgroup > a').each(function(){$(this).parent().children('a').show();$(this).parent().children('h4').hide();});$(this).parent().children('h4').bind("mouseleave",function(){$(this).parent().children('a').show();$(this).parent().children('h4').hide();});$(this).parent().children('h4').bind("click",function(){document.location=$(this).parent().children('a').attr('href');});$(this).hide();$(this).parent().children('h4').show();});});}
this.monthlyArchiveSelector=function(){$('#monthlyArchive').bind("change",function(){var val=this.options[this.selectedIndex].value;if(val.match(/^http:\/\//)){location.href=val;}else{return;}})}
this.clearValue=function(){if(this.value==this.defaultValue){this.value="";}}
this.setValue=function(){if(!this.value){this.value=this.defaultValue;}}}
var okcool=new okcoolSite();$(document).ready(function(){okcool.initAll();$("#open").click(function(){$("#panel").slideDown("slow");});$("#close").click(function(){$("#panel").slideUp("slow");});$("#toggle a").click(function(){$("#toggle a").toggle();});});var rotateSpeed=4000;var currentTab=0;var numTabs;var autoRotate;function openTab(clickedTab){var thisTab=$("#featureImgSlider ul.featureNav a").index(clickedTab);$("#featureImgSlider ul.featureNav li").removeAttr("id","act");$("#featureImgSlider ul.featureNav li:eq("+thisTab+")").attr("id","act");currentTab=thisTab;}
function rotateTabs(){var nextTab=(currentTab==(numTabs-1))?0:currentTab+1;openTab($("#featureImgSlider ul.featureNav li a:eq("+nextTab+")").click());}
$(document).ready(function(){if(typeof loadFeature!='undefined'&&loadFeature==true){numTabs=$("#featureImgSlider ul.featureNav li a").length;$("#featureImgSlider ul.featureNav li a").click(function(){openTab($(this));return false;});$("#featureImgSlider").mouseover(function(){clearInterval(autoRotate)}).mouseout(function(){autoRotate=setInterval("rotateTabs()",rotateSpeed)});$("#featureImgSlider ul.featureNav li a:eq("+currentTab+")").click();$("#featureImgSlider").mouseout();}});function calcTimeLa(){var currentTime=timeLa.getTime();timeLa.setTime(currentTime+1000);colonLa=(colonLa==true)?false:true;showTime(timeLa,colonLa,'timeLA');}
function calcTimeB(){var currentTime=timeB.getTime();timeB.setTime(currentTime+1000);colonB=(colonB==true)?false:true;showTime(timeB,colonB,'timeB');}
function showTime(date,colon,target){var e=document.getElementById(target);var dayOfMonth=date.getDate().toString();dayOfMonth=(dayOfMonth.length==1)?'0'+dayOfMonth:dayOfMonth;var month=(date.getMonth()+1).toString();month=(month.length==1)?'0'+month:month;var year=date.getFullYear().toString();var hour=date.getHours().toString();hour=(hour.length==1)?'0'+hour:hour;var minute=date.getMinutes().toString();minute=(minute.length==1)?'0'+minute:minute;var second=date.getSeconds().toString();second=(second.length==1)?'0'+second:second;var timeSplit=(colon==true)?':':' ';var fullDate=hour+timeSplit+minute+timeSplit+second;var dateNode=document.createTextNode(fullDate);if(e.childNodes.length==0){e.appendChild(dateNode)}else{e.replaceChild(dateNode,e.firstChild);}}
jQuery(document).ready(function(){$("a#open").click(function(){$('#linkBox').animate({width:'hide',opacity:'hide'},'fast');$.cookie('linkBox','collapsed',{expires:10,path:'/',domain:'vipdip.de'});$('#close').css('display','block');$('#open').css('display','none');},function(){$('#linkBox').animate({width:'show',opacity:'show'},'fast');$.cookie('linkBox','expanded',{expires:10,path:'/',domain:'vipdip.de'});$('#close').css('display','none');$('#open').css('display','block');});$("a#close").click(function(){$('#linkBox').animate({width:'show',opacity:'show'},'fast');$.cookie('linkBox','expanded',{expires:10,path:'/',domain:'vipdip.de'});$('#close').css('display','none');$('#open').css('display','block');},function(){$('#linkBox').animate({width:'hide',opacity:'hide'},'fast');$.cookie('linkBox','collapsed',{expires:10,path:'/',domain:'vipdip.de'});$('#close').css('display','block');$('#open').css('display','none');});var linkBox=$.cookie('linkBox');if(linkBox=='collapsed'){$('#linkBox').css('display','none');$('#close').css('display','block');$('#open').css('display','none');};});;;(function($){var $scrollTo=$.scrollTo=function(target,duration,settings){$scrollTo.window().scrollTo(target,duration,settings);};$scrollTo.defaults={axis:'y',duration:1};$scrollTo.window=function(){return $($.browser.safari?'body':'html');};$.fn.scrollTo=function(target,duration,settings){if(typeof duration=='object'){settings=duration;duration=0;}
settings=$.extend({},$scrollTo.defaults,settings);duration=duration||settings.speed||settings.duration;settings.queue=settings.queue&&settings.axis.length>1;if(settings.queue)
duration/=2;settings.offset=both(settings.offset);settings.over=both(settings.over);return this.each(function(){var elem=this,$elem=$(elem),t=target,toff,attr={},win=$elem.is('html,body');switch(typeof t){case'number':case'string':if(/^([+-]=)?\d+(px)?$/.test(t)){t=both(t);break;}
t=$(t,this);case'object':if(t.is||t.style)
toff=(t=$(t)).offset();}
$.each(settings.axis.split(''),function(i,axis){var Pos=axis=='x'?'Left':'Top',pos=Pos.toLowerCase(),key='scroll'+Pos,act=elem[key],Dim=axis=='x'?'Width':'Height',dim=Dim.toLowerCase();if(toff){attr[key]=toff[pos]+(win?0:act-$elem.offset()[pos]);if(settings.margin){attr[key]-=parseInt(t.css('margin'+Pos))||0;attr[key]-=parseInt(t.css('border'+Pos+'Width'))||0;}
attr[key]+=settings.offset[pos]||0;if(settings.over[pos])
attr[key]+=t[dim]()*settings.over[pos];}else
attr[key]=t[pos];if(/^\d+$/.test(attr[key]))
attr[key]=attr[key]<=0?0:Math.min(attr[key],max(Dim));if(!i&&settings.queue){if(act!=attr[key])
animate(settings.onAfterFirst);delete attr[key];}});animate(settings.onAfter);function animate(callback){$elem.animate(attr,duration,settings.easing,callback&&function(){callback.call(this,target);});};function max(Dim){var el=win?$.browser.opera?document.body:document.documentElement:elem;return el['scroll'+Dim]-el['client'+Dim];};});};function both(val){return typeof val=='object'?val:{top:val,left:val};};})(jQuery);;;(function($){var URI=location.href.replace(/#.*/,'');var $localScroll=$.localScroll=function(settings){$('body').localScroll(settings);};$localScroll.defaults={duration:1000,axis:'y',event:'click',stop:true};$localScroll.hash=function(settings){settings=$.extend({},$localScroll.defaults,settings);settings.hash=false;if(location.hash)
setTimeout(function(){scroll(0,location,settings);},0);};$.fn.localScroll=function(settings){settings=$.extend({},$localScroll.defaults,settings);return(settings.persistent||settings.lazy)?this.bind(settings.event,function(e){var a=$([e.target,e.target.parentNode]).filter(filter)[0];a&&scroll(e,a,settings);}):this.find('a').filter(filter).bind(settings.event,function(e){scroll(e,this,settings);}).end().end();function filter(){return!!this.href&&!!this.hash&&this.href.replace(this.hash,'')==URI&&(!settings.filter||$(this).is(settings.filter));};};function scroll(e,link,settings){var id=link.hash.slice(1),elem=document.getElementById(id)||document.getElementsByName(id)[0];if(elem){e&&e.preventDefault();var $target=$(settings.target||$.scrollTo.window());if(settings.lock&&$target.is(':animated')||settings.onBefore&&settings.onBefore.call(link,e,elem,$target)===false)return;if(settings.stop)
$target.queue('fx',[]).stop();$target.scrollTo(elem,settings).trigger('notify.serialScroll',[elem]);if(settings.hash)
$target.queue(function(){location=link.hash;});}};})(jQuery);;;(function($){var $serialScroll=$.serialScroll=function(settings){$.scrollTo.window().serialScroll(settings);};$serialScroll.defaults={duration:1000,axis:'x',event:'click',start:0,step:1,lock:true,cycle:true,constant:true};$.fn.serialScroll=function(settings){settings=$.extend({},$serialScroll.defaults,settings);var event=settings.event,step=settings.step,lazy=settings.lazy;return this.each(function(){var
context=settings.target?this:document,$pane=$(settings.target||this,context),pane=$pane[0],items=settings.items,active=settings.start,auto=settings.interval,nav=settings.navigation,timer;if(!lazy)
items=getItems();if(settings.force)
jump({},active);$(settings.prev||[],context).bind(event,-step,move);$(settings.next||[],context).bind(event,step,move);if(!pane.ssbound)
$pane.bind('prev.serialScroll',-step,move).bind('next.serialScroll',step,move).bind('goto.serialScroll',jump);if(auto)
$pane.bind('start.serialScroll',function(e){if(!auto){clear();auto=true;next();}}).bind('stop.serialScroll',function(){clear();auto=false;});$pane.bind('notify.serialScroll',function(e,elem){var i=index(elem);if(i>-1)
active=i;});pane.ssbound=true;if(settings.jump)
(lazy?$pane:getItems()).bind(event,function(e){jump(e,index(e.target));});if(nav)
nav=$(nav,context).bind(event,function(e){e.data=Math.round(getItems().length/nav.length)*nav.index(this);jump(e,this);});function move(e){e.data+=active;jump(e,this);};function jump(e,button){if(!isNaN(button)){e.data=button;button=pane;}
var
pos=e.data,n,real=e.type,$items=settings.exclude?getItems().slice(0,-settings.exclude):getItems(),limit=$items.length,elem=$items[pos],duration=settings.duration;if(real)
e.preventDefault();if(auto){clear();timer=setTimeout(next,settings.interval);}
if(!elem){n=pos<0?0:limit-1;if(active!=n)
pos=n;else if(!settings.cycle)
return;else
pos=limit-n-1;elem=$items[pos];}
if(!elem||real&&active==pos||settings.lock&&$pane.is(':animated')||real&&settings.onBefore&&settings.onBefore.call(button,e,elem,$pane,getItems(),pos)===false)return;if(settings.stop)
$pane.queue('fx',[]).stop();if(settings.constant)
duration=Math.abs(duration/step*(active-pos));$pane.scrollTo(elem,duration,settings).trigger('notify.serialScroll',[pos]);};function next(){$pane.trigger('next.serialScroll');};function clear(){clearTimeout(timer);};function getItems(){return $(items,pane);};function index(elem){if(!isNaN(elem))return elem;var $items=getItems(),i;while((i=$items.index(elem))==-1&&elem!=pane)
elem=elem.parentNode;return i;};});};})(jQuery);;$(document).ready(function(){if(typeof loadFeature!='undefined'&&loadFeature==true){var $panels=$('#featureImgSlider .featureScrollPanel > li');var $container=$('#featureImgSlider .featureScrollPanel');var horizontal=false;if(horizontal){$panels.css({'float':'left','position':'relative'});$container.css('width',$panels[0].offsetWidth*$panels.length);}
var $scroll=$('#featureImgSlider #featureScroll').css('overflow','hidden');function selectNav(){$(this).parents('ul:first').find('a').removeClass('selected').end().end().addClass('selected');}
function selectNavLi(){$(this).parents('ul:first').find('li').removeAttr('id','act').end().end().attr('id','act');}
$('#featureImgSlider .featureNav').find('a').click(selectNav);$('#featureImgSlider .featureNav').find('li').click(selectNavLi);function trigger(data){var ela=$('#featureImgSlider > ul.featureNav').find('a[href$="'+data.id+'"]').get(0);selectNav.call(ela);var eli=$('#featureImgSlider > ul.featureNav').find('li['+data.id+']').get(0);selectNavLi.call(eli);}
if(window.location.hash){trigger({id:window.location.hash.substr(1)});}else{$("li.linker_1").attr('id','act');}
var offset=parseInt((horizontal?$container.css('paddingTop'):$container.css('paddingLeft'))||0)*-1;var scrollOptions={target:$scroll,items:$panels,navigation:'.featureNav li',prev:'img.left',next:'img.right',axis:'xy',onAfter:trigger,offset:offset,duration:500,easing:'swing'};$('#featureImgSlider').serialScroll(scrollOptions);$.localScroll(scrollOptions);scrollOptions.duration=1;$.localScroll.hash(scrollOptions);}});;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(2($){$.D=16 2(){4 c=\'15\';4 k=7.6;4 d=z;4 g;5.o=2(){};4 h=2(){$(\'.x-R\').1i()};$(8).K(c,h);3($.v.19){4 e,p=q;$(2(){e=$(\'<H 13="12: Z;"></H>\').E(8.U).1o(0);4 a=e.C.8;a.P();a.M();3(k&&k!=\'#\'){a.7.6=k.B(\'#\',\'\')}});5.o=2(a){k=a;4 b=e.C.8;b.P();b.M();b.7.6=a.B(\'#\',\'\')};g=2(){4 a=e.C.8;4 b=a.7.6;3(b!=k){k=b;3(b&&b!=\'#\'){$(\'a[@l$="\'+b+\'"]\').m();7.6=b}n 3(p){7.6=\'\';$(8).u(c)}}p=A}}n 3($.v.18||$.v.17){5.o=2(a){k=a};g=2(){3(7.6){3(k!=7.6){k=7.6;$(\'a[@l$="\'+k+\'"]\').m()}}n 3(k){k=\'\';$(8).u(c)}}}n 3($.v.14){4 f,r,t;$(2(){f=[];f.9=y.9;r=[]});4 j=q,p=q;t=2(a){f.G(a);r.9=0;j=q};5.o=2(a){k=a;t(k)};g=2(){4 b=y.9-f.9;3(b){j=q;3(b<0){F(4 i=0;i<11.10(b);i++)r.Y(f.X())}n{F(4 i=0;i<b;i++)f.G(r.W())}4 a=f[f.9-1];$(\'a[@l$="\'+a+\'"]\').m();k=7.6}n 3(f[f.9-1]==T&&!j){3(8.S.1n(\'#\')>=0){$(\'a[@l$="\'+\'#\'+8.S.1m(\'#\')[1]+\'"]\').m()}n 3(p){$(8).u(c)}j=A}p=A}}5.1l=2(a){3(w a==\'2\'){$(8).1k(c,h).K(c,a)}3(7.6&&w t==\'T\'){$(\'a[@l$="\'+7.6+\'"]\').u(\'m\')}3(g&&d==z){d=1j(g,1h)}}};$.Q.x=2(g,f,c){c=c||2(){};3(w f==\'2\'){c=f}f=$.1g({O:\'x-\'},f||{});4 d=$(g).1f()&&$(g)||$(\'<I></I>\').E(\'U\');d.1e(\'x-R\');L 5.1d(2(i){4 a=5.l;4 b=\'#\'+(5.N&&5.N.B(/\\s/g,\'1c\')||f.O+(i+1));5.l=b;$(5).m(2(e){3(!d[\'J\']){3(e.V){$.D.o(b)}d.1b(a,2(){d[\'J\']=z;c()})}})})};$.Q.y=2(a){L 5.m(2(e){3(e.V){$.D.o(5.6)}w a==\'2\'&&a()})}})(1a);',62,87,'||function|if|var|this|hash|location|document|length||||||||||||href|click|else|update|initialized|false|_forwardStack||_addHistory|trigger|browser|typeof|remote|history|null|true|replace|contentWindow|ajaxHistory|appendTo|for|push|iframe|div|locked|bind|return|close|title|hashPrefix|open|fn|output|URL|undefined|body|clientX|shift|pop|unshift|none|abs|Math|display|style|safari|historyReset|new|opera|mozilla|msie|jQuery|load|_|each|addClass|size|extend|200|empty|setInterval|unbind|initialize|split|indexOf|get'.split('|'),0,{}));jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}
var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}
expires='; expires='+date.toUTCString();}
var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}
return cookieValue;}};