

// Adding a function to the Strng() object for generic standard cleaning of our copy'd text
	String.prototype.cleanupText = function() {
		var f = this.replace(/(\s*)\[fn\]/gm, '$1');
		f = f.stripCR();
		f = f.stripLF();
		f = f.replace(/See \*/, '');
		f = f.replace(/\[!\]/, '');
		f = f.replace(/(\&amp; *)+/gi, '\&');
		f = f.replace(/^[ \t]*/gm, '');
		f = f.replace(/[ \t]*$/gm, '');
		f = f.replace(/[ \t]+/g, ' ');
		f = f.replace(/^(\n)*/gm, '');
		f = f.replace(/(\n)*$/gm, '');
		return f.replace(/(\n)+/g, '\n');
	};

// Adding a function to the Strng() object for generic standard cleaning of our copy'd text
	String.prototype.stripHTML = function() {
		var f = this.replace(/(\r)+/g, '\n');
		var emdash = new RegExp(String.fromCharCode(8212), 'g');
		var para = new RegExp(String.fromCharCode(182), 'g');
		f = f.stripCR();
		f = f.stripLF();
		f = f.replace(/<\/td><td[^>]*>/gi, ' ');
		f = f.replace(/(<br[^>]*>\s*)+/gi, '\n');
		f = f.replace(para, '');
//		f = f.replace(String.fromCharCode(182), '');
		f = f.replace(emdash, '--');
//		f = f.replace(String.fromCharCode(8212), '--');
		f = f.replace(/(\&nbsp; *)+/gi, ' ');
		f = f.replace(/(\&amp; *)+/gi, '\&');
		f = f.replace(/<sup[^>]*>/gi, '[');
		f = f.replace(/<\/sup>/gi, ']');
		return f.replace(/<\/?[a-z]+[^>]*>/gi, '');
	};

// Adding a function to the Strng() object for generic standard cleaning of our copy'd text
	String.prototype.stripBracket = function() {
		return this.replace(/(^|[^\[])\[([^\]\d]+)\]([^\]]|$)/g, '$1$2$3');
	};

// Adding a function to the Strng() object for generic standard cleaning of our copy'd text
	String.prototype.stripCR = function() {
		return this.replace(/\r/g, ' ').replace(/ +/g, ' ');
	};
// Adding a function to the Strng() object for generic standard cleaning of our copy'd text
	String.prototype.stripLF = function() {
		return this.replace(/\n/g, ' ').replace(/ +/g, ' ');
	};


// Scripture style entries such as the Bible page, HTA, TSK.
// Required Parameters:	book, chapter, verse, narration, translation
// Optional Parameters: selected (default: false)
	scriptureVerse = function(book, chapter, verse, narration, translation, selected) {
		var getChapterID, getBibleID;

// Spanish?
		if(clipboard.language == 2) {
			this.shortName = (book==undefined?(function(){throw new Error("Missing required member \'book\'!");})():EngToSpanish[book]);
			this.longName = SpanishBookNames[this.shortName];
		} else {
			this.shortName = (book==undefined?(function(){throw new Error("Missing required member \'book\'!");})():book);
			this.longName = BookNames[this.shortName];
		}
		if(this.longName == 'Psalms') this.longName = 'Psalm';
		this.chapter = (chapter==undefined?(function(){throw new Error("Missing required member \'chapter\'!");})():parseInt(chapter, 10));
		this.verse = (verse==undefined?(function(){throw new Error("Missing required member \'verse\'!");})():parseInt(verse, 10));
		this.referenceLong = this.longName+' '+chapter+':'+verse;
		this.referenceShort = this.shortName+' '+chapter+':'+verse;
		this.narration = (narration==undefined?(function(){throw new Error("Missing required member \'narration\'!");})():narration);
		this.quotedNarration = '"'+narration+'"';
		this.selected = (selected==undefined?false:selected);
		this.translation = (translation==undefined?'':translation);
		this.type = 'scripture';
			(function() {
				getChapterID = function(book, chapter) {
									try {
										return (parseInt(BookChapters[book], 10)+chapter);
									} catch(e) { }
								};
				getBibleID = function(chapterID, verse) {
								try {
									return (chapterID)*1000+verse;
								} catch(e) { }
							};
			})();
		this.chapterID = getChapterID(book, this.chapter);
		this.bibleID = getBibleID(this.chapterID, this.verse);
	};

// Generic data that you want to be able to copy - MultiVerse
// Required Parameters:	narration
// Optional Parameters: uid (default: null), selected (default: false)
	dataBlob = function(uid, narration, selected) {
		this.uid = (uid==undefined?null:uid);
		this.narration = (narration==undefined?(function(){throw new Error("Missing required member \'narration\'!");})():narration);
		this.selected = (selected==undefined?false:selected);
		this.type = 'blob';
	};

// Object literal that contains and controls the clipboard contents for copying
// This is capable of handling generic data, but it really intended to help with scripture type data
	clipboard = {

		init: function() {
				this.IE = window.external &&
						(navigator.platform == "Win32" ||
						window.ScriptEngine && ScriptEngine().indexOf("InScript") + 1);
				this.FF = navigator.userAgent.toLowerCase().indexOf("firefox") + 1 ? true: false;
				this.AWK = navigator.userAgent.toLowerCase().indexOf("applewebkit") + 1 ? true: false;
				this.OP = window.opera && window.print;
				this.NS = window.netscape && !this.OP;
				this.heightOne = 0;
				this.maxHeight = 270;
				this.cookieExpiration = 300;
				this.goingUp = false;
				this.shrinkApprove = false;
				this.shrinkTimer = 0;
				this.clip = null;
				this.copyData = [];
				this.language = setDefault('language', 1);

				this.glueZClip();
				if(document.getElementById('copyOptions')) this.setCopyDefaults();
				YAHOO.util.Event.addListener(document.body, "click", function() { clipboard.preShrink(); });
		},

		glueZClip: function() {
				if(this.AWK || this.OP) {
					document.getElementById('CtoC').onmouseover = function() {
							if(clipboard.clip == null) {
								clipboard.clip = new ZeroClipboard.Client();
								clipboard.clip.glue('CtoC');
								clipboard.clip.addEventListener('onMouseDown', function() { clipboard.copySelectedVerses(clipboard); });
							} else {
								clipboard.clip.reposition('CtoC');
							}
						};
				}
		},

		// dType: (blob, scripture)
		// dBlob: (Object literal that contains the neccessary properties for creating the copyData record)
		addRow: function(dType, dBlob) {
			switch(dType) {
				case 'blob':
					var tBlob = new dataBlob(dBlob.uid, dBlob.narration, dBlob.selected);
					this.copyData.push(tBlob);
					break;
				case 'scripture':
					if(dBlob.translation==undefined && translation != null && translation != undefined) dBlob.translation = translation;
					var tBlob = new scriptureVerse(dBlob.book, dBlob.chapter, dBlob.verse, dBlob.narration, dBlob.translation, dBlob.selected);
					this.copyData.push(tBlob);
					break;
			}
		},

		removeRow: function() {
		},

		isSelected: function(dBlob) {
			switch(dBlob.hint) {
				case undefined:
					break;
				case 'bibleID':
					var i = 0;
					for(i=0;i<this.copyData.length;i++)
						if(this.copyData[i].bibleID == dBlob.bibleID) return this.copyData[i].selected;
					break;
				case 'uid':
					var i = 0;
					for(i=0;i<this.copyData.length;i++)
						if(this.copyData[i].uid == dBlob.uid) return this.copyData[i].selected;
					break;
			}
		},

		// Set the 'selected' property of the desired data object based on given hint
		select: function(dBlob) {
			switch(dBlob.hint) {
				case undefined:
					break;
				case 'bibleID':
					var i = 0;
					for(i=0;i<this.copyData.length;i++)
						if(this.copyData[i].bibleID == dBlob.bibleID) break;
					this.copyData[i].selected = dBlob.selected;
					break;
				case 'uid':
					var i = 0;
					for(i=0;i<this.copyData.length;i++)
						if(this.copyData[i].uid == dBlob.uid) break;
					this.copyData[i].selected = dBlob.selected;
					break;
			}
		},

		// cleat out the copyData.
		removeAllRows: function() { this.copyData.length = 0; },

		copySelectedVerses: function(dBlob) {
			var CtoCimg = document.getElementById('CtoC');
			var cbLength = this.copyData.length-1;
			var i = 0;
			var fT = '';
			var refOption = parseInt(GetCookie('radio0'), 10);
			var delimOption = parseInt(GetCookie('radio1'), 10);
			var numOption = parseInt(GetCookie('radio2'), 10);
			var theAbbrev = parseInt(GetCookie('abbrev'), 10);
			var theQuoted = parseInt(GetCookie('quoted'), 10);
			var theBracket = parseInt(GetCookie('sqrbrkt'), 10);
			var dataType = this.copyData[0].type;
			var copyAll = false;
			var toClipBoard = true;

			dBlob = (dBlob==undefined?{copyAll:false,toClipBoard:true}:dBlob);
			copyAll = (dBlob.copyAll==undefined?false:dBlob.copyAll);
			toClipBoard = (dBlob.toClipBoard==undefined?true:dBlob.toClipBoard);
			if(CtoCimg != null) this.shrinkCopyOptions();
			CtoCimg = (CtoCimg==null?{src:''}:CtoCimg);

			switch (dataType) {
				case 'blob':
					var fA = [];
					for(i=0;i<=cbLength;i++) {
						var cpd = this.copyData[i];
						if(cpd.selected || copyAll) {
							CtoCimg.src ='/gifs/copyClipSelDown.gif';
							fA.push(cpd.narration+'\n');
						}
					}
					fT = fA.join('\n')+'\n';
					break;
				case 'scripture':
					var fA = [];
					var fB = [];
					var paraRef = '';
					var j = 0;
					var lastCID = 0;
					var lastBID = 0;

//					(refOption>3?delimOption:++delimOption);
					for(i=0;i<=cbLength;i++) {
						var cpd = this.copyData[i];
						var rt = (theAbbrev?cpd.referenceShort:cpd.referenceLong)+' '+cpd.translation.toUpperCase();
						var rdrChoices = [rt, '['+rt+']', '{'+rt+'}', '('+rt+')'];
						var v = cpd.verse;
						var vChoices = ['', v+' ', '['+v+'] ', '{'+v+'} ', '('+v+') '];
						var nText = (theQuoted && refOption < 4?cpd.quotedNarration:cpd.narration)

						if(theBracket != 0) nText = nText.stripBracket();

						if(cpd.selected || copyAll) {
							CtoCimg.src ='/gifs/copyClipSelDown.gif';
//  Paragraph formatting
							if(refOption > 3 && refOption < 7) {
								nText = vChoices[numOption]+nText;
								if(j>0) {
									if(cpd.chapterID == lastCID) {
										if(cpd.bibleID > (lastBID+1)) {
											paraRef += ', '+cpd.verse
											fB.push(' ... ');
										} else if(cpd.bibleID == (lastBID+1)) {
											paraRef = paraRef.replace(/-\d+$/, '-'+cpd.verse);
											paraRef = paraRef.replace(/([: ]\d+)$/, '$1-'+cpd.verse);
//											if(nText.search(/^[A-Z"]/) >=0) fB.push(' ');		// Are we prepared to double space between sentences?
											fB.push(' ');
										}
										fB.push(nText);
									} else {
										paraRef += ' '+cpd.translation.toUpperCase();
										var paraChoices = [paraRef, '['+paraRef+']', '{'+paraRef+'}', '('+paraRef+')'];
										if(theQuoted)	fB.push('"');
										if(refOption == 4) fB.push(' - ' +paraChoices[delimOption]);
										else fB.unshift(paraChoices[delimOption]+' - ');
										fA.push(fB.join('')+'\n');
										fB.length = 0;
										paraRef = (theAbbrev?cpd.referenceShort:cpd.referenceLong);
										fB.push((theQuoted?'"':'')+nText);
									}
								} else if(j==0) {
									paraRef = (theAbbrev?cpd.referenceShort:cpd.referenceLong);
									fB.push((theQuoted?'"':'')+nText);
								}
							} else {
								switch(refOption) {
									case 1:
										fA.push(nText+' - '+rdrChoices[delimOption]);
										break;
									case 0:
										fA.push(rdrChoices[delimOption]+' - '+nText);
										break;
									case 2:
										fA.push(rdrChoices[delimOption]+'\n'+nText+'\n');
										break;
									case 3:
										fA.push(nText);
										break;
									case 7:
										fA.push(rdrChoices[0]);
										break;
								}
							}
							lastCID = cpd.chapterID;
							lastBID = cpd.bibleID;
							j++;
						}
					}
					if(refOption > 3 && refOption < 7) {
						paraRef += ' '+cpd.translation.toUpperCase();
						var paraChoices = [paraRef, '['+paraRef+']', '{'+paraRef+'}', '('+paraRef+')'];
						if(theQuoted)	fB.push('"');
						if(refOption == 4) fB.push(' - ' +paraChoices[delimOption]);
						else fB.unshift(paraChoices[delimOption]+' - ');
						fA.push(fB.join('')+'\n');
					}
					// Reference only, no version info
					if(refOption == 6) {
						fT = paraRef.split(/ /);
						fT.pop();
						fT = fT.join(' ');
					}
					else { fT = fA.join('\n')+'\n'; }
					break;
			}

			setTimeout(function() {
							var CtoCimg = document.getElementById('CtoC');
							CtoCimg = (CtoCimg==null?{src:''}:CtoCimg);
							CtoCimg.src ='/gifs/copyClipSel.gif'; },
						500);
			if(toClipBoard) {
				this.co(fT);
				return false;
			} else { return fT; }
		},

		copyToClipboardOptions: function () {
				theObj = document.getElementById("copyOptions");
				theObj.style.display='';
				if(this.heightOne >= this.maxHeight) {
					this.shrinkCopyOptions();
				} else {
					this.growCopyOptions();
				}
				return false;
		},

		growCopyOptions: function () {
				theObj = document.getElementById("copyOptions");
				if(this.heightOne >= this.maxHeight || this.goingUp) {
//					this.shrinkApprove = true;
					return;
				}
				else this.heightOne += 7;
				theObj.style.height = this.heightOne;
				theObj.style.display='';
				setTimeout(function(){ clipboard.growCopyOptions(); }, 1);
				this.goingUp = false;
		},

		preShrink: function () {
				if(this.shrinkApprove) this.shrinkCopyOptions();
		},

		shrinkCopyOptions: function () {
				theObj = document.getElementById("copyOptions");
				if(this.heightOne <= 7) {
				  try { theObj.style.display='none'; } catch(e){ ; }
					this.goingUp = false;
					return;
				}
				else this.heightOne -= 7;
				theObj.style.height = this.heightOne;
				this.shrinkTimer = setTimeout(function(){ clipboard.shrinkCopyOptions(); }, 1);
				this.goingUp = true;
		},

		setClipboardOptions: function (theObj, theValue) {
				var currentType = theObj.title;
				var theRadio0 = GetCookie('radio0');
				theRadio0 = (theRadio0 == null?SetCookie('radio0', 0, this.cookieExpiration, '/'):theRadio0);
				theRadio0 = parseInt(theRadio0, 10);
				switch(currentType) {
					case 'Text Order':
						SetCookie('radio0', theValue, this.cookieExpiration, '/');
						break;
					case 'Reference-Delimiters':
						if(theRadio0 != 3) SetCookie('radio1', theValue, this.cookieExpiration, '/');
						break;
					case 'Number-Delimiters':
						SetCookie('radio2', theValue, this.cookieExpiration, '/');
						break;
					case 'abbrev':
						if(theRadio0 != 3)
							if(GetCookie(currentType) == theValue) {
								SetCookie(currentType, theValue^1, this.cookieExpiration, '/');
							} else {
								SetCookie(currentType, theValue, this.cookieExpiration, '/');
							}
						break;
					case 'quoted':
						if(GetCookie(currentType) == theValue) {
							SetCookie(currentType, theValue^1, this.cookieExpiration, '/');
						} else {
							SetCookie(currentType, theValue, this.cookieExpiration, '/');
						}
						break;
					case 'sqrbrkt':
						if(GetCookie(currentType) == theValue) {
							SetCookie(currentType, theValue^1, this.cookieExpiration, '/');
						} else {
							SetCookie(currentType, theValue, this.cookieExpiration, '/');
						}
						break;
					default:
						return;
				}
				this.setCopyDefaults();
				return false;
		},

		setCopyDefaults: function() {
			var theRadio0 = GetCookie('radio0');
			var theRadio1 = GetCookie('radio1');
			var theRadio2 = GetCookie('radio2');
			var theAbbrev = GetCookie('abbrev');
			var theQuoted = GetCookie('quoted');
			var theBracket = GetCookie('sqrbrkt');

			for(var i=0;i<=7;i++) {
				document.images['ref'+i].src='/gifs/formImg/radio01.gif';
				document.images['ref'+i].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/radio01_hov.gif'; };
				document.images['ref'+i].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/radio01.gif'; };
			}

			for(var i=0;i<=4;i++) {
				document.images['num'+i].src='/gifs/formImg/radio01.gif';
				document.images['num'+i].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/radio01_hov.gif'; };
				document.images['num'+i].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/radio01.gif'; };
			}
			for(var i=0;i<=3;i++) {
				document.images['delim'+i].src='/gifs/formImg/radio01.gif';
				document.images['delim'+i].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/radio01_hov.gif'; };
				document.images['delim'+i].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/radio01.gif'; };
			}

			theRadio0 = (theRadio0 == null?SetCookie('radio0', 0, this.cookieExpiration, '/'):theRadio0);
			theRadio0 = parseInt(theRadio0, 10);
			document.images['ref'+theRadio0].src='/gifs/formImg/radio01_x.gif';
			document.images['ref'+theRadio0].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/radio01_xhov.gif'; };
			document.images['ref'+theRadio0].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/radio01_x.gif'; };

			if(theRadio0 != 3) {
				theRadio1 = (theRadio1 == null?SetCookie('radio1', 0, this.cookieExpiration, '/'):theRadio1);
				theRadio1 = parseInt(theRadio1, 10);
				document.images['delim'+theRadio1].src='/gifs/formImg/radio01_x.gif';
				document.images['delim'+theRadio1].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/radio01_xhov.gif'; };
				document.images['delim'+theRadio1].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/radio01_x.gif'; };
			} else {
				for(var i=0;i<=3;i++) {
					document.images['delim'+i].parentNode.onmouseover = null;
					document.images['delim'+i].parentNode.onmouseout  = null;
				}
			}

			if(theRadio0 > 3) {
				theRadio2 = (theRadio2 == null?SetCookie('radio2', 2, this.cookieExpiration, '/'):theRadio2);
				theRadio2 = parseInt(theRadio2, 10);
				document.images['num'+theRadio2].src='/gifs/formImg/radio01_x.gif';
				document.images['num'+theRadio2].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/radio01_xhov.gif'; };
				document.images['num'+theRadio2].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/radio01_x.gif'; };
			} else {
//				SetCookie('radio2', 0, this.cookieExpiration, '/')
				document.images['num0'].src='/gifs/formImg/radio01_x.gif';
				document.images['num0'].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/radio01_xhov.gif'; };
				document.images['num0'].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/radio01_x.gif'; };
				for(var i=1;i<=4;i++) {
					document.images['num'+i].parentNode.onmouseover = null;
					document.images['num'+i].parentNode.onmouseout  = null;
				}
			}

			theAbbrev = (theAbbrev == null?SetCookie('abbrev', 1, this.cookieExpiration, '/'):theAbbrev);
			theAbbrev = parseInt(theAbbrev, 10);
			document.images['abbrev'].src='/gifs/formImg/check01'+(theAbbrev>0?'_x':'')+'.gif';
			document.images['abbrev'].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/check01_'+(theAbbrev>0?'x':'')+'hov.gif'; };
			document.images['abbrev'].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/check01'+(theAbbrev>0?'_x':'')+'.gif'; };

			theQuoted = (theQuoted == null?SetCookie('quoted', 0, this.cookieExpiration, '/'):theQuoted);
			theQuoted = parseInt(theQuoted, 10);
			document.images['quoted'].src='/gifs/formImg/check01'+(theQuoted>0?'_x':'')+'.gif';
			document.images['quoted'].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/check01_'+(theQuoted>0?'x':'')+'hov.gif'; };
			document.images['quoted'].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/check01'+(theQuoted>0?'_x':'')+'.gif'; };

			theBracket = (theBracket == null?SetCookie('sqrbrkt', 0, this.cookieExpiration, '/'):theBracket);
			theBracket = parseInt(theBracket, 10);
			document.images['sqrbrkt'].src='/gifs/formImg/check01'+(theBracket>0?'_x':'')+'.gif';
			document.images['sqrbrkt'].parentNode.onmouseover = function() { this.childNodes[0].src='/gifs/formImg/check01_'+(theBracket>0?'x':'')+'hov.gif'; };
			document.images['sqrbrkt'].parentNode.onmouseout  = function() { this.childNodes[0].src='/gifs/formImg/check01'+(theBracket>0?'_x':'')+'.gif'; };

			var theObj = document.getElementById("copyOptions");
			if(theObj) {
				theObj.onmouseout = function() {
					clipboard.shrinkApprove = true;
					this.shrinkTimer = setTimeout(function() {
						clipboard.preShrink();
						}, 3000);
				};
				theObj.onmouseover = function() {
					clearTimeout(this.shrinkTimer);
					clipboard.shrinkApprove = false;
				};
				YAHOO.util.Event.addListener(theObj, "click", function() { clipboard.shrinkApprove = false; });
			}

			theObj = document.getElementById("copyClip");
			if(theObj) {
				theObj.onmouseout = function() {
					clipboard.shrinkApprove = true;
					this.shrinkTimer = setTimeout(function() {
						clipboard.preShrink();
						}, 3000);
				};
				theObj.onmouseover = function() {
					clearTimeout(this.shrinkTimer);
					clipboard.shrinkApprove = false;
				};
			}
		},

		co: function (f, e, b, o, t) {
				if (window.clipboardData || this.NS) {
					if (this.IE && !this.FF) {
						if (!window.clipboardData.setData("Text", f)) {
							alert("Text was not copied to clipboard!");
							return false;
						}
					} else {
						try {
							netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
						} catch (e) {
							if (confirm("Your current Internet Security settings do not allow data copying to clipboard. Do you want to learn more about enabling data copying to clipboard in your browser?")) {
								location.href = "http://www.blb.org/help/javascript-clipboard.cfm";
							} else {
								alert("Text was not copied to clipboard!");
							}
							return false;
						}
						try {
							e = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
						} catch (e) {
							return false;
						}
						try {
							b = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
						} catch (e) {
							return false;
						}
						b.addDataFlavor("text/unicode");
						o = Components.classes['@mozilla.org/supports-string;1'].createInstance(Components.interfaces.nsISupportsString);
						o.data = f;
						b.setTransferData("text/unicode", o, f.length * 2);
						try {
							t = Components.interfaces.nsIClipboard;
						} catch (e) {
							return false;
						}
						e.setData(b, null, t.kGlobalClipboard);
					}
				} else {
					if (this.OP || this.AWK) {
						this.clip.setText(f);
//						this.oc(f);
					} else {
						alert("Your browser doesn't support copy to clipboard feature.");
					}
					return false;
				}
				return false;
		},

		oc: function (f, e) {
				if (window.clipboardData ||
					navigator.mimeTypes['application/x-shockwave-flash']) {
					e = document.createElement("div");
					document.body.appendChild(e);
					e.innerHTML = "<embed src='http://www.blb.org/scripts/clipboard.swf' FlashVars='clipboard=" + escape(f) + "' width='0' height='0' type='application/x-shockwave-flash'></embed>";
				} else {
					alert("Text was not copied to clipboard!");
				}
				return false;
		}
	};

YAHOO.util.Event.onDOMReady(clipboard.init, clipboard, true);

