// Browser Detection

var ua=navigator.userAgent.toLowerCase();var os,browser,version,data;function detect(text){stringposition=ua.indexOf(text)+1;data=text;return stringposition;}
if(detect('konqueror')){browser="Konqueror";os="Linux";}
else if(detect('safari'))browser="Safari";else if(detect('omniweb'))browser="OmniWeb";else if(detect('firefox'))browser="Firefox";else if(detect('opera'))browser="Opera";else if(detect('webtv'))browser="WebTV";else if(detect('icab'))browser="iCab";else if(detect('msie'))browser="Internet Explorer";else if(!detect('compatible')){browser="Netscape Navigator";version=ua.charAt(8);}
else browser="An unknown browser";if(!version)version=ua.charAt(stringposition+data.length);if(!os){if(detect('linux'))os="Linux";else if(detect('x11'))os="Unix";else if(detect('mac'))os="Mac";else if(detect('win'))os="Windows";else os="An unknown operating system";}
function makeMoveHotJobsFunc(panelId,n)
{return function(){moveHotJobs(panelId,n+1);};}
function moveHotJobs(panelId,n){var righthotjobs=document.getElementById('righthotjobs');if(righthotjobs)
{var jobTable=document.getElementById(panelId);jobTable.style.display='none';righthotjobs.innerHTML=jobTable.innerHTML;righthotjobs.style.display='inline';var ch=righthotjobs.firstChild;while(ch&&ch.nodeName!='TABLE')ch=ch.nextSibling;if(ch)
{var rightad=document.getElementById('rightad');if(rightad){rightad.style.width=ch.width;rightad.style.textAlign='center';}}}
else if(n<25)
{setTimeout(makeMoveHotJobsFunc(panelId,n),100);}}
function isHiRes()
{var myWidth=0;if(typeof(window.innerWidth)=='number'){myWidth=window.innerWidth;}else if(document.documentElement&&(document.documentElement.clientWidth)){myWidth=document.documentElement.clientWidth;}else if(document.body&&(document.body.clientWidth)){myWidth=document.body.clientWidth;}
return(myWidth>=900);}
