var randomIx = 0;
function randImg(){
currentIndx=0;
MyImages=new Array();
MyImages[0]="/common/images/v4/banner_1.jpg";
MyImages[1]="/common/images/v4/banner_2.jpg";
MyImages[2]="/common/images/v4/banner_3.jpg";
MyImages[3]="/common/images/v4/banner_4.jpg";
MyImages[4]="/common/images/v4/banner_5.jpg";
MyImages[5]="/common/images/v4/banner_1.jpg";
MyImages[6]="/common/images/v4/banner_7.jpg";
MyImages[7]="/common/images/v4/banner_8.jpg";

//fill in alt text
MyAltTxt=new Array();
MyAltTxt[0]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";
MyAltTxt[1]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";
MyAltTxt[2]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";
MyAltTxt[3]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";
MyAltTxt[4]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";
MyAltTxt[5]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";
MyAltTxt[6]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";
MyAltTxt[7]="InterfaithFamily.com offers services and resources for couples with a Jewish partner and non-Jewish partner. We encourage Jewish choices and a welcoming Jewish community.";

randomIx=Math.round(Math.random()*(7));
//randomIx=5;

var colorB = "#fff";

switch(randomIx)
{
case 2:
  colorB = "#012f8a";
  break;
case 6:
  colorB = "#012f8a";
  break;
case 7:
  colorB = "#012f8a";
  break;
default:
  colorB = "#fff";
}

document.write('<style>\n');
document.write('#Layer1, .Layer1 { background:url(' + MyImages[randomIx] + ');  background-repeat: no-repeat; height:190px} ');
//document.write('.banner2 { color:' + colorB + '}\n');
document.write('.banner2 { color:' + colorB + '; text-decoration: none; font-family:"Trebuchet MS", Georgia, "Times New Roman", Times, serif; font-size: 14px;  line-height: 16pt; }');
document.write('a.faq:link { color:' + colorB + '}\n');
document.write('a.faq:hover { color:' + colorB + '}\n');
document.write('a.faq:visited { color:' + colorB + '}\n');
document.write('</style>');


}
