﻿/**
 * JavaScript Functions
 * Rosa Bittner
 *
 * @note JavaScript und jQuery Funktionen
 */

/**
 * DOM Ready | start the scripts when DOM ready
 * @note same as window.onload = function() {}
 */
jQuery(document).ready(function() {
	jQuery('.postthumb a img').fadeTo('fast', 0.85);
	jQuery('.postthumb a img').hover(function() {
		jQuery(this).fadeTo('fast', 1.0).css('border', '1px solid #FFF');
	}, function() {
		jQuery(this).fadeTo('fast', 0.85).css('border', '1px solid #808080');
	});
	jQuery('#header #headerimg h1 a img').hover(
		function() {
			jQuery(this).attr('src', jQuery(this).attr('src').replace(/logo-bittner-grey.png/, 'logo-bittner-white.png'));
		},
		function() {
			jQuery(this).attr('src', jQuery(this).attr('src').replace(/logo-bittner-white.png/, 'logo-bittner-grey.png'));
		}
	);
});