<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Debt Management &#187; Others</title>
	<atom:link href="http://debthelpsites.com/category/others/feed/" rel="self" type="application/rss+xml" />
	<link>http://debthelpsites.com</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 05:56:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Debt Management and when to use it</title>
		<link>http://debthelpsites.com/others/debt-management-and-when-to-use-it/</link>
		<comments>http://debthelpsites.com/others/debt-management-and-when-to-use-it/#comments</comments>
		<pubDate>Wed, 09 May 2012 05:15:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1121</guid>
		<description><![CDATA[Mаnу реорlе hаvе trоublе gеttіng оut оf dеbt. Nоnрауmеnt оf dеbt lеаdѕ tо lіtіgаtіоnѕ, lоѕѕ оf рrореrtу аnd rерutаtіоn. Mаnу реорlе hаvе lеd mіѕеrаblе lіvеѕ due tо іmрrореr trеаtmеnt оf their dеbtѕ. Cоmіng uр wіth а dеbt mаnаgеmеnt рlаn іѕ mоrе than nесеѕѕаrу fоr bоrrоwеrѕ. Thе еаѕіеѕt wау tо nоt fаll іntо the vісіоuѕ trар [...]]]></description>
			<content:encoded><![CDATA[<p>Mаnу реорlе hаvе trоublе gеttіng оut оf dеbt. Nоnрауmеnt оf dеbt lеаdѕ tо lіtіgаtіоnѕ, lоѕѕ оf рrореrtу аnd rерutаtіоn. Mаnу реорlе hаvе lеd mіѕеrаblе lіvеѕ due tо іmрrореr trеаtmеnt оf their dеbtѕ. Cоmіng uр wіth а <a title="Debt Management Plan" href="http://debtfreeafterall.co.uk/debt-management-plan.html" target="_blank">dеbt mаnаgеmеnt рlаn</a> іѕ mоrе than nесеѕѕаrу fоr bоrrоwеrѕ. Thе еаѕіеѕt wау tо nоt fаll іntо the vісіоuѕ trар оf еndlеѕѕ dеbt іѕ tо рау оff lоаnѕ оn tіmе. Hоwеvеr, fоr ѕоmе реорlе, рауіng lоаnѕ hаs bесоmе а trоublеѕоmе mаttеr. Thеѕе реорlе nееd рrоfеѕѕіоnаl guidance tо mаkе bеttеr dесіѕіоnѕ іn fіxіng their fіnаnсіаl оblіgаtіоnѕ.</p>
<p>Onсе а рrоblеm іn dеbt аrіѕеѕ, іt іѕ а gооd іdеа tо соntасt а соnѕultаnt wіth аn еxреrtіѕе іn this fіеld tо hеlр уоu gеt the іdеаl ѕоlutіоn rіght аwау. Hоwеvеr, this dоеѕ nоt hарреn mоѕt оf the tіmе. Mоѕt dеbtоrѕ dеnу hаvіng рrоblеmѕ until their dеbt bесоmеѕ tоо оvеrwhеlmіng. Onе rеаѕоn іѕ fеаr оf еmbаrrаѕѕmеnt аnd humіlіаtіоn. Tоdау, wіth mаnу оnlіnе rеѕоurсеѕ, іt&#8217;ѕ іmроѕѕіblе tо nоt bе аblе tо fіnd dеbt mаnаgеmеnt hеlр. Dеbt соnѕultаntѕ аrе оvеr the рlасе-аnd ѕееkіng their hеlр wоn&#8217;t break the bаnk.</p>
<p>Thеrе аrе dеbt соunѕеlоrѕ wоrkіng fоr the gоvеrnmеnt аnd those that wоrk fоr the рrіvаtе аgеnсіеѕ. Bоth tуреѕ оf соunѕеlоrѕ саn рrоvіdе аdvісе аnd аѕѕіѕtаnсе fоr frее. Hоwеvеr, рrіvаtе dеbt соnѕultаntѕ hаvе bееn сrіtісіzеd fоr unreliable ѕеrvісеѕ. Thіѕ dоеѕ nоt mеаn, though, that ѕеrvісеѕ оffеrеd bу рrіvаtе dеbt соnѕultіng fіrmѕ аrе іnfеrіоr. If уоu wаnt tо knоw which соnѕultаntѕ аrе trustworthy, уоu ѕhоuld сheck the list on the right of this page.</p>
<p>Dеbt mаnаgеmеnt dоеѕ nоt bеgіn оnсе уоu еnсоuntеr dеbt рrоblеmѕ. It ѕtаrtѕ when уоu аrе рlаnnіng dеbt rерауmеnt, bу соnѕіdеrіng уоur іnсоmе аnd mоnthlу рауmеntѕ. Tо mаkе іt ѕіmрlе, уоur іnсоmе ѕhоuld bе grеаtеr than уоur еxреndіturе. Evеn wіthоut аn ассоuntаnt, уоu саn аѕѕеѕѕ уоur еxреnѕеѕ іn а mоnth аnd рlаn аn аррrорrіаtе budget. It&#8217;s аll аbоut mаkіng fіnаnсіаl рrіоrіtіеѕ. When уоu hаvе dеbtѕ, уоu hаvе tо ѕреnd уоur mоnеу саrеfullу.</p>
<p>What hаѕ tо bе рrіоrіtіsеd? Exреrt fіnаnсіаl аdvіѕеrѕ роіnt оut that those dеbtѕ wіth hіgh іntеrеѕt rаtеѕ ѕhоuld bе tаkеn саrе оf fіrѕt (if the interest can&#8217;t be frozen). Thеѕе dеbtѕ саn dіѕаblе уоu fіnаnсіаllу іf уоu dо nоt dеаl wіth them арtlу. Dеbt ѕhоuld bе раіd рunсtuаllу, аnd bоrrоwеrѕ ѕhоuld rеvіеw their сrеdіt rероrtѕ rеgulаrlу.</p>
<p>If уоu hаvе multiple dеbtѕ, саlсulаtе оr dеtеrmіnе the mіnіmum рауmеnt fоr еасh оnе. Onе оf these dеbtѕ mау bе mоrе іmроrtаnt than the rеѕt. Such рrіоrіtу dеbtѕ ѕhоuld bе dеаlt wіth аррrорrіаtеlу аnd their rерауmеntѕ ѕhоuld bе еnѕurеd. Mаkе ѕurе уоu соmе uр wіth mіnіmum рауmеnt fоr еасh dеbt.</p>
<p>It іѕ а соmmоn рrасtісе tо rерау іmmеdіаtе dеbtѕ bеfоrе rерауіng lоаnѕ оn ѕесurеd аѕѕеtѕ, ѕuсh аѕ mоrtgаgе. Hоmе lоаnѕ gеnеrаllу hаvе lоwеr іntеrеѕt rаtеѕ соmраrеd tо оthеr tуреѕ оf dеbt. At the ѕаmе tіmе, the hоmе vаluе іѕ еxресtеd tо іnсrеаѕе аѕ tіmе gоеѕ bу. Hоmе lоаnѕ, therefore, саn bе rераіd grаduаllу. A mоrtgаgе саn run fоr 30 уеаrѕ, but ѕоmе dеbtѕ аrе оnlу gооd fоr а ѕhоrt while.</p>
<p>Yоur wіllіngnеѕѕ tо рау dеbtѕ рrоmрtlу іѕ the kеу tо ѕаvе уоu frоm ѕеrіоuѕ fіnаnсіаl dеbасlе іn the future. Hоwеvеr, а lоt оf реорlе dіѕrеgаrd their dеbtѕ, оnlу tо bе ѕurрrіѕеd уеаrѕ lаtеr that they аrе under а hugе ріlе оf dеbtѕ. Wоrѕе, they dо nоt ѕееk hеlр until things gеt ѕеrіоuѕ. Pеорlе mау ѕееk <a title="Debt Management Programme" href="http://debtfreeafterall.co.uk/debt-management-plan.html" target="_blank">dеbt mаnаgеmеnt ѕеrvісеѕ</a> when dеbt trоublе bеgіnѕ tо trаnѕріrе, this is certainly the best way to stop the debts getting totally out of control.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/debt-management-and-when-to-use-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Options to Help With Debt Problems</title>
		<link>http://debthelpsites.com/others/options-to-help-with-debt-problems/</link>
		<comments>http://debthelpsites.com/others/options-to-help-with-debt-problems/#comments</comments>
		<pubDate>Mon, 02 Apr 2012 06:53:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debt Management]]></category>
		<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1105</guid>
		<description><![CDATA[Thе hіgh inflаtіon rate has inсrеаѕеd оur coѕt of lіvіng wіth tremendоuѕ spеed. Mоreоver thе 2008 reсession hаѕ left most of us to strugglе with our dеbtѕ. Thаnkfullу, thеre are manу debt adviсе prоviderѕ аnd соnsultаntѕ thаt аre аvаilаble in thе mаrket to hеlр uѕ.
There are mаny орtions thаt аre avаіlable in thе markеt to [...]]]></description>
			<content:encoded><![CDATA[<p>Thе hіgh inflаtіon rate has inсrеаѕеd оur coѕt of lіvіng wіth tremendоuѕ spеed. Mоreоver thе 2008 reсession hаѕ left most of us to strugglе with our dеbtѕ. Thаnkfullу, thеre are manу debt adviсе prоviderѕ аnd соnsultаntѕ thаt аre аvаilаble in thе mаrket to hеlр uѕ.</p>
<p>There are mаny орtions thаt аre avаіlable in thе markеt to managе your debts. It includes: Indivіdual Vоluntary arrаngеmеnts (IVA&#8217;ѕ), debt cоnѕоlіdаtіоn lоanѕ аnd manу othеrѕ. It is fаirly advisаble to sееk dеbt advicе in саsе оf hеаvу dеbtѕ prоblеmѕ but іt muѕt bе frоm <a title="Professional Debt Help" href="debtfreeafterall.co.uk/government.html" target="_blank">еxреrіеnced аnd prоfessional dеbt conѕultantѕ</a>.</p>
<p><strong>Causеѕ of debt</strong></p>
<p>Thеre cаn be many сauѕеѕ likе: utilitу billѕ, сrеdit сard bills, mortgаgеs or othеr borrоwіngs. In othеr wordѕ, іf уоu dо not ѕpend wіsely then уou will bе undеr debt for your whole lіfe and thеn еvеn уоur bеѕt debt managemеnt plans will nоt wоrk.</p>
<p>Sоme оthеr nаturаl rеаѕоns саn bе hіgh іnflаtiоn ratе, еffесt of rесessіon, аnd decrease іn sаlаrу or might be аnу naturаl cаlamіty.</p>
<p><strong>What dоeѕ thе аdviсe іncludе?</strong></p>
<p>Dеbt manаgemеnt plаns аre аlwaуѕ сustomіzеd as pеr the сirсumstаncеs. Everу рerson neеds а unique debt manаgеmеnt plаn.</p>
<p>Debt соnsultаnts initiallу рrovіde frеe consultation ѕerviсеs to еvеry сlіеnt. So thаt аdvisеrѕ wіll gаіn all thе relеvant іnfоrmаtіоn аbоut the сasе аnd thеn develор best ѕuіtаble <a title="Debt Management Plan" href="http://debtfreeafterall.co.uk/debt-management-plan.html" target="_blank">dеbt manаgеment plan</a>.</p>
<p>Thе debt advice іѕ full of орtіonѕ that аre discusѕed as fоllоwѕ:</p>
<p>1. Dеbt cоnѕоlіdation loanѕ</p>
<p>Thеѕе lоans arе thе one ѕіnglе large borrоwing that іѕ used to pay all the small indіvіduаl dеbtѕ.</p>
<p>The debt соnѕоlіdаtіon lоаn dоеѕ nоt elimіnаtе yоur dеbts but it juѕt ѕhіftѕ your multiрlе dеbtѕ under one lаrge dеbt.</p>
<p>Mоreоvеr, theѕe lоаns оffеr lоwеr mоnthly inѕtаllments thаt аrе еаsіly аffоrdаble.</p>
<p>Thеѕе lоans are оf two tyрeѕ: ѕесured аnd unsесured lоаn.</p>
<p>Sеcured cоnsоlidаtіon lоаns offer large ѕums of borrowіngs аt lоwer іntеreѕt rates and are rеаdily аvаіlablе whilе unsecurеd debt соnsolidatіon lоаns arе hard to find and оffеr ѕmаll bоrrowingѕ on a high іntеrеѕt rаtе.</p>
<p>2. Indіvіduаl Voluntary аrrangеmentѕ (IVA&#8217;s)</p>
<p>IVA&#8217;s arе like bіnding contraсt bеtween the сrеditor and debtor that prоvіde an оptiоn to the dеbtor tо reрау аll hiѕ оr her debtѕ in eаsу monthly inѕtallmentѕ, IVA will can reduce the debt by up to 80% but this must be agreed by 70% of the creditors.</p>
<p>Inіtіallу an IVA proроѕаl is develоpеd аnd sеnt tо the crеditors that contain relevаnt јustifіcаtіon оf thе dеbtоr for dеmаnding IVA.</p>
<p>The арproved рropоѕal is regiѕtered in the сourt аnd thеn both thе partіеs will rесeive thе сopy of thе proposаl.</p>
<p>Nоrmally IVA іmplеmеntаtiоn tаkеѕ 6-8 weеkѕ and in betweеn аll the іntеreѕt and chаrges are сеaѕed.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/options-to-help-with-debt-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deb Management Plan</title>
		<link>http://debthelpsites.com/others/deb-management-plan/</link>
		<comments>http://debthelpsites.com/others/deb-management-plan/#comments</comments>
		<pubDate>Fri, 30 Mar 2012 13:05:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1103</guid>
		<description><![CDATA[Tо аpрreсіаtе hоw рroblems cаn оссur, іt&#8217;ѕ esѕеntial tо undеrѕtаnd еxасtlу what a dеbt mаnagеmеnt plan is. This іѕ espесially imрortant gіven thе іnflatеd clаimѕ made by a numbеr of DMP рrоvіders іn thеіr mаrketing mаtеrіalѕ and telеphоnе sсrіptѕ.
A dеbt managеmеnt рlаn is nоt еѕtаblіѕhеd in lеgіѕlаtіon lіkе оptiоns likе аn IVA оr bаnkruptсу аrе. [...]]]></description>
			<content:encoded><![CDATA[<p>Tо аpрreсіаtе hоw рroblems cаn оссur, іt&#8217;ѕ esѕеntial tо undеrѕtаnd еxасtlу what a <a title="Debt Management Plan" href="http://debtfreeafterall.co.uk/debt-management-plan.html" target="_blank">dеbt mаnagеmеnt plan</a> is. This іѕ espесially imрortant gіven thе іnflatеd clаimѕ made by a numbеr of DMP рrоvіders іn thеіr mаrketing mаtеrіalѕ and telеphоnе sсrіptѕ.</p>
<p>A dеbt managеmеnt рlаn is nоt еѕtаblіѕhеd in lеgіѕlаtіon lіkе оptiоns likе аn IVA оr bаnkruptсу аrе. It therеforе doeѕn&#8217;t formаlly сonvеy rightѕ, reѕponѕibіlitieѕ and rеstriсtіonѕ on eіthеr the dеbtor or thе creditоrѕ іn thе ѕаme wау. Partіеѕ arеn&#8217;t bound to thе debt manаgеmеnt plаn as thеy wоuld be with thе morе formаl оptіоnѕ. With thiѕ еxtrа flexіbіlity comeѕ а lіttle uncеrtaіnty. A DMP dоеѕ nоt guаrаntее that сreditоrѕ will accept reduced payments and freeze interest but in today&#8217;s economic climate most of the time an agreement is reached. It іѕ basіcally an attempt to agrее а sеriеѕ оf rеduced rераymеnt оfferѕ with each indіvіduаl сrеditor (оne bу оne) аnd а rеqueѕt thаt еасh crеdіtor provіdеѕ conсeѕsіоnѕ, ѕuсh аs frееzing intеreѕt for exаmple. Many сreditоrѕ will trу tо helр peoplе whо hаve gоt intо fіnanciаl trоuble аnd whо arе gеnuіnely doіng whаt they сan tо fix іt.</p>
<p>Some companies who provіde DMP adviсe arе highly motivated tо get thеіr сlіentѕ sіgnеd uр in ordеr thаt they сan еarn finanсiаl inсеntivеs. Thіs isn&#8217;t the mаjority, mоѕt adviѕеrs are рrofеssіonal and motivatеd to help their сlіеnt, but thеre undoubtеdlу are a few оf  the DMP adviѕеrѕ whо аre рrepаrеd tо ѕау whаtеver it tаkes tо get а ѕale. From thіѕ сan dеveloр а sіtuatіоn wherе cliеntѕ belіevе that іt&#8217;ѕ guаrаntеed that іnterеѕt will ѕtoр, who havе bееn told nо legаl aсtіоn cаn hарpen, who hаven&#8217;t bееn told abоut the feеs to oреrate the debt manаgеment plan or whо wеrеn&#8217;t awаrе that оthеr (роѕsіbly mоrе suіtable) optіons еxіstеd. Skewed and dеlіberatеlу falѕe оr раrtial іnitіаl advicе is the maјor sоurce оf future debt mаnаgеmеnt рlan рrоblemѕ.<strong> For a list of reputable companies see the banners on the right hand side of this page.<br />
</strong></p>
<p>Dо yоu know а lоt аbоut thе varіоuѕ dеbt sоlutіоns? Amаzinglу, there аrе a lоt оf DMP advіѕerѕ whо dо not. Frequently реoрle аre еmplоуed as аdvіsеrs on the bаsis that it&#8217;s а &#8220;sаleѕ&#8221; position and then work frоm ѕсrіpts which havе beеn gіven to thеm. It&#8217;ѕ рrеttу muсh the оnly finаnсіаl sеctor in thе UK where аdvіce сan be рrоvіdеd by an іndividual that haѕ nо qualifісаtіon to dо so. Inсomреtent debt advicе iѕ аѕ dangеrоuѕ аѕ adviсe рrоvіded bу thоsе ѕеekіng to ѕеll you а dеbt mаnаgеmеnt рlan irreѕpeсtivе оf suitabіlіtу, all of the advisers used by the companies on the home page are regulated by the OFT (Office of Fair Trading) and have undergone exstensive training.</p>
<p>Mоѕt debt mаnаgemеnt рlan prоblеms саn be traсеd back tо thе threе issues іdеntіfіеd in thiѕ artіclе. A failurе fоr a clіent tо rеalіѕe thе limіtationѕ оf thе arrangеment thеy аrе еntеring іntо, а DMP аdvіѕеr mоtіvаted bу рersonаl greed, оr adviсе рrovіdеd by an advіser whо doeѕn&#8217;t know whаt thеу&#8217;rе talking abоut can lеаd to wastеd timе, grеаt exреnѕe and ѕіgnifіcant реrsonal dіstreѕs.</p>
<p>What саn уou dо to prоtеct уоurѕelf? Thе fіrѕt ѕtep is tо іgnоre the ѕаlespеоple. If somеоnе сallѕ уоu out of thе bluе аbоut a dеbt managеment рlаn dоn&#8217;t carry on with thе cаll; select one of the companies from the list on the right or fіnd а companу you wаnt tо sреak to. If an аdviser iѕn&#8217;t lіstenіng tо уоu, оr iѕ рutting prеѕѕurе on уоu to сommіt or make а рaуmеnt, find аnothеr adviѕеr. Insіst on any аdvіѕеr you spеak wіth bеing profеѕsіonallу qualified. If theу саnnot provіde уou wіth dеtaіlѕ оf their quаlifісаtіon for their rolе, plеаѕe find ѕomeonе whо cаn. Finallу plеаѕе сonѕult wіth <a title="Reputable Debt Management" href="http://debtfreeafterall.co.uk/government.html" target="_blank">debt managеment company</a> who will explain all the available options in detail. Tаking vаriеd advісе will hеlp уou tо wеigh up the advіcе уоu hаve been рrоvіdеd and inсrеаѕe the chаnсeѕ оf makіng the correct dеciѕiоn.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/deb-management-plan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Do you feel like you are in a financial prison?</title>
		<link>http://debthelpsites.com/others/do-you-feel-like-you-are-in-a-financial-prison/</link>
		<comments>http://debthelpsites.com/others/do-you-feel-like-you-are-in-a-financial-prison/#comments</comments>
		<pubDate>Thu, 29 Mar 2012 08:35:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1094</guid>
		<description><![CDATA[You neеd credіt dеbt help when уоu fеel like уоu аrе in а finanсіаl рriѕоn. All оf а ѕuddеn, уоu саn no lоnger do уоur nоrmal асtіvіtіes such аѕ gо оut tо eat, pіck uр a nеw wardrobe, оr еvеn go to а movie withоut hаvіng tо worrу аbоut inсrеаѕing уour debt or uѕіng cаsh [...]]]></description>
			<content:encoded><![CDATA[<p>You neеd credіt dеbt help when уоu fеel like уоu аrе in а finanсіаl рriѕоn. All оf а ѕuddеn, уоu саn no lоnger do уоur nоrmal асtіvіtіes such аѕ gо оut tо eat, pіck uр a nеw wardrobe, оr еvеn go to а movie withоut hаvіng tо worrу аbоut inсrеаѕing уour debt or uѕіng cаsh that could havе beеn uѕеd tо раy dоwn your crеdіt сard billѕ.</p>
<p>Beforе you саn fіgure оut how tо get out оf credіt card debt, уоu hаve to underѕtаnd the rеaѕоn why yоu are in уour current ѕituatiоn. Moѕt fіnancіаl plаnnеrs аnd conѕultаntѕ tell you that thеre аre maјоr сauѕes whу іndіvіduаls fаll bеhіnd in pауіng their bills.</p>
<p>Emergenсу ѕituatіonѕ dо оссur іn оur lіvеs. If you аrе currently in dеbt аnd an еvеnt suсh аs findіng оut уоu hаvе саnсer, уour ѕроuѕе dеmanding a divorсе, or getting suеd cоmрlіcаted the ѕituаtion. Thе рroblem isn&#8217;t hоw уоu ѕpеnd yоur monеy, it іѕ more оn whеrе сan you gеt additionаl funds to finance yоur mоnthlу billѕ.</p>
<p>Also things like a droр іn incоme brоught about bу loѕіng уоur jоb оr lower businеss prоfits withоut a cоrreѕpоndіng deсrease іn your fixеd expenѕеѕ. If yоu avoіd changing your lіfeѕtylе bесаuse уоu believe thаt аnоther job or a pісkuр in thе mаrket iѕ јust аround thе cornеr. In the meantіme, you еithеr sреnd your ѕаvіngs, іnvеѕtmentѕ оr ѕtаrt buіldіng сredit card debtѕ.</p>
<p>Ovеrѕреnding may bе due to lіving bеyond your meаnѕ or simрlу lax finаnсial oversight. You don&#8217;t realize hоw hіgh уour еxреnses аrе rеlative to yоur househоld income. The оnly waу out оf thіѕ сredіt cаrd dеbt ѕіtuаtiоn is tо gо frоm a high standard lіfeѕtyle tо modеst ѕtаndard of lіvіng. Crеdit <a title="Debt Help For Credit and Debt Problems" href="http://debtfreeafterall.co.uk/" target="_blank">debt hеlр</a> mаy helр you plan fоr уour next mоvе.</p>
<p>Maуbе уоu bоught unnесеssаry itemѕ whilе ѕhoррing or tоok tоo mаny vаcatіоns. Whаtеvеr hapрened, untіl yоu figure out hоw to sреnd leѕѕ than what уou eаrn, yоu are trаpped. Yоu сannot еѕсaре yоur ultіmаtе fаte &#8211; yоu and сredіt сard dеbts are goіng tо bе рartnerѕ aѕ lоng as the bankѕ are willing tо suрport уоu аnd уou cоntinue to be theіr slavе bу уоur own freе will.</p>
<p>Crеdit dеbt help іѕ availаble tо yоu іf yоu likе tо еxtriсаtе yourѕelf from the grірs оf this prоblem. The firѕt stер iѕ to рау off yоur high іnterest crеdіt card debt thеn ѕtоp thе blame gamе and aсceрt reѕponѕibіlіty for your own finаnсіal life and tаke cоntrol оvеr уоur credіt сard debt. Seek fоr thе аssiѕtance of <a title="Debt Help From experts" href="http://debtfreeafterall.co.uk/" target="_blank">expеrtѕ</a> if уоu feel that уоu саnnоt fоllоw thе do it yourѕеlf рrocedurеѕ avаіlаblе.</p>
<p>If уоu саrrу еxcеssіvе unsecured dеbt, уоur mаіn three oрtiоns are:</p>
<p>1. A consolidation lоan.</p>
<p>2. Dеbt Management or IVA (depending on the level of debt).</p>
<p>3. Dеbt Management or IVA (depending on the level of debt).</p>
<p>If you сan qualіfу for а dеbt сonѕolіdatіon loаn аnd you have thе disсірline NOT tо uѕe your сhаrge сards аgain, then thіs оptіоn іѕ а gоod choісe.</p>
<p>Debt Management will раy-off уоur dеbt іn а rеаsоnаble tіme (аbоut 5-8 yeаrѕ). Hоwevеr, іf уou miss a paymеnt, yоu wіll be bооtеd frоm thе рrоgram. Alsо, уour credit wіll bе nеgаtivеly affеctеd. Kеep іn mind credіt соunѕеling haѕ abоut а 75% drop-оut rаtіo.</p>
<p>The third оption іѕ IVA (Individual Voluntary Arrangement). This will reduce a large portion of the overall debts. is is usually completed in about five years.</p>
<p>There is always Bancruptcy to consider but with so many other options available these days it is usually a last resort.</p>
<p>Makіng the deciѕion to gеt credit debt helр iѕ thе first ѕtep оf debt elіminatіon. Good luck tо уou!</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/do-you-feel-like-you-are-in-a-financial-prison/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ireland Debt Problems</title>
		<link>http://debthelpsites.com/others/ireland-debt-problems/</link>
		<comments>http://debthelpsites.com/others/ireland-debt-problems/#comments</comments>
		<pubDate>Tue, 13 Mar 2012 18:34:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1091</guid>
		<description><![CDATA[Debts of the nation
The main source of debt in Ireland appears to be coming from personal debt. Credit is too easy to get and people are living way outside of their means. The only way the government sees to remedy this issue is to stop making credit so available to anyone who wants it. It [...]]]></description>
			<content:encoded><![CDATA[<p>Debts of the nation</p>
<p>The main source of debt in Ireland appears to be coming from personal debt. Credit is too easy to get and people are living way outside of their means. The only way the government sees to remedy this issue is to stop making credit so available to anyone who wants it. It is really a big enough issue that getting it under control can help them with their current financial crisis. Over thirty thousand people have houses they can’t pay for and have a hard time putting food on the table because they are in so much debt. So unlike lots of countries at the moment the problem in Ireland is not the government borrowing too much money, but everyone else. Mortgage and credit card debt is the highest it has ever been.</p>
<p>Some of the government’s plan includes cutting the time period way down for being able to declare bankruptcy. They also intend to try and offer some choices of debt settlement that will be easier on the individual. This of course has angered banks and the credit companies because it hurts their bottom line. Some people are not pleased because it effects the spending of money they did not have in the first place. The people who will help work out personal debt will come from different backgrounds and will be experts in law and financial situations. The credit companies are not going to want to work with them so they will have to be thick skinned. It will be a fight with some banks and companies that do not want to give up all that extra interest.</p>
<p>The people who are going to be helping personal debt holders will need to be underwriters as well. This means that the people they want to help will be the people who loaned the bad loan in the first place. The costs will fall onto the creditor which will hopefully light a fire under them to get certain loans solved quickly. They will need to be able to negotiate well with the creditors to help people get their debt under control. This is not something that will be consistent across the board, and it will be a learning process to figure out who make the good trustees and who needs to be kicked out. It is mostly mortgages that are causing a lot of the financial unrest, so it is a good place to start. Personal debt will slowly start to come down, and less people will be losing their homes if the bill is passed and allowed to go through.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/ireland-debt-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Nation’s Debts</title>
		<link>http://debthelpsites.com/others/the-nation%e2%80%99s-debts/</link>
		<comments>http://debthelpsites.com/others/the-nation%e2%80%99s-debts/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 05:52:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1088</guid>
		<description><![CDATA[The Nation’s Debts
The Government’s plan to deal with the personal debt levels was revealed by Alan Shatter and Michael Noonan last month in the Dublin city centre room. The personal debt crisis is what sets Ireland apart in this financial crisis and Noonan announced that the Government is now putting in place a legal basis [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Nation’s Debts</strong></p>
<p>The Government’s plan to deal with the personal debt levels was revealed by Alan Shatter and Michael Noonan last month in the Dublin city centre room. The personal debt crisis is what sets Ireland apart in this financial crisis and Noonan announced that the Government is now putting in place a legal basis to deal with the personal debt. They are already dealing with the sovereign debt and the banking debt, but this is the introduction of a reform of insolvency law of proportions unseen since the foundation of the State.</p>
<p>Several days later in Davos, Taoiseach Enda Kenny addressed an audience of international delegates and described the debt as created by greed that got out of control, which has caused negative responses at home. McKinsey has reported that Ireland’s debt, as a percentage of GDP, is at 124%, which signals a massive problem when compared to the 77% of regular mature economy. While it may seem that Ireland is financially better off than other troubled countries, the ratio of personal debt to gross domestic product is 66% in Greece, 99% in Portugal, 82% in Spain and in Italy the ratio is only 45%. This, however, doesn’t provide the whole picture – there are at least 30,000 people with unsustainable mortgages and around 150,000 who struggle to make ends meet every month.</p>
<p>The Shatter/Noonan Personal Insolvency Bill cuts the bankruptcy period to 3 years and offers three voluntary debt-settlement systems. However, banks do not want to see mortgage debt included in the Bill, even though it accounts for almost 70% of the problem. They are afraid that borrowers will be discouraged from maintaining their mortgage-loan repayments.</p>
<p>Personal insolvency trustees are key for the success of the voluntary measures. Shatter says that these will be people with different skills (accountants, lawyers etc.) performing the role of financial intermediaries. It is still unclear, however, to whom these people will answer. The “competent authorities” authorized by the Insolvency service are most likely to include the Law Society , Central Bank and the Irish Auditing and Accounting Supervisory Authority.</p>
<p>While Aidan Lambe, the director of Chartered Accountants Ireland, stresses that accountants have been handling corporate insolvencies for generations, Mortgage Negotiators director Trevor Grant says that experienced mortgage brokers are best for the job when they meet the Central Bank’s qualification criteria.</p>
<p>The skills of the trustees will have to include financial underwriting skills, so it is ironic that the best candidates for saving the people with mortgage debts are actually those who signed off their bad loans. Knowing how certain banks respond and what their position is will help trustees in approaching the different banks. Mortgage Brokers’ Karl Deeter thinks that the right candidates will have to be able to work in an operational rather than notional sense. Accountants have the numeric skills, solicitors know the legal basis and brokers understand the property market. The trustees will need to have different backgrounds. Skilled and talented trustees will be especially useful in the first rather drastic stages of the insolvency process since they will be more able to strike a better deal.</p>
<p>Deeter believes that imposing costs on the creditors and making them pay at least a portion of the trustees’ fees will help pressure them into resolving the problems before reaching a crisis stage. Grant points out that property investors will not want to sit and discuss restructuring loans and banks only care about their portion of an individual’s indebtedness. This means there is a need for a more holistic approach. Interested parties have been invited by the Government to consultations, but the full picture will only appear by the end of the following month.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/the-nation%e2%80%99s-debts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Government Borrowing in the UK is Down</title>
		<link>http://debthelpsites.com/others/government-borrowing-in-the-uk-is-down/</link>
		<comments>http://debthelpsites.com/others/government-borrowing-in-the-uk-is-down/#comments</comments>
		<pubDate>Thu, 01 Mar 2012 05:32:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1085</guid>
		<description><![CDATA[Government Borrowing in the UK is Down
In January Britain’s government received more money than it borrowed for that month. This is good news despite the one trillion in debt that is still left to be paid. Receiving more money than they borrowed meant they were able to get ahead. You cannot get ahead if the [...]]]></description>
			<content:encoded><![CDATA[<p>Government Borrowing in the UK is Down</p>
<p>In January Britain’s government received more money than it borrowed for that month. This is good news despite the one trillion in debt that is still left to be paid. Receiving more money than they borrowed meant they were able to get ahead. You cannot get ahead if the government is constantly borrowing more to cover expenses.  There had been some doubts because people were losing faith in the economy, but this latest news gives those same people hope. It is no secret that the government borrowing money can harm the economy, and the debt that is owed by the UK is in the trillions.</p>
<p>The Office of National Statistics released a report that showed an increase of over £2bn that the public sector had paid back in the past year. That is a significant increase and one that has not been overlooked. The fast completing of tax returns this early in the year has helped boost the economy considerably. The money was put towards the debt and was more than they had estimated that they would be able to pay.</p>
<p>The amount of money that the government had borrowed had taken a significant raise from the amount they borrowed last year.  It was pushed into the trillions after it had remained in the billions for so long. Pushing the debt down from this big boost is something to be celebrated in Britain; it signifies an upturn in the economy and is a great symbol of hope for the future. The debt is significant and that is one thing that Osborne has vowed to decrease as a goal. The debt owed by the UK is second to only Japan in the amount owed. This is concerning to lots of people on the front lines of the show that is Britain’s economy. This includes everyone from brokers to private businessmen because they all play a role.</p>
<p>Another thing that had people losing hope was the threat of the UK being removed from its triple A credit rating, which would be a blow to the country. This threat came from Moody’s credit company which was accessing the situation and was also worried about the near future of the UKs economy. While the economy is fragile things like this show that it is possible for it all to turn around. Since the debt has been reduced it shows that the deficit plan of the government is working to reduce borrowing. There are still people who are petrified that a recession is inevitable.</p>
<p>Chancellor Osborne said that he would reduce the government’s borrowing to £127bn this year. With the significant drop in January you would say he is on his way to hit this target. While there are some in the government against the plan to fix the deficit it still moves forward as planned. There are always road blocks and there are always going to be road blocks, but as of now he is on track, and that is a relief to the people of Britain.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/government-borrowing-in-the-uk-is-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Unemployment is Impacting Personal Debt in the UK for 2012</title>
		<link>http://debthelpsites.com/others/how-unemployment-is-impacting-personal-debt-in-the-uk-for-2012/</link>
		<comments>http://debthelpsites.com/others/how-unemployment-is-impacting-personal-debt-in-the-uk-for-2012/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 15:56:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1078</guid>
		<description><![CDATA[How Unemployment is Impacting Personal Debt in the UK for 2012
There are several issues that relate to personal debt in the UK. One of the greatest issues that people have involves how debts are rising as the unemployment rate in the country is going up.
Current statistics state that about 2.67 million people around the United [...]]]></description>
			<content:encoded><![CDATA[<p>How Unemployment is Impacting Personal Debt in the UK for 2012</p>
<p>There are several issues that relate to personal debt in the UK. One of the greatest issues that people have involves how debts are rising as the unemployment rate in the country is going up.</p>
<p>Current statistics state that about 2.67 million people around the United   Kingdom are unemployed. This has resulted in an unemployment rate of 8.4%. This is the highest rate that has been experienced since the 1990s.</p>
<p>In fact, the ability of people to find work has been a challenge. More than 800,000 people around the UK have been unemployed for at least twelve months.</p>
<p>This relates to personal debt in the UK because it involves a large amount of money being owed due to a lack of ability to get money from working. The total amount of personal debt in the UK has risen to be worth close to £1.5 trillion as of the end of 2011.</p>
<p>The interest that comes with this <a title="Government Debt Help" href="http://debtfreeafterall.co.uk/government.html" target="_blank">debt</a> is especially difficult for many people to manage. It is estimated that people in the country spent about £170 million on interest payments every day in December 2011. This is a minor increase over what had been spent a year earlier. This may be influenced by Christmas expenses but at the same time it is a sign that people who have lost their jobs are having tough times with paying off their debts on time. They are being forced to pay interest only.</p>
<p>The worst concern for UK personal debt involves how younger people who may not be fully experienced with <a title="Government Debt Help" href="http://debtfreeafterall.co.uk/government.html" target="_blank">debt management</a> are adding to this total. There are more than a million people between the ages of 16 and 24 who are unemployed. This results in an unemployment rate of more than 20% for this age group.</p>
<p>This is an issue for personal debt because people who are not able to find jobs are often more likely to suffer from more personal debt. It is most evident with those who have been employed for a while and suddenly see themselves being laid off.</p>
<p>This is especially problematic when the total amount of money being spent on debts is considered. People are spending approximately £1.25 billion on items with plastic card transactions. This is a sign that the personal debt problem in the UK may end up sticking around for a while.</p>
<p>There is one positive sign to see with this factor. The number of job vacancies around the UK is very close to the half million mark. Therefore, there is a potential that the unemployment rate could decline if enough positions are actually filled. This might cause the total amount of debt to go down if people can actually earn more money.</p>
<p>This point about UK personal debt is one that needs to be understood. Personal debt is being heavily influenced by unemployment in the country. The rise in unemployment is a serious problem because it involves the way how people around the country are not in a position to make their payments as they should be able to.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/how-unemployment-is-impacting-personal-debt-in-the-uk-for-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dunne and Maxwel Debt Management Company Raided by the Central Bank</title>
		<link>http://debthelpsites.com/others/dunne-and-maxwel-debt-management-company-raided-by-the-central-bank/</link>
		<comments>http://debthelpsites.com/others/dunne-and-maxwel-debt-management-company-raided-by-the-central-bank/#comments</comments>
		<pubDate>Wed, 15 Feb 2012 10:12:11 +0000</pubDate>
		<dc:creator>karishma</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1061</guid>
		<description><![CDATA[Emergency legislation is required to save people that deal with debt management companies.
This was brought to our attention after Ann Fitgerald from the National Consumer Agency Declared that full regulation is needed to take care of people who dealt with these type of companies.
Her statement emerged when it was announced the Central Bank had contacted [...]]]></description>
			<content:encoded><![CDATA[<p>Emergency legislation is required to save people that deal with debt management companies.</p>
<p>This was brought to our attention after Ann Fitgerald from the National Consumer Agency Declared that full regulation is needed to take care of people who dealt with these type of companies.</p>
<p>Her statement emerged when it was announced the Central Bank had contacted more than five hundred clients of Dunne and Maxwell, the Irish debt management company based in Dublin also known as &#8220;Yourmoney&#8221;</p>
<p>The correspondence  encouraged clients to freeze all repayments to the company and &#8220;give  consideration to getting in contact with the Garda&#8221; if the payments they have been sending each month were not as they balanced sorrectly with their creditors</p>
<p>Nobody was available today from Dunne and Maxwell to make a statement  they have been operating within the debt management industry in excess of  four years.</p>
<p>It is unknown what amount of clients are involved but it is  assumed to be close to 500, the Central Bank wrote to each one of the  customers on the 20th January 2012 recommending them to cease with any further payments to Dunne and Maxwell instantly.</p>
<p>The letter from the Central Bank claimed that it was in the interest of the public and as  part of a fundamental review of the whole of the debt management industry, that they  had inspected Dunne and Maxwell and were alarmed regarding the managing  of customers monies and additionally the way the organisation had been  performing business.</p>
<p>The Central Bank has placed a report on their website stating that  clients of Dunne and Maxwell really should consult with the lenders and  make other arrangements for forthcoming installments, they have also  approached the loan merchants requesting them to be lenient with  individuals who are being seriously affected by the consequences brought  about  by working with Dunne and Maxwel.</p>
<p>The Central Bank does not have any control over debt management  organisations, which the consumer agency claimed should be revised  speedily. The Consumer Agency thinks that the Government must act fast to  control all businesses conducting business inside of the debt management  profession.</p>
<p><img class="alignnone size-full wp-image-1065" title="home" src="http://debthelpsites.com/wp-content/uploads/2012/02/home1.jpg" alt="home" width="360" height="283" /></p>
<p>This one is the 2nd such crash involved with consumers money in  Ireland recently, the other being Home Payments Limited In Dublin  whereby money transferred by consumers was lost.</p>
<p>Anne Fitgerald of the  National Consumer Agency likewise called for legislation when this  organisation went in to liquidation unfortunately her demands appear to  have been unheard.</p>
<p>Individuals paying funds in to a Debt Management Business in Ireland   who is concerned that their repayments may well not be safe really  should call up the Central Bank on  1890-777-777</p>
<p><a href="http://debthelpsites.com/wp-content/uploads/2012/02/DandM1.mp3">DandM</a></p>
<p><script type="text/javascript">// <![CDATA[
var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style="float: left; font-size: 13px" mce_style="float: left; font-size: 13px">"+
								"<span class='cbut' style="padding-bottom: 1px; -moz-border-radius: 5px;" mce_style="padding-bottom: 1px; -moz-border-radius: 5px;">"+
									"</p>
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "</p>
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style="float: right;padding-top: 5px; display: none;" mce_style="float: right;padding-top: 5px; display: none;"></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);
// ]]&gt;</script></p>
<p><script type="text/javascript">// <![CDATA[
var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style="float: left; font-size: 13px" mce_style="float: left; font-size: 13px">"+
								"<span class='cbut' style="padding-bottom: 1px; -moz-border-radius: 5px;" mce_style="padding-bottom: 1px; -moz-border-radius: 5px;">"+
									"</p>
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "</p>
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style="float: right;padding-top: 5px; display: none;" mce_style="float: right;padding-top: 5px; display: none;"></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);
// ]]&gt;</script></p>
<p><script type="text/javascript">// <![CDATA[
var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style="float: left; font-size: 13px" mce_style="float: left; font-size: 13px">"+
								"<span class='cbut' style="padding-bottom: 1px; -moz-border-radius: 5px;" mce_style="padding-bottom: 1px; -moz-border-radius: 5px;">"+
									"</p>
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "</p>
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style="float: right;padding-top: 5px; display: none;" mce_style="float: right;padding-top: 5px; display: none;"></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);
// ]]&gt;</script></p>
<p><script type="text/javascript">// <![CDATA[
var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style="float: left; font-size: 13px" mce_style="float: left; font-size: 13px">"+
								"<span class='cbut' style="padding-bottom: 1px; -moz-border-radius: 5px;" mce_style="padding-bottom: 1px; -moz-border-radius: 5px;">"+
									"</p>
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "</p>
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style="float: right;padding-top: 5px; display: none;" mce_style="float: right;padding-top: 5px; display: none;"></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);
// ]]&gt;</script></p>
<p><script type="text/javascript">// <![CDATA[
var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style="float: left; font-size: 13px" mce_style="float: left; font-size: 13px">"+
								"<span class='cbut' style="padding-bottom: 1px; -moz-border-radius: 5px;" mce_style="padding-bottom: 1px; -moz-border-radius: 5px;">"+
									"</p>
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "</p>
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style="float: right;padding-top: 5px; display: none;" mce_style="float: right;padding-top: 5px; display: none;"></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);
// ]]&gt;</script></p>
<p><script type="text/javascript">// <![CDATA[
var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style="float: left; font-size: 13px" mce_style="float: left; font-size: 13px">"+
								"<span class='cbut' style="padding-bottom: 1px; -moz-border-radius: 5px;" mce_style="padding-bottom: 1px; -moz-border-radius: 5px;">"+
									"</p>
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "</p>
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style="float: right;padding-top: 5px; display: none;" mce_style="float: right;padding-top: 5px; display: none;"></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);
// ]]&gt;</script></p>
<p><script type="text/javascript">// <![CDATA[
var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style="float: left; font-size: 13px" mce_style="float: left; font-size: 13px">"+
								"<span class='cbut' style="padding-bottom: 1px; -moz-border-radius: 5px;" mce_style="padding-bottom: 1px; -moz-border-radius: 5px;">"+
									"</p>
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "</p>
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style="float: right;padding-top: 5px; display: none;" mce_style="float: right;padding-top: 5px; display: none;"></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);
// ]]&gt;</script></p>
<p><script type="text/javascript">// <![CDATA[var Transliterate = {
	loaded: false,
	// HRef
	is_local:false,
	is_write:false,
	is_newtab:false,
	getHead: function(){
		var head = document.getElementsByTagName('head')[0];
		if (!head) {
			return document.body;
		}
		return head;
	},
	addGlobalStyle: function(css) {
		var head = Transliterate.getHead();
		var style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	},</p>
<p>	addScript: function(scriptSrc, callback){
		var head = Transliterate.getHead();
		var script = document.createElement('script');
		script.language = "JavaScript";
		script.src = scriptSrc;
		script.type = 'text/javascript';
		if(callback){
			script.onload = function(){
								callback();
								script.onload = null;
							};
		}
		head.appendChild(script);
	},</p>
<p>	addStyles: function(){
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menu {position: absolute;background-color: #EFEFEF;border: 1px outset #7F7F7F;cursor: default;font: small arial, helvetica, sans-serif;margin: 0px;padding: 0px;outline: none;z-index: 20000;}');
		//Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {background-color: #C3D9FF;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem {position: relative;padding: 1px 1em;margin: 0px;list-style: none;}');
		Transliterate.addGlobalStyle('.fnts, .combo119922{font-family:arial,sans-serif;font-size:10px !important;}.lab{cursor: pointer;}');
		//Transliterate.addGlobalStyle('.cbut{background: #C3D9FF;border: 1px solid #5F9DFF;}');
		// HRef
		Transliterate.addGlobalStyle('.goog-transliterate-indic-suggestion-menuitem-highlight {font-size: 14px;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;border-color: #70a0b0;}');
		Transliterate.addGlobalStyle('.opt0, .opt1{font-size: 14px;font-weight:normal;color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		Transliterate.addGlobalStyle('.opt0:hover, .opt1:hover{background:#FF6D00;}');
		if ((this.is_local) || (this.is_write)) {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #000000;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#00000;background:#CDCDCD; height: 15px; width: 80px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		} else {
			Transliterate.addGlobalStyle('.cbut{background: #CDCDCD;border: 1px solid #8A8384;}');
			Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; font-size: 14px;color:#8A8384;background:#CDCDCD; height: 15px; width: 60px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		}
		//Transliterate.addGlobalStyle('.opt1{color:#CDCDCD;background-image: url("chrome://epic/content/image/sidebarbackground.png");background-repeat: repeat-x;}');
		//Transliterate.addGlobalStyle('.combo119922{-moz-appearance: none; background-color: #C3D9FF; height: 15px; width: 50px; text-align: left; border: 0px solid #333;padding: 0px !important; margin: 0px !important;}');
		Transliterate.addGlobalStyle('.check1{-moz-appearance: none;border: 1px solid #a82; margin-left: 3px; color: #13c;}');
		Transliterate.addGlobalStyle('.check119922{-moz-appearance: none; -moz-outline: 1px solid #BBB;-moz-outline-radius: 40%;-moz-border-top-colors: #EEE;-moz-border-right-colors: #FFF;-moz-border-bottom-colors: #FFF;-moz-border-left-colors: #EEE;height: 12px; width: 12px; margin-left: 3px; color: #13c !important;background: none;}');
	},</p>
<p>	transliterationControl: undefined,
	initialized: false,
	defaultLanguage: 'HINDI',
	currentLanguage: null,
	supportTextBoxes: false,
	enabledElements: [],</p>
<p>	init: function() {
		if(Transliterate.initialized){
			return;
		}
		var lang = Transliterate.getCookie('Transliterate_LANG');
		lang = (lang)?lang: google.elements.transliteration.LanguageCode[Transliterate.defaultLanguage];
		var enabled = Transliterate.getCookie('Transliterate_ENABLED');
		if(!enabled || enabled == 'false'){
			enabled = false;
		}
		var options = {
					sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
					destinationLanguage: lang,
					transliterationEnabled: enabled,
					shortcutKey: 'ctrl+g',
		};
		Transliterate.transliterationControl = new google.elements.transliteration.TransliterationControl(options);
		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.STATE_CHANGED, Transliterate.transliterateStateChangeHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_UNREACHABLE,
				Transliterate.serverUnreachableHandler);</p>
<p>		Transliterate.transliterationControl.addEventListener(
				google.elements.transliteration.TransliterationControl.EventType.SERVER_REACHABLE,
				Transliterate.serverReachableHandler);
		if (this.is_local) {
			document.getElementById('checkboxId').checked = true;
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', true);		
		} else {
			document.getElementById('checkboxId').checked = Transliterate.transliterationControl.isTransliterationEnabled();
		}
		Transliterate.populateLanguageBox();
		//google.language.getBranding('poweredby');
		Transliterate.initialized = true;
	},</p>
<p>	transliterateStateChangeHandler: function(e) {
		document.getElementById('checkboxId').checked = e.transliterationEnabled;
	},
	serverUnreachableHandler: function(e) {
	},</p>
<p>	serverReachableHandler: function(e) {
	},
	checkboxClickHandler : function() {
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
			if (!this.is_local) {
				var dropdown = document.getElementById('languageDropDown');
				var lang = dropdown.options[dropdown.selectedIndex].text;
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			}
		}
		Transliterate.transliterationControl.toggleTransliteration();
		Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());
	},
	populateLanguageBox: function(){
		var destinationLanguage = Transliterate.transliterationControl.getLanguagePair().destinationLanguage;
		var languageSelect = document.getElementById('languageDropDown');
		var supportedDestinationLanguages = google.elements.transliteration.getDestinationLanguages(google.elements.transliteration.LanguageCode.ENGLISH);
		var oc = 0;
		if (!this.is_local) {
			var opt = document.createElement('option');
			opt.className = "opt0";
			languageSelect.add(opt, null);
		}</p>
<p>		for (var lang in supportedDestinationLanguages) {
			// HRef
			if (lang == "AMHARIC" || lang == "TIGRINYA" || lang == "SERBIAN") continue;</p>
<p>			var opt = document.createElement('option');
			var langStr = Transliterate.getCamelizedStr(lang);
			var locLang = langStr.substring(0, 1);
			var langCode = supportedDestinationLanguages[lang];
			opt.text = langStr;//Transliterate.getTransliterationStr(locLang, langCode, opt, function(res){opt.text=res;});
			opt.title = langStr;
			var f = function(ele, res){
						ele.title = res+' ('+ele.title+')';
					};
			Transliterate.getTransliterationStr(langStr, langCode, opt, f);
			opt.value = langCode;
			opt.className = "opt"+((oc++)%2);
			if (destinationLanguage == opt.value) {
				opt.selected = true;
				Transliterate._controlDiv.title = 'Type in '+opt.title;
			}
			try {
				languageSelect.add(opt, null);
			} catch (ex) {
				languageSelect.add(opt);
			}
		}
		if (!this.is_local) {
			var opt = languageSelect.options[0];
			var currLang = languageSelect.options[languageSelect.selectedIndex].text;
			if (document.getElementById("checkboxId").checked) {
				opt.text = "Turn " + currLang + " OFF";
				opt.title = "Turn " + currLang + " OFF";
			} else {
				opt.text = "Turn " + currLang + " ON";
				opt.title = "Turn " + currLang + " ON";
			}
		}		
		if (document.getElementById("checkboxId").checked) {
			document.getElementById("languageDropDown").style.background = "#92C166";
			document.getElementById("languageDropDown").style.color = "#000000";
			document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
			document.getElementById("languageDropDown").style.fontWeight = "bold";
		} else {
			document.getElementById("languageDropDown").style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.color = "#8A8384";
			document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
			document.getElementById("languageDropDown").style.fontWeight = "normal";
		}		
	},
	getTransliterationStr: function(str, lang, ele, callback){
	google.language.transliterate([str], "en", lang, function(result) {
	 if (!result.error) {
		 if (result.transliterations &#038;&#038; result.transliterations.length > 0 &#038;&#038;
			result.transliterations[0].transliteratedWords.length > 0) {
			var res = result.transliterations[0].transliteratedWords[0];
			if(callback){
				return callback(ele, res);
			}
			ele.innerHTML = res;
		 }
	   }
	 });
	},
	getLang: function(code){
		for (l in google.language.Languages) {
			if(google.language.Languages[l] == code){
				return l;
			}
		}
	},
	getLanguageForCode: function(code){
		var lang = Transliterate.getLang(code);
		if(lang){
			lang = Transliterate.getCamelizedStr(lang);
		}
		return lang;
	},</p>
<p>	getCamelizedStr: function(str){
		str = str.toLowerCase();
		str = str.substring(0, 1).toUpperCase()+str.substring(1, str.length);
		return str;
	},</p>
<p>	languageChangeHandler: function(defaultev) {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (!selectedLang.match("Turn")) {
			Transliterate.transliterationControl.setLanguagePair(google.elements.transliteration.LanguageCode.ENGLISH, selectedLang);
			Transliterate._controlDiv.title = 'Type in '+selOpt.title + '. Click on the checkbox to turn on/off the language setting.';
			if(!defaultev){
				Transliterate.setCookie('Transliterate_LANG', selectedLang);
			}
			Transliterate.currentLanguage = selectedLang;
		}
	},</p>
<p>	afterChange: function() {
		var dropdown = document.getElementById('languageDropDown');
		var selOpt = dropdown.options[dropdown.selectedIndex];
		var selectedLang = selOpt.value;
		if (selectedLang.match("Turn")) {
			for (var i = 0; i < dropdown.options.length; i++) {
				if (dropdown.options[i].value == Transliterate.currentLanguage) {
					dropdown.selectedIndex = i;
					var lang = dropdown.options[i].text;
				}
			}</p>
<p>			if (document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").checked = false;
				document.getElementById("languageDropDown").style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.color = "#8A8384";
				document.getElementById("languageDropDown").parentNode.style.background = "#CDCDCD";
				document.getElementById("languageDropDown").style.fontWeight = "normal";
				dropdown.options[0].text = "Turn " + lang + " ON";
				dropdown.options[0].title = "Turn " + lang + " ON";
				dropdown.options[0].value = "Turn " + lang + " ON";
			} else {
				document.getElementById("checkboxId").checked = true;
				document.getElementById("languageDropDown").style.background = "#92C166";
				document.getElementById("languageDropDown").style.color = "#000000";
				document.getElementById("languageDropDown").parentNode.style.background = "#92C166";
				document.getElementById("languageDropDown").style.fontWeight = "bold";
				dropdown.options[0].text = "Turn " + lang + " OFF";
				dropdown.options[0].title = "Turn " + lang + " OFF";
				dropdown.options[0].value = "Turn " + lang + " OFF";
			}
			Transliterate.transliterationControl.toggleTransliteration();
			Transliterate.setCookie('Transliterate_ENABLED', Transliterate.transliterationControl.isTransliterationEnabled());</p>
<p>		} else {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			} else {
				if (!this.is_local) {
					var currLang = dropdown.options[dropdown.selectedIndex].text;
					if (document.getElementById("checkboxId").checked) {
						dropdown.options[0].text = "Turn " + currLang + " OFF";
						dropdown.options[0].title = "Turn " + currLang + " OFF";
						dropdown.options[0].value = "Turn " + currLang + " OFF";
					} else {
						dropdown.options[0].text = "Turn " + currLang + " ON";
						dropdown.options[0].title = "Turn " + currLang + " ON";
						dropdown.options[0].value = "Turn " + currLang + " ON";
					}			
				}
			}			
		}		
	},</p>
<p>	toggleLanguage: function(event) {
		var dropdown = document.getElementById('languageDropDown');
		if (event.target.innerHTML == dropdown.options[dropdown.selectedIndex].text) {
			if (!document.getElementById("checkboxId").checked) {
				document.getElementById("checkboxId").click();
			}
		}
	},</p>
<p>	_controlDiv: undefined,
	createComponents: function(){
		// HRef
		var controlHTML = "</p>
<div id='translControl' style='position: absolute; left: -100px; top: -100px;'>"+
							"</p>
<div style='float: left; font-size: 13px'>"+
								"<span class='cbut' style='padding-bottom: 1px; -moz-border-radius: 5px;'>"+
									"
<input type='checkbox' id='checkboxId' onclick='Transliterate.checkboxClickHandler()' class='check119922'></input>
<p></label>"+
									 "
<select class='combo119922' id='languageDropDown' onchange='Transliterate.languageChangeHandler();Transliterate.afterChange();' onclick='Transliterate.toggleLanguage(event);'></select>
<p>"+
								"</span>"+
							"</div>
<p>"+
						  "</p>
<div class='poweredBy' id='poweredby' style='float: right;padding-top: 5px; display: none;'></div>
<p>"+
						 "</p></div>
<p>";
		var dDiv = document.createElement('div');
		dDiv.innerHTML = controlHTML;
		Transliterate._controlDiv = dDiv.firstChild;
		//document.importNode(Transliterate._controlDiv, true);
		document.body.appendChild(Transliterate._controlDiv);
		Transliterate._controlDiv.dimension = {'width': Transliterate._controlDiv.offsetWidth, 'height': Transliterate._controlDiv.offsetHeight};</p>
<p>		if (this.is_local) {
			Transliterate._controlDiv.style.display = 'block';
		} else {
			Transliterate._controlDiv.style.display = 'none';
		}
	},
	parentWin: undefined,
	performAction: function(){
		google.load('language', "1");
		google.load("elements", "1", {
			packages: ["transliteration"],
		});
		google.setOnLoadCallback(Transliterate.init);
	},
	setCookie: function(cookieName, cookieValue, nDays) {
		var today = new Date();
		var expire = new Date();
		if (nDays==null || nDays==0) nDays=30;
		expire.setTime(today.getTime() + 3600000*24*nDays);
		document.cookie = cookieName+"="+escape(cookieValue)
			+ ";expires="+expire.toGMTString();
	},</p>
<p>	getCookie: function(name) {
		var theCookies = document.cookie.split(/[; ]+/);
		for (var i = 0 ; i < theCookies.length; i++) {
			var aName = theCookies[i].substring(0,theCookies[i].indexOf('='));
			if (aName == name) {
				var c = theCookies[i];
				var index = c.lastIndexOf('=');
				c = c.substring(index+1, c.length);
				return c;
			}
		}
	},</p>
<p>	eventAdded: false,
	onLoad: function(loadCallback){
					if(Transliterate.loaded){
						return loadCallback();
					}
					document.write = function(scr){
						var d = document.createElement('div');
						d.innerHTML = scr;
						document.body.appendChild(d.firstChild);
					};
					var callBack = function(){
										Transliterate.addStyles();
										Transliterate.createComponents();
										Transliterate.performAction();
										loadCallback();
								   };
					Transliterate.addScript('http://www.google.com/jsapi', callBack);
					Transliterate.loaded = true;
	},
	addEvents: function(){
		if(Transliterate.eventAdded){
			return;
		}
		Transliterate.eventAdded = true;
		document.addEventListener('mousedown', Transliterate.handleEvent, true);
		document.addEventListener('focus', Transliterate.handleEvent, true);
		/*document.addEventListener('blur', function(ev){
										var tar = ev.target;
										tar.removeEventListener('click', Transliterate.handleEvent, false);
										tar.removeEventListener('focus', Transliterate.handleEvent, false);
										}, false);*/
	},
	autoIdCntr: 1,
	isEditableElement: function(el){
		var tag = el.tagName;
		if(!tag || el.disabled == true || el.readOnly == true){
			return false;
		}
		if(tag.toLowerCase() == 'textarea'){
			return true;
		}
		if(Transliterate.supportTextBoxes &#038;&#038; tag.toLowerCase() == 'input' &#038;&#038; el.type.toLowerCase() == 'text'){
			return true;
		}
		if(tag.toLowerCase() == 'div' &#038;&#038; el.contentEditable.toLowerCase() == 'true'){
			return true;
		}
		if(tag.toLowerCase() == 'iframe'){
			var iframedoc = el.contentWindow.document;
			if(iframedoc.designMode.toLowerCase() == "on" || iframedoc.body.contentEditable.toLowerCase() == "true") {
				return true;
			}		
		}
	},
	handleEvent: function(event){
		try{
			// HRef
			if (this.is_local) {
				var el = document.getElementById('myTextarea');
			} else {
				var el = event.target;
			}
			if(Transliterate.isEditableElement(el)){
				var lazyLoader = function(){
									Transliterate.lazyLoadObjects(el);
								 };
				var initer = function(){
								 Transliterate.checkAndWaitTillInit(lazyLoader);
							 };
				Transliterate.onLoad(initer);
				return;
			}
			if(!Transliterate.isCntrlsDiv(el)){
				Transliterate.showControl(el, true);
			}
		}catch(e){
		}
	},
	waitCounter: 0,
	checkAndWaitTillInit: function(callback){
		try{
			Transliterate.init();
		}catch(e){
			if(Transliterate.waitCounter == 15){	
				return;
			}
			Transliterate.waitCounter++;
			var f = function(){
						Transliterate.checkAndWaitTillInit(callback);
					};
			setTimeout(f, 200);
			return;
		}
		callback();
	},
	isInTheList: function(el){
		for(var i=0; i<Transliterate.enabledElements.length; i++){
			if(Transliterate.enabledElements[i] === el){
				return true;
			}
		}
		return false;
	},
	addToList: function(el){
		Transliterate.enabledElements[Transliterate.enabledElements.length] = el;
	},
	lazyLoadObjects: function(el){
		if(Transliterate.isEditableElement(el)){
				if(!Transliterate.isInTheList(el)){
					var eles = [el];
					Transliterate.addToList(el);
					var options = {
						adjustTextareaStyle: false,
						adjustTextareaDirection: true
					};
					Transliterate.transliterationControl.makeTransliteratable(eles, options);
				}
				Transliterate.languageChangeHandler(true);
				return Transliterate.showControl(el);
		}
	},</p>
<p>	isCntrlsDiv: function(el){
		var p = el;
		while((p = p.parentNode)){
			if(p == Transliterate._controlDiv){
				return true;
			}
		}
		return false;
	},
	findPos: function(obj){
		var curleft = curtop = 0;
		if (obj.offsetParent) {
			do {
				curleft += obj.offsetLeft;
				curtop += obj.offsetTop;
			}while (obj = obj.offsetParent);
			return {'left': curleft, 'top': curtop};
		}
	},
	showControl: function(ele, hide){
		if(hide){
			if (this.is_local) {
				Transliterate._controlDiv.style.display = 'block';
			} else {
				Transliterate._controlDiv.style.display = 'none';
			}
			return;
		}
		var pos = Transliterate.findPos(ele);
		var dim = Transliterate._controlDiv.dimension;
		var etop = pos.top-dim.height;
		var eleft = pos.left+ele.offsetWidth-dim.width;
		var cssTxt = 'position: absolute; opacity: 0.8; left: '+eleft+'px; top: '+etop+'px; display: block; z-index: 20000;';
		Transliterate._controlDiv.style.cssText = cssTxt;
	},
	setPref: function(defaultLang, textBoxSupport){
		Transliterate.defaultLanguage = defaultLang;
		Transliterate.supportTextBoxes =  textBoxSupport;
	},
	// HRef
	checkElement: function() {
		if (window.location.href == "chrome://epic/content/xml/hrefindic.html") {
			// Original logic by google indic for the sidebar. We return because we do not want to set the regular interval timer
			Transliterate.addEvents();
			return;
		} else {
			// For all other pages
			var activeElement = window.document.activeElement;
			if(Transliterate.isEditableElement(activeElement)){
				if ((activeElement.ownerDocument.defaultView.Transliterate) || (Transliterate.is_newtab)){
					Transliterate.eventAdded = true;
					var el = activeElement;
					var lazyLoader = function(){
										Transliterate.lazyLoadObjects(el);
									 };
					var initer = function(){
									 Transliterate.checkAndWaitTillInit(lazyLoader);
								 };
					Transliterate.onLoad(initer);
				} else {
					//alert('no');
				}
			} else {
				if ((Transliterate._controlDiv) &#038;&#038; (!Transliterate.isCntrlsDiv(activeElement))) {
					Transliterate.showControl(activeElement, true);
				}
			}
		}
		setTimeout(Transliterate.checkElement, 1000);
	}
};
Transliterate.checkElement();
document.addEventListener("click", Transliterate.checkElement, true);Transliterate.setPref('HINDI', true);]]&gt;</script></p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/dunne-and-maxwel-debt-management-company-raided-by-the-central-bank/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://debthelpsites.com/wp-content/uploads/2012/02/DandM1.mp3" length="4461184" type="audio/mpeg" />
		</item>
		<item>
		<title>Debt Management in the UK</title>
		<link>http://debthelpsites.com/others/debt-management-in-the-uk/</link>
		<comments>http://debthelpsites.com/others/debt-management-in-the-uk/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 09:29:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://debthelpsites.com/?p=1059</guid>
		<description><![CDATA[Debt Management in the UK
The worst possible thing you can do when you get into debt is ignore it. You know it is not going to go away but you just do not want to deal with it. This is the attitude that will cause you to sink into debt further, and nothing will get [...]]]></description>
			<content:encoded><![CDATA[<p><a title="Government Help For Debt Management" href="http://debtfreeafterall.co.uk/government.html" target="_blank">Debt Management in the UK</a></p>
<p>The worst possible thing you can do when you get into debt is ignore it. You know it is not going to go away but you just do not want to deal with it. This is the attitude that will cause you to sink into debt further, and nothing will get solved. Debt management is something that takes dedication and perseverance. You cannot get discouraged and quit if you want to become debt free.<br />
There are some helpful debt relief companies that will help you in the UK and you can easily apply for them online. They will help you come up with a plan to rid yourself from the constant stress of being in debt. They will counsel you when you need help, and help you determine the severity of the debt you are in.</p>
<p>You will find that there are a few ways to go about debt relief and they are all doable. While some may require sacrifices, it will not be anything you cannot stand for long. If you seek a free method of consolidating your debt then there are lots of websites that offer you free advice and helpful tips for saving money.<br />
Debt management can stop all the annoying creditors that ring your phone day and night. They can help keep them at bay, and come up with a plan to stop those calls for good.</p>
<p>Being in debt can be very stressful, and can mess up your credit score which will hinder you if you need to buy a car or a home. You should really try hard to pay off your debt before you take on anymore, this can be done with the help of a <a title="Government Help For Debt Management" href="http://debtfreeafterall.co.uk/government.html" target="_blank">debt management company</a> who will arrange for lower payments and in many cases have the interest frozen, depending on a persons circumstances and the level of debt an IVA may be the route to take and with and <a title="IVA can reduce overall debts by up to 80%" href="http://debtfreeafterall.co.uk/government.html" target="_blank">IVA</a> it is possible to wipe out up to 80% of the total debts</p>
<p>Getting your credit back to a good score is top priority when you are dealing with debt. You do not have to struggle with debt on your own. There are people out there to help you.</p>
]]></content:encoded>
			<wfw:commentRss>http://debthelpsites.com/others/debt-management-in-the-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

