Drupal.sprangutveckling = {};

Drupal.sprangutveckling.rotator = function(){
	var topdog;
	
	jQuery('.front .view-stor-puff .views-row').each(function(index)
	{
		jQuery(this).css("z-index" ,Number(jQuery(this).css("z-index"))+1);
		if(jQuery(this).css("z-index")==4)
		{
				topdog = jQuery(this);
		}
		
	});
	jQuery(topdog).fadeTo("slow", 0.1, function() {
      
        jQuery(topdog).css("z-index",1).fadeTo("slow", 1);
    });
}

jQuery(document).ready(function() {

  jQuery('.field-name-field-zipfile a').colorbox({iframe:true,opacity:0.7,width:"1024px",height:"800px",maxWidth:"100%",maxHeight:"100%"});

  setInterval("Drupal.sprangutveckling.rotator()", 7000);
});
;

