/*
  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 ul li:last-child").css('border-bottom', '1px solid #666');
    $(".product-name:nth-child(even)").css('margin', '10px 0 0');
    
    $(".imgrotator:last").css({
      margin: '10px 0 0',
      float: 'right'
      });

  };

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

});

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