var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)    // Y2K Fix, Isaac Powell
year = year + 1900; // http://onyx.idbsu.edu/~ipowell
function openWin(url,width,height) {
popupWin = 	window.open(url,'remote','toolbar=no,resizable,menubar=no,scrollbars=yes,status=no,width=' + width + ',height=' + height + ',');
}
function ieFlashFix(){if(document.getElementsByTagName){var objs=document.getElementsByTagName("object");for(var i=0;i<objs.length;i++){objs[i].outerHTML=objs[i].outerHTML;}}}
// Copyright (C) krikkit - krikkit@gmx.net
// --> http://www.krikkit.net/
// http://www.krikkit.net/howtos/copy_text_to_clipboard_with_javascript.html
function copyCodeText(text){if (window.clipboardData!=null){
if(window.clipboardData.setData('text',text)){alert("The following text was copied to your clipboard:\n\n" + text);}else{alert('Permission to copy text to your clipboard was denied.')}}
else if (window.netscape){ 
try {
// you have to sign the code to enable this, or see notes below 
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var clip = Components.classes['@mozilla.org/widget/clipboard;1']
.createInstance(Components.interfaces.nsIClipboard);
if (!clip) return;
var trans = Components.classes['@mozilla.org/widget/transferable;1']
.createInstance(Components.interfaces.nsITransferable);
if (!trans) return;
trans.addDataFlavor('text/unicode');
var str = new Object();
var len = new Object();
var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
var copytext=text;
str.data=copytext;
trans.setTransferData("text/unicode",str,copytext.length*2);
var clipid=Components.interfaces.nsIClipboard;
if (!clip) return false;
clip.setData(trans,null,clipid.kGlobalClipboard);
alert("The following text was copied to your clipboard:\n\n" + text);
} catch (e) {
alert("Permission to copy text to your clipboard was denied.\n\nTo enable this feature in a Mozilla based browser, type 'about:config' in the address bar and enable 'signed.applets.codebase_principal_support'.");
}}}
//HAPPY HOUR SCRIPT
var down;
var min1,sec1;
var chr,cmin,csec;
function Display(hr,min,sec) 
{
var disp;
if(hr<=9) disp="0";
else disp="";
disp+=hr+":";
if(min<=9) disp+="0";
else disp+="";
disp+=min+":";
if(sec<=9) disp+="0"+sec;
else disp+=sec;
return(disp); 
}
function Down(hr,min,sec) 
{
chr=hr;
cmin=min;
csec=sec;
DownRepeat(); 
}
function DownRepeat() 
{
csec--;
if(csec==-1) 
{ 
csec=59; 
cmin--; 
}
if(cmin==-1) 
{ 
cmin=59; 
chr--; 
}
document.getElementById("_CountdownHappyHour").innerHTML=Display(chr, cmin,csec);
if((chr==0) && (cmin==0)&&(csec==0)) 
{
document.location=document.location;
}
else
{
down=setTimeout("DownRepeat()",999); 
}
}
