/**
 * misc.js
 *
 * A collection of Javascript commands of the mlbk application.
 * Based on jQuery.
 *
 * @author    Stefan Matthäus
 * @copyright kommzept
 * @version   1.0
 */


 jQuery(document).ready( function() {
   jQuery('a.thickbox').each( function() {
   jQuery(this).attr('href',
               jQuery(this).attr('href')
               + '?popup=1&TB_iframe=true&height=400&width=550'
               );
   });

   //$("#tabs").tabs();

   jQuery('.button').mouseover(function(){
        newsrc=str_replace(jQuery(this).attr('src'), '_off', '_on');
        jQuery(this).attr('src',newsrc);
     }
   );
   jQuery('.button').mouseout(function(){
        newsrc=str_replace(jQuery(this).attr('src'), '_on', '_off');
        jQuery(this).attr('src',newsrc);
     }
   );



});

   // standart string replace functionality
   function str_replace(haystack, needle, replacement) {
   	var temp = haystack.split(needle);
     	return temp.join(replacement);
   }







