/* Content Viewr - URL,TITLE,TYPE (y=youtube link-o=image),WIDTH,HIGHT */
function ShowItem(urlname,imgname,setting,widt,hite){
  var pagebegin1='\n<html><head><title>The Natural Mystic - Gallery - ' + imgname + '<\/title>\n<meta http-equiv="Content-Type" content="text\/html; charset=iso-8859-1">\n<link rel="stylesheet" href="tnm2k-style.css" type="text\/css"><\/head>\n<body bgcolor="#222222" text="#000000">\n<div class="loadingpage" align="center"><table width="*" border="0" cellspacing="0" cellpadding="0"><tr><td class="ins-red-l"><\/td><td class="ins-red-c"><span class="mini">' + imgname;
  var pagebegin2='<\/ span><\/td><td class="ins-red-r"><\/td><\/tr>\n<tr><td class="insb-tl"><\/td><td class="insb-t"><\/td><td class="insb-tr"><\/td><\/tr>\n<tr><td class="insb-l"><\/td><td class="loading">\n';
  var pageend='\n<\/td><td class="insb-r"><\/td><\/tr>\n<tr><td class="insb-bl"><\/td><td class="insb-b"><\/td><td class="insb-br"><\/td><\/tr>\n<\/table>\n<\/div>\n<\/body>\n<\/html>';
  var media='';
  widt2=widt+45 
  hite2=hite+80
  if (hite2 > screen.height-48)
  {
  var scrollpic='scrollbars=yes';
  widt2=widt2+20;
  }
  else if (widt2 > screen.width-24){
  var scrollpic='scrollbars=yes';
  hite2=hite2+20;
  }
  else
  {
  var scrollpic='scrollbars=no';
  }
  if (setting=='O')
  {
  media = '\n<img src="' + urlname + '" border="0" hspace="5" vspace="5" alt="' + imgname + '">';
  }
  else if  (setting=='Y')
  {
  hite2=hite+70
  media = '<object width="' + widt + '" height="' + hite + '"><param name="movie" value="' + urlname + '"></param><param name="wmode" value="transparent"><\/param></param><embed src="' + urlname + '" type="application\/x-shockwave-flash" wmode="transparent" width="' + widt + '" height="' + hite + '"><\/embed><\/object>';
  }
  popup2=window.open('','gallery','Width=' + widt2 + ',Height=' + hite2 + ',statusbar=no,menubar=no,toolbar=no,resizable=no,' + scrollpic);
  popup2.document.write(pagebegin1 + pagebegin2 + media + pageend);
  popup2.document.close() 
  popup2.focus();
}

/* Random Gallery Images */
function showImage(type){
var whichImage = Math.round(Math.random()*60);
var vertical='<BR><BR>';
if (type=="H") { vertical='&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';}
document.write('<a href="natural-mystic-gallery.htm" target="_self"><img src="gallery-natural-mystic/tn/natural-mystic-marley-' + (whichImage+1) + '.jpg" border=0 hspace=5 title="A selection of images from the Gallery @ The Natural Mystic"></a>'+vertical);
document.write('<a href="natural-mystic-gallery.htm" target="_self"><img src="gallery-natural-mystic/tn/natural-mystic-marley-' + (whichImage+2) + '.jpg" border=0 hspace=5 title="A selection of images from the Gallery @ The Natural Mystic"></a>'+vertical);
document.write('<a href="natural-mystic-gallery.htm" target="_self"><img src="gallery-natural-mystic/tn/natural-mystic-marley-' + (whichImage+3) + '.jpg" border=0 hspace=5 title="A selection of images from the Gallery @ The Natural Mystic"></a>');
}

/* Search bit 
function srchval{
var srchtext=document.getElementById('qtext').value;
var srchsel=document.getElementById('qselect').value;
if (srchtext==''||srchtext==null)
 {
 document.getElementById('q').value='Bob Marley + '+srchsel;
 }
else
 {
 document.getElementById('q').value='Bob Marley + '+srchtext;
 }
}
*/

/* Star images for concert rating */
function rate(n){
var stars="";
var half=n+'';
n=n-1
for (i = 0; i <= n; i++)
 {
 stars=stars+'<img src="media/star.gif" width="15" height="16" align="absmiddle"/>';
 }
if (half.length>1)
 {
 stars=stars+'<img src="media/starh.gif" width="15" height="16" align="absmiddle"/>';
 }
document.write(stars);
}

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
	window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
	var elem = document.createElement('a');
	elem.setAttribute('href',url);
	elem.setAttribute('title',title);
	elem.setAttribute('rel','sidebar');
	elem.click();
} 
else if(document.all)// ie
	window.external.AddFavorite(url, title);
}

/* Random Links */
function showLinks(op){

var images=new Array();
var rand1=Math.round(Math.random()*19);
var rand2=Math.round(Math.random()*19);
var rand3=Math.round(Math.random()*19);
var output=' ';
/* Bob Links */
images[0] = '<a href="http:\/\/en.wikipedia.org\/wiki\/Rasta_%28disambiguation%29" target="_blank"><br><img src="media\/lnk-wiki2.png" width="50" height="50" border="0" alt="Wikipedia - Entry for Rastafari" align="left" vspace="2" hspace="2">wikipedia - Entry for Rastafari<\/a>';
images[1] = '<a href="http:\/\/en.wikipedia.org\/wiki\/Haile_Selassie" target="_blank"><br><img src="media\/lnk-wiki2.png" width="50" height="50" border="0" alt="Wikipedia - Entry for Haile Selassie" align="left" vspace="2" hspace="2">Wikipedia - Entry for Haile Selassie<\/a>';
images[2] = '<a href="http:\/\/en.wikipedia.org\/wiki\/Bob_Marley" target="_blank"><br><img src="media\/lnk-wiki2.png" width="50" height="50" border="0" alt="Wikipedia - Entry for Haile Selassie" align="left" vspace="2" hspace="2">Wikipedia - Entry for Bob Marley<\/a>';
images[3] = '<a href="natural-mystic-rasta-bio1.htm" target="_self">Bob Marley Biography<\/a>';
images[4] = '<a href="http://www.lyricsmania.com/lyrics/bob_marley_lyrics_55/all.html" target="_blank">Bob Marley Lyrics @ www.lyrics mania.com<\/a>';
images[5] = '<a href="http://www.e-chords.com/tabs.asp?search=Bob+Marley&tipo=1" target="_blank">Bob Marley Chords & Lyrics @ www.e-chords.com<\/a>';
images[6] = '<a href="natural-mystic-dload.htm" target="_blank"><br><img src="media\/dld3.jpg" border="0" alt="The Natural Mystic - Downloads" align="left" vspace="2" hspace="2">Bob Marley Interview 1973<\/a>';
/* Video Links */
images[7] = '<a href="#void" onClick="javascript:ShowItem(\'http:\/\/www.youtube.com\/v\/3VRGANguGQE\',\'Bob Marley - Natural Mystic Live\',\'Y\',525,344)"><img src="media\/but-vids1.jpg" alt="The Natural Mystic - Bob Marley - YouTube Video" border="0" align="left" hspace="2">Natural Mystic Live Video<\/a>';
images[8] = '<a href="#void" onClick="javascript:ShowItem(\'http:\/\/www.youtube.com\/v\/hiBAPhWpT5w\',\'Bob Marley - War Live\',\'Y\',525,344)"><img src="media\/but-vids1.jpg" alt="The Natural Mystic - Bob Marley - YouTube Video" border="0" align="left" hspace="2">War Live Video<\/a>';
images[9] = '<a href="#void" onClick="javascript:ShowItem(\'http:\/\/www.youtube.com\/v\/YgeGsr9HZ_4\',\'Bob Marley - Rastaman Vibration Live\',\'Y\',525,344)"><img src="media\/but-vids1.jpg" alt="The Natural Mystic - Bob Marley - YouTube Video" border="0" align="left" hspace="2">Rastaman Vibration Live Video<\/a>';
images[10] = '<a href="#void" onClick="javascript:ShowItem(\'http:\/\/www.youtube.com\/v\/GnApthgw4Mo\',\'Bob Marley - Redmption Song Mystic Live\',\'Y\',525,344)"><img src="media\/but-vids1.jpg" alt="The Natural Mystic - Bob Marley - YouTube Video" border="0" align="left" hspace="2">Natural Mystic Video<\/a>';
/* Music Links */
images[11] = '<a href="http:www.stephenmarleymusic.com" target="_blank">www.stephen marleymusic.com<\/a>';
images[12] = '<a href="http:\/\/WWW.MELODYMAKERS.COM" target="_blank">WWW.melodymakers.com<\/a>';
images[13] = '<a href="http:\/\/www.ziggymarley.com" target="_blank">www.ziggymarley.com<\/a>';
images[14] = '<a href="http:\/\/www.bigupradio.com" target="_blank">www.bigupradio.com<\/a>';
images[15] = '<a href="http:\/\/www.bobmarley.com" target="_blank">www.bobmarley.com<\/a>';
images[16] = '<a href="http:\/\/www.ziggymarley.com" target="_blank">www.ziggymarley.com<\/a>';
images[17] = '<a href="http:\/\/www.damianmarleymusic.com" target="_blank">www.damian marley music.com<\/a>';
images[18] = '<a href="http:\/\/concerts.wolfgangsvault.com\/dt\/bob-marley-and-the-wailers-concert/3493-826.html" target="_blank"><img src="media\/lnk-wolfgangs-vault.jpg" width="65" height="47" border="0" alt="www.wolfgangsvault.com" vspace="5"><br>www.wolfgangs vault.com<\/a>';
images[19] = '<a href="#void" onClick="javascript:ShowItem(\'http:\/\/www.youtube.com\/v\/T8yUSEJgacE\',\'Ziggy Marley and The Chieftans - Redemption Song\',\'Y\',525,344)"><img src="media\/but-vids1.jpg" alt="The Natural Mystic - Bob Marley - YouTube Video" border="0" align="left" hspace="2">Ziggy Marley and The Chieftans - Redemption Song<\/a>';
images[20] = '<a href="#void" onClick="javascript:ShowItem(\'http:\/\/www.youtube.com\/v\/T8yUSEJgacE\',\'Ziggy Marley and The Chieftans - Redemption Song\',\'Y\',525,344)"><img src="media\/but-vids1.jpg" alt="The Natural Mystic - Bob Marley - YouTube Video" border="0" align="left" hspace="2">Ziggy Marley and The Chieftans - Redemption Song<\/a>';

if (rand2==rand1)
 {
 while (rand2==rand1)
  {
  rand2=Math.round(Math.random()*19);
  }
 }

if (rand3==rand2||rand3==rand1)
 {
 while (rand3==rand1||rand3==rand2)
  {
  rand3=Math.round(Math.random()*19);
  }
 }

if (isNaN(rand1)=='false') { rand1==0; }
if (isNaN(rand2)=='false') { rand2==0; }
if (isNaN(rand3)=='false') { rand3==0; }

output='<P>'+images[rand1+1]+'<\/P><BR><P>'+images[rand2+1]+'<\/P><BR><P>'+images[rand3+1]+'<P>';
document.write(output);
}

/* Random Pic of Danny*/
function dannypic(){

var images=new Array();
var rand1=Math.round(Math.random()*5);
var output=' ';
images[0] = '<a href="natural-mystic-ini.htm" target="_self"><img src="gallery-danny-hurson\/boston06-8-tn.jpg" border="0" alt="The Natural Mystic - Danny Hurson" align="left" vspace="5" hspace="5"><\/a>';
images[1] = '<a href="natural-mystic-ini.htm" target="_self"><img src="gallery-danny-hurson\/ziggy06-1-tn.jpg" border="0" alt="The Natural Mystic - Danny Hurson" align="left" vspace="5" hspace="5"><\/a>';
images[2] = '<a href="natural-mystic-ini.htm" target="_self"><img src="gallery-danny-hurson\/bham2005-5-tn.jpg" border="0" alt="The Natural Mystic - Danny Hurson" align="left" vspace="5" hspace="5"><\/a>';
images[3] = '<a href="natural-mystic-ini.htm" target="_self"><img src="gallery-danny-hurson\/boston2005-1-tn.jpg" border="0" alt="The Natural Mystic - Danny Hurson" align="left" vspace="5" hspace="5"><\/a>';
images[4] = '<a href="natural-mystic-ini.htm" target="_self"><img src="gallery-danny-hurson\/danandfamilymanweb-tn.jpg" border="0" alt="The Natural Mystic - Danny Hurson" align="left" vspace="5" hspace="5"><\/a>';
images[5] = '<a href="natural-mystic-ini.htm" target="_self"><img src="gallery-danny-hurson\/jd3-tn.jpg" border="0" alt="The Natural Mystic - Danny Hurson" align="left" vspace="5" hspace="5"><\/a>';
output=images[rand1];
document.write(output);

}
