window.myflower = '';window.mystate = '00';window.mygender = 'V';window.mybee = true;window.mycolor = '72AFED';window.petals = 0;window.autopluck = true;window.autoplucking = 0;window.nextimage = new Image();window.nextimage.src = 'images/AA/AA02.gif';window.finished = 0;function pluckflower(f) {	if (window.myflower=='') {		window.myflower = f;		if (f=='AA') window.petals = 13;		if (f=='AB') window.petals = 20;		if (f=='BA') window.petals = 12;		if (f=='BB') window.petals = 19;		MM_showHideLayers('titleinit', '', 'hide');		MM_showHideLayers('titlewrapper', '', 'show');	}	if (window.autopluck) {		if (f != 'auto' && window.autoplucking) return false;		window.autoplucking = setTimeout("pluckflower('auto')", 1200);	}	if (parseInt(window.mystate) < window.petals) {		window.mystate = parseInt(window.mystate,10) + 1;		window.mystate = '00' + window.mystate;		window.mystate = window.mystate.substring(window.mystate.length-2);		var im = MM_findObj('flowers');		im.src = 'images/' + window.myflower + '/' + window.myflower + window.mystate + (parseInt(window.mystate,10)==window.petals ? '.png' : '.gif');		genderchange(window.mygender);	}	var nextstate = parseInt(window.mystate,10) + 1;	if (nextstate <= window.petals) {		nextstate = '00' + nextstate;		nextstate = nextstate.substring(nextstate.length-2);		window.nextimage.src = 'images/' + window.myflower + '/' + window.myflower + nextstate + (parseInt(nextstate,10)==window.petals ? '.png' : '.gif');	} else {		if (window.autoplucking) clearTimeout(window.autoplucking);		window.autoplucking = 0;		if (!window.finished) {			window.finished = 1;			MM_showHideLayers('pending3', '', 'hide');			MM_showHideLayers('pending4', '', 'hide');			MM_showHideLayers('pending5', '', 'hide');			MM_showHideLayers('downloadoptions', '', 'show');			MM_showHideLayers('downloadwrapper', '', 'show');			MM_showHideLayers('resetwrapper', '', 'show');			MM_findObj('screensize').innerHTML = 'Your screen is <b>' + screen.width + ' x ' + screen.height + '</b>';						// Display quotation depending upon outcome			setquotation();						// Display bee depending upon preference			beechange();					// Show color picker			CLCPHandler = function(_hex) {				window.mycolor = _hex;				MM_findObj('daisywrapper').style.backgroundColor = ("#" + _hex);			}			_CLCPdisplay = "block"; // Values: "none", "block". Default "none"			_CLCPisDraggable = false; // Values: true, false. Default true			_CLCPposition = "relative"; // Values: "absolute", "relative". Default "absolute"			_CLCPinitHex = "72AFED"; // Values: Any valid hex value. Default "ffffff"			_mouseCoords = findPos(MM_findObj('CLCPwrapper'));			if (isIE()) _mouseCoords[0] += 7;			CLCPinitPicker();			CLCPshowPicker();		}	}	return false;}function toggleautopluck() {	var f = MM_findObj('autopluck');	window.autopluck = f.checked;	window.autoplucking = 0;}function beechange() {	var b = MM_findObj('showbee');	window.mybee = b.checked;	if (window.finished) {		if (!window.mybee) {			MM_showHideLayers('bee1', '', 'hide');			MM_showHideLayers('bee2', '', 'hide');		} else if (window.myflower.substring(1) == 'B') {			MM_showHideLayers('bee1', '', 'show');			MM_showHideLayers('bee2', '', 'hide');		} else {			MM_showHideLayers('bee1', '', 'hide');			MM_showHideLayers('bee2', '', 'show');		}	}}function genderchange(g) {	var t = MM_findObj('title');	t.src = 'images/titles/' + g + (parseInt(window.mystate,10) % 2 ? 'A' : 'B') + '.png';	window.mygender = g;	if (window.finished) setquotation();}function downloadimage() {	var url = downloadurl();	location.href = url;	return false;}function downloadurl() {	var s = MM_findObj('selectsize');	var url = 'download/OneLetterWords-Daisies.php?' + window.myflower + window.mygender + (parseInt(window.mystate,10) % 2 ? 'A' : 'B') + s.options[s.selectedIndex].value + (window.mybee ? '1' : '0') + window.mycolor;	MM_findObj('downloadlink').href = url;	return url;}function setquotation() {	var quotation = '';	if (parseInt(window.mystate,10) % 2) {			quotation = '<p class="quotation">&ldquo;&lsquo;Loves me not &mdash; loves me.&rsquo;<br>Ay, that&rsquo;s the real thing!&rdquo;<br>&mdash;Dinah Maria Mulock Craik, &ldquo;The Moon-Daisy&rdquo;</p>';			if (window.mygender=='W') quotation = '<p class="quotation">&ldquo;He <i>does</i> love me . . .<br>and flowers never lie, do they?&rdquo;<br>&mdash;Colin C. Clements, <i>You</i></p>';		if (window.mygender=='X') quotation = '<p class="quotation">&ldquo;<i>[In tones of delighted discovery]</i><br>She loves me! Aye, she loves me!&rdquo;<br>&mdash;Rae Shirley, <i>Merry Regiment of Women</i></p>';		if (window.mygender=='Y') quotation = '<p class="quotation">&ldquo;S/he loves me. I love him/her.&rdquo;<br>&mdash;Jeff Fowler, <i>A Practitioner&rsquo;s Tool for Child Protection and the Assessment of Parents</i></p>';		if (window.mygender=='Z') quotation = '<p class="quotation">&ldquo;He/she loves me!&rdquo;<br>&mdash;Joanna Overing, <i>The Anthopology of Love and Anger</i></p>';			} else {			quotation = '<p class="quotation">&ldquo;Loves me not, it came out. Too bad about that.&rdquo;<br>&mdash;David Sundstrand, <i>Shadow of the Raven</i></p>';			if (window.mygender=='W') quotation = '<p class="quotation">&ldquo;He loves me not? He loves me not?<br>&rsquo;Tis a false tale that you tell,<br>O rose, for I know my lover<br>Loves me, and loves me well.&rdquo;<br>&mdash;Harrison Conrad, &ldquo;A Woman&rsquo;s Faith&rdquo;</p>';		if (window.mygender=='X') quotation = '<p class="quotation">&ldquo;I watch a flower being pulled apart.<br>She loves me; she loves me not.&rdquo;<br>&mdash;Carole Maso, <i>The American Woman in the Chinese Hat</i></p>';		if (window.mygender=='Y') quotation = '<p class="quotation">&ldquo;&lsquo;S/he loves me not&rsquo; with a petalled flower.&rdquo;<br>&mdash;Caitlin Matthews, <i>Singing the Soul Back Home</i></p>';		if (window.mygender=='Z') quotation = '<p class="quotation">&ldquo;The last petal is torn on &lsquo;He-she loves me not.&rsquo;&rdquo;<br>&mdash;Niaz Zaman, <i>Didima&rsquo;s Necklace and Other Stories</i></p>';			}	MM_findObj('lovesme').innerHTML = quotation;}function preloadtitles() {	MM_preloadImages('images/titles/VA.png', 'images/titles/VB.png', 'images/titles/WA.png', 'images/titles/WB.png', 'images/titles/XA.png', 'images/titles/XB.png', 'images/titles/YA.png', 'images/titles/YB.png', 'images/titles/ZA.png', 'images/titles/ZB.png');}function MM_findObj(n, d) { //v4.0	var p,i,x;	if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);	}	if(!(x=d[n])&&d.all) 		x=d.all[n];	for (i=0;!x&&i<d.forms.length;i++)		x=d.forms[i][n];	for(i=0;!x&&d.layers&&i<d.layers.length;i++)		x=MM_findObj(n,d.layers[i].document);	if(!x && document.getElementById)		x=document.getElementById(n); return x;}function MM_showHideLayers() { //v3.0 MODIFIED	var i,p,v,obj,args=MM_showHideLayers.arguments;	for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];	if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }	obj.visibility=v;		if (obj.visibility=='visible') obj.display='block';		if (obj.visibility=='hidden') obj.display='none';	}}function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function findPos(obj) {	var curleft = curtop = 0;	if (obj.offsetParent) {		do {			curleft += obj.offsetLeft;			curtop += obj.offsetTop;		} while (obj = obj.offsetParent);	}	return [curleft,curtop];}function isIE() {	return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);}