<!--
//vctClock fun - time is money
function launchfooter(url){
        window.open(url, "reader", "width=205,height=130,scrollbars=no");
        }


//Zilvar multizoner schema
onezone=new Image();
zoneexpander=new Image();
onezone.src="../images/zilvar/onezone.gif"
zoneexpander.src="../images/zilvar/zoneexpander.gif"

//product display
standart=new Image();
standart.src="../images/DR1616OBsimple.jpg";
OEM=new Image();
OEM.src="../images/DR1616OEMtop.jpg";
kit=new Image();
kit.src="../images/DR1616kit.jpg";
PCB=new Image();
PCB.src="../images/pcbDr16.gif";

function PDAct(imgName){
document.productDisplay.src=eval(imgName+".src");
}


// menu - rollovers
tabPROoff=new Image();
tabPROoff.src="../images/tabPROoff.gif";
tabPROon=new Image();
tabPROon.src="../images/tabPROon.gif";
tabASSoff=new Image();
tabASSoff.src="../images/tabASSoff.gif";
tabASSon=new Image();
tabASSon.src="../images/tabASSon.gif";
tabTECoff=new Image();
tabTECoff.src="../images/tabTECoff.gif";
tabTECon=new Image();
tabTECon.src="../images/tabTECon.gif";
tabAUoff=new Image();
tabAUoff.src="../images/tabAUoff.gif";
tabAUon=new Image();
tabAUon.src="../images/tabAUon.gif";
tabEMLoff=new Image();
tabEMLoff.src="../images/tabEMLoff.gif";
tabEMLon=new Image();
tabEMLon.src="../images/tabEMLon.gif";
tabDR16off=new Image();
tabDR16off.src="../images/tabDR16off.gif";
tabDR16on=new Image();
tabDR16on.src="../images/tabDR16on.gif";
tabZilvon=new Image();
tabZilvon.src="../images/icons/tabZilvon.gif";
tabZilvoff=new Image();
tabZilvoff.src="../images/icons/tabZilvoff.gif";
tabBukon=new Image();
tabBukon.src="../images/icons/tabBukon.gif";
tabBukoff=new Image();
tabBukoff.src="../images/icons/tabBukoff.gif";

function imgAct(imgName){
document[imgName].src=eval(imgName + "on.src");
}
function imgInact(imgName){
document[imgName].src=eval(imgName + "off.src");
}

// animation Watt's regulator
boardSpeed=100;
boardNum=0;
delta=1;
billboards = new Array();
billboards[1] = new Image();
billboards[1].src = "../images/logos/v1.gif";
billboards[2] = new Image();
billboards[2].src = "../images/logos/v2.gif";
billboards[3] = new Image();
billboards[3].src = "../images/logos/v3.gif";
billboards[4] = new Image();
billboards[4].src = "../images/logos/v4.gif";
billboards[5] = new Image();
billboards[5].src = "../images/logos/v5.gif";


// animation - billboard logos
/*boardSpeed=3000;
boardNum=0;
/delta=1;
billboards = new Array();
billboards[1] = new Image();
billboards[1].src = "../images/logos/poweredByLinux.gif";
billboards[2] = new Image();
billboards[2].src = "../images/logos/mysql.gif";
billboards[3] = new Image();
billboards[3].src = "../images/logos/php3.gif";
billboards[4] = new Image();
billboards[4].src = "../images/logos/anybrowser3.png";
*/
url = new Array();
url[1]="/";
url[2]="/";

function rotateBoard(){
boardNum = boardNum + delta;
if(boardNum == billboards.length - 1) delta=-1;
if(boardNum == 1) delta=1;
document.billboard.src = billboards[boardNum].src;
setTimeout('rotateBoard()',boardSpeed);
}

function jumpBillboard(){
window.location.href = url[boardNum];
}

// poop window to show the product images
function poopWindow(appURL){
leftPos=0;
if(screen){
    leftPos=screen.width-500 ;
    }

 projectWindow=window.open('pressAgain.html','Projects','width=240,height=200,left='+leftPos+',top=35');
  projectWindow.document.write("<HTML>");
  projectWindow.document.write("<IMG SRC="+appURL+"><BR>");
  projectWindow.document.write("</HTML>");
 projectWindow.focus();
}

// pop up window from projects page
function newWindow(appURL,codeURL){
leftPos=0;
if(screen){
    leftPos=screen.width-500 ;
    }

 projectWindow=window.open('pressAgain.html','Projects','width=440,height=560,left='+leftPos+',top=35');
  projectWindow.document.write("<HTML>");
  projectWindow.document.write("<FRAMESET ROWS='50%,50%'>");
  projectWindow.document.write("<FRAME SRC="+appURL+" NAME='left' SCROLLING=AUTO>");
  projectWindow.document.write("<FRAME SRC="+codeURL+" NAME='right' SCROLLING=AUTO>");
  projectWindow.document.write("</FRAMESET>");
  projectWindow.document.write("</HTML>");
 projectWindow.focus();
}


// scrolling text - DHTML
//set these variables:
        lstart=200 //the pixel value of where you want the layer to start
        lstop=-230 // where you want it to stop, set this lower for more content
        //(i know this isnt the ideal way of doing this, but it's the easiest way to it crossbrowser)
        loop=true // set this to false if you just want it to go one time
        speed=50 // set the speed, lower value gives more speed
        pr_step=1 // set this to how many pixels you want it to go for each step, this also set's the speed.

        var n = (document.layers) ? 1:0;
        var ie = (document.all) ? 1:0;

        function makeObj(obj,nest){
        nest=(!nest) ? '':'document.'+nest+'.'
        this.css=(n) ? eval(nest+'document.'+obj):eval(obj+'.style')
                this.up=goUp
        this.obj = obj + "Object"
        eval(this.obj + "=this")
        return this
        }
        function goUp(speed){
                this.css.top=parseInt(this.css.top)-pr_step
                if(parseInt(this.css.top)>lstop) setTimeout(this.obj+".up("+speed+")",speed)
                else if(loop) {
                        this.css.top=lstart
                        eval(this.obj+".up("+speed+")")
                  }
        }
        function init(){
                testObj=makeObj('test2','test')
                testObj.css.top=lstart
                testObj.up(speed)

        }

//-->


