
// JavaScript Document
/* --------------------- 2004.10.12 --------------------- */

var brwsVer=parseInt(navigator.appVersion);
var sectionSetting = null;
var currSubMenu='';
var brwWidth=777;
var brwHeight=777;
var pgWidth=777;
var pgHeight=777;


// dBrowser
function dBrowser() {
   dBrowser=(document.layers)?'NN':(document.all)?'IE':'CB';
   if (dBrowser=="NN") {setTimeout("window.onresize=regenerate", 400);
       }


// refresh/resize - (Netscape)
function regenerate() { window.location.reload(); }
    if (dBrowser=="NN") { brwWidth=window.innerWidth; brwHeight=window.innerHeight;
      if (brwWidth>pgWidth) { pgWidth=brwWidth; pgHeight=brwHeight;
	  } else { pgWidth=pgWidth; pgHeight=pgHeight;
	         }
	  }
   else { brwWidth=window.document.body.clientWidth; brwHeight=window.document.body.clientHeight;
          if (brwWidth>pgWidth) { pgWidth=brwWidth; pgHeight=brwHeight;
		  } else { pgWidth=pgWidth; pgHeight=pgHeight;
		         }
	    }
   }


// Current Width
function currWidth() { 
    if (dBrowser=="NN") { brwWidth=window.innerWidth; brwHeight=window.innerHeight;
      if (brwWidth>pgWidth) { pgWidth=brwWidth; pgHeight=brwHeight;
	  } else { pgWidth=pgWidth; pgHeight=pgHeight;
	         }
	  }
   else { brwWidth=window.document.body.clientWidth; brwHeight=window.document.body.clientHeight;
          if (brwWidth>pgWidth) { pgWidth=brwWidth; pgHeight=brwHeight;
		  } else { pgWidth=pgWidth; pgHeight=pgHeight;
		         }
	    }
   }



function _ShareThis(){
strSTE="http://w.sharethis.com/widget/?tabs=email&amp;charset=utf-8&amp;style=default&amp;publisher=cb273831-4158-4a57-b584-51732babf5a6&amp;headerbg=%233881b2&amp;linkfg=%23004e99";
tdSTE.document.write('<scr'+'ipt type="text/javascript"');
tdSTE.document.write(' src="'+strSTE+'">');
tdSTE.document.write('<\/scr'+'ipt>');
}

// <script type="text/javascript" src="http://w.sharethis.com/widget/?tabs=email&amp;charset=utf-8&amp;style=default&amp;publisher=cb273831-4158-4a57-b584-51732babf5a6&amp;headerbg=%233881b2&amp;linkfg=%23004e99"></script>



// JavaScript Document
/* --------------------- 2008.10.15 --------------------- */

// < script type="text/javascript">

function openWind(wURL,wNM,wWD,wHT,wTP,wLF,wSB,wMB,wRS,wTB,wLC,wST){ currWidth(); wTP=110;
if (brwWidth>0){wLF=(brwWidth/2)-(wWD/2)};
if (brwHeight<=600){wTP=97};
if (brwHeight>600&&brwHeight<=900){wTP=110};
// 599, 855
// window.alert( 'jsOpenWind --->  ' +  brwWidth + ' / ' + wWD + ' / ' + wLF);
   window.open(wURL,wNM,'width='+wWD+',height='+wHT+',top='+wTP+',left='+wLF+',scrollbars='+wSB+',menubar='+wMB+',resizable='+wRS+',toolbar='+wTB+'location='+wLC+',status='+wST);
}


function _EmailUs(){
  openWind('http://www.iemailyou.com/EmailUs.html','EmailUs',547,530,97,207,'yes','no','no','no','no','no'); 
}


// < /script>


/*
function openWindow(wName, wURL){ 
if (!window.win2||win2.closed){
     win2=window.open(wURL);
}
else { win2.location=wURL; win2.focus();
}



if (document.getElementById&&displaymode==0)
document.getElementById("external").src=inputurl
else if (document.all&&displaymode==0)
document.all.external.src=inputurl
else{
if (!window.win2||win2.closed)
win2=window.open(inputurl)
//else if win2 already exists
else{
win2.location=inputurl
win2.focus()
}
}

}

*/


