// JavaScript Document
function breadCrumbs(base,delStr,defp,cStyle,tStyle,dStyle,nl) {
 loc=window.location.toString();
 subs=loc.substr(loc.indexOf(base)+base.length+1).split("/");
 document.write('<a href="'+getLoc(subs.length-1)+defp+'"class="'+cStyle+'">www.the-bingo-guide.com</a>'+'<span class="'+dStyle+'">'+delStr+'</span>');
 a=(loc.indexOf(defp)==-1)?1:2;
 for (i=1;i<(subs.length-a);i++){subs[i]=makeCaps(unescape(subs[i]));
 document.write('<a href="'+getLoc(subs.length-i-2)+defp+'"class="'+cStyle+'">'+subs[i]+'</a>'+'<span class="'+dStyle+'">'+delStr+'</span>');}
 if (nl==1) document.write("<br />");
 document.write('<span class="'+tStyle+'">'+document.title+'</span>');

}
function makeCaps(a) {
  g=a.split(' ');for (l=0;l<g.length;l++) g[l]=g[l].toLowerCase().slice(0,1)+g[l].slice(1);
  return g.join(" ");
}
function getLoc(c) {
  var d="";if (c>0) for (k=0;k<c;k++) d=d+"../"; return d;
}


function addBookmark(title,url) {
                //alert('adding ' + title + ', ' + url);
                if (window.sidebar) {
                        window.sidebar.addPanel(title, url,"");
                } else if( document.all ) {
                        window.external.AddFavorite( url, title);
                } else if( window.opera && window.print ) {
                        return true;
                }
        }




function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=680,height=800,scrollbars=yes');
return false;
}



function popup2(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=760,height=800,scrollbars=yes');
return false;
}

function popup3(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=,height=,scrollbars=yes');
return false;
}


function popup4(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=780,height=500,toolbar=no,menubar=no,scrollbars=no');
return false;
};


function popup5(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=680,height=800,toolbar=no,menubar=no,scrollbars=yes,resizable=1');
return false;
};


         var now = new Date();
         var hours = now.getHours();
         var minutes = now.getMinutes();
         var timeValue = "" + ((hours >12) ? hours -12 :hours)
         timeValue += ((minutes < 10) ? ":0" : ":") + minutes
         timeValue += (hours >= 12) ? " P.M." : " A.M."
         timerRunning = true;
 
 
      mydate = new Date();
      myday = mydate.getDay();
      mymonth = mydate.getMonth();
      myweekday= mydate.getDate();
      weekday= myweekday;
      myyear= mydate.getFullYear();
      year = myyear
 
      if(myday == 0)
              day = " Sunday, "      
 
      else if(myday == 1)
            day = " Monday, "
 
      else if(myday == 2)
              day = " Tuesday, "   
 
      else if(myday == 3)
              day = " Wednesday, "   
 
      else if(myday == 4)
              day = " Thursday, "
 
      else if(myday == 5)
              day = " Friday, "
 
      else if(myday == 6)
              day = " Saturday, "
 
      if(mymonth == 0)
               month = "January "
 
      else if(mymonth ==1)
               month = "February "
 
      else if(mymonth ==2)
              month = "March "
 
      else if(mymonth ==3)
             month = "April "
 
      else if(mymonth ==4)
               month = "May "
 
      else if(mymonth ==5)
               month = "June "
 
      else if(mymonth ==6)

               month = "July "
 
      else if(mymonth ==7)
             month = "August "
 
      else if(mymonth ==8)
            month = "September "
 
      else if(mymonth ==9)
           month = "October "
 
      else if(mymonth ==10)
           month = "November "
 
      else if(mymonth ==11)
           month = "December"
 



function pprint() {
var newWindow = window.open('http://www.the-bingo-guide.com/blank.html', 'prints', 'width=645,toolbar=yes,menubar=yes,scrollbars=yes');
newWindow.focus();
newWindow.document.write("<html><head><title>Print:The Bingo Guide</title><link rel='stylesheet' type='text/css' href='http://www.the-bingo-guide.com/css/print.css' /></head><body><div id='content'>");
newWindow.document.write(document.getElementById("content-main").innerHTML);
newWindow.document.write("</div></body></html>");
newWindow.document.close();
}; 

		
