﻿/*************************************************************************
  This code is from Dynamic Web Coding at dyn-web.com
  Copyright 2001-5 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

function initRotator() {
    // arguments: image name, rotation speed, (optional) path to images
    var rotator1 = new dw_Rotator('img1', 3500, "/images/banner/");
    rotator1.addImages("Banner6.jpg","Banner7.jpg","Banner8.jpg");
    
    var rotator2 = new dw_Rotator('img2', 3500, "/images/banner/");
    rotator2.addImages("Banner9.jpg","Banner10.jpg");
    
    dw_Rotator.start();  
}

function displayCodeInfo(id) {
    function getPath(pn) {
        return pn.slice(0, pn.lastIndexOf("/") + 1);
    }

    if ( !window.opener || getPath(window.opener.location.pathname) != getPath(window.location.pathname) ) {
        var el = document.getElementById? document.getElementById(id): null;
        if (el) el.style.display = "block";
    }
}

// in case not opened by presenting doc
displayCodeInfo('ref');