function doBlink() {
  var blink = document.all.tags("BLINK")
  for (var i=0; i < blink.length; i++)
    blink[i].style.visibility = blink[i].style.visibility == "" ? "hidden" : "" 
}

function startBlink() {
  if (document.all)
    setInterval("doBlink()",1000)
}
window.onload = startBlink;

    function LoadNewsBar() {
      var newsBar;
      var options = {
        largeResultSet : true,
        title : "Kelly Clarkson In The News",
        horizontal : false,
        autoExecuteList : {
          executeList : ["kelly clarkson"]
        }
      }

      newsBar = new GSnewsBar(document.getElementById("newsBar-bar"), options);
    }

function email(name, domain, suffix, text)
{
   var address = name + "\u0040" + domain + "." + suffix;
   var url = "mailto:" + address;

   if( ! text )
   {
      text = address;
   }

   document.write("<a href=\"" + url + "\">" + text + "</a>");
}

function OpenPopup(){
var YourWidth=1000;// change to the desired width in pixels
var YourHeight=740;// change to the desired height in pixels
values =
'height='+YourHeight+',width='+YourWidth+',resizable=yes,location=no,toolbar=no,status=no,menubar=no';
MyNewWindow=window.open('http://kckellyville.com/boards/chat/flashchat.php','',values);//replace MyfileToBeOpened with path to the file to be displayed
}

function hidestatus(){
window.status=''
return true
}

var menu1=new Array()
menu1[0]='<a href="http://kckellyville.com" title="Kelly Clarkson Kellyville">Home Page<\/a>'
menu1[1]='<a href="http://kckellyville.com/index.php?p=aboutkellyville" title="All About KCKellyville">About Us \/ Stats \/ Awards<\/a>'
menu1[2]='<a href="http://kckellyville.com/index.php?p=donate" title="Donate and Help keep KCKellyville online">Donate - Help Kellyille<\/a>'
menu1[3]='<a href="http://kckellyville.com/index.php?p=contests" title="KCKellyville Contests">Kellyville Contests<\/a>'
menu1[4]='<a href="http://myspace.com/kckellyville" target="_blank" title="KCKellyville MySpace">Kellyville Myspace<\/a>'
menu1[5]='<a href="http://facebook.com/profile.php?id=1112871034&hiq=kckellyville" target="_blank" title="KCKellyville facebook">Kellyville Facebook<\/a>'
menu1[6]='<a href="http://twitter.com/kckellyville" target="_blank" title="KCKellyville twitter">Kellyville Twitter<\/a>'
menu1[7]='<a href="http://kckellyville.com/index.php?p=privacy" title="Some Legal Info">Legal Info/Privacy<\/a>'
menu1[8]='<a href="http://kckellyville.com/index.php?p=contacts" Title="Contact Kelly and the Staff">Contact Us<\/a>'

var menu2=new Array()
menu2[0]='<a href="http://kckellyville.com/index.php?p=bio" title="Kelly Clarkson Bio">Biography<\/a>'
menu2[1]='<a href="http://kckellyville.com/index.php?p=fact" title="Kelly Clarkson Facts">Kelly Facts<\/a>'
menu2[2]='<a href="http://kckellyville.com/index.php?p=disc" title="Kellys CDs">Discography\<\/a>'
menu2[3]='<a href="http://kckellyville.com/index.php?p=film" title="Kellys Films">filmography<\/a>'
menu2[4]='<a href="http://kckellyville.com/index.php?p=songs" title="Kellys Songs">Song List<\/a>'
menu2[5]='<a href="http://kckellyville.com/index.php?p=tours" title="Kellys Tours">Kelly Tour Dates (past\/present)<\/a>'
menu2[6]='<a href="http://kckellyville.com/lyrics/" title="Kelly Song Lyrics">Lyrics\/Chords<\/a>'
menu2[7]='<a href="http://kckellyville.com/index.php?p=voting" title="Vote For Kelly">Vote For Kelly!<\/a>'
menu2[8]='<a href="http://kckellyville.com/index.php?p=awards" title="Kellys Awards">Award Wins/Noms<\/a>'
menu2[9]='<a href="http://kckellyville.com/index.php?p=quotes" title="kellys quotes">Kelly Quotes<\/a>'
menu2[10]='<a href="http://kckellyville.com/index.php?p=charts" title="Kelly on the Charts">Weekly Charts<\/a>'
menu2[11]='<a href="http://kckellyville.com/index.php?p=dictionary" title="Kelly Clarkson Dictionary">Kelly Dictionary<\/a>'
menu2[12]='<a href="http://kckellyville.com/index.php?p=charity" title="Support Kellys Charities">Charities<\/a>'

var menu3=new Array()
menu3[0]='<a href="http://kckellyville.com/boards" title="KCKellyville Forums">Message Boards and Arcade<\/a>'
menu3[1]='<a href="#" onClick="javascript:OpenPopup();" title="KCKellyville Chatrooms">Chatrooms<\/a>'
menu3[2]='<a href="http://kckellyville.com/boards/index.php?action=globalAnnouncements;id=1" title="Rules for forums and chat">Board and Chat RULES<\/a>'
menu3[3]='<a href="http://kckellyville.com/boards/index.php?board=2.0" title="KCKellyville Guest Chat Transcripts">Guest Chat Transcripts<\/a>'

var menu4=new Array()
menu4[0]='<a href="http://kckellyville.com/mmedia" title="Multimedia Downloads">Audio\/Video Galleries<\/a>'
menu4[1]='<a href="http://kckellyville.com/gallery" title="Kelly Photo Galleries">Photo Galleries<\/a>'
menu4[2]='<a href="http://kckellyville.com/lyrics/" title="Kelly Song Lyrics">Lyrics/Chords<\/a>'

var menu5=new Array()
menu5[0]='<a href="http://kckellyville.com/index.php?p=storeinfo" title="Kckellyville Store Info">Store Info<\/a>'
menu5[1]='<a href="http://kckellyville.com/index.php?p=storeroses" title="KCKellyville roses">Wooden Roses<br>for charity<\/a>'
menu5[2]='<a href="http://kckellyville.com/index.php?p=store1" title="KCKellyville Items">Clothing\/Novelties<\/a>'
menu5[3]='<a href="http://kckellyville.com/index.php?p=storeamazon" title="Kelly Music">CDs\/DVDs\/sheetmusic\/etc<\/a>'
menu5[4]='<a href="http://kckellyville.com/index.php?p=storekposter" title="Kelly Posters">Kelly Posters<\/a>'
menu5[5]='<a href="http://kckellyville.com/index.php?p=storeebay" title="Kelly Clarkson on Ebay">Kelly EBay Listings<\/a>'
menu5[6]='<a href="http://kckellyville.com/index.php?p=storepics" title="Kelly and other Celebs wearing our items">Celebs with Our items<\/a>'

var menu6=new Array()
menu6[0]='<a href="http://kckellyville.com/kellylinks/links.php" title="Links to Kelly sites">Links To Kelly Sites\/Add Your Link<\/a>'
menu6[1]='<a href="http://kckellyville.com/otherlinks/links.php" title="Links to non-Kelly sites">Links To Other Sites\/Add Your Link<\/a>'
menu6[2]='<a href="http://kckellyville.com/index.php?p=tradelinks" title="Link to KCKellyville">Link To Us<\/a>'

var menu7=new Array()
menu7[0]='<a href="http://kckellyville.com/index.php?p=askdork" title="Ask The Dork">Ask The Dork!<\/a>'
menu7[1]='<a href="http://kckellyville.com/index.php?p=smileysigngen" title="Create Some Smileys">Smiley Sign Maker<\/a>'
menu7[2]='<a href="http://kckellyville.com/index.php?p=studio" title="Online Music Instruments to play">Online Music Studio<\/a>'
menu7[3]='<a href="http://kckellyville.com/index.php?p=kcinvaders" title="Kelly Invaders">Kelly Invaders Game<\/a>'
menu7[4]='<a href="http://kckellyville.com/index.php?p=solitaire" title="Kelly Solitaire">Kelly Solitaire Game<\/a>'
menu7[5]='<a href="http://kckellyville.com/index.php?p=checkers" title="Kelly checkers">Kelly Checkers Game<\/a>'
menu7[6]='<a href="http://kckellyville.com/index.php?p=mahjongg" title="Kelly MahJongg">Kelly MahJongg Game<\/a>'
menu7[7]='<a href="http://kckellyville.com/index.php?p=jig1" title="Kelly Jigsaw 1">AIEW Jigsaw Puzzle<\/a>'
menu7[8]='<a href="http://kckellyville.com/index.php?p=jig2" title="Kelly Jigsaw 2">MLWSWY Jigsaw Puzzle<\/a>'
menu7[9]='<a href="http://kckellyville.com/index.php?p=jig3" title="Kelly Jigsaw 3">IDNHU Jigsaw Puzzle<\/a>'
menu7[10]='<a href="http://kckellyville.com/index.php?p=jig4" title="Kelly Jigsaw 4">AG Jigsaw Puzzle<\/a>'

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 250px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}



function kvlogo(){
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width=350 height=244>\n');
document.write('<PARAM NAME=movie VALUE="http://kckellyville.com/imgs/kvlogo1.swf">\n');
document.write('<PARAM NAME=wmode VALUE=transparent>\n');
document.write('<PARAM NAME=quality VALUE=high>\n');
document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>\n');
document.write('<param name="menu" value="false">\n');
document.write('<param name="controls" value="false">\n');
document.write('<param name="play" value="true">\n');
document.write('<EMBED src="http://kckellyville.com/imgs/kvlogo1.swf" controls="false" menu="false" play="true" quality=high wmode=transparent bgcolor=#FFFFFF width=350 height=244 type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">\n');
document.write('</EMBED>\n');
document.write('</OBJECT>\n');
}

function kvl(){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="350" height="244">\n');
document.write('<param name="movie" value="imgs/kvlogo1.swf">\n');
document.write('<param name="loop" value="true">\n');
document.write('<param name="menu" value="false">\n');
document.write('<param name="quality" value="high">\n');
document.write('<param name="play" value="true">\n');
document.write('<param name="controls" value="false">\n');
document.write('<param name="bgcolor" value="#000000">\n');
document.write('<embed src="/imgs/kvlogo1.swf" width="245" height="250" controls="false" loop="true" menu="false" quality="high" play="true" bgcolor="#000000" align="center" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>\n');
document.write('</object>\n');
}
