/*
  JS Grundfunktionen | � 2009 by hans-schmidt.com
____________________________________________ */

$(document).ready(function(){

	$.fn.hansSchmidtScripts = function(settings) {

// ------------------------- Wechselbildbaustein [NEU] ---------------------------

    if($("#gal_img_great").length) {
    
      $("#gal_img_smart img").hover(function() {
        $("#gal_img_great").html('');
        var imgSrc = $(this).attr('src');
        var imgDesc = $(this).attr('alt');
        
        $('<img src="'+imgSrc+'" alt="'+imgDesc+'" title="'+imgDesc+'" /><p>'+imgDesc+'</p>')
          .appendTo("#gal_img_great");
        
      });
      
    }
    
    $(".fuehrungsrollen tr:nth-child(odd)")
      .addClass('tr_nth_child');
      
    $("#nav li[class*='linkstyle3']:first").css({
      marginTop: '-4px'
    });
    
    /*$("#nav li[class*='linkstyle3']:last").css({
      marginBottom: '4px',
      borderBottom: '1px solid #000'
    });*/

  };

  // Activate hansSchmidtScripts if HTML is ready
  $("html").hansSchmidtScripts();

});

/**
 * 
 * @return
 */
function jumptoThisUrl(url)
{
	location.href = url;
}