// HOMEPAGE IN HOUSE


// Playlist for In House Ads ********************************************************

var inhousetitle = new Array()
var inhouseimage = new Array()
var inhouselinkto = new Array()

inhousetitle[0] = "The Production Center at NJN"
inhouseimage[0] = "http://www.njn.net/homepage/features/adproductioncenter.jpg"
inhouselinkto[0] = "http://www.njn.net/productioncenter/"

inhousetitle[1] = "NJN Twitter Feed"
inhouseimage[1] = "http://www.njn.net/homepage/features/adtwitter.jpg"
inhouselinkto[1] = "http://twitter.com/NJNPublicTV"

//inhousetitle[1] = "NJN Facebook Fan Page"
//inhouseimage[1] = "http://www.njn.net/homepage/features/adfacebook.jpg"
//inhouselinkto[1] = "http://www.facebook.com/NJNPublicTV"

//inhousetitle[4] = "Burt Wolf - Liberty Lecture Series"
//inhouseimage[4] = "http://www.njn.net/homepage/features/adburtwolf.jpg"
//inhouselinkto[4] = "http://www.njn.net/joinsupport/membership/libertylectureseries/"


// Script for random In House Ads ********************************************************

// Note:  function changeInhouseImage called onload in programpicksscripts2.js *************************************************************


var randomInhouseImage = Math.round(Math.random()*(inhouseimage.length-1));

function changeInhouseImage(){
document.getElementById('inhouseimage').src=inhouseimage[randomInhouseImage];
document.getElementById('inhouselink').href=inhouselinkto[randomInhouseImage];
document.getElementById('inhouseimage').alt=inhousetitle[randomInhouseImage];
}

