
// JavaScript Document
var today = new Date;
var miliday = 24 * 60 * 60 * 1000;
var miliweek = 7 * 24 * 60 * 60 * 1000;
var milimonth = 4 * 7 * 24 * 60 * 60 * 1000;
var miliyear = 12 * 4 * 7 * 24 * 60 * 60 * 1000;

var armani = new Date;
armani.setDate(02);
armani.setMonth(08);
armani1 = today - armani ;
var ayearsfrom=Math.floor(armani1/miliyear);
var amonthsfrom=Math.floor((armani1-ayearsfrom*miliyear)/milimonth);
var aweeksfrom=Math.floor((armani1-ayearsfrom*miliyear-amonthsfrom*milimonth)/miliweek);
var adaysfrom=Math.floor((armani1-ayearsfrom*miliyear-amonthsfrom*milimonth-aweeksfrom*miliweek)/miliday);
if (adaysfrom==0 && aweeksfrom==0 && amonthsfrom==0){
aday = 1;
name = "ARMANI";

end = "_1";
}
else{
aday = 0;}


/*
var armani = today;
armani.setDate(22);
armani.setMonth(06);
armani.setFullYear(year);
if(today == armani)
aday = 1;
else 
aday = 0;
document.write(armani,", ",today,", ",aday)
*/


var bella = new Date;
bella.setDate(02);
bella.setMonth(01);
bella1 = today - bella;
var byearsfrom=Math.floor(bella1/miliyear); 
var bmonthsfrom=Math.floor((bella1-byearsfrom*miliyear)/milimonth);
var bweeksfrom=Math.floor((bella1-byearsfrom*miliyear-bmonthsfrom*milimonth)/miliweek);
var bdaysfrom=Math.floor((bella1-byearsfrom*miliyear-bmonthsfrom*milimonth-bweeksfrom*miliweek)/miliday);
if (bdaysfrom==0 && bweeksfrom==0 && bmonthsfrom==0){
bday = 1;
name = "BELLA";

end = "";
}
else{
bday = 0;}



var brennan = new Date;
brennan.setDate(21);
brennan.setMonth(11);
brennan1 = today - brennan;
var cyearsfrom=Math.floor(brennan1/miliyear);
var cmonthsfrom=Math.floor((brennan1-cyearsfrom*miliyear)/milimonth);
var cweeksfrom=Math.floor((brennan1-cyearsfrom*miliyear-cmonthsfrom*milimonth)/miliweek);
var cdaysfrom=Math.floor((brennan1-cyearsfrom*miliyear-cmonthsfrom*milimonth-cweeksfrom*miliweek)/miliday);
if (cdaysfrom==0 && cweeksfrom==0 && cmonthsfrom==0){
cday = 1;
name = "BRENNAN";

end = "";
}
else{
cday = 0;}



var brodie = new Date;
brodie.setDate(20);
brodie.setMonth(10);
brodie1 = today - brodie;
var dyearsfrom=Math.floor(brodie1/miliyear);
var dmonthsfrom=Math.floor((brodie1-dyearsfrom*miliyear)/milimonth);
var dweeksfrom=Math.floor((brodie1-dyearsfrom*miliyear-dmonthsfrom*milimonth)/miliweek);
var ddaysfrom=Math.floor((brodie1-dyearsfrom*miliyear-dmonthsfrom*milimonth-dweeksfrom*miliweek)/miliday);
if (ddaysfrom==0 && dweeksfrom==0 && dmonthsfrom==0){
dday = 1;
name = "BRODIE";

end = "_1";
}
else{
dday = 0;}



var buchanan = new Date;
buchanan.setDate(26);
buchanan.setMonth(07);
buchanan1 = today - buchanan;
var eyearsfrom=Math.floor(buchanan1/miliyear);
var emonthsfrom=Math.floor((buchanan1-eyearsfrom*miliyear)/milimonth);
var eweeksfrom=Math.floor((buchanan1-eyearsfrom*miliyear-emonthsfrom*milimonth)/miliweek);
var edaysfrom=Math.floor((buchanan1-eyearsfrom*miliyear-emonthsfrom*milimonth-eweeksfrom*miliweek)/miliday);
if (edaysfrom==0 && eweeksfrom==0 && emonthsfrom==0){
eday = 1;
name = "BUCHANAN";

end = "_1";
}
else{
eday = 0;}



var cameo = new Date;
cameo.setDate(15);
cameo.setMonth(11);
cameo1 = today - cameo;
var fyearsfrom=Math.floor(cameo1/miliyear);
var fmonthsfrom=Math.floor((cameo1-fyearsfrom*miliyear)/milimonth);
var fweeksfrom=Math.floor((cameo1-fyearsfrom*miliyear-fmonthsfrom*milimonth)/miliweek);
var fdaysfrom=Math.floor((cameo1-fyearsfrom*miliyear-fmonthsfrom*milimonth-fweeksfrom*miliweek)/miliday);
if (fdaysfrom==0 && fweeksfrom==0 && fmonthsfrom==0){
fday = 1;
name = "CAMEO";



end = "";
}
else{
fday = 0;}


var cocoa = new Date;
cocoa.setDate(20);
cameo.setMonth(11);
cocoa1 = today - cocoa;
var zyearsfrom=Math.floor(cameo1/miliyear);
var zmonthsfrom=Math.floor((cocoa1-zyearsfrom*miliyear)/milimonth);
var zweeksfrom=Math.floor((cocoa1-zyearsfrom*miliyear-zmonthsfrom*milimonth)/miliweek);
var zdaysfrom=Math.floor((cocoa1-zyearsfrom*miliyear-zmonthsfrom*milimonth-zweeksfrom*miliweek)/miliday);
if (zdaysfrom==0 && zweeksfrom==0 && zmonthsfrom==0){
zday = 1;
name = "COCOA";

end = "";
}
else{
zday = 0;}



var diamond = new Date;
diamond.setDate(04);
diamond.setMonth(09);
diamond1 = today - diamond;
var gyearsfrom=Math.floor(diamond1/miliyear);
var gmonthsfrom=Math.floor((diamond1-gyearsfrom*miliyear)/milimonth);
var gweeksfrom=Math.floor((diamond1-gyearsfrom*miliyear-gmonthsfrom*milimonth)/miliweek);
var gdaysfrom=Math.floor((diamond1-gyearsfrom*miliyear-gmonthsfrom*milimonth-gweeksfrom*miliweek)/miliday);
if (gdaysfrom==0 && gweeksfrom==0 && gmonthsfrom==0){
gday = 1;
name = "DIAMOND";

end = "";
}
else{
gday = 0;}



var dreamer = new Date;
dreamer.setDate(16);
dreamer.setMonth(07);
dreamer1 = today - dreamer;
var hyearsfrom=Math.floor(dreamer1/miliyear);
var hmonthsfrom=Math.floor((dreamer1-hyearsfrom*miliyear)/milimonth);
var hweeksfrom=Math.floor((dreamer1-hyearsfrom*miliyear-hmonthsfrom*milimonth)/miliweek);
var hdaysfrom=Math.floor((dreamer1-hyearsfrom*miliyear-hmonthsfrom*milimonth-hweeksfrom*miliweek)/miliday);
if (hdaysfrom==0 && hweeksfrom==0 && hmonthsfrom==0){
hday = 1;
name = "DREAMER";

end = "";
}
else{
hday = 0;}



var duchess = new Date;
duchess.setDate(10);
duchess.setMonth(03);
duchess1 = today - duchess;
var iyearsfrom=Math.floor(duchess1/miliyear);
var imonthsfrom=Math.floor((duchess1-iyearsfrom*miliyear)/milimonth);
var iweeksfrom=Math.floor((duchess1-iyearsfrom*miliyear-imonthsfrom*milimonth)/miliweek);
var idaysfrom=Math.floor((duchess1-iyearsfrom*miliyear-imonthsfrom*milimonth-iweeksfrom*miliweek)/miliday);
if (idaysfrom==0 && iweeksfrom==0 && imonthsfrom==0){
iday = 1;
name = "DUCHESS";

end = "";
}
else{
iday = 0;}



var fancy = new Date;
fancy.setDate(04);
fancy.setMonth(03);
fancy1 = today - fancy;
var jyearsfrom=Math.floor(fancy1/miliyear);
var jmonthsfrom=Math.floor((fancy1-jyearsfrom*miliyear)/milimonth);
var jweeksfrom=Math.floor((fancy1-jyearsfrom*miliyear-jmonthsfrom*milimonth)/miliweek);
var jdaysfrom=Math.floor((fancy1-jyearsfrom*miliyear-jmonthsfrom*milimonth-jweeksfrom*miliweek)/miliday);
if (jdaysfrom==0 && jweeksfrom==0 && jmonthsfrom==0){
jday = 1;
name = "FANCY";

end = "";
}
else{
jday = 0;}



var george = new Date;
george.setDate(26);
george.setMonth(07);
george1 = today - george;
var yyearsfrom=Math.floor(george1/miliyear);
var ymonthsfrom=Math.floor((george1-yyearsfrom*miliyear)/milimonth);
var yweeksfrom=Math.floor((george1-yyearsfrom*miliyear-ymonthsfrom*milimonth)/miliweek);
var ydaysfrom=Math.floor((george1-yyearsfrom*miliyear-ymonthsfrom*milimonth-yweeksfrom*miliweek)/miliday);
if (ydaysfrom==0 && yweeksfrom==0 && ymonthsfrom==0){
yday = 1;
name = "GEORGE";

end = "_1";
}
else{
yday = 0;}



var hope = new Date;
hope.setDate(20);
hope.setMonth(02);
hope1 = today - hope;
var kyearsfrom=Math.floor(hope1/miliyear);
var kmonthsfrom=Math.floor((hope1-kyearsfrom*miliyear)/milimonth);
var kweeksfrom=Math.floor((hope1-kyearsfrom*miliyear-kmonthsfrom*milimonth)/miliweek);
var kdaysfrom=Math.floor((hope1-kyearsfrom*miliyear-kmonthsfrom*milimonth-kweeksfrom*miliweek)/miliday);
if (kdaysfrom==0 && kweeksfrom==0 && kmonthsfrom==0){
kday = 1;
name = "HOPE";

end = "";
}
else{
kday = 0;}



var karma = new Date;
karma.setDate(20);
karma.setMonth(02);
karma1 = today - karma;
var xyearsfrom=Math.floor(karma1/miliyear);
var xmonthsfrom=Math.floor((karma1-xyearsfrom*miliyear)/milimonth);
var xweeksfrom=Math.floor((karma1-xyearsfrom*miliyear-xmonthsfrom*milimonth)/miliweek);
var xdaysfrom=Math.floor((karma1-xyearsfrom*miliyear-xmonthsfrom*milimonth-xweeksfrom*miliweek)/miliday);
if (xdaysfrom==0 && xweeksfrom==0 && xmonthsfrom==0){
xday = 1;
name = "KARMA";

end = "";
}
else{
xday = 0;}









var latte = new Date;
latte.setDate(20);
latte.setMonth(11);
latte1 = today - latte;
var myearsfrom=Math.floor(latte1/miliyear);
var mmonthsfrom=Math.floor((latte1-myearsfrom*miliyear)/milimonth);
var mweeksfrom=Math.floor((latte1-myearsfrom*miliyear-mmonthsfrom*milimonth)/miliweek);
var mdaysfrom=Math.floor((latte1-myearsfrom*miliyear-mmonthsfrom*milimonth-mweeksfrom*miliweek)/miliday);
if (mdaysfrom==0 && mweeksfrom==0 && mmonthsfrom==0){
mday = 1;
name = "LATTE";

end = "";
}
else{
mday = 0;}



var luke = new Date;
luke.setDate(28);
luke.setMonth(01);
luke1 = today - luke;
var nyearsfrom=Math.floor(luke1/miliyear);
var nmonthsfrom=Math.floor((luke1-nyearsfrom*miliyear)/milimonth);
var nweeksfrom=Math.floor((luke1-nyearsfrom*miliyear-nmonthsfrom*milimonth)/miliweek);
var ndaysfrom=Math.floor((luke1-nyearsfrom*miliyear-nmonthsfrom*milimonth-nweeksfrom*miliweek)/miliday);
if (ndaysfrom==0 && nweeksfrom==0 && nmonthsfrom==0){
nday = 1;
name = "LUKE";

end = "_1";
}
else{
nday = 0;}



var muffin = new Date;
muffin.setDate(01);
muffin.setMonth(11);
muffin1 = today - muffin;
var oyearsfrom=Math.floor(muffin1/miliyear);
var omonthsfrom=Math.floor((muffin1-oyearsfrom*miliyear)/milimonth);
var oweeksfrom=Math.floor((muffin1-oyearsfrom*miliyear-omonthsfrom*milimonth)/miliweek);
var odaysfrom=Math.floor((muffin1-oyearsfrom*miliyear-omonthsfrom*milimonth-oweeksfrom*miliweek)/miliday);
if (odaysfrom==0 && oweeksfrom==0 && omonthsfrom==0){
oday = 1;
name = "MUFFIN";

end = "";
}
else{
oday = 0;}



var ruby = new Date;
ruby.setDate(04);
ruby.setMonth(09);
ruby1 = today - ruby;
var pyearsfrom=Math.floor(ruby1/miliyear);
var pmonthsfrom=Math.floor((ruby1-pyearsfrom*miliyear)/milimonth);
var pweeksfrom=Math.floor((ruby1-pyearsfrom*miliyear-pmonthsfrom*milimonth)/miliweek);
var pdaysfrom=Math.floor((ruby1-pyearsfrom*miliyear-pmonthsfrom*milimonth-pweeksfrom*miliweek)/miliday);
if (pdaysfrom==0 && pweeksfrom==0 && pmonthsfrom==0){
pday = 1;
name = "RUBY";

end = "";
}
else{
pday = 0;}



var saku = new Date;
saku.setDate(16);
saku.setMonth(08);
saku1 = today - saku;
var qyearsfrom=Math.floor(saku1/miliyear);
var qmonthsfrom=Math.floor((saku1-qyearsfrom*miliyear)/milimonth);
var qweeksfrom=Math.floor((saku1-qyearsfrom*miliyear-qmonthsfrom*milimonth)/miliweek);
var qdaysfrom=Math.floor((saku1-qyearsfrom*miliyear-qmonthsfrom*milimonth-qweeksfrom*miliweek)/miliday);
if (qdaysfrom==0 && qweeksfrom==0 && qmonthsfrom==0){
qday = 1;
name = "SAKU";

end = "_1";
}
else{
qday = 0;}



var versace = new Date;
versace.setDate(25);
versace.setMonth(10);
versace1 = today - versace;
var ryearsfrom=Math.floor(versace1/miliyear);
var rmonthsfrom=Math.floor((versace1-ryearsfrom*miliyear)/milimonth);
var rweeksfrom=Math.floor((versace1-ryearsfrom*miliyear-rmonthsfrom*milimonth)/miliweek);
var rdaysfrom=Math.floor((versace1-ryearsfrom*miliyear-rmonthsfrom*milimonth-rweeksfrom*miliweek)/miliday);
if (rdaysfrom==0 && rweeksfrom==0 && rmonthsfrom==0){
rday = 1;
name = "VERSACE";

end = "_1";
}
else{
rday = 0;}



var winston = new Date;
winston.setDate(13);
winston.setMonth(03);
winston1 = today - winston;
var syearsfrom=Math.floor(winston1/miliyear);
var smonthsfrom=Math.floor((winston1-syearsfrom*miliyear)/milimonth);
var sweeksfrom=Math.floor((winston1-syearsfrom*miliyear-smonthsfrom*milimonth)/miliweek);
var sdaysfrom=Math.floor((winston1-syearsfrom*miliyear-smonthsfrom*milimonth-sweeksfrom*miliweek)/miliday);
if (sdaysfrom==0 && sweeksfrom==0 && smonthsfrom==0){
sday = 1;
name = "WINSTON";
end = "_1";
}
else{
sday = 0;}

con();

function con()
{
	if(aday==1 || bday==1 || cday==1 || dday==1 || eday==1 || fday==1 || gday==1 || hday==1 || iday==1 || jday==1 || kday==1 || mday==1 || nday==1 || oday==1 || pday==1 || qday==1 || rday==1 || sday==1 || zday==1 || xday==1 || yday ==1){
var r=confirm("TODAY IS "+name+"'S BIRTHDAY TO SEE PICTURES \n AND INFORMATION ON "+name+" CLICK OK");
if (r==true)
  {
  window.location = name+"/"+name+end+".html"
  }
else
  {
  alert("Double-click any of the balloons to make them all disapear")
  }}
}















var no = 15; // image number or falling rate
var speed = 0.0005; // the lower the number the faster the image moves
var snow = new Array();


	


snow[0] = "red.gif";
snow[1] = "blue.gif";
snow[2] = "yellow.gif";



var ns4up = (document.layers) ? 1 : 0;  // browser sniffer
var ie4up = (document.all) ? 1 : 0;
var ns6up = (document.getElementById&&!document.all) ? 1 : 0;
var dx, xp, yp;    // coordinate and position variables
var am, stx, sty;  // amplitude and step variables
var i, doc_width = 800, doc_height = 1800;

if (ns4up||ns6up) {
        doc_width = self.innerWidth;
        doc_height = self.innerHeight;
} else if (ie4up) {
        doc_width = document.body.clientWidth;
        doc_height = document.body.clientHeight;
}

dx = new Array();
xp = new Array();
yp = new Array();
am = new Array();
stx = new Array();
sty = new Array();
j = 0;

for (i = 0; i < no; ++ i) {
        dx[i] = 0;                        // set coordinate variables
        xp[i] = Math.random()*(doc_width-50);  // set position variables
        yp[i] = Math.random()*doc_height;
        am[i] = Math.random()*20;         // set amplitude variables
        stx[i] = 0.02 + Math.random()/10; // set step variables
        sty[i] = 0.7 + Math.random();     // set step variables

if(aday==1 || bday==1 || cday==1 || dday==1 || eday==1 || fday==1 || gday==1 || hday==1 || iday==1 || jday==1 || kday==1 || mday==1 || nday==1 || oday==1 || pday==1 || qday==1 || rday==1 || sday==1 || zday==1 || xday==1 || yday ==1){
	   if (ns4up) {                      // set layers
                if (i == 0) {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                } else {
                        document.write("<layer name=\"dot"+ i +"\" left=\"15\" top=\"15\" visibility=\"show\"><img src=\""+ snow[j] + "\" border=\"0\"></layer>");
                }        } else if (ie4up||ns6up) {                if (i == 0) 
{
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:100\"><img onDblClick=\"window.location='iindex.html'\" style=\"cursor:hand;\"  src=\"" + snow[j] + "\"  border=\"0\"><center>HAPPY BIRTHDAY "+name+"</center></div>");
                } else {
                        document.write("<div id=\"dot"+ i +"\" style=\"POSITION: absolute; Z-INDEX: "+ i +"VISIBILITY: visible; TOP: 15px; LEFT: 15px; width:100\"><img onDblClick=\"window.location='iindex.html'\" style=\"cursor:hand;\" src=\"" + snow[j] + "\"  border=\"0\"><center>HAPPY BIRTHDAY "+name+"</center></div>");

                }
        }
        if (j == (snow.length-1)) { j = 0; } else { j += 1; }
}

}

function snowNS() {  // Netscape main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = self.innerWidth;
                        doc_height = self.innerHeight;                }
                dx[i] += stx[i];
                document.layers["dot"+i].top = yp[i]+pageYOffset;
                document.layers["dot"+i].left = xp[i] + 
am[i]*Math.sin(dx[i]);
        }
        setTimeout("snowNS()", speed);
}

function snowIE_NS6() {  // IE main animation function
        for (i = 0; i < no; ++ i) {  // iterate for every dot
                yp[i] -= sty[i];
                if (yp[i] < -50) {
                        xp[i] = Math.random()*(doc_width-am[i]-30);
                        yp[i] = doc_height;
                        stx[i] = 0.02 + Math.random()/10;
                        sty[i] = 0.7 + Math.random();
                        doc_width = ns6up?window.innerWidth-5:document.body.clientWidth;
                        doc_height = ns6up?window.innerHeight-5:document.body.clientHeight;
                }
                dx[i] += stx[i];
                if (ie4up){
                document.all["dot"+i].style.pixelTop = yp[i]+document.body.scrollTop;
                document.all["dot"+i].style.pixelLeft = xp[i] + am[i]*Math.sin(dx[i]);
                }
                else if (ns6up){
                document.getElementById("dot"+i).style.top=yp[i]+pageYOffset;
                document.getElementById("dot"+i).style.left=xp[i] + am[i]*Math.sin(dx[i]);
                }
        }
        setTimeout("snowIE_NS6()", speed);
}



if (ns4up) 
{
        snowNS();
} 
else if (ie4up||ns6up) 
{
        snowIE_NS6();
}






