
var StateInfoObj = {"alabama" : {"title" : "alabama", "posttext" : ""}, "alaska" : {"title" : "alaska", "posttext" : ""}, "arizona" : {"title" : "arizona", "posttext" : ""}, "arkansas" : {"title" : "arkansas", "posttext" : ""}, "california" : {"title" : "california", "posttext" : "Hi, <br />  <br />  Californians who're applying for a driver's license are actually conveying an '<span style='font-weight: bold'>implied consent</span>' to get them medically tested under circumstances that they face DUI conviction. <br />  <br />  Your driving privileges would be called-off if you don't undergo this test with the <span style='font-weight: bold'>DMV</span>. But if such a conviction comes your way later on you're bound to face a jail-term, a severe penalty, meet more stringent <span style='font-weight: bold'>DUI</span> criteria etc.<br />  <br />  On the other hand if you undergo this test &amp; show up 0.08%  blood alcohol concentration or more then also your license would be terminated. Under such circumstances you might appeal for a DMV hearing to remove this suspension. This would hold good for <span style='font-weight: bold'>30</span> days but it would be re-imposed in case you lose grounds at the court of law. Wish all Californians would follow the legal rules religiously!<br />  Roddick"}, "colorado" : {"title" : "colorado", "posttext" : ""}, "connecticut" : {"title" : "connecticut", "posttext" : "Hi all...I'd love to share with you all some important information associated with auto insurance in Connecticut.<br />  <br />  In <span style='font-weight: bold'>Connecticut</span> its good to get your driving record checked with your <span style='font-weight: bold'>DMV</span> each year. This becomes all the more important if your driving license bears points which have adverse effect on the cost of your auto insurance. It is advisable that you get such points cleaned out of your license as soon as you can. In order to have a copy of your driving record-<br />  <br />  # Request for your records form over he internet. The form would come to you through the mail.<br />  <br />  # You'd need to pay <span style='font-weight: bold'>$20</span> through a check or request to convey a money order.<br />  <br />  # Attach copies of your proper-id forms.<br />  <br />  # Convey your pack to the following address-<br />  <span style='font-style: italic'>DMV, CR Unit, 60, State st. Wethersfield, CT 06161</span>. I'm sure by doing this you'd avail your driving license copy by the nest couple of weeks.<br />  I wish this information be of any help to all of you.<br />  Regards, Roddick"}, "delaware" : {"title" : "delaware", "posttext" : ""}, "washington,-dc" : {"title" : "washington,-dc", "posttext" : ""}, "florida" : {"title" : "florida", "posttext" : "Hi ..let me share something regarding the strict financial responsibility laws in Florida;<br />  This law demands that you have maintained the minimum responsibility towards others while you're driving. Circumstances that this law counts could be like-<br />  * You have crashed with you car &amp; inflicted injuries to someone<br />  *Your license got suspended for too many reasons<br />  *Your license gets suspended or cancelled due to drunken driving<br />  *You have become a daily traffic violater<br />  <br />  So, please remember to avoid hazards for such events.<br />  Roddick"}, "georgia" : {"title" : "georgia", "posttext" : "Hi all,<br />  <br />  I'd like to present you with a list of exemptions to which your vehicle has to qualify &amp; you need to go for an affidavit in order to be free of cancellation fees &amp; other fines.<br />  Such exemptions could be described as follows-<br />  <br />  # The title or ownership of the vehicle was passed on to someone else<br />  <br />  # The ownership was transferred beyond the state as the owner shifted to another state.<br />  <br />  # The lease of the vehicle had lapsed<br />  <br />  # Vehicle was damaged<br />  <br />  # The vehicle was not used since it either got stolen or was unserviceable<br />  <br />  # The vehicle could be garaged &amp; used occasionally<br />  <br />  I wish everybody will keep these facts into mind when they are out to sign a car insurance coverage in Georgia!<br />  Roddick"}, "hawaii" : {"title" : "hawaii", "posttext" : "We have collected required information on auto insurance for state of Hawaii.<br />  <br />  <span style='font-weight: bold'><a href='http://www.ampminsure.org/required-coverage.html'  class='postlink'> Minimum Liability</a> Coverage Required:</span> <br />  In Hawaii one has to buy a State minimum liability coverage ($20,000/$40,000/$10,000). In simpler words one has to buy,<br />  <ul><br />  <li> at least $20,000 worth liability coverage for bodily injury to 1 person. <br />  <li> at least $40,000 worth liability coverage for all bodily injuries. <br />  <li> at least $10,000 worth liability coverage for property damage.<br />  </ul><br />  <br />  <span style='font-weight: bold'>Proof of Insurance is required:</span><br />  <ul><br />  <li> Not at the time of registration.<br />  <li> At the time of accidents.<br />  <li> At all times while in a vehicle.<br />  </ul><br />  <br />  <span style='font-weight: bold'>Additional Information:</span><br />  <ul><br />  <li> Is it a <a href='http://www.ampminsure.org/auto-guide.html#No-Fault_State'  class='postlink'>No-Fault State</a>? – Yes<br />  <li> Uninsured Motorist Coverage Required – No.<br />  <li>PIP required.<br />  <li> $1000 fine for the first offense. </ul><br />  <br />  <br />  <span style='font-weight: bold'> Hawaii Department of Insurance:</span><br />  <ul><br />  <li> <span style='font-weight: bold'>Commissioner Mailing Address</span><br />  Hawaii Department of Insurance<br />  State Insurance Commissioners Office<br />  Department of Commerce and Consumer Affairs<br />  250 S. King Street, 5th Floor<br />  Honolulu, HI 96813<br />  Main Phone: 1-808-586-2790<br />  Fax: 1-808-586-2806<br />   </ul><br />  <br />  <span style='font-weight: bold'>Other help lines from common dept: </span><br />  National Insurance Consumer Helpline (<span style='font-weight: bold'>NICH</span>): 1-800-942-4242<br />  <br />  <span style='font-weight: bold'>Some important articles for help:</span><br />  <ol type='1'><br />  <li>  <a href='http://www.ampminsure.org/auto-guide.html'  class='postlink'>Auto Insurance FAQ</a><br />  <li> <a href='http://www.ampminsure.org/avoid-theft.html'  class='postlink'>Car Theft and the cost of Insurance</a><br />  <br />  <br />  </ol>"}, "idaho" : {"title" : "idaho", "posttext" : ""}, "illinois" : {"title" : "illinois", "posttext" : ""}, "indiana" : {"title" : "indiana", "posttext" : ""}, "iowa" : {"title" : "iowa", "posttext" : ""}, "kansas" : {"title" : "kansas", "posttext" : ""}, "kentucky" : {"title" : "kentucky", "posttext" : ""}, "louisiana" : {"title" : "louisiana", "posttext" : ""}, "maine" : {"title" : "maine", "posttext" : ""}, "maryland" : {"title" : "maryland", "posttext" : ""}, "massachusetts" : {"title" : "massachusetts", "posttext" : ""}, "michigan" : {"title" : "michigan", "posttext" : ""}, "minnesota" : {"title" : "minnesota", "posttext" : ""}, "mississippi" : {"title" : "mississippi", "posttext" : ""}, "missouri" : {"title" : "missouri", "posttext" : ""}, "montana" : {"title" : "montana", "posttext" : ""}, "nebraska" : {"title" : "nebraska", "posttext" : ""}, "nevada" : {"title" : "nevada", "posttext" : ""}, "new-hampshire" : {"title" : "new-hampshire", "posttext" : ""}, "new-jersey" : {"title" : "new-jersey", "posttext" : ""}, "new-mexico" : {"title" : "new-mexico", "posttext" : ""}, "new-york" : {"title" : "new-york", "posttext" : "Auto insurance necessities are a bit different in NY. It needs you to register your insurance with an insurer who is licensed under the NY state insurance dept. Insurance from outside would be a big no-no. The carrier would again need to intimidate your DMV regarding your insurance both when the policy commences as well as when it lapses.Don't forget that when you buy your car! Roddick"}, "north-carolina" : {"title" : "north-carolina", "posttext" : "Hi,<br />  <br />  Today I'd like to share something about NC coverage lapses.<br />  <br />  <br />  Insurance coverage lapses could have serious consequences in NC. Service providers are required to notify it to the DMV whenever your coverage is cancelled. All you need to do is to obtain form FS 5-7 from your DMV &amp; communicate with them by 10 days. In case it has lapsed in between you'd need to pay $50 by 10 days from when the notice is served.<br />  In case it was continuous then you don't need to pay $50 but return the form to DMV fully filled by 10 days. Remember that when you face such circumstances!<br />  Roddick"}, "north-dakota" : {"title" : "north-dakota", "posttext" : ""}, "ohio" : {"title" : "ohio", "posttext" : ""}, "oklahoma" : {"title" : "oklahoma", "posttext" : ""}, "oregon" : {"title" : "oregon", "posttext" : "Hi, I'm here to present some important scenarios that might snatch your driving privileges in the state of <span style='font-weight: bold'>Oregon</span> in case you are irresponsible. These consequences would be seriously considered while an insurance carrier would consider covering you for any car accident.<br />  <br />  You'd certainly miss your driving privileges for around <span style='font-weight: bold'>5</span> years in the event that you get convicted for at least <span style='font-weight: bold'>3</span> of the following-<br />  <br />  * irresponsible homicide<br />  * DUI<br />  * Continuation of driving while under suspension of your driving privileges<br />  * Irresponsible behavior following a collision<br />  * Avoiding legal proceedings following any auto accident involving you.<br />  * Obtaining tickets around <span style='font-weight: bold'>20</span> within five-year term.<br />  <br />  Please come up with more if you have!<br />  Regards, Roddick"}, "pennsylvania" : {"title" : "pennsylvania", "posttext" : ""}, "rhode-island" : {"title" : "rhode-island", "posttext" : ""}, "south-carolina" : {"title" : "south-carolina", "posttext" : ""}, "south-dakota" : {"title" : "south-dakota", "posttext" : ""}, "tennessee" : {"title" : "tennessee", "posttext" : ""}, "texas" : {"title" : "texas", "posttext" : ""}, "utah" : {"title" : "utah", "posttext" : ""}, "vermont" : {"title" : "vermont", "posttext" : ""}, "virginia" : {"title" : "virginia", "posttext" : ""}, "washington" : {"title" : "washington", "posttext" : "Hi..I have some important information to share with you all regarding the auto license suspension in Washington. I feel it is quite important for your records while you're applying for auto insurance.<br />  There are <span style='font-weight: bold'>2</span> important situations wherein such a step becomes inevitable-<br />  i)The first one would be when you are involved in any form of auto insurance hazard &amp; are trying to avoid legal proceedings against you.<br />  ii)The other one would be when you're involved in a driving hazard under the influence of alocohol or drugs. Either you'd need to pay a ticket or else the <span style='font-weight: bold'>DOL</span> is gonna cancel your driving license for which you're gonna receive a letter. This letter would also bear instructions as to how you're gonna get your license reinstated. Hope this piece of information would be of some help to all of you!<br />  Thanks, Roddick"}, "west-virginia" : {"title" : "west-virginia", "posttext" : ""}, "wisconsin" : {"title" : "wisconsin", "posttext" : ""}, "wyoming" : {"title" : "wyoming", "posttext" : ""}};

function ShowFullDetailOfTopic(USAState)
{
        FnWriteCookie('USAState', 0, 24);
        var TopicText = StateInfoObj[USAState]['posts'][0]['posttext'];
        var TopicTitle = StateInfoObj[USAState]['title'];
        var DivObj = document.getElementById('ShowTopicInfo');

        var TopicDetailHTML = '';
        var tblclass = '';

        TopicDetailHTML += '<table width="100%" cellspacing="0" class="maintable" align="center">';
        TopicDetailHTML += '<tr><td class="forumtopichead" valign="center" nowrap>'+TopicTitle+'</td></tr>';

        TopicDetailHTML += '<tr><td colspan="3" class="forumtopicdescription">'+StateInfoObj[topicID]['posts'][0]['posttext']+'</td></tr>';

        TopicDetailHTML += '</table>';
        DivObj.innerHTML = TopicDetailHTML;
        winList['MiniForumWin'].open();
}
function FnWriteCookie(name, value, hours)
{
        var expire = "";
        if(hours != null)
        {
                expire = new Date((new Date()).getTime() + hours * 3600000);
                expire = "; expires=" + expire.toGMTString();
        }
        document.cookie = name + "=" + escape(value) + expire;
}

function FnShowInitialTableForMiniForum()
{
        var HostName = document.location.href;
        var InitialTable = '';
        var Posted = FnReadCookie('PostVal');

        var WindowHTMLCode = '<div id="MiniForumWin" class="window" style="left: 219px;  z-index: 6; width: 500px; visibility: hidden;">';
        WindowHTMLCode += '<div style="" class="titleBar">';
        WindowHTMLCode += '<span style="" class="titleBarText">US State law</span>';
        WindowHTMLCode += '<img class="titleBarButtons" alt="" src="www.ampminsure.org/styles/apin/img/nav-button.gif" usemap="#MiniForumMap">';
        WindowHTMLCode += '<map id="MiniForumMap" name="MiniForumMap">';
        WindowHTMLCode += '<area shape="rect" coords="0,0,15,13" href="" alt="" title="Minimize" onclick="this.parentWindow.minimize();return false;">';
        WindowHTMLCode += '<area shape="rect" coords="16,0,31,13" href="" alt="" title="Restore" onclick="this.parentWindow.restore();return false;">';
        WindowHTMLCode += '<area shape="rect" coords="34,0,49,13" href="" alt="" title="Close" onclick="this.parentWindow.close();return false;">';
        WindowHTMLCode += '</map></div>';
        WindowHTMLCode += '<div id="ShowTopicInfo" class="clientArea" style="height: 300px;"><br /></div>';
        WindowHTMLCode += '</div>';


        if(document.getElementById('MiniForumsHomeLink')=='http://www.ampminsure.org/')
        {
                document.getElementById('MiniForumsHomeLink').className = 'syndicate';
                var width = 500;
                var height = 400;
                var left = 200;
                var top = 100;

                InitialTable += '<table border="0" class="tabmaintable">';
                InitialTable += '<tr><td valign="top" nowrap>';
                InitialTable += '<div id="MiniJsMainContainer">';
                InitialTable += 'Subikar';
                InitialTable += '</div>';
                InitialTable += '</td></tr></table>';
                InitialTable += '</td></tr></table>'+WindowHTMLCode;

                document.getElementById('MiniForumsSection').innerHTML = InitialTable;
       }
        else
        {
                document.getElementById('ForumsSectionMain').innerHTML = 'To enable this Mini Forums, please paste the full code as described at <a href="http://www.ampminsure.org/syndicate/mini-forums.html">AmpmInsure</a>';
        }
}
function FnInitialiseCSSAndShowInitialTableForMiniForum()
{
    FnShowInitialTableForMiniForum();

}
FnInitialiseCSSAndShowInitialTableForMiniForum()/*----------------------------------------------------------------------------\
|                                   IE Emu                                    |
|-----------------------------------------------------------------------------|
|                         Created by Erik Arvidsson                           |
|                  (http://webfx.eae.net/contact.html#erik)                   |
|                      For WebFX (http://webfx.eae.net/)                      |
|-----------------------------------------------------------------------------|
| A emulation of Internet Explorer DHTML Object Model for Mozilla             |
|-----------------------------------------------------------------------------|
|                  Copyright (c) 1999 - 2004 Erik Arvidsson                   |
|-----------------------------------------------------------------------------|
| This software is provided "as is", without warranty of any kind, express or |
| implied, including  but not limited  to the warranties of  merchantability, |
| fitness for a particular purpose and noninfringement. In no event shall the |
| authors or  copyright  holders be  liable for any claim,  damages or  other |
| liability, whether  in an  action of  contract, tort  or otherwise, arising |
| from,  out of  or in  connection with  the software or  the  use  or  other |
| dealings in the software.                                                   |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| This  software is  available under the  three different licenses  mentioned |
| below.  To use this software you must chose, and qualify, for one of those. |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| The WebFX Non-Commercial License          http://webfx.eae.net/license.html |
| Permits  anyone the right to use the  software in a  non-commercial context |
| free of charge.                                                             |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| The WebFX Commercial license           http://webfx.eae.net/commercial.html |
| Permits the  license holder the right to use  the software in a  commercial |
| context. Such license must be specifically obtained, however it's valid for |
| any number of  implementations of the licensed software.                    |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| GPL - The GNU General Public License    http://www.gnu.org/licenses/gpl.txt |
| Permits anyone the right to use and modify the software without limitations |
| as long as proper  credits are given  and the original  and modified source |
| code are included. Requires  that the final product, software derivate from |
| the original  source or any  software  utilizing a GPL  component, such  as |
| this, is also licensed under the GPL license.                               |
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
| MPL - Mozilla Public License                    http://www.mozilla.org/MPL/ |
|                                                                             |
| The contents of this file are subject to the Mozilla Public License Version |
| 1.1 (the "License"); you may not use this file except in compliance with    |
| the License. You may obtain a copy of the License at                        |
| http://www.mozilla.org/MPL/                                                 |
|                                                                             |
| Software distributed under the License is distributed on an "AS IS" basis,  |
| WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License    |
| for the specific language governing rights and limitations under the        |
| License.                                                                    |
|                                                                             |
| The Original Code is IE Emu.                                                |
|                                                                             |
| The Initial Developer of the Original Code is Erik Arvidsson.               |
| Portions created by the Initial Developer are Copyright (C) 1999-2004       |
| the Initial Developer. All Rights Reserved.                                 |
|                                                                             |
| Contributor(s):                                                             |
|                                                                             |
|-----------------------------------------------------------------------------|
| 2002-??-?? | First version                                                  |
| 2004-04-13 | Impreved currentStyle emulation. Updated to not that the code  |
|            |is available under GPL, MPL or WebFX Non-Commercial License     |
|-----------------------------------------------------------------------------|
| Created 2002-??-?? | All changes are in the log above. | Updated 2004-04-13 |
\----------------------------------------------------------------------------*/


var ie = /MSIE/.test(navigator.userAgent);
var moz = !ie && navigator.product == "Gecko";

/*
if (moz) {	// set up ie environment for Moz

	extendEventObject();
	//emulateAttachEvent();
	//emulateFromToElement();
	emulateEventHandlers(["click", "dblclick", "mouseover", "mouseout",
							"mousedown", "mouseup", "mousemove",
							"keydown", "keypress", "keyup"]);
	emulateDocumentAll();
	emulateElement()
	emulateCurrentStyle();

	// It is better to use a constant for event.button
	Event.LEFT = 0;
	Event.MIDDLE = 1;
	Event.RIGHT = 2;
}
else {
	Event = {};
	// IE is returning wrong button number
	Event.LEFT = 1;
	Event.MIDDLE = 4;
	Event.RIGHT = 2;
}
*/



/*
 * Extends the event object with srcElement, cancelBubble, returnValue,
 * fromElement and toElement
 */
function extendEventObject() {
	Event.prototype.__defineSetter__("returnValue", function (b) {
		if (!b) this.preventDefault();
		return b;
	});

	Event.prototype.__defineSetter__("cancelBubble", function (b) {
		if (b) this.stopPropagation();
		return b;
	});

	Event.prototype.__defineGetter__("srcElement", function () {
		var node = this.target;
		while (node.nodeType != 1) node = node.parentNode;
		return node;
	});

	Event.prototype.__defineGetter__("fromElement", function () {
		var node;
		if (this.type == "mouseover")
			node = this.relatedTarget;
		else if (this.type == "mouseout")
			node = this.target;
		if (!node) return;
		while (node.nodeType != 1) node = node.parentNode;
		return node;
	});

	Event.prototype.__defineGetter__("toElement", function () {
		var node;
		if (this.type == "mouseout")
			node = this.relatedTarget;
		else if (this.type == "mouseover")
			node = this.target;
		if (!node) return;
		while (node.nodeType != 1) node = node.parentNode;
		return node;
	});

	Event.prototype.__defineGetter__("offsetX", function () {
		return this.layerX;
	});
	Event.prototype.__defineGetter__("offsetY", function () {
		return this.layerY;
	});
}

/*
 * Emulates element.attachEvent as well as detachEvent
 */
function emulateAttachEvent() {
	HTMLDocument.prototype.attachEvent =
	HTMLElement.prototype.attachEvent = function (sType, fHandler) {
		var shortTypeName = sType.replace(/on/, "");
		fHandler._ieEmuEventHandler = function (e) {
			window.event = e;
			return fHandler();
		};
		this.addEventListener(shortTypeName, fHandler._ieEmuEventHandler, false);
	};

	HTMLDocument.prototype.detachEvent =
	HTMLElement.prototype.detachEvent = function (sType, fHandler) {
		var shortTypeName = sType.replace(/on/, "");
		if (typeof fHandler._ieEmuEventHandler == "function")
			this.removeEventListener(shortTypeName, fHandler._ieEmuEventHandler, false);
		else
			this.removeEventListener(shortTypeName, fHandler, true);
	};
}

/*
 * This function binds the event object passed along in an
 * event to window.event
 */
function emulateEventHandlers(eventNames) {
	for (var i = 0; i < eventNames.length; i++) {
		document.addEventListener(eventNames[i], function (e) {
			window.event = e;
		}, true);	// using capture
	}
}

/*
 * Simple emulation of document.all
 * this one is far from complete. Be cautious
 */

function emulateAllModel() {
	var allGetter = function () {
		var a = this.getElementsByTagName("*");
		var node = this;
		a.tags = function (sTagName) {
			return node.getElementsByTagName(sTagName);
		};
		return a;
	};
	HTMLDocument.prototype.__defineGetter__("all", allGetter);
	HTMLElement.prototype.__defineGetter__("all", allGetter);
}

function extendElementModel() {
	HTMLElement.prototype.__defineGetter__("parentElement", function () {
		if (this.parentNode == this.ownerDocument) return null;
		return this.parentNode;
	});

	HTMLElement.prototype.__defineGetter__("children", function () {
		var tmp = [];
		var j = 0;
		var n;
		for (var i = 0; i < this.childNodes.length; i++) {
			n = this.childNodes[i];
			if (n.nodeType == 1) {
				tmp[j++] = n;
				if (n.name) {	// named children
					if (!tmp[n.name])
						tmp[n.name] = [];
					tmp[n.name][tmp[n.name].length] = n;
				}
				if (n.id)		// child with id
					tmp[n.id] = n
			}
		}
		return tmp;
	});

	HTMLElement.prototype.contains = function (oEl) {
		if (oEl == this) return true;
		if (oEl == null) return false;
		return this.contains(oEl.parentNode);
	};
}

function emulateCurrentStyle() {
	HTMLElement.prototype.__defineGetter__("currentStyle", function () {
		return this.ownerDocument.defaultView.getComputedStyle(this, null);
		/*
		var cs = {};
		var el = this;
		for (var i = 0; i < properties.length; i++) {
			cs.__defineGetter__(properties[i], encapsulateObjects(el, properties[i]));
		}
		return cs;
		*/
	});
}

function emulateHTMLModel() {

	// This function is used to generate a html string for the text properties/methods
	// It replaces '\n' with "<BR"> as well as fixes consecutive white spaces
	// It also repalaces some special characters
	function convertTextToHTML(s) {
		s = s.replace(/\&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\n/g, "<BR>");
		while (/\s\s/.test(s))
			s = s.replace(/\s\s/, "&nbsp; ");
		return s.replace(/\s/g, " ");
	}

	HTMLElement.prototype.insertAdjacentHTML = function (sWhere, sHTML) {
		var df;	// : DocumentFragment
		var r = this.ownerDocument.createRange();

		switch (String(sWhere).toLowerCase()) {
			case "beforebegin":
				r.setStartBefore(this);
				df = r.createContextualFragment(sHTML);
				this.parentNode.insertBefore(df, this);
				break;

			case "afterbegin":
				r.selectNodeContents(this);
				r.collapse(true);
				df = r.createContextualFragment(sHTML);
				this.insertBefore(df, this.firstChild);
				break;

			case "beforeend":
				r.selectNodeContents(this);
				r.collapse(false);
				df = r.createContextualFragment(sHTML);
				this.appendChild(df);
				break;

			case "afterend":
				r.setStartAfter(this);
				df = r.createContextualFragment(sHTML);
				this.parentNode.insertBefore(df, this.nextSibling);
				break;
		}
	};

	HTMLElement.prototype.__defineSetter__("outerHTML", function (sHTML) {
	   var r = this.ownerDocument.createRange();
	   r.setStartBefore(this);
	   var df = r.createContextualFragment(sHTML);
	   this.parentNode.replaceChild(df, this);

	   return sHTML;
	});

	HTMLElement.prototype.__defineGetter__("canHaveChildren", function () {
		switch (this.tagName) {
			case "AREA":
			case "BASE":
			case "BASEFONT":
			case "COL":
			case "FRAME":
			case "HR":
			case "IMG":
			case "BR":
			case "INPUT":
			case "ISINDEX":
			case "LINK":
			case "META":
			case "PARAM":
				return false;
		}
		return true;
	});

	HTMLElement.prototype.__defineGetter__("outerHTML", function () {
		var attr, attrs = this.attributes;
		var str = "<" + this.tagName;
		for (var i = 0; i < attrs.length; i++) {
			attr = attrs[i];
			if (attr.specified)
				str += " " + attr.name + '="' + attr.value + '"';
		}
		if (!this.canHaveChildren)
			return str + ">";

		return str + ">" + this.innerHTML + "</" + this.tagName + ">";
	});


	HTMLElement.prototype.__defineSetter__("innerText", function (sText) {
		this.innerHTML = convertTextToHTML(sText);
		return sText;
	});

	var tmpGet;
	HTMLElement.prototype.__defineGetter__("innerText", tmpGet = function () {
		var r = this.ownerDocument.createRange();
		r.selectNodeContents(this);
		return r.toString();
	});

	HTMLElement.prototype.__defineSetter__("outerText", function (sText) {
		this.outerHTML = convertTextToHTML(sText);
		return sText;
	});
	HTMLElement.prototype.__defineGetter__("outerText", tmpGet);

	HTMLElement.prototype.insertAdjacentText = function (sWhere, sText) {
		this.insertAdjacentHTML(sWhere, convertTextToHTML(sText));
	};
}
if(document.getElementById('StatesWiseInsuranceInfo') == "http://www.ampminsure.org/")
{
          if (moz)
             {
                 extendElementModel();
                 extendEventObject();
                 emulateEventHandlers(["mousemove", "mousedown", "mouseup"]);
             }

      Text ='<table width="100%" border="0">';
      Text +='<tr><td valign="top" width="575" align="center">';
      Text +='<h3>State-wise Information on auto Insurance</h3>(Click on state to get information)';
      Text +='</td></tr>'
      Text +='<tr><td valign="top" ><div><img src="http://www.ampminsure.org/styles/apin/img/map_usa.gif" width="567" height="326" border="0" usemap="#Map"/></div></td></tr>';
      Text +='<tr><td width="*" valign="top" rowspan="2">';
      Text +='<map name=\'Map\' id=\'map\'><area shape=\'poly\' coords=\'358,159,359,197,366,196,365,192,364,190,368,189,373,189,377,190,385,190,388,190,384,186,385,183,386,178,382,173,381,167,376,159,374,156,363,156\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'alabama\');\'><area shape=\'poly\' coords=\'68,43,68,34,69,26,60,23,52,26,40,26,37,29,43,34,44,40,36,38,28,44,43,45,36,50,31,51,34,54,36,56,38,60,41,61,44,64,46,64,45,69,38,70,33,73,37,75,43,76,47,71,50,66,51,60,57,53,62,55,64,58,69,59,76,60,81,65,83,69,88,74,91,74,91,73,86,63,84,59,77,56,74,53,69,45,67,40,68,35\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'alaska\');\'><area shape=\'poly\' coords=\'164,144,162,151,160,156,161,161,162,165,158,173,161,179,170,191,179,194,186,196,192,197,198,196,199,182,200,168,198,158,199,145,180,143,169,144\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'arizona\');\'><area shape=\'poly\' coords=\'309,147,309,151,311,156,311,164,310,170,310,175,316,176,317,180,327,179,336,179,333,174,336,167,337,161,342,154,342,149,338,147,327,145,315,144\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'arkansas\');\'><area shape=\'poly\' coords=\'102,83,106,84,111,85,116,86,120,87,125,88,126,94,125,101,126,109,126,115,129,120,131,127,136,133,140,136,146,140,150,147,155,151,158,158,158,162,158,167,157,173,154,175,147,176,142,174,137,173,133,168,127,164,122,159,118,156,114,154,111,145,107,137,111,130,107,126,109,119,108,113,103,115,99,109,99,101,99,97,99,93,100,88\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'california\');\'><area shape=\'poly\' coords=\'204,107,202,143,254,144,253,106,208,106\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'colorado\');\'><area shape=\'poly\' coords=\'444,66,444,72,446,74,448,73,453,69,455,66,451,65,445,66,474,80,467,85,471,97,483,99,492,95,496,88,490,79,479,77\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'connecticut\');\'><area shape=\'poly\' coords=\'431,102,425,100,415,98,417,94,426,90,432,89,435,88,434,93,431,98,469,109,466,116,466,121,470,125,476,129,484,128,488,124,491,119,487,110,483,105,478,105\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'delaware\');\'><area shape=\'poly\' coords=\'405,98,408,98,414,99,420,101,429,105,432,105,428,100,425,98,420,98,414,97,445,152,438,158,435,166,444,174,456,174,461,166,458,155,451,153\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'washington,-dc\');\'><area shape=\'poly\' coords=\'366,191,371,196,376,194,381,197,390,199,393,196,399,196,399,200,405,210,410,218,417,229,424,236,429,226,427,219,428,214,421,204,413,196,412,188,402,191,394,190,379,191\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'florida\');\'><area shape=\'poly\' coords=\'378,154,380,160,384,168,386,174,389,182,386,186,392,189,403,189,407,187,412,183,410,176,411,171,408,166,406,161,401,157,397,155,394,154,389,152,385,152,381,152\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'georgia\');\'><area shape=\'poly\' coords=\'75,143,79,143,81,149,84,155,87,158,87,163,74,166,70,167,67,157,70,154,73,152\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'hawaii\');\'><area shape=\'poly\' coords=\'159,23,162,24,165,23,166,30,169,36,172,43,172,48,173,53,177,61,180,68,185,72,189,69,190,80,187,88,176,89,167,88,158,88,153,87,153,80,153,70,152,65,152,62,158,55,161,48,162,37,159,31,159,23,160,22\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'idaho\');\'><area shape=\'poly\' coords=\'328,84,333,89,335,91,336,93,334,97,331,101,330,108,331,114,337,117,340,121,342,127,346,133,349,134,352,134,355,129,354,121,355,114,354,109,353,101,353,96,352,93,350,88,347,84,344,83,337,82,334,82\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'illinois\');\'><area shape=\'poly\' coords=\'354,95,354,106,358,114,357,121,358,125,367,124,373,117,372,108,372,99,371,91,364,90,359,93\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'indiana\');\'><area shape=\'poly\' coords=\'290,78,287,82,291,88,295,93,297,105,313,106,326,107,330,107,330,102,333,98,337,95,328,89,326,82,326,77,299,78\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'iowa\');\'><area shape=\'poly\' coords=\'254,112,255,142,306,144,307,123,306,117,298,113,260,113\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'kansas\');\'><area shape=\'poly\' coords=\'355,127,362,126,365,126,369,125,369,122,373,117,375,112,379,112,384,114,386,119,390,124,396,130,390,135,383,135,378,135,370,139,364,139,361,140,355,140,352,141,347,141,350,136,353,133,353,130\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'kentucky\');\'><area shape=\'poly\' coords=\'314,180,315,184,315,187,320,191,323,199,320,204,317,207,320,211,327,210,330,210,336,210,344,212,348,212,347,206,346,203,347,198,345,195,338,195,337,191,338,186,338,181,335,179,321,179,318,179\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'louisiana\');\'><area shape=\'poly\' coords=\'457,14,457,20,456,23,455,28,456,32,458,37,461,41,465,39,470,33,471,29,470,22,465,16,464,13,461,12\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'maine\');\'><area shape=\'poly\' coords=\'436,102,437,109,439,111,443,109,443,106,441,105,438,101,455,124,449,130,451,137,457,144,466,142,471,140,470,131,464,125,460,125\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'maryland\');\'><area shape=\'poly\' coords=\'444,58,444,65,452,64,461,63,463,67,470,62,460,57,451,57,486,35,479,43,486,51,498,54,506,48,503,36,495,33\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'massachusetts\');\'><area shape=\'poly\' coords=\'364,53,362,55,361,59,361,62,359,67,360,73,362,82,360,87,362,89,367,88,371,86,376,84,378,78,380,71,379,65,375,65,372,66,371,61,371,58,370,55\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'michigan\');\'><area shape=\'poly\' coords=\'286,31,285,40,288,47,288,53,288,61,289,70,288,76,294,78,301,78,310,78,315,78,319,77,322,76,320,73,317,68,316,65,315,59,315,55,317,50,317,46,319,44,326,38,317,31,306,32,294,31,291,32,291,36\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'minnesota\');\'><area shape=\'poly\' coords=\'341,154,338,162,334,173,338,183,338,191,342,195,349,196,355,197,358,196,359,184,357,168,358,158,346,155\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'mississippi\');\'><area shape=\'poly\' coords=\'328,107,321,107,310,107,303,105,296,105,301,113,306,116,310,120,310,126,309,135,308,140,308,145,314,145,321,145,329,144,334,144,340,145,344,148,344,144,345,140,344,136,340,128,337,122,336,117,330,116,329,109,329,106\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'missouri\');\'><area shape=\'poly\' coords=\'168,22,168,29,172,37,175,46,176,53,179,62,184,68,189,68,196,66,206,67,215,67,225,69,231,69,237,69,239,32,172,21\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'montana\');\'><area shape=\'poly\' coords=\'238,88,238,102,251,104,255,112,299,113,295,104,293,95,288,89,276,85,244,86\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'nebraska\');\'><area shape=\'poly\' coords=\'127,89,127,96,126,102,125,109,125,115,128,121,133,128,139,135,145,140,149,146,154,149,158,155,161,148,161,139,163,119,162,106,163,95,159,92,146,90,135,88,129,88\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'nevada\');\'><area shape=\'poly\' coords=\'452,32,448,39,449,43,450,52,449,54,457,55,460,52,459,45,457,40,454,38,424,16,422,23,424,30,431,34,441,31,445,27,447,19,441,14,434,12\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'new-hampshire\');\'><area shape=\'poly\' coords=\'441,79,441,82,446,84,445,79,502,99,496,104,492,110,497,117,509,120,516,114,518,108,513,100,507,99\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'new-jersey\');\'><area shape=\'poly\' coords=\'202,144,199,195,205,192,217,193,218,190,247,187,245,145,207,143\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'new-mexico\');\'><area shape=\'poly\' coords=\'428,42,424,46,423,50,424,54,424,56,424,60,416,61,413,63,407,66,409,72,405,73,399,77,394,84,402,81,407,78,416,76,427,74,438,75,441,80,447,81,446,76,443,71,443,65,443,56,444,48,439,47,438,45,440,42,435,39,427,47,424,50\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'new-york\');\'><area shape=\'poly\' coords=\'400,135,397,138,392,142,388,146,384,149,389,153,396,149,403,145,415,145,423,147,426,149,428,151,433,147,436,143,439,138,441,133,441,127,438,124,436,122,405,132\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'north-carolina\');\'><area shape=\'poly\' coords=\'240,30,239,57,286,57,285,42,283,30,245,31\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'north-dakota\');\'><area shape=\'poly\' coords=\'375,87,373,92,371,96,373,103,374,107,379,114,382,113,389,108,394,102,398,94,398,92,398,88,397,86,393,86,389,89,379,89\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'ohio\');\'><area shape=\'poly\' coords=\'247,145,247,151,255,151,264,151,268,151,269,160,269,164,276,171,283,172,286,174,289,174,297,172,307,172,310,173,309,164,310,155,307,152,305,148,304,145,292,143,279,144,268,144,259,144,252,144\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'oklahoma\');\'><area shape=\'poly\' coords=\'117,49,116,44,109,44,107,50,104,59,100,67,100,78,104,81,112,84,119,85,127,85,134,88,144,89,148,88,150,83,149,76,152,71,149,66,154,61,159,55,157,50,146,49,133,49,120,50\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'oregon\');\'><area shape=\'poly\' coords=\'403,79,398,84,400,90,404,96,410,95,420,93,427,91,433,90,439,86,440,81,437,78,433,75,427,74,422,74,414,77,410,79,407,80\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'pennsylvania\');\'><area shape=\'poly\' coords=\'458,64,460,67,460,64,500,69,497,79,506,85,519,83,521,75,515,67,509,63\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'rhode-island\');\'><area shape=\'poly\' coords=\'392,150,395,148,403,146,414,146,421,146,426,149,422,157,417,164,410,169,407,165,404,160,400,155,397,153,392,153\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'south-carolina\');\'><area shape=\'poly\' coords=\'239,58,239,86,276,85,289,88,285,81,290,77,288,64,286,57,244,58\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'south-dakota\');\'><area shape=\'poly\' coords=\'347,141,342,149,343,153,352,157,357,157,364,154,374,152,380,153,385,149,387,146,393,143,400,137,385,136,377,138,366,139,360,140,350,140\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'tennessee\');\'><area shape=\'poly\' coords=\'247,153,267,153,269,169,288,176,308,174,315,188,320,200,313,209,305,216,294,226,290,238,292,247,282,248,275,244,274,238,270,232,266,229,265,222,261,218,258,217,254,214,251,212,244,215,241,218,237,218,234,213,233,206,230,201,226,198,222,193,222,190,231,190,240,190,246,190,246,179,247,165,247,156,247,154\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'texas\');\'><area shape=\'poly\' coords=\'166,92,166,101,166,111,164,121,164,129,164,135,164,143,170,143,177,143,184,143,188,143,192,142,197,141,200,142,201,134,201,129,203,121,203,114,203,109,201,107,197,104,192,103,189,98,189,91,182,89,176,90,170,90,166,90\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'utah\');\'><area shape=\'poly\' coords=\'443,40,439,45,442,46,444,51,446,56,448,50,449,46,450,40,402,26,396,32,395,42,403,49,414,46,417,39,418,35,414,31,410,27,407,27\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'vermont\');\'><area shape=\'poly\' coords=\'414,104,413,111,410,117,409,120,408,123,404,126,399,126,396,128,393,133,398,134,407,131,414,128,422,125,428,124,432,122,438,121,438,116,430,110,425,106,426,102,421,102,418,104\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'virginia\');\'><area shape=\'poly\' coords=\'111,21,113,27,111,32,114,34,114,39,118,42,121,47,127,49,135,49,142,49,148,49,153,49,158,49,159,42,159,37,160,32,158,25,149,24,134,20,129,19,128,25,129,28,120,26,115,25,112,29\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'washington\');\'><area shape=\'poly\' coords=\'385,113,389,119,393,121,397,124,403,123,410,115,411,111,415,105,420,102,413,98,410,100,407,99,403,98,403,94,398,90,395,101,390,107,387,110\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'west-virginia\');\'><area shape=\'poly\' coords=\'346,61,345,55,340,54,337,51,333,50,326,49,320,51,318,56,318,63,319,70,323,73,326,77,330,81,337,81,346,81,349,81,345,74,347,70,350,69,350,64\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'wisconsin\');\'><area shape=\'poly\' coords=\'192,67,187,88,190,102,203,105,236,104,239,70,200,66\' href=\'#State_Information.3F\' onclick=\'javascript:ShowFullDetailOfTopic(\'wyoming\');\'><\/map>';
      Text +='</td></tr>';
      Text +='</table>';
      Text +='<script src="http://www.ampminsure.org/include/js/script/prototype.js" type="text/javascript"> </script> <script src="http://www.ampminsure.org/include/js/script/scriptaculous.js" type="text/javascript"></script>';
      document.getElementById("StatesInsuranceInfoMap").innerHTML = Text;
      document.write("<script type='text/javascript' language='javascript' src='http://www.ampminsure.org/include/js/script/genresize.js'></script>");


}
else
{
      document.getElementById("StatesInsuranceInfoMap").innerHTML = 'To enable this State Insurance Map paste the full code as describe in <a href="http://www.ampminsure.org/syndicate/calculator-generate.php">ampminsure</a>'
}