(function($){
  Drupal.behaviors.oknyomozo = {
    attach : function(){
// Img size width: 160  height: 127
// uj kep beillesztese 'img'+
var headimg=' '+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/01.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/02.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/03.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/04.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/05.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/06.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/07.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/08.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/09.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/10.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/11.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/12.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/13.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/14.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/15.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/16.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/17.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/18.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/19.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/20.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/21.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/22.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/23.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/24.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/25.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/26.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/27.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/28.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/29.jpg" />'+
// '<img alt="oknyomozó" src="/files/oknyomozo/himg/30.jpg" />'+ ez a kezdokep
'<img alt="oknyomozó" src="/files/oknyomozo/himg/31.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/32.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/33.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/34.jpg" />'+
'<img alt="oknyomozó" src="/files/oknyomozo/himg/35.jpg" />'+
' ';
$('div.topimg_left').append(headimg);
$('div.topimg_left').innerfade({
  speed: 2000,
  animationtype: 'fade',
  timeout: 10000,
  type: 'random',
  containerheight: '127px'
});
},
}
})(jQuery);
;
/*
// jquery.innerfade.js
// Firma: Medienfreunde Hofmann & Baldes GbR
// Autor: Torsten Baldes
// Mail: t.baldes@medienfreunde.com
// Web: http://medienfreunde.com
//*/


(function($){$.fn.innerfade=function(options){this.each(function(){var settings={animationtype:'fade',speed:'normal',timeout:2000,type:'sequence',containerheight:'auto',runningclass:'innerfade'};if(options)$.extend(settings,options);var elements=$(this).children();if(elements.length>1){$(this).css('position','absolute');$(this).css('height',settings.containerheight);$(this).addClass(settings.runningclass);for(var i=0;i<elements.length;i++){$(elements[i]).css('z-index',String(elements.length-i)).css('position','absolute');$(elements[i]).hide()};if(settings.type=='sequence'){setTimeout(function(){$.innerfade.next(elements,settings,1,0)},settings.timeout);$(elements[0]).show()}else if(settings.type=='random'){setTimeout(function(){do{current=Math.floor(Math.random()*(elements.length))}while(current==0)$.innerfade.next(elements,settings,current,0)},settings.timeout);$(elements[0]).show()}else{alert('type must either be \'sequence\' or \'random\'')}}})};$.innerfade=function(){};$.innerfade.next=function(elements,settings,current,last){if(settings.animationtype=='slide'){$(elements[last]).slideUp(settings.speed,$(elements[current]).slideDown(settings.speed))}else if(settings.animationtype=='fade'){$(elements[last]).fadeOut(settings.speed);$(elements[current]).fadeIn(settings.speed)}else{alert('animationtype must either be \'slide\' or \'fade\'')};if(settings.type=='sequence'){if((current+1)<elements.length){current=current+1;last=current-1}else{current=0;last=elements.length-1}}else if(settings.type=='random'){last=current;while(current==last){current=Math.floor(Math.random()*(elements.length))}}else{alert('type must either be \'sequence\' or \'random\'')};setTimeout((function(){$.innerfade.next(elements,settings,current,last)}),settings.timeout)}})(jQuery);
;

