//*****************************************
// Blending Image Slide Show Script- 
// ?Dynamic Drive (www.dynamicdrive.com)
// For full source code, visit http://www.dynamicdrive.com/
//*****************************************

//specify interval between slide (in mili seconds)
var slidespeed=1000

//specify images
var slideimages=new Array("http://bp0.blogger.com/_Beu1p3D25lg/Rm-AjXkKkeI/AAAAAAAABQk/6HlpA2yVkpc/s400/eternity2.jpg","http://bp1.blogger.com/_Beu1p3D25lg/Rm-AjnkKkfI/AAAAAAAABQs/IspAS7jOwMI/s400/hh1110-1201-rosemari213.jpg","http://bp1.blogger.com/_Beu1p3D25lg/Rm-AjnkKkgI/AAAAAAAABQ0/gMTRJt1L_-k/s400/SSKbestofinside.jpg")

//specify corresponding links
var slidelinks=new Array("http://www.dynamicdrive.com","http://javascriptkit.com","http://www.geocities.com")

var newwindow=1 //open links in new window? 1=yes, 0=no

var imageholder=new Array()
var ie=document.all
for (i=0;i<slideimages.length;i++) {
  imageholder[i]=new Image()
  imageholder[i].src=slideimages[i]
}

function gotoshow() {
  if (newwindow)
    window.open(slidelinks[whichlink])
  else
    window.location=slidelinks[whichlink]
}

/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/

var submenu=new Array()

//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
 
submenu[0]='<font size="2" face="Arial"><b></font>'
submenu[1]='<font size="2" face="Arial"><b><a href="/profile.html">Profile</a> | <a href="/achievements.html">Achievements</a>  | <a href="/notice.html">Notice/News</a> </b></font>'
submenu[2]='<font size="2" face="Arial"><b><a href="/albums.html">Albums</a> | <a href="/collaborations.html">Collaborations & Soundtracks</a>  | <a href="/Purchase.html"> Purchase His Albums</a></b></font>'
submenu[3]='<font size="2" face="Arial"><b><a href="/scripts/vdo.php?t=1">Live Performances</a> | <a href="/concerts.html">Concerts</a> | <a href="/scripts/vdo.php?t=3">Drama Roles</a> | <a href="/scripts/vdo.php?t=2">Guest Spots</a> | <a href="/scripts/vdo.php?t=4">Commercial Films (CF)</a> | <a href="/scripts/vdo.php?t=5">Music Videos</a> </b></font>'
submenu[4]='<font size="2" face="Arial"><b> <a href="/fanart.html">Fan Art</a>    |    <a href="/FromSiKyung.html">From Si Kyung</a> | <a href="/fanmessage.html">To Si Kyung (Fan Messages)</a> | <a href="/forum/index.php"> Online Forum</a>  | <a href="/concertreviews.html">Concert Reviews by Fans</a> </b></font>'
submenu[5]='<font size="2" face="Arial"><b><a href="http://jelly-fish.co.kr/" target="_blank">Official Site - Jellyfish</a> | <a href="http://www.sungsikyung.jp" target="_blank">Oasis (Japan)</a> | <a href="http://www.purpleocean.co.kr" target="_blank">Purple Ocean (Korea)</a> </b></font>'
submenu[6]='<font size="2" face="Arial"><b><a href="/abtlilac.html">About Lilac Dreams</a> | <a href="/staff.html">Staff Profiles</a> | <a href="/MemberFAQ.html">Membership FAQ</a> | <a href="mailto://wendy@sungsikyungsg.com">Contact Us</a> </b></font>'
submenu[7]='<font size="2" face="Arial"><b> </font>'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=1000

/////No need to edit beyond here
function getMenuObj() {
  return (document.getElementById
    ? document.getElementById("describe") 
    : document.all 
    ? document.all.describe 
      : document.layers
      ? document.dep1.document.dep2 
      : "")
}

function showit(which) {
  var menuobj = getMenuObj()
  clear_delayhide()
  thecontent=(which==-1)? "" : submenu[which]
  if (document.getElementById||document.all)
    menuobj.innerHTML=thecontent
  else if (document.layers) {
    menuobj.document.write(thecontent)
    menuobj.document.close()
  }
}

function resetit(e) {
  var menuobj = getMenuObj()
  if (document.all && !menuobj.contains(e.toElement))
    delayhide=setTimeout("showit(-1)",delay_hide)
  else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
    delayhide=setTimeout("showit(-1)",delay_hide)
}

function clear_delayhide() {
  if (window.delayhide)
    clearTimeout(delayhide)
}

function contains_ns6(a, b) {
  while (b.parentNode)
  if ((b = b.parentNode) == a)
    return true;
  return false;
}