
if(document.getElementsByTagName){var $link_element=document.createElement('link');$link_element.setAttribute("rel","stylesheet");$link_element.setAttribute("href","http://www.picotech.com/js/examples.css");$link_element.setAttribute("media","screen");var $head_element=document.getElementsByTagName('head')[0];$head_element.appendChild($link_element);}
var http=createRequestObject();var httpshare=createRequestObject();var ajax=checkAjax();function ProductSelect(){if(!document.getElementById){return false;}
var agt=navigator.userAgent.toLowerCase();var submitbtn=document.getElementById('submitbtn');var productlist=document.forms['plist'].product;productlist.onfocus=function(){productlist.style.background='#AFD0EF';document.forms['plist'].reset();}
productlist.onmousewheel="return(false);";productlist.onchange=function(){if(productlist.value==''){return;}else{productlist.blur();productlist.style.background='#fff';document.getElementById('drivers').focus();http.open('get','http://www.picotech.com/cgi-bin/examples.pl?product='+document.forms['plist'].product.value);http.onreadystatechange=handleFish;http.send(null);}}
var examplelist=document.forms['plist'].example;examplelist.onfocus=function(){examplelist.style.background='#AFD0EF';document.forms['plist'].reset();}
examplelist.onmousewheel="return(false);";examplelist.onchange=function(){if(examplelist.value==''){return;}else{examplelist.blur();examplelist.style.background='#fff';document.getElementById('drivers').focus();http.open('get','http://www.picotech.com/cgi-bin/examples.pl?example='+document.forms['plist'].example.value);http.onreadystatechange=handleFish;http.send(null);}}}
function handleFish(){if(http.readyState==1){var response='<div class="c gap"><img src="../images/loading.gif" width="32" height="32" alt="" /> &#160; Loading...</div>';document.getElementById('drivers').innerHTML=response;}
if(http.readyState==4){var response=http.responseText;document.getElementById('drivers').innerHTML=response;}}
function checkAjax(){var ajax;if(!ajax){try{request=new XMLHttpRequest();ajax='ok';}
catch(e){try{request=new ActiveXObject('MSXML2.XMLHTTP');ajax='ok';}
catch(e){try{request=new ActiveXObject('Microsoft.XMLHTTP');ajax='ok';}
catch(e)
{ajax='no';}}}}
return ajax;}
function createRequestObject(){var ajax;var request;if(!request){try{request=new XMLHttpRequest();ajax='ok';}
catch(e){try{request=new ActiveXObject('MSXML2.XMLHTTP');ajax='ok';}
catch(e){try{request=new ActiveXObject('Microsoft.XMLHTTP');ajax='ok';}
catch(e)
{ajax='no';}}}}
return request;}
function Search(){var searchform=document.forms['search'];var submitform=searchform.ssubmit;submitform.onclick=function(){submitform.value="Wait...";if(searchform.q.value==""){alert('Please enter one or more words to search for');searchform.q.focus();searchform.q.style.border="1px solid red";submitform.value="Try again";return false;}
return true;}}
function HandleShare(){if(httpshare.readyState==1){var response='<div class="c gap"><img src="http://www.picotech.com/images/loading.gif" width="32" height="32" alt="" /> &#160; Loading...</div>';document.getElementById('shareme').innerHTML=response;var lefty=(screen.availWidth-400)/2;var sharemez=document.getElementById('shareme');sharemez.style.display='block';sharemez.style.position='absolute';sharemez.style.left=lefty+'px';sharemez.style.top='120px';sharemez.style.width='300px';sharemez.style.background='#fff';}
if(httpshare.readyState==4){var response=httpshare.responseText;document.getElementById('shareme').innerHTML=response;var lefty=(screen.availWidth-400)/2;var sharemez=document.getElementById('shareme');sharemez.style.display='block';sharemez.style.position='absolute';sharemez.style.left=lefty+'px';sharemez.style.top='120px';sharemez.style.width='300px';sharemez.style.background='#fff';if(document.getElementById("sharecloseform")){var sharecloseform=document.getElementById("sharecloseform");sharecloseform.onclick=function(){var sharez=0.05;ShareFadeOut();function ShareFadeOut(){var content=document.getElementById('page');try{content.style.opacity=sharez;}catch(e){}
try{content.style.MozOpacity=sharez;}catch(e){}
var opacy=sharez*100;try{content.style.filter='alpha(opacity='+opacy+')';}catch(e){}
try{content.style.KhtmlOpacity=sharez;}catch(e){}
sharez+=0.05;if(sharez<1){setTimeout(ShareFadeOut,10);}}
document.getElementById('shareme').style.display='none';}}
if(document.forms['shareform']){var shareform=document.forms['shareform'];var submitshare=shareform.sharesubmit;submitshare.onclick=function(){submitshare.value="Wait...";}}}}
function ShareMe(){if(!document.getElementById('share')){return false;}
var share=document.getElementById('share');share.onclick=function(){var sharex=1;ShareFadeIn();function ShareFadeIn(){var content=document.getElementById('page');try{content.style.opacity=sharex;}catch(e){}
try{content.style.MozOpacity=sharex;}catch(e){}
var opacy=sharex*100;try{content.style.filter='alpha(opacity='+opacy+')';}catch(e){}
try{content.style.KhtmlOpacity=sharex;}catch(e){}
sharex-=0.05;sharex=sharex.toFixed(2);if(sharex>=0.20){setTimeout(ShareFadeIn,10);}else{share.style.display="block";}}
httpshare.open('get','http://www.picotech.com/cgi-bin/share.pl');httpshare.onreadystatechange=HandleShare;httpshare.send(null);return false;}}
defaultStatus='Pico Technology PC oscilloscopes and data acquisition products';window.onload=StartUp;function StartUp(){ProductSelect();Search();ShareMe();}