//home. ¸ÞÀÎ
function go_home() {
	document.location.replace("http://www.gstaricad.co.kr/");
}

function go_01() { //È¸»ç¼Ò°³
	document.location.replace("http://www.gstaricad.co.kr/0101.html");
}
function go_01_01() {
	document.location.replace("http://www.gstaricad.co.kr/0101.html");
}
function go_01_02() {
	document.location.replace("http://www.gstaricad.co.kr/0102.html");
}
function go_01_03() {
	document.location.replace("http://www.gstaricad.co.kr/0103.html");
}
function go_01_04() {
	document.location.replace("http://www.gstaricad.co.kr/0104.html");
}

function go_02() { //Á¦Ç°¼Ò°³
	document.location.replace("http://www.gstaricad.co.kr/0201.html");
}
function go_02_01() {
	document.location.replace("http://www.gstaricad.co.kr/0201.html");
}
function go_02_02() {
	document.location.replace("http://www.gstaricad.co.kr/0202.html");
}
function go_02_03() {
	document.location.replace("http://www.gstaricad.co.kr/0203.html");
}
function go_02_04() {
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=order");
}

function go_03() { //Ä³µåÇÁ·ÎÁ§Æ®
	document.location.replace("http://www.gstaricad.co.kr/0301.html");
}
function go_03_01() {
	document.location.replace("http://www.gstaricad.co.kr/0301.html");
}
function go_03_02() {
	document.location.replace("http://www.gstaricad.co.kr/0302.html");
}
function go_03_03() {
	document.location.replace("http://www.gstaricad.co.kr/0303.html");
}

function go_04() { //°í°´¼¾ÅÍ
	document.location.replace("http://www.gstaricad.co.kr/0401.html");
}
function go_04_01() {
	document.location.replace("http://www.gstaricad.co.kr/0401.html");
}
function go_04_02() {
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=qna");
}
function go_04_03() {
	document.location.replace("http://www.gstaricad.co.kr/0403.html");
}
function go_04_04() {
	document.location.replace("http://www.gstaricad.co.kr/0404.html");
}

function go_05() { //Ä¿¹Â´ÏÆ¼
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=notice");
}
function go_05_01() {
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=notice");
}
function go_05_02() {
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=site");
}
function go_05_03() {
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=morgue");
}

function go_quick_01() { //Äü¸Þ´º
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=qna");
}
function go_quick_02() {
	document.location.replace("http://www.gstaricad.co.kr/0201.html");
}
function go_quick_03() {
	document.location.replace("http://www.gstaricad.co.kr/0404.html");
}
function go_quick_04() {
	window.open("http://www.staricad.com/");

}
function go_quick_05() {
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=qna");
}
function go_quick_06() {
	document.location.replace("http://www.gstaricad.co.kr/bbs/zboard.php?id=morgue");
}
function go_quick_07() {
	document.location.replace("http://www.gstaricad.co.kr/0104.html");
}
function go_quick_08() {
	document.location.replace("#tops");
}






function under_con() {
	alert("ÁË¼ÛÇÕ´Ï´Ù!! ¼­ºñ½º ÁØºñÁßÀÔ´Ï´Ù."); 
}
//////////////////////////////////////////////////////////// ÁÂ Ãø ¹ö Æ° Á¦ ÇÑ ////////////////////////////////////////////////////////////
/*
function left_btn(){
  if(event.button == 2)
     alert("°¨»çÇÕ´Ï´Ù")
}
 document.onmousedown = left_btn
 */
//////////////////////////////////////////////////////////// ÁÂ Ãø ¹ö Æ° ²ô ÀÄ ////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////// Áñ °Ü Ã£ ±â ½Ã ÀÛ ////////////////////////////////////////////////////////////
function addbookmark() 
{ 
bookmarkurl="#" // Áñ°ÜÃ£±â¿¡ Ãß°¡ÇÒ °÷ ÀÇ URL 
bookmarktitle="#" // »çÀÌÆ®¸í 
if (document.all) 
window.external.AddFavorite(bookmarkurl,bookmarktitle) 
} 
// Áñ°ÜÃ£±â Ãß°¡ÇÒ °÷¿¡ <a href="javascript:addbookmark()">Áñ°ÜÃ£±âÃß°¡ÇÏ±â</a>  ¸¦ ÀÔ·ÂÇÑ´Ù
//////////////////////////////////////////////////////////// Áñ °Ü Ã£ ±â ²ô ÀÄ ////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////// »ó ÅÂ Ç¥ ½Ã ÁÙ ¼¡ ////////////////////////////////////////////////////////////
function hidestatus()
{
window.status=''
return true
}
if (document.layers)
document.captureEvents(Event.mouseover | Event.mouseout)
document.onmouseover=hidestatus
document.onmouseout=hidestatus
//////////////////////////////////////////////////////////// »ó ÅÂ Ç¥ ½Ã ÁÙ ³¡ ////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////// ·Ñ ¿À ¹ö ÀÌ ¹Ì Áö ////////////////////////////////////////////////////////////
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//////////////////////////////////////////////////////////// ·Ñ¿À¹öÀÌ¹ÌÁö ²ôÀÄ ////////////////////////////////////////////////////////////



////////////////////////////////////////////////////////// iframe ÀÚµ¿ ¸®»çÀÌÁî ///////////////////////////////////////////////////////////

function reSize() {
    try {
        var objBody = ifrm.document.body;
        var objFrame = document.all["ifrm"];
        ifrmHeight = objBody.scrollHeight + (objBody.offsetHeight - objBody.clientHeight);
        objFrame.style.height = ifrmHeight;
    }
        catch(e) {}
}

function init_iframe() {
    reSize();
    setTimeout('init_iframe()',1)
}

init_iframe();

//  <iframe src=" ºÒ·¯¿Ã ÁÖ¼Ò " frameborder="0" width="100%" allowTransparency="true" name="ifrm" id="ifrm" marginwidth="0" marginheight="0" scrolling="no"></iframe>

///////////////////////////////////////////////////////// iframe ÀÚµ¿¸®»çÀÌÁî ³¡ //////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////// ¸ÖÆ¼ÇÃ°Ô½ÃÆÇ ½ÃÀÛ ////////////////////////////////////////////////////////////
/*
function DisplayMenu1(index) {
for (i=11; i<=13; i++)
if (index == i) {
thisMenu = eval("menu" + index + ".style");
thisMenu.display = "";
} 
else {
otherMenu = eval("menu" + i + ".style"); 
otherMenu.display = "none"; 
}
}
*/
//////////////////////////////////////////////////////////// ¸ÖÆ¼ÇÃ°Ô½ÃÆÇ ²ôÀÄ ////////////////////////////////////////////////////////////

//////////////////////////////////////////////////////////// ÆË¾÷Ã¢À» ¶ç¾îº¸ÀÚ ////////////////////////////////////////////////////////////
/*
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
*/
//onClick="MM_openBrWindow('popup/event.html','aa','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=300,height=450')"
//////////////////////////////////////////////////////////// ÆË¾÷Ã¢À» ´Ý¾Æº¸ÀÚ ////////////////////////////////////////////////////////////

////////////////////////////////////////////////////// ÇÏ·ç¿¡ ´ÜÇÑ¹ø¸¸ ¶ç¾îº¸´Â ÆË¾÷Ã¢ ////////////////////////////////////////////////////
/*
function notice_getCookie( name ) 
{ 
        var nameOfCookie = name + "="; 
        var x = 0; 
        while ( x <= document.cookie.length ) 
        { 
                var y = (x+nameOfCookie.length); 
                if ( document.cookie.substring( x, y ) == nameOfCookie ) { 
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 ) 
                                endOfCookie = document.cookie.length; 
                        return unescape( document.cookie.substring( y, endOfCookie ) ); 
                } 
                x = document.cookie.indexOf( " ", x ) + 1; 
                if ( x == 0 ) 
                        break; 
        } 
        return ""; 
} 

if ( notice_getCookie( "Notice" ) != "done" ) 
{ 
        window.open('popup/auto_pop1.html','','width=400,height=550'); // ÆË¾÷À©µµ¿ìÀÇ °æ·Î¿Í Å©±â¸¦ ¼³Á¤ ÇÏ¼¼¿ä 
} 
*/
////////////////////////////////////////////////////// ÇÏ·ç¿¡ ´ÜÇÑ¹ø¸¸ ´Ý¾Æº¸´Â ÆË¾÷Ã¢ ////////////////////////////////////////////////////
////////////////////////////////////////////////////// ÀÌ¹ÌÁöÆË¾÷ ////////////////////////////////////////////////////
//ÀÌ¹ÌÁö º¸ÀÌ±â
var win1Open = null

function displayImage(picName, windowName, windowWidth, windowHeight){
return window.open(picName,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + (parseInt(windowWidth)+20) + ",height=" + (parseInt(windowHeight)+15)) 
}

function winClose(){
if(win1Open != null) win1Open.close() 
}

function doNothing(){}

//¿­¸°ÀÌ¹ÌÁö ´Ý±â
function displayImage(picName, windowName, windowWidth, windowHeight){
var winHandle = window.open("" ,windowName,"toolbar=no,scrollbars=no,resizable=no,width=" + windowWidth + ",height=" + windowHeight)
if(winHandle != null){
var htmlString = "<html><head><title>Picture</title></head>" 
htmlString += "<body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0>"
htmlString += "<a href=javascript:window.close()><img src=" + picName + " border=0 alt=´Ý±â></a>"
htmlString += "</body></html>"
winHandle.document.open()
winHandle.document.write(htmlString)
winHandle.document.close()
} 
if(winHandle != null) winHandle.focus()
return winHandle
}
////////////////////////////////////////////////////// ÀÌ¹ÌÁöÆË¾÷ ////////////////////////////////////////////////////

function FlashObject(swf, width, height, flashvars)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '"/>';        
        strFlashTag += '<param name="FlashVars" value="' + flashvars + '"/>';
        strFlashTag += '<param name="quality" value="best"/>';
        //strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
        strFlashTag += '<param name="menu" value="false"/>';
        strFlashTag += '<param name="salign" value="LT"/>';
        strFlashTag += '<param name="scale" value="noscale"/>';
        strFlashTag += '<param name="wmode" value="transparent"/>';
        strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        //strFlashTag += 'bgcolor="' + bgcolor + '" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'scale="noscale" ';
        strFlashTag += 'salign="LT" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'allowScriptAccess="sameDomain" ';
        strFlashTag += '<param name="FlashVars" value="' + flashvars + '"/>';
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
        strFlashTag += '</embed>';
    }

 document.write(strFlashTag);
}

//ÇÃ·ÎÆÃ·¹ÀÌ¾î ½ÃÀÛ
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");
function CheckUIElements(){
      var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

      if ( bNetscape4plus ) {
              yMenuFrom   = document["divMenu"].top;
              yMenuTo     = top.pageYOffset + 300; //³Ý½ºÄÉÀÌÇÁ¿ë ÃÖÃÊ ·¹ÀÌ¾î ÁÂÇ¥ °ª
      }
      else if ( bExplorer4plus ) {
              yMenuFrom   = parseInt (divMenu.style.top, 10);
              yMenuTo     = document.body.scrollTop + 300; //ÀÍ½ºÇÃ·Î·¯¿ë ÃÖÃÊ ·¹ÀÌ¾î ÁÂÇ¥ °ª
      }

      timeoutNextCheck = 500;

      if ( Math.abs (yButtonFrom - (yMenuTo + 300)) < 6 && yButtonTo < yButtonFrom ) {
              setTimeout ("CheckUIElements()", timeoutNextCheck);
              return;
      }

      if ( yButtonFrom != yButtonTo ) {
              yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
              if ( yButtonTo < yButtonFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divLinkButton"].top += yOffset;
              else if ( bExplorer4plus )
                      divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

              timeoutNextCheck = 10;
      }
      if ( yMenuFrom != yMenuTo ) {
              yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
              if ( yMenuTo < yMenuFrom )
                      yOffset = -yOffset;

              if ( bNetscape4plus )
                      document["divMenu"].top += yOffset;
              else if ( bExplorer4plus )
                      divMenu.style.top = parseInt (divMenu.style.top, 10) + yOffset;

              timeoutNextCheck = 10;
      }

      setTimeout ("CheckUIElements()", timeoutNextCheck);
}

function OnLoad()
{
      var y;
      if ( top.frames.length )
      if ( bNetscape4plus ) {
              document["divMenu"].top = top.pageYOffset + 300; //³Ý½ºÄÉÀÌÇÁ¿ë ·Îµù½Ã ½ÃÀÛ ·¹ÀÌ¾î ÁÂÇ¥ °ª
              document["divMenu"].visibility = "visible";
      }
      else if ( bExplorer4plus ) {
              divMenu.style.top = document.body.scrollTop + 300;
      }
      CheckUIElements();
      return true;
}

//ÇÃ·ÎÆÃ·¹ÀÌ¾î ³¡

function divbanneropen()
{
		banner_main.style.display = "block";
}
function divbannerclose()
{
	banner_main.style.display = "none";
}
///ÆË¾÷·¹ÀÌ¾î³¡