// JavaScript Document

var j = 0
var dic = 'images/bg/'

var Pic = new Array()
Pic[0] = 'bg-7b.gif'
Pic[1] = 'bg-12.gif'
Pic[2] = 'bg-4.gif'
Pic[3] = 'bg-5.gif'
Pic[4] = 'bg-14.gif'
Pic[5] = 'bg-15.gif'
Pic[6] = 'bg-16.gif'
Pic[7] = 'bg-18.gif'


var Repeat = new Array()
Repeat[0] = 'no-repeat'
Repeat[1] = 'repeat-x'
Repeat[2] = 'no-repeat'
Repeat[3] = 'repeat-x'
Repeat[4] = 'repeat-x'
Repeat[5] = 'repeat'
Repeat[6] = 'no-repeat'
Repeat[7] = 'repeat-x'

var Color = new Array()
Color[0] = '#17b2a3'
Color[1] = '#47484c'
Color[2] = '#ffe100'
Color[3] = '#2c77e7'
Color[4] = '#182b0c'
Color[5] = '#c7d4d7'
Color[6] = '#4f515e'
Color[7] = '#2a2b0f'


function randomBG(){
   j=Math.floor(Math.random()*8)
   if (document.body){
   document.body.background = dic.concat(Pic[j]);
   document.body.style.backgroundRepeat = Repeat[j];  
   document.body.style.backgroundColor = Color[j];
   }
}

