// JavaScript Document
//home adv
function ShowAdv(ac) {
   var Show;
   var Show1;
   Show1 = "<img src='../images/menuTopPic.jpg' border='0' width='624' height='186'>"
   //Show1 = "<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0 height=186 width=624 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME='movie' VALUE='../flash/flash_page_top.swf'><PARAM NAME='quality' VALUE='high'><PARAM NAME='menu' VALUE='false'><embed src='../flash/flash_page_top.swf' width='624' height='186' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' menu='false'></embed></OBJECT>";
   if (ac==1){Show=Show1}
   else {Show=""};
   document.write (Show);
}


function MouseTitle() {          
    var scroller_msg='<img src=pic/pic_0004.gif>'            
    var dismissafter=0            
    var initialvisible=0            
    if (document.all)            
    document.write('<marquee id="curscroll" style="position:absolute;width:254px;height:19px;border:0px solid black;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:12px;color:#ffffff;background-color:transparent;background-image:url(pic/pic_0004.gif);visibility:hidden">'+scroller_msg+'</marquee>')            
    function followcursor(){            
    //move cursor function for IE            
    if (initialvisible==0){            
    curscroll.style.visibility="visible"            
    initialvisible=1            
    }            
    curscroll.style.left=document.body.scrollLeft+event.clientX-75           
    curscroll.style.top=document.body.scrollTop+event.clientY+20          
    }            
    function dismissmessage(){            
    curscroll.style.visibility="hidden"            
    }            
    if (document.all){            
    document.onmousemove=followcursor            
    document.ondblclick=dismissmessage            
    if (dismissafter!=0)            
    setTimeout("dismissmessage()",dismissafter*1000)            
    }            
}

function openPicWin(pic) {   
   window.open('showpic.asp?pic='+pic,'showpic','width=650,height=450')
}
