<!--

//LayerLinks
var content=new Array()
content[0]='<font class="lingo">Weekly tips about MotorHoming - Learn something new or just refresh your knowledge...</font>'
content[1]='<font class="lingo">A monthly venue for items of interest, places to go, &amp\; more...</font>'
content[2]='<font class="lingo">If you\'ve questions, We\'ve got answers - Checkout our Q &amp A...</font>'
content[3]='<font class="lingo">Concerned about purchasing a motorhome?  Need detailed answers to your questions?  Then complete our survey...</font>'
content[4]='<font class="lingo">Valuable bookmarks related to MotorHomes and MH products. Don\'t take our word, check them out for yourself...</font>'
content[5]='<font class="lingo">The main showcase for our sponsers. Discover great products &amp\; services relating to MotorHomes...</font>'
content[6]='<font class="lingo">The best gift one can receive is being able to give. Tell some friends about MotorHomeAdvice.com...</font>'
content[7]=''

function regenerate(){
window.location.reload()
}
function regenerate2(){
if (document.layers){
appear()
setTimeout("window.onresize=regenerate",558)
}
}

function changetext(whichcontent){

if (document.all||document.getElementById){
cross_el=document.getElementById? document.getElementById("descriptions"):document.all.descriptions
cross_el.innerHTML=''+whichcontent+''
}
else if (document.layers){
document.d1.document.d2.document.write(''+whichcontent+'')
document.d1.document.d2.document.close()
}
}

function appear(){
document.d1.visibility='show'
}

window.onload=regenerate2



/////// Null
function MotorHomeAdvice(){
}
/////////// MouseOver
function button(imgDocID, imgObjName) {
   // do nothing
}

//Weekly Tip
  weeklytip1 = new Image
  weeklytip1.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_weeklytip2.gif"
  weeklytip2 = new Image
  weeklytip2.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_weeklytip1.gif"
//Feature
  feature1 = new Image
  feature1.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_feature2.gif"
  feature2 = new Image
  feature2.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_feature1.gif"
//FAQs
  faqs1 = new Image
  faqs1.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_faq2.gif"
  faqs2 = new Image
  faqs2.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_faq1.gif"
//Survey
  survey1 = new Image
  survey1.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_survey2.gif"
  survey2 = new Image
  survey2.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_survey1.gif"
//Links
  links1 = new Image
  links1.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_links2.gif"
  links2 = new Image
  links2.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_links1.gif"  
//Advertisers
  adverts1 = new Image
  adverts1.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_advertcrt2.gif"
  adverts2 = new Image
  adverts2.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_advertcrt1.gif"
//Tell a Friend
  tell1 = new Image
  tell1.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_tellafriend2.gif"
  tell2 = new Image
  tell2.src = "http://www.motorhomeadvice.com/new/images/trans_bmenu_tellafriend1.gif"   

function button(imgDocID, imgObjName) {
    document.images[imgDocID].src = eval(imgObjName + ".src")
}
///////// Auto Focus
var isNN = (navigator.appName.indexOf("Netscape")!=-1);
function autoTab(input,len, e) {
var keyCode = (isNN) ? e.which : e.keyCode; 
var filter = (isNN) ? [0,8,9] : [0,8,9,16,17,18,37,38,39,40,46];
if(input.value.length >= len && !containsElement(filter,keyCode)) {
input.value = input.value.slice(0, len);
input.form[(getIndex(input)+1) % input.form.length].focus();
}
function containsElement(arr, ele) {
var found = false, index = 0;
while(!found && index < arr.length)
if(arr[index] == ele)
found = true;
else
index++;
return found;
}
function getIndex(input) {
var index = -1, i = 0, found = false;
while (i < input.form.length && index == -1)
if (input.form[i] == input)index = i;
else i++;
return index;
}
return true;
}
//-->