var day, mth, month, yr, year, next_day, next_mth, next_month, next_yr, next_year;
var draw_date_main, draw_next_main, draw_date_lotto, draw_next_lotto;
var num1, num2, num3, current_jackpot, next_jackpot;
var winner_jack, winner1_name, winner2_name, winner3_name, winner4_name;
var winner1_addr, winner2_addr, winner3_addr, winner4_addr;
var winner1, winner2, winner3, winner4;
var photo_index, photo_index_1, photo_index_newto;

day = "15";
mth = "07";
month = "July";
yr = "10";
year = "2010";
num1 = "<img height='28' width='32' border='0' src='images/lotto/red_4.gif' alt='GAA logo'>";
num2 = "<img height='28' width='32' border='0' src='images/lotto/red_20.gif' alt='GAA logo'>";
num3 = "<img height='28' width='32' border='0' src='images/lotto/red_23.gif' alt='GAA logo'>";
current_jackpot = "500";
next_jackpot = "850";
winner1_jack = "No winner";
winner1_jack_addr = "";
seller1 = "";
winner2_jack = "";
winner2_jack_addr = "";
seller2 = "";
winner1_name = "Mary O'Brien";
winner1_addr = "c/o Tom O'Donoghue";
winner2_name = "Pamela Hickey";
winner2_addr = "c/o Eric Hickey";
winner3_name = "Corina";
winner3_addr = "c/o Forge Bar";
winner4_name = "Mary McDonnell";
winner4_addr = "c/o Bingo";
next_day = "22";
next_mth = "07";
next_month = "July";
next_yr = "10";
next_year = "2010";
draw_date_main = day + " " + month + " " + year;
draw_next_main = next_day + " " + next_month + " " + next_year;
draw_date_lotto = day + "-" + mth + "-" + yr;
draw_next_lotto = next_day + "-" + next_mth + " " + next_yr;

winner1 = winner1_name + ", " + winner1_addr;
winner2 = winner2_name + ", " + winner2_addr;
winner3 = winner3_name + ", " + winner3_addr;
winner4 = winner4_name + ", " + winner4_addr;


photo_index = "<a href='photo_gallery.html'><u>1</u> </a>";
                photo_index+= "<a href='photo_gallery_2.html'><u>2</u> </a>";
                photo_index+= "<a href='photo_gallery_3.html'><u>3</u> </a>";
                photo_index+= "<a href='photo_gallery_4.html'><u>4</u> </a>";
                photo_index+= "<a href='photo_gallery_5.html'><u>5</u> </a>";
                photo_index+= "<a href='photo_gallery_6.html'><u>6</u> </a>";
                photo_index+= "<a href='photo_gallery_7.html'><u>7</u> </a>";
                photo_index+= "<a href='photo_gallery_8.html'><u>8</u> </a>";
                photo_index+= "<a href='photo_gallery_9.html'><u>9</u> </a>";
                photo_index+= "<a href='photo_gallery_10.html'><u>10</u> </a>";
                photo_index+= "<a href='photo_gallery_11.html'><u>11</u> </a>";
                photo_index+= "<a href='photo_gallery_12.html'><u>12</u> </a>";
                photo_index+= "<a href='photo_gallery_13.html'><u>13</u> </a>";
                photo_index+= "<a href='photo_gallery_14.html'><u>14</u> </a>";
                photo_index+= "<a href='photo_gallery_15.html'><u>15</u> </a>";
                photo_index+= "<a href='photo_gallery_16.html'><u>16</u> </a>";
                photo_index+= "<a href='photo_gallery_17.html'><u>17</u> </a>"; 
                photo_index+= "<a href='photo_gallery_18.html'><u>18</u> </a>"; 
                photo_index+= "<a href='photo_gallery_19.html'><u>19</u> </a>";  
                photo_index+= "<a href='photo_gallery_20.html'><u>20</u> </a>";  
                photo_index+= "<a href='photo_gallery_21.html'><u>21</u> </a>";
                photo_index+= "<a href='photo_gallery_22.html'><u>22</u> </a>";
                photo_index+= "<a href='photo_gallery_23.html'><u>23</u> </a>"; 
                photo_index+= "<a href='photo_gallery_24.html'><u>24</u> </a>";
                photo_index+= "<a href='photo_gallery_25.html'><u>25</u> </a>";
                photo_index+= "<a href='photo_gallery_26.html'><u>26</u> </a>";
                photo_index+= "<a href='photo_gallery_27.html'><u>27</u> </a>";
                photo_index+= "<a href='photo_gallery_28.html'><u>28</u> </a>";
                photo_index+= "<a href='photo_gallery.html#index'><u>Index</u></a>";
                
photo_index_1 = "";
                                                                                                                                             
    photo_index_1 += "<li><a href='photo_gallery_28.html#dinner10_2'>Dinner Dance 2010 2 of 2</a></li>";                                      
    photo_index_1 += "<li><a href='photo_gallery_27.html#dinner10_1'>Dinner Dance 2010 1 of 2</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_26.html#10opinionAward'>Opinion Sports Star Awards 2010</a></li>"; 
    photo_index_1 += "<li><a href='photo_gallery_26.html#CMFMSF10'>Cork Minor Footballers v Tipp Munster Semi Final 2010 - Bandon's Mark Sugrue</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_26.html#2010paddysDay'>St. Patricks Day Parade 2010</a></li>";   
    photo_index_1 += "<li><a href='photo_gallery_26.html#MAFC09'>Minor A Football Champions</a></li>";  
    photo_index_1 += "<li><a href='photo_gallery_25.html#JAHWCF09'>West Cork Junior A Hurling Final v Clonakilty 2009</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_24.html#IHCQF09'>Intermediate Hurling Championship 2009 1/4 Final v Kilworth</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_24.html#IHCRD309'>Intermediate Hurling Championship 2009 Rd3 v Barryroe</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_24.html#IHCRD209'>Intermediate Hurling Championship 2009 Rd2 v Delaneys</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_24.html#brogans_pres_09'>St. Brogans Presentations 2009</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_24.html#U21WCFCRd1_09'>U21 West Cork Football Championship 1st Rd v Clonakilty</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_21.html#dinner09'>Annual Dinner Dance 2009</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_20.html#buckleyAwards09'>Buckley Financial Awards 2009</a></li><br><br>";
    photo_index_1 += "<li><a href='photo_gallery_20.html#U12FWCF08'>U12 West Cork B Football Final 2008</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_20.html#U10H&F08'>U10 Hurling & Football in Newcestown Oct 2008</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_19.html#JAFCSF08'>Junior A Football County Semi Final v Eire Og 2008</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_19.html#corkU14'>Cork U14 All-Ireland Champions Hurling panel</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_19.html#IHCCSF08'>Intermediate Hurling County Semi Final 2008 v Valley Rovers</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_19.html#MAHWCF08'>Minor A Hurling West Cork Champions</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_19.html#U12H08'>U12 Hurling Team</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_18.html#JAFWCF08'>Junior A Football West Cork Final v Tadhg McCarthaighs 2008</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_16.html#dinner08-I'>Dinner Dance 2008 - I</a></li>";                  
    photo_index_1 += "<li><a href='photo_gallery_17.html#dinner08-II'>Dinner Dance 2008 - II</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_15.html#teamOfMonth07'>Team of the Month - Nov 2007</a></li>";                  
    photo_index_1 += "<li><a href='photo_gallery_15.html#mass07'>Annual mass 2007 - Monsignor O'Callaghan appreciation gift</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_15.html#JAFLF07'>Junior A Football League Final v T. McCarthaighs 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_14.html#U12FLSF07'>U12 Football West Cork Final v Newcestown 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_14.html#U21HWCF07'>U21 Hurling West Cork Final v Kilbrittain 2007</a></li><br><br>";
    photo_index_1 += "<li><a href='photo_gallery_13.html#IHCF07-III'>Intermediate Hurling County Final v Fr. O'Neills 2007 - III</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_12.html#IHCF07-II'>Intermediate Hurling County Final v Fr. O'Neills 2007 - II</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_11.html#IHCF07-I'>Intermediate Hurling County Final v Fr. O'Neills 2007 - I</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_10.html#IHCSF'>Intermediate Hurling County Semi Final v Kanturk 2007</a></li><br><br>";
    photo_index_1 += "<li><a href='photo_gallery_9.html#JAFCCQF'>Junior A Football County 1/4 Final v Urhan 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_9.html#JAFCWCF'>West Cork Junior A Football Champions 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_8.html#U1206-09-07'>U12 West Cork Hurling Championship 'A' Final v. Newcestown 6th Sept 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_8.html#U16WCHF07'>U16 West Cork Hurling Championship Final v. Kilbrittain 5th Sept 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_8.html#U1005-09-07'>U-10 football match against Clonakilty in Clon 5th Sept 2007</a></li><br><br>";
    photo_index_1 += "<li><a href='photo_gallery_7.html#U14WCFChamps'>U14 West Cork Football Champions 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_7.html#18-08-07U21HC'>U21 West Cork Hurling Championpship Semi Final 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_7.html#U14CoSF'>U14 County Semi Final 2007</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_7.html#U12WCLASF'>U12 West Cork League A Semi Final v. Bantry</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_7.html#25-08-07JFC'>West Cork Junior A Football Championship Semi-Final</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_7.html#SS01-09-07JFC'>West Cork Junior A Football Championship Semi-Final Replay</a></li><br><br>";
    photo_index_1 += "<li><a href='photo_gallery_6.html'>Feile Peil 2007 - Birmingham</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_5.html'>Dinner Dance 2006</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_4.html#minorNonEChamps'>Premier Minor Non Exam Football Champions</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_4.html#U14feileFoot'>U14 Feile Football Team</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_3.html#u14Champs'>U14 County Hurling Champions</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_3.html#U21WCFCF'>U21 West Cork Football C'ship Final</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_3.html#U21WCFCSF'>U21 West Cork Football C'ship Semi Final</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_3.html#minorHurHassig'>Minor Hurling League V. Ballinhassig</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_3.html#hurlBlitz'>St. Brogans Hurling Blitz</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_2.html#interSMurphValleys'>Intermediate Hurling - Sean Murphy Cup v Valley Rovers</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_2.html#U21WCFCRd1'>U21 West Cork Football C'ship Rd 1</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_2.html#underagePres'>Underage Medal Presentations</a></li>";
    photo_index_1 += "<li><a href='photo_gallery_2.html#consPres'>Con Murphy's Presentation</a></li>";

photo_index_newto = "";                                                                   
    photo_index_newto += "<li><a href='photo_gallery_26.html#CMFMSF10'>Cork Minor Footballers v Tipp Munster Semi Final 2010 - Bandon's Mark Sugrue</a></li>";
    photo_index_newto += "<li><a href='photo_gallery_26.html#10opinionAward'>Opinion Sports Star Awards 2010</a></li>";              
    photo_index_newto += "<li><a href='photo_gallery_26.html#2010paddysDay'>St. Patricks Day Parade 2010</a></li>";                                                             
    photo_index_newto += "<li><a href='photo_gallery_26.html#MAFC09'>Minor A Football Champions</a></li>";    
    photo_index_newto += "<li><a href='photo_gallery_25.html#JAHWCF09'>West Cork Junior A Hurling Final v Clonakilty 2009</a></li>"; 

function showPic(title, file, w, h)
{
    var sTitle = title;
    var sFile = file;
    var sWidth = eval(w) + 40;
    var sHeight = eval(h) + 40;

    //open a new window for the statement to target
     var output ="<html><head><title>" + sTitle + "</title>";
        output+="<style type='text/css'>";
        output+="img {border:0}";
        output+="</style></head><body>";
        output+="<img src='images/" + sFile + "' alt='" + sTitle + "'>";
        output+="</body>";
        output+="</html>";
    
    var newLeft = 200;
    var newTop = 125;
    var features = 
        'width='  + sWidth +
        ',height=' + sHeight +
        ',menubar=' + 'yes' +
        ',scrollbars=' + 'yes' +
        ',toobar=' + 'no' +
        ',resizable=' + 'yes' +
        ',left=' + newLeft +
        ',top=' + newTop ;

    var newWin = window.open("","Win",features);
    newWin.document.open();
    newWin.focus();
    newWin.document.write(output);
    newWin.document.close();
                
}

function dateText()
{
    d = new Date();
    dateText = "";
    dayValue = d.getDay();
    if (dayValue == 0)
        dateText += "Sunday";
    else if (dayValue == 1)
        dateText += "Monday";
    else if (dayValue == 2)
        dateText += "Tuesday";
    else if (dayValue == 3)
        dateText += "Wednesday";
    else if (dayValue == 4)
        dateText += "Thursday";
    else if (dayValue == 5)
        dateText += "Friday";
    else if (dayValue == 6)
        dateText += "Saturday";

    monthValue = d.getMonth();
    dateText += " ";
             
    if (monthValue == 0)
        dateText += "January";
    if (monthValue == 1)
             dateText += "February";
    if (monthValue == 2)
        dateText += "March";
    if (monthValue == 3)
        dateText += "April";
    if (monthValue == 4)
        dateText += "May";
    if (monthValue == 5)
        dateText += "June";
    if (monthValue == 6)
        dateText += "July";
    if (monthValue == 7)
        dateText += "August";
    if (monthValue == 8)
        dateText += "September";
    if (monthValue == 9)
        dateText += "October";
    if (monthValue == 10)
        dateText += "November";
    if (monthValue == 11)
        dateText += "December";

    var yy = d.getYear();
    var year = (yy < 1000) ? yy + 1900 : yy;

    dateText += " " + d.getDate() + ", " + year;
    //return dateText;
    document.open();
    document.write(dateText);
}