/*
hp_features.js
20091120
Script by FPMC at http://jsarchive.8m.com
Submitted to JavaScript Kit (http://javascriptkit.com)
For this and 400+ free scripts, visit http://javascriptkit.com
Modified by Jason for BCPL.
*/

//set image paths
jd_features_src = ["features/polaris/feat_polaris.gif", "features/091116/feat_jewels_hart.gif", "features/091123/feat_091123_f1.gif", "features/091123/feat_091123_f2.gif", "features/091123/feat_091123_f3.gif"]

//set corresponding urls
jd_features_url = ["features/polaris/", "centers/library/bookclub.html", "branches/branch_re.html", "branches/branch_he.html", "branches/branch_pi.html"]

//set duration for each image
jd_features_duration = 9;

//Please do not edit below
jd_features_ads=[]; jd_features_ct=0;
function jd_features_switchAd() {
var jd_features_n=(jd_features_ct+1)%jd_features_src.length;
if (jd_features_ads[jd_features_n] && (jd_features_ads[jd_features_n].complete || jd_features_ads[jd_features_n].complete==null)) {
document["Ad_Image"].src = jd_features_ads[jd_features_ct=jd_features_n].src;
}
jd_features_ads[jd_features_n=(jd_features_ct+1)%jd_features_src.length] = new Image;
jd_features_ads[jd_features_n].src = jd_features_src[jd_features_n];
setTimeout("jd_features_switchAd()",jd_features_duration*1000);
}
function jd_features_doLink(){
location.href = jd_features_url[jd_features_ct];
}
function jd_features_jd_features(){
if (document.images) jd_features_switchAd();
}
