function loadStyle(file){var linkStyle=document.createElement("link");linkStyle.setAttribute("rel","stylesheet");linkStyle.setAttribute("type","text/css");linkStyle.setAttribute("media","screen");linkStyle.setAttribute("href",file);document.getElementsByTagName("head")[0].appendChild(linkStyle);}
function links(){var anchors=document.getElementsByTagName('a');for(var i=0;i<anchors.length;i++){var anchor=anchors[i];var rel=anchor.getAttribute('rel');if(rel=='external'){anchor.target='_blank';}}}
function menuHide(id){id.style.left="-99em";}
function menuShow(id){id.style.left="auto";}
function menuAction(id){var menuList=id.getElementsByTagName("ul");if(menuList[0]!=null){function show(){menuShow(menuList[0]);};function hide(){menuHide(menuList[0]);};id.onmouseover=show;id.onmouseout=hide;id.onfocus=show;id.onblur=hide;}}
function dropdownMenu(id){var menuItems=document.getElementById(id).getElementsByTagName("li");for(var i=0;i<menuItems.length;i++){menuAction(menuItems[i]);}}
function backgroundRotate(id){if(document.getElementById(id)){var rand=Math.floor(Math.random()*5);switch(rand){case 1:document.getElementById(id).innerHTML='<div class="floatleft"><img src="/media/headers/solo.jpg" /><a href="/pages/reply-central/keypads/replysolo.php"><img src="/media/headers/reply-solo.png" class="keypad" /></a></div><p class="title">The Power Of Interaction</p><p class="bold italic">Reply Solo</p><p>Freedom to poll anywhere, anytime – without the need for electricity, computers, and special projection equipment. </p>';break;case 2:document.getElementById(id).innerHTML='<div class="floatleft"><img src="/media/headers/mini.jpg" /><a href="/pages/reply-central/keypads/replymini.php"><img src="/media/headers/reply-mini-ww.png" class="keypad" /></a></div><p class="title">The Power Of Interaction</p><p class="bold italic">Reply Mini</p><p>When size matters.</p>';break;case 3:document.getElementById(id).innerHTML='<div class="floatleft"><img src="/media/headers/main.jpg" /><a href="/pages/reply-central/keypads/replyworldwide.php"><img src="/media/headers/reply-ww.png" class="keypad" /></a></div><p class="title">The Power Of Interaction</p><p class="bold italic">Reply Worldwide</p><p>Ease of use, ruggedness and affordability intersect here.</p>';break;case 4:document.getElementById(id).innerHTML='<div class="floatleft"><img src="/media/headers/iq.jpg" /><a href="/pages/reply-central/keypads/replyiq.php"><img src="/media/headers/reply-iq.png" class="keypad" /></a></div><p class="title">The Power Of Interaction</p><p class="bold italic">Reply IQ</p>';break;case 5:document.getElementById(id).innerHTML='<div class="floatleft"><img src="/media/headers/plus.jpg" /><a href="/pages/reply-central/keypads/replyplus.php"><img src="/media/headers/reply-plus.png" class="keypad" /></a></div><p class="title">The Power Of Interaction</p><p class="bold italic">Reply Plus</p><p>Experience high performance without the high price</p>';break;}}}loadStyle("/styles/javascript.css");window.onload=function(){links();dropdownMenu('navReply');dropdownMenu('nav');backgroundRotate('headerRotate');};