Randomized Wordmarks & Headers

Wordmark & Header

/* Randomize wiki logo*/
$(function() {
    var images = [
'http://images.wikia.nocookie.net/__cb20140615135041/miyanlove/images/5/56/Natsume_yuujinchou_logo1.png',
'http://images.wikia.nocookie.net/__cb20140615135041/miyanlove/images/9/91/Natsume_yuujinchou_logo2.png',
'http://images.wikia.nocookie.net/__cb20140615135042/miyanlove/images/a/a3/Natsume_yuujinchou_logo3.png',
'http://images.wikia.nocookie.net/__cb20140613041410/miyanlove/images/8/89/Wiki-wordmark.png'
];
 
    $('h1.wordmark a img').attr('src', images[Math.floor(Math.random() * images.length)]);
});
 
/* Ends randomized wiki logo */

/* Randomize wiki header */
$(function() {
    var headerBackgroundImages= [
'http://images.wikia.nocookie.net/__cb20140615141303/miyanlove/images/3/3b/Banner-binary_codes.png',
'http://images.wikia.nocookie.net/__cb20140615141304/miyanlove/images/2/27/Banner-bluefirebottom.png',
'http://images.wikia.nocookie.net/__cb20140615141304/miyanlove/images/6/6a/Banner-bluefiretop.png',
'http://images.wikia.nocookie.net/__cb20140615141305/miyanlove/images/c/cb/Banner-redforest.png'
];
 
 $('.WikiHeader').css('background-image', 'url("' + headerBackgroundImages[Math.floor(Math.random() * headerBackgroundImages.length)] + '")');
});
 
//* Ends randomized wiki header *//