<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="G-Calc"
directory_title="Calculator For Gmail"
title_url="http://sn.im/gadgeteer"
description="Calculator for Gmail, find solutions to math problems instantly."
author="Gadgeteer"
author_email="Gadgeteer@switched.com"
author_affiliation="None"
author_location="Laughlin, NV, USA"
screenshot="http://hosting.gmodules.com/ig/gadgets/file/107204226890132081824/zGcalc-screenshot.png"
thumbnail="http://hosting.gmodules.com/ig/gadgets/file/107204226890132081824/zGcalc-thumbnail.png"
height="205"
width="240"
category="tools"
category2="technology"
author_aboutme="Hi friends, welcome to my exciting journey in gadgetry. Now a little about me, I am educated, attractive, witty, spontaneous, adventurous and love iGoogle."
author_photo="http://hosting.gmodules.com/ig/gadgets/file/107204226890132081824/Gadgeteer.jpg"
author_link="http://gadgetsdirectory.blogspot.com/"
author_quote="To live is the rarest thing in the world. Most people exist, that is all. Oscar Wilde" >
<Require feature="settitle"/>
<Require feature="setprefs"/>
<Require feature="views"/>
<Require feature="dynamic-height"/>
</ModulePrefs>
<UserPref name="TexColor" display_name="Text Color:" datatype="string" default_value="black"></UserPref>
<UserPref name="Color" display_name="Button:" default_value="Sky" datatype="enum">
<EnumValue value="Sky" />
<EnumValue value="Cyan" />
<EnumValue value="Black" />
<EnumValue value="Blue" />
<EnumValue value="Green" />
<EnumValue value="Yellow" />
<EnumValue value="BlueGray" />
<EnumValue value="Cafe" />
<EnumValue value="Gray" />
<EnumValue value="Lavender" />
<EnumValue value="Mint" />
<EnumValue value="Rose" />
<EnumValue value="Teal" />
<EnumValue value="TruBlue" />
</UserPref>
<UserPref name="backgrounds" display_name="Background:" default_value="Musical" datatype="enum">
<EnumValue value="Musical" />
<EnumValue value="None" />
<EnumValue value="Beadedwater" />	
<EnumValue value="Dogprints" />
<EnumValue value="Catprints" />
<EnumValue value="Crossstitch" />
<EnumValue value="Lips" />
<EnumValue value="Baby" />
<EnumValue value="Babybottle" />
<EnumValue value="Blacksteel" />
<EnumValue value="Leafpattern" />
<EnumValue value="Sea" />
<EnumValue value="Antiquegreen" />
<EnumValue value="Babytoy" />
<EnumValue value="Bluewave" />
<EnumValue value="Morningglory" />
<EnumValue value="Rain" />
<EnumValue value="Spiral" />
<EnumValue value="Stroller" />
<EnumValue value="Texture" />
</UserPref>
<Content type="html">
<![CDATA[
<center>A calculator for Gmail. Find solutions to math problems instantly.</center>
<center>XML <a target="blank" href="http://hosting.gmodules.com/ig/gadgets/file/117336448282898488901/G-Calc.xml">URL</a> copy the url in to the "add any gadget" form in your Gmail.</center>
<br>
<center><a target="blank" href="http://techie-buzz.com/tips-and-tricks/how-to-add-custom-gadgets-to-gmail.html">How to install gadgets in gmail.</a></center>
]]> 
</Content>
<Content type="html" view="home">
<![CDATA[
<style type="text/css">
a {text-decoration:none;}
.MainMenu {font-family : Arial, Helvetica, sans-serif;font-size : 16px;text-decoration : none;}
.MainMenu2 {font-family : Arial, Helvetica, sans-serif;font-size : 10px;text-decoration : none;}
.MainMenu3 {font-family : Arial, Helvetica, sans-serif;font-size : 13px;text-decoration : none;}
img {border-color: black;}
</style>
<div id="Calculator"></div>
<div id="DesignByYou"></div>
<script language="javascript" type="text/javascript">
var start_num = true;
	var dec_point = false;
	var error_state = false;
	var acc = 0;
	var prev_oper = "";
	var mem = 0;
	var mrc_pressed = false;
	var MAXLEN = 10;
	var ERRMSG = "Error";
	var MEM_IN_USE = "M";
	function number_pressed(form, digit) {
		if (!error_state) {
			if (start_num) {
				form.display.value = digit;
				start_num = false;
			} else {
				if (form.display.value.length < MAXLEN) {
					form.display.value = form.display.value + digit;
				}
			}
			mrc_pressed = false;
		} 
		else form.display.value = ERRMSG;
	}
	
	function operator_pressed(form, new_oper) {
		if (!error_state) {
			switch (prev_oper) {
				case '+' :
					acc = acc + eval(form.display.value);
					form.display.value = format(acc, MAXLEN);
					break;
				case '-':
					acc = acc - eval(form.display.value);
					form.display.value = format(acc, MAXLEN);
					break;
				case '*':
					acc = acc * eval(form.display.value);
					form.display.value = format(acc, MAXLEN);
					break;
				case '/':
					if (form.display.value == "0") {
						error_state = true;
						form.display.value = ERRMSG
					} else {
						acc = acc / eval(form.display.value);
						form.display.value = format(acc, MAXLEN);
					}
					break;
			}				
			prev_oper = new_oper;
			acc = eval(form.display.value);
			start_num = true;
			dec_point = false;
			mrc_pressed = false;
		} 
		else form.display.value = ERRMSG;
	}

	function mem_pressed(form, func) {
		if (!error_state) {
			switch (func) {
				case 'MRC':
					if (mrc_pressed) {
						form.memory.value = "";
						mem = 0;
					} else {
						form.memory.value = MEM_IN_USE;
					}
					form.display.value = format(mem, MAXLEN);
					mrc_pressed = true;
					break;				
				case 'M-':
					form.memory.value = MEM_IN_USE;
					mem -= eval(form.display.value)
					mrc_pressed = false;
					break;
				case 'M+':
					form.memory.value = MEM_IN_USE;
					mem += eval(form.display.value)
					mrc_pressed = false;
					break;
			}
			start_num = true;				
		}
		else form.display.value = ERRMSG;
	}

	function func_pressed(form, func) {
		if (!error_state) {
			switch (func) {
				case 'sqrt':
					acc = Math.sqrt(eval(form.display.value));
					form.display.value = format(acc, MAXLEN);
					break;
				case 'x^2':
					acc = Math.pow(eval(form.display.value), 2);
					form.display.value = format(acc, MAXLEN);
					break;
			}
			prev_oper = "";
			start_num = true;				
			dec_point = false;
			mrc_pressed = false;
		}
		else form.display.value = ERRMSG;
	}

	function sign_pressed(form) {
		if (!error_state) {
			form.display.value = format(eval("-1 * " + form.display.value), MAXLEN);
			mrc_pressed = false;
		}
		else form.display.value = ERRMSG;
	}
			
	function point_pressed(form) {
		if (!error_state) {
			if (!dec_point) {
				if (form.display.value.length < MAXLEN) {
					if (start_num) {
						form.display.value = "0."
						start_num = false;			
					} else {
						form.display.value = form.display.value + '.';
					}
					dec_point = true;
				}
			}
			mrc_pressed = false;
		} 
		else form.display.value = ERRMSG;
	}
	
	function ac_pressed(form) {
		form.display.value = '0';
		start_num = true;
		dec_point = false;
		error_state = false;
		acc = 0;
		mem = 0;
		form.memory.value = "";
		mrc_pressed = false;
		prev_oper = "";
	}
	
	function ce_pressed(form) {
		if (!error_state) {
			form.display.value = acc;
			start_num = true;
			dec_point = false;
			mrc_pressed = false;
		} 
		else form.display.value = ERRMSG;
	}
	
	function percent_pressed(form) {
		if (!error_state) {
			var percent = eval(form.display.value)/ 100;
			switch (prev_oper) {
				case '+':
					acc = acc + (percent * acc);
					form.display.value = format(acc, MAXLEN);
					break;
				case '-':
					acc = acc - (percent * acc);
					form.display.value = format(acc , MAXLEN);
					break;
				case '*':
					acc = acc * percent;
					form.display.value = format(acc, MAXLEN);
					break;
				case '/':
					if (form.display.value == '0') {
						error_state = true;
						form.display.value = ERRMSG
					} else {
						acc = acc / percent;
						form.display.value = format(acc, MAXLEN);
					}
					break;
			}
			prev_oper = '%';
			acc = 0;
			start_num = true;
			dec_point = false;
			mrc_pressed = false;
		} 
		else form.display.value = ERRMSG;
	}
	
	function format(num, precision) {
		var p = eval(precision) - String(num).indexOf('.');
		var x = Math.pow(10,p);
		var result = Math.round(eval(num)*x)/x;
		if (String(result).length <= precision+1) return result
		else return ERRMSG;
	}
function BuildCalculator(){
var prefs = new _IG_Prefs();
var grabpaint = prefs.getString("Color");
var grabtxtpaint = prefs.getString("TexColor");
var grabbac = prefs.getString("backgrounds");
var backimage = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/" + grabbac + ".jpg";
var operatorimage = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/" + grabpaint + ".jpg";
var numberimage = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/gray_gradient.jpg";
	var htmlcode = "<div>";
    htmlcode += "<center><form name=\"Simple\" style=\"padding: 0px; margin: 0;\">";
	htmlcode += "<table border=\"0\" bgcolor=\"gray\" height=\"180\" width=\"100%\" style=\"border-width : 0 0 0 0; border-spacing : 0; border-collapse : collapse; background-image: url('" + backimage + "');background-repeat: repeat;\">";
	htmlcode += "<tr><td align=\"middle\" border=\"0\">";
	htmlcode += "<input type=\"text\" size=\"1\" name=\"memory\" class=\"answer2\" style=\"font-family : Arial, Helvetica, sans-serif; color : navy; background : #aac9ea; font-weight : bold; font-size : 89%; text-align : left; border-width : 0;\" value = \"\"><input type=\"text\" size=\"6\" name=\"display\" class=\"answer\" style=\"font-family : Arial, Helvetica, sans-serif; color : navy; background : #aac9ea; font-weight : bold; font-size : 89%; text-align : right; border-width : 0;\" value=\"0\">";
	htmlcode += "</td></tr><tr><td><center><table border=\"0\" ><tr><td>";
	htmlcode += "<input type=\"button\" value=\"%\" class=\"operator\" style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"percent_pressed(this.form);\" ID=\"Button1\" NAME=\"Button1\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"mrc\" class=\"operator\" style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"mem_pressed(this.form,'MRC');\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"m-\" class=\"operator\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"mem_pressed(this.form,'M-');\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"m+\" class=\"operator\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"mem_pressed(this.form,'M+');\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"/\" class=\"operator\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"operator_pressed(this.form,'/');\"></td>";
	htmlcode += "</tr><tr>";
	htmlcode += "<td><input type=\"button\" value=\"x^2\" class=\"operator\" style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"func_pressed(this.form,'x^2');\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"7\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,7);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"8\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,8);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"9\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,9);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"*\" class=\"operator\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\"  onclick=\"operator_pressed(this.form,'*');\"></td>";
	htmlcode += "</tr><tr>";
	htmlcode += "<td><input type=\"button\" value=\"sqrt\" class=\"operator\" style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"func_pressed(this.form, 'sqrt');\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"4\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,4);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"5\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,5);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"6\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,6);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"-\" class=\"operator\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"operator_pressed(this.form,'-');\"></td>";
	htmlcode += "</tr><tr>";
	htmlcode += "<td><input type=\"button\" value=\"CE\"  class=\"operator\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"ce_pressed(this.form);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"1\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,1);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"2\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,2);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"3\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,3);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"+\" class=\"operator\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"operator_pressed(this.form,'+');\"></td>";
	htmlcode += "</tr><tr>";
	htmlcode += "<td><input type=\"button\" value=\"AC\" class=\"operator\" style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" onclick=\"ac_pressed(this.form);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\".\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"point_pressed(this.form,'.');\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"0\" class=\"number\" style=\"color : #000; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"number_pressed(this.form,0);\"></td>";
	htmlcode += "<td><input type=\"button\" value=\"+/-\" class=\"number\" style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; background-image: url('" + numberimage + "');background-repeat : repeat;\" onclick=\"sign_pressed(this.form,'+/-');\"></td>";
	htmlcode += "<td ><input type=\"button\" value=\"=\"  style=\"color : " + grabtxtpaint + "; width : 25px; font-family : 'trebuchet ms', helvetica, sans-serif; font-size : 64%; font-weight : bold; border-width : 1px; background-image: url('" + operatorimage + "');background-repeat : repeat;\" class=\"operator\" onclick=\"operator_pressed(this.form,'=');\"></td>";
	htmlcode += "</tr><tr>";
	htmlcode += "</tr></table></center>";
	htmlcode += "<center><a href=\"javascript:EditCalc()\"><font color=\"#000000\" class=\"MainMenu2\">Edit</font></a>";
	htmlcode += "</td></tr></table></form></center>";
	htmlcode += "</div>";
   _gel('Calculator').innerHTML = htmlcode;
}
function Done() {
var html = "";
 _gel('DesignByYou').innerHTML = html;
 _IG_AdjustIFrameHeight();
}
function EditCalc() {
var html = "<center>";
 html += "<a href=\"javascript:ButtonsC()\"><font color=\"#000000\" class=\"MainMenu\">Buttons</font></a>";
 html += "&nbsp;&nbsp;&nbsp;";
 html += "<a href=\"javascript:Background()\"><font color=\"#000000\" class=\"MainMenu\">Background</font></a>";
 html += "</center>";
_gel('DesignByYou').innerHTML = html;
_IG_AdjustIFrameHeight();
}
function ButtonsC() {
var Green = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Green.jpg";
var Sky = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Sky.jpg";
var Cyan = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Cyan.jpg";
var Rose = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Rose.jpg";
var Black = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Black.jpg";
var Blue = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Blue.jpg";
var Yellow = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Yellow.jpg";
var BlueGray = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/BlueGray.jpg";
var Cafe = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Cafe.jpg";
var Gray = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Gray";
var Lavender = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Lavender.jpg";
var Mint = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Mint.jpg";
var Teal = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Teal.jpg";
var TruBlue = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/TruBlue.jpg";
var html = "<div><center>";
    html += "<a href=\"javascript:paintSky()\" title=\"Change Button Color\"><IMG src=\"" + Sky + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintCyan()\" title=\"Change Button Color\"><IMG src=\"" + Cyan + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintRose()\" title=\"Change Button Color\"><IMG src=\"" + Rose + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintBlack()\" title=\"Change Button Color\"><IMG src=\"" + Black + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintBlue()\" title=\"Change Button Color\"><IMG src=\"" + Blue + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintYellow()\" title=\"Change ButtonColor\"><IMG src=\"" + Yellow + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintGreen()\" title=\"Change Button Color\"><IMG src=\"" + Green + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintBlueGray()\" title=\"Change Button Color\"><IMG src=\"" + BlueGray + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintCafe()\" title=\"Change Button Color\"><IMG src=\"" + Cafe + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintGray()\" title=\"Change Button Color\"><IMG src=\"" + Gray + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintLavender()\" title=\"Change Button Color\"><IMG src=\"" + Lavender + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintMint()\" title=\"Change Button Color\"><IMG src=\"" + Mint + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintTeal()\" title=\"Change Button Color\"><IMG src=\"" + Teal + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:paintTruBlue()\" title=\"Change Button Color\"><IMG src=\"" + TruBlue + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "</center>";
	 html += "<br><center>";
	html += "<a href=\"javascript:fontDark()\" title=\"Change Font Color\">Dark</a>&nbsp;&nbsp;&nbsp;";
	html += "<a href=\"javascript:fontMed()\" title=\"Change Font Color\">Med</a>&nbsp;&nbsp;&nbsp;";
	html += "<a href=\"javascript:fontLight()\" title=\"Change Font Color\">Light</a>";
	html += "<br></center>";
    html += "<center><a href=\"javascript:Done()\" title=\"Done\"><font color=\"#000000\" class=\"MainMenu1\">Done</font></a></center>";
	html += "</div>";
_gel('DesignByYou').innerHTML = html;
_IG_AdjustIFrameHeight();
}
function Background() {
var Musical = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Musical.jpg";
var None = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/None.jpg";
var Beadedwater = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Beadedwater.jpg";
var Dogprints = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Dogprints.jpg";
var Catprints = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Catprints.jpg";
var Crossstitch = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Crossstitch.jpg";
var Lips = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Lips.jpg";
var Baby = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Baby.jpg";
var Babybottle = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Babybottle.jpg";
var Blacksteel = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Blacksteel.jpg";
var Leafpattern = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Leafpattern.jpg";
var Sea = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Sea.jpg";
var Antiquegreen = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Antiquegreen.jpg";
var Babytoy = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Babytoy.jpg";
var Bluewave = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Bluewave.jpg";
var Morningglory = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Morningglory.jpg";
var Rain = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Rain.jpg";
var Spiral = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Spiral.jpg";
var Stroller = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Stroller.jpg";
var Texture = "http://hosting.gmodules.com/ig/gadgets/file/113307632711159391396/Texture.jpg";
var html = "<div><center>";
    html += "<a href=\"javascript:Musical()\" title=\"Change Background Color\"><IMG src=\"" + Musical + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:None()\" title=\"Change Background Color\"><IMG src=\"" + None + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Beadedwater()\" title=\"Change Background Color\"><IMG src=\"" + Beadedwater + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Dogprints()\" title=\"Change Background Color\"><IMG src=\"" + Dogprints + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Catprints()\" title=\"Change Background Color\"><IMG src=\"" + Catprints + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Crossstitch()\" title=\"Change BackgroundColor\"><IMG src=\"" + Crossstitch + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Lips()\" title=\"Change Background Color\"><IMG src=\"" + Lips + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Baby()\" title=\"Change Background Color\"><IMG src=\"" + Baby + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Babybottle()\" title=\"Change Background Color\"><IMG src=\"" + Babybottle + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Blacksteel()\" title=\"Change Background Color\"><IMG src=\"" + Blacksteel + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Leafpattern()\" title=\"Change Background Color\"><IMG src=\"" + Leafpattern + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Sea()\" title=\"Change Background Color\"><IMG src=\"" + Sea + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Antiquegreen()\" title=\"Change Background Color\"><IMG src=\"" + Antiquegreen + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Babytoy()\" title=\"Change Background Color\"><IMG src=\"" + Babytoy + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Bluewave()\" title=\"Change Background Color\"><IMG src=\"" + Bluewave + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Morningglory()\" title=\"Change Background Color\"><IMG src=\"" + Morningglory + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Rain()\" title=\"Change Background Color\"><IMG src=\"" + Rain + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Spiral()\" title=\"Change Background Color\"><IMG src=\"" + Spiral + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Stroller()\" title=\"Change Background Color\"><IMG src=\"" + Stroller + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "<a href=\"javascript:Texture()\" title=\"Change Background Color\"><IMG src=\"" + Texture + "\" height=\"20\" width=\"20\" border=\"2\"></a>";
	html += "</center>";
    html += "<center><a href=\"javascript:Done()\" title=\"Done\"><font color=\"#000000\" class=\"MainMenu1\">Done</font></a></center>";
	html += "</div>";
_gel('DesignByYou').innerHTML = html;
_IG_AdjustIFrameHeight();
}
function fontDark(){
var prefs = new _IG_Prefs();
prefs.set("TexColor","#000000");
BuildCalculator();
}
function fontMed(){
var prefs = new _IG_Prefs();
prefs.set("TexColor","#4A4A4A");
BuildCalculator();
}
function fontLight(){
var prefs = new _IG_Prefs();
prefs.set("TexColor","#E0E0E0");
BuildCalculator();
}
function paintSky(){
var prefs = new _IG_Prefs();
prefs.set("Color","Sky");
BuildCalculator();
}
function paintCyan(){
var prefs = new _IG_Prefs();
prefs.set("Color","Cyan");
BuildCalculator();
}
function paintRose(){
var prefs = new _IG_Prefs();
prefs.set("Color","Rose");
BuildCalculator();
}
function paintBlack(){
var prefs = new _IG_Prefs();
prefs.set("Color","Black");
BuildCalculator();
}
function paintBlue(){
var prefs = new _IG_Prefs();
prefs.set("Color","Blue");
BuildCalculator();
}
function paintYellow(){
var prefs = new _IG_Prefs();
prefs.set("Color","Yellow");
BuildCalculator();
}
function paintGreen(){
var prefs = new _IG_Prefs();
prefs.set("Color","Green");
BuildCalculator();
}
function paintBlueGray(){
var prefs = new _IG_Prefs();
prefs.set("Color","BlueGray");
BuildCalculator();
}
function paintCafe(){
var prefs = new _IG_Prefs();
prefs.set("Color","Cafe");
BuildCalculator();
}
function paintGray(){
var prefs = new _IG_Prefs();
prefs.set("Color","Gray");
BuildCalculator();
}
function paintLavender(){
var prefs = new _IG_Prefs();
prefs.set("Color","Lavender");
BuildCalculator();
}
function paintMint(){
var prefs = new _IG_Prefs();
prefs.set("Color","Mint");
BuildCalculator();
}
function paintTeal(){
var prefs = new _IG_Prefs();
prefs.set("Color","Teal");
BuildCalculator();
}
function paintTruBlue(){
var prefs = new _IG_Prefs();
prefs.set("Color","TruBlue");
BuildCalculator();
}
function Musical(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Musical");
BuildCalculator();
}
function None(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","None");
BuildCalculator();
}
function Beadedwater(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Beadedwater");
BuildCalculator();
}
function Dogprints(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Dogprints");
BuildCalculator();
}
function Catprints(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Catprints");
BuildCalculator();
}
function Crossstitch(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Crossstitch");
BuildCalculator();
}
function Lips(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Lips");
BuildCalculator();
}
function Baby(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Baby");
BuildCalculator();
}
function Babybottle(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Babybottle");
BuildCalculator();
}
function Blacksteel(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Blacksteel");
BuildCalculator();
}
function Leafpattern(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Leafpattern");
BuildCalculator();
}
function Sea(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Sea");
BuildCalculator();
}
function Antiquegreen(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Antiquegreen");
BuildCalculator();
}
function Babytoy(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Babytoy");
BuildCalculator();
}
function Bluewave(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Bluewave");
BuildCalculator();
}
function Morningglory(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Morningglory");
BuildCalculator();
}
function Rain(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Rain");
BuildCalculator();
}
function Spiral(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Spiral");
BuildCalculator();
}
function Stroller(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Stroller");
BuildCalculator();
}
function Texture(){
var prefs = new _IG_Prefs();
prefs.set("backgrounds","Texture");
BuildCalculator();
}
BuildCalculator();
_IG_AdjustIFrameHeight();
</script>
]]>
</Content>
</Module>

