function addEvent(elm,listener,fn){
try{elm.addEventListener(listener,fn,false);}catch(e){
elm.attachEvent("on"+listener,fn);
}}
addEvent(window,"load",function(){
  var cseSB=document.getElementById('HGSite');cseSB.onclick=siteSEARCH;
  var norSB=document.getElementById('HGWeb');norSB.onclick=webSEARCH;
});
function webSEARCH(){document.getElementById('cse-search-box').style.display='none';document.getElementById('nor-search-box').style.display='block';}
function siteSEARCH(){document.getElementById('nor-search-box').style.display='none';document.getElementById('cse-search-box').style.display='block';}
addEvent(window,"load",function(){
  var HGsT=document.getElementById('header-googleS-text');
    HGsT.onmouseover=HGsTover;
    HGsT.onmouseout=HGsTout;
    HGsT.onfocus=HGsTfocus;
    HGsT.onblur=HGsTblur;
  var HGsS=document.getElementById('header-googleS-submit');
    HGsS.onmouseover=HGsSover;
    HGsS.onmouseout=HGsSout;
    HGsS.onfocus=HGsSfocus;
    HGsS.onblur=HGsSblur;
  var FGsT=document.getElementById('footer-googleS-text');
    FGsT.onmouseover=FGsTover;
    FGsT.onmouseout=FGsTout;
    FGsT.onfocus=FGsTfocus;
    FGsT.onblur=FGsTblur;
  var FGsS=document.getElementById('footer-googleS-submit');
    FGsS.onmouseover=FGsSover;
    FGsS.onmouseout=FGsSout;
    FGsS.onfocus=FGsSfocus;
    FGsS.onblur=FGsSblur;
  var TArrow=document.getElementById('top-Arrow');
    TArrow.onmouseover=TArrowover;
    TArrow.onmouseout=TArrowout;
  var BArrow=document.getElementById('bottom-Arrow');
    BArrow.onmouseover=BArrowover;
    BArrow.onmouseout=BArrowout;
});
function HGsTover(){document.getElementById('header-googleS-text').style.border='#00c0dc 1px solid';}
function HGsTout(){document.getElementById('header-googleS-text').style.border='#ffffff 1px solid';}
function HGsTfocus(){document.getElementById('header-googleS-text').style.border='#00c0dc 1px solid';document.getElementById('header-googleS-text').style.backgroundColor='#ffffff';document.getElementById('header-googleS-text').style.color='#000000';}
function HGsTblur(){document.getElementById('header-googleS-text').style.border='#ffffff 1px solid';document.getElementById('header-googleS-text').style.backgroundColor='#555555';document.getElementById('header-googleS-text').style.color='#ffffff';}
function HGsSover(){document.getElementById('header-googleS-submit').style.backgroundPosition='51px 87px';}
function HGsSout(){document.getElementById('header-googleS-submit').style.backgroundPosition='0px 87px';}
function HGsSfocus(){document.getElementById('header-googleS-submit').style.backgroundPosition='51px 87px';}
function HGsSblur(){document.getElementById('header-googleS-submit').style.backgroundPosition='0px 87px';}
function FGsTover(){document.getElementById('footer-googleS-text').style.border='#00c0dc 1px solid';}
function FGsTout(){document.getElementById('footer-googleS-text').style.border='#ffffff 1px solid';}
function FGsTfocus(){document.getElementById('footer-googleS-text').style.border='#00c0dc 1px solid';document.getElementById('footer-googleS-text').style.backgroundColor='#ffffff';document.getElementById('footer-googleS-text').style.color='#000000';}
function FGsTblur(){document.getElementById('footer-googleS-text').style.border='#ffffff 1px solid';document.getElementById('footer-googleS-text').style.backgroundColor='#555555';document.getElementById('footer-googleS-text').style.color='#ffffff';}
function FGsSover(){document.getElementById('footer-googleS-submit').style.backgroundPosition='51px 87px';}
function FGsSout(){document.getElementById('footer-googleS-submit').style.backgroundPosition='0px 87px';}
function FGsSfocus(){document.getElementById('footer-googleS-submit').style.backgroundPosition='51px 87px';}
function FGsSblur(){document.getElementById('footer-googleS-submit').style.backgroundPosition='0px 87px';}
function TArrowover(){document.getElementById('top-Arrow').style.backgroundPosition='50px -75px';}
function TArrowout(){document.getElementById('top-Arrow').style.backgroundPosition='50px 0px';}
function BArrowover(){document.getElementById('bottom-Arrow').style.backgroundPosition='50px -125px';}
function BArrowout(){document.getElementById('bottom-Arrow').style.backgroundPosition='50px -50px';}
addEvent(window,"load",function(){
  var HGwT=document.getElementById('header-googleW-text');
    HGwT.onmouseover=HGwTover;
    HGwT.onmouseout=HGwTout;
    HGwT.onfocus=HGwTfocus;
    HGwT.onblur=HGwTblur;
  var HGwS=document.getElementById('header-googleW-submit');
    HGwS.onmouseover=HGwSover;
    HGwS.onmouseout=HGwSout;
    HGwS.onfocus=HGwSfocus;
    HGwS.onblur=HGwSblur;
});
function HGwTover(){document.getElementById('header-googleW-text').style.border='#00c0dc 1px solid';}
function HGwTout(){document.getElementById('header-googleW-text').style.border='#ffffff 1px solid';}
function HGwTfocus(){document.getElementById('header-googleW-text').style.border='#00c0dc 1px solid';document.getElementById('header-googleW-text').style.backgroundColor='#ffffff';document.getElementById('header-googleW-text').style.color='#000000';}
function HGwTblur(){document.getElementById('header-googleW-text').style.border='#ffffff 1px solid';document.getElementById('header-googleW-text').style.backgroundColor='#555555';document.getElementById('header-googleW-text').style.color='#ffffff';}
function HGwSover(){document.getElementById('header-googleW-submit').style.backgroundPosition='51px 116px';}
function HGwSout(){document.getElementById('header-googleW-submit').style.backgroundPosition='0px 116px';}
function HGwSfocus(){document.getElementById('header-googleW-submit').style.backgroundPosition='51px 116px';}
function HGwSblur(){document.getElementById('header-googleW-submit').style.backgroundPosition='0px 116px';}

addEvent(window,"load",function(){
  var MBB=document.getElementById('menu-blog-block');
    MBB.onmouseover=MBBover;
    MBB.onmouseout=MBBout;
  var MPB=document.getElementById('menu-photo-block');
    MPB.onmouseover=MPBover;
    MPB.onmouseout=MPBout;
});
function MBBover(){document.getElementById('blogpop').style.display='block';}
function MBBout(){document.getElementById('blogpop').style.display='none';}
function MPBover(){document.getElementById('photopop').style.display='block';}
function MPBout(){document.getElementById('photopop').style.display='none';}

document.open();
document.write('<script src="/js/call.js" type="text/javascript"></script>');
document.close();
