function getCookie(name) { var arg = name + '='; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) { var endstr = document.cookie.indexOf(";", j); if (endstr == -1) endstr = document.cookie.length; return unescape(document.cookie.substring(j, endstr)); } i = document.cookie.indexOf(' ', i) + 1; if (i == 0) break; } return null; } function hasApp() { var vals = String(getCookie('LYC')).split("&"); for (var i = 0; i < vals.length; i++) { var keyval = vals[i].split("="); if (keyval[0] == "lc") { var lcvals = keyval[1].split(","); return (lcvals[3] == "1"); } } return (getCookie('lcApp') == "1"); } function launchRadio (clientStationID, playlistType, playlistModifier, djID, otherParams) { var windowName = self.name; if (windowName == '') { windowName = 'LaunchRadioTarget'; self.name = windowName; } var path = "http://launchcast.launch.yahoo.com/radio/player/"; var qs = 'clientID=1&clientStationID=' + clientStationID + '&p=' + playlistType + '&m=' + playlistModifier + '&d=' + djID + '&linkTarget=' + windowName; if (arguments[4] != null) qs += '&' + arguments[4]; if (hasApp()) window.top.location = path + 'createLCP.asp?appmode=0&closeWarning=0&' + qs; else radioWin = window.open(path + 'default.asp?' + qs, 'playerWindow', 'HEIGHT=' + (document.layers ? 314 - 30 : 314) + ',WIDTH=' + (document.layers ? 390 - 10 : 390)); } function rnd(){return Math.random();} function xRnd(){return (rnd()/10);} function yRnd(){return (2 + 2*( .5 - rnd() ));} var letitsnow = true; var flakes = Array("http://www.thechaogarden.com/mango1.png","http://www.thechaogarden.com/mango2.png","http://www.thechaogarden.com/mango3.png","http://www.thechaogarden.com/mango4.png"); var numflakes = 25; var T = 50; var dx, xPos, yPos, am, vx, vy, obj, i; var winwidth = 640; var winheight = 480; function sizeIt() { window.winwidth = window.innerWidth?window.innerWidth:document.body.clientWidth; window.winheight = window.innerHeight?window.innerHeight:document.body.clientHeight; } dx = new Array(); xPos = new Array(); yPos = new Array(); sway = new Array(); var swaymax = 20; vx = new Array(); vy = new Array(); sizeIt(); document.write("