	var active = 0;
	var viewTransition;
	var logoMorphs = [];
	var activepage = 0;
	function goto(page) {
		if(activepage == 3)
			hideLogos();
		viewTransition.start({ 'left' : [$('view').getStyle('left').split('px')[0], -523*(page - 1)] }).chain(function() {
			if(page == 3){
				showLogos();
			}
		});
		var liarray = $$('#nav li');
		var liarray2 = $$('#links a');
		var footer = $('footer');
		var nextbutton = $('nextbutton');
		for(var i=1; i<liarray.length; i++){
			if(i == page - 1 && page != 1){
			    active = liarray[i];
				liarray[i].firstChild.childNodes[0].style.color = '#003473';
				liarray[i].firstChild.childNodes[1].style.color = '#003473';
				liarray2[i-1].style.textDecoration ='none';
				liarray2[i-1].style.fontWeight ='bold';
			}
			else {
				liarray[i].style.background = 'url(http://assist2sell.com/SellingSvc/passive_nav.jpg) no-repeat top right';
				liarray[i].firstChild.childNodes[0].style.color = '#e7e7e7';
				liarray[i].firstChild.childNodes[1].style.color = '#000000';
				liarray2[i-1].style.textDecoration ='underline';
				liarray2[i-1].style.fontWeight ='normal';
			}
		}
		if (page == "6"){
			active.style.background = 'url(http://assist2sell.com/SellingSvc/active_nav5.jpg) no-repeat top right';
		}
		if(page != 1){
		    active.style.background = 'url(http://assist2sell.com/SellingSvc/active_nav.jpg) no-repeat top right';
			footer.style.display='block';
			nextbutton.style.display='none';
		}
		else{
			 active = liarray[0];
			 footer.style.display='none';
			 nextbutton.style.display='block';
		}
		activepage = page;
	}
	function gotonext(){
		var liarray = $$('#nav li');
		for(var i=0; i<liarray.length; i++){
			if(liarray[i] == active) {
				goto((i == 5) ? 1 :i+2);
				break;
			}
		}
	}
	function gotolast(){
		var liarray = $$('#nav li');
		for(var i=0; i<liarray.length; i++){
			if(liarray[i] == active) {
				goto((i == 0) ? 6 :i);
				break;
			}
		}
	}
	function hover(elem, isover) {
			if (elem != active){
			elem.firstChild.childNodes[0].style.color = (isover) ? '#003473' : '#e7e7e7';
			elem.firstChild.childNodes[1].style.color = (isover) ? '#003473' : '#000000';
			}
	}
	function showLogos(){
		logoMorphs[0].start({
			'opacity' : [0, 1]
		}).chain(function(){
			logoMorphs[1].start({
				'opacity' : [0, 1]
			}).chain(function(){
				logoMorphs[2].start({
					'opacity' : [0, 1]
				}).chain(function(){
					logoMorphs[3].start({
						'opacity' : [0, 1]
					}).chain(function(){
						logoMorphs[4].start({
							'opacity' : [0, 1]
						});
					});
				});
			});
		});
	}
	function hideLogos(){
		logoMorphs[0].set({opacity:0});
		logoMorphs[1].set({opacity:0});
		logoMorphs[2].set({opacity:0});
		logoMorphs[3].set({opacity:0});
		logoMorphs[4].set({opacity:0});
	}
document.write('<div id="widget" style="clear: both; height: 520px; width: 778px; margin-top: 0px; margin-right: auto; margin-bottom: 0px; margin-left: auto; position: relative; background: url(http://assist2sell.com/SellingSvc/background.jpg) #000; font-family:Arial, Helvetica, sans-serif;">');
document.write('<div id="header" style="height: 56px; width: 100%;"><a style="float:right; padding:15px 15px 0 0" href="http://assist2sell.com" target="_blank"><img border=0 src="http://assist2sell.com/SellingSvc/logo.jpg" alt="logo"/></a></div>');
document.write('<div id="nav" style="width: 253px; height:416px; top: 56px; left: 0px; position:absolute; padding:0 0 1px 1px;">');
document.write('<ul style="margin:0; padding:0;">');
document.write('<li id="step_by_step" style="overflow:hidden; list-style:none; height:34px; width: 253px; background-color:#003473; float: left; text-align: center; padding: 11px 0 3px 0; font-size:24px; color:#fff; margin: 0; z-index: 10;">Step By Step</li>');
document.write('<li style="overflow:hidden; margin: 0; float: left; height:83px; list-style:none; width: 253px; padding:0; background: url(http://assist2sell.com/SellingSvc/passive_nav.jpg) no-repeat top right; display: block;" onmouseover="hover(this, true)" onmouseout="hover(this, false)" id="1" class="active"><a style="text-decoration: none" href="javascript:void(0)" onclick="goto(2)"><span style="font-size:64px; height: 60px; padding: 5px 5px 14px 10px; width: 35px; float: left; color: #e7e7e7;">1</span><p style="color: #000; margin: 0; height:16px; padding: 34px 0 33px 0; width: 200px; float: left; cursor: pointer;">We Provide Pricing Advice</p></a></li>');
document.write('<li style="overflow:hidden; margin: 0; float: left; height:83px; list-style:none; width: 253px; padding:0; background: url(http://assist2sell.com/SellingSvc/passive_nav.jpg) no-repeat top right; display: block;" onmouseover="hover(this, true)" onmouseout="hover(this, false)" id="2"><a style="text-decoration: none" href="javascript:void(0)" onclick="goto(3)"><span style="font-size:64px; height: 60px; padding: 5px 5px 14px 10px; width: 35px; float: left; color: #e7e7e7;">2</span><p style="color: #000; margin: 0; height:16px; padding: 34px 0 33px 0; width: 200px; float: left; cursor: pointer;">We Promote Your Home</p></a></li>');
document.write('<li style="overflow:hidden; margin: 0; float: left; height:83px; list-style:none; width: 253px; padding:0; background: url(http://assist2sell.com/SellingSvc/passive_nav.jpg) no-repeat top right; display: block;" onmouseover="hover(this, true)" onmouseout="hover(this, false)" id="3"><a style="text-decoration: none" href="javascript:void(0)" onclick="goto(4)"><span style="font-size:64px; height: 60px; padding: 5px 5px 14px 10px; width: 35px; float: left; color: #e7e7e7;">3</span><p style="color: #000; margin: 0; height:16px; padding: 34px 0 33px 0; width: 200px; float: left; cursor: pointer;">We Show Your Home</p></a></li>');
document.write('<li style="overflow:hidden; margin: 0; float: left; height:83px; list-style:none; width: 253px; padding:0; background: url(http://assist2sell.com/SellingSvc/passive_nav.jpg) no-repeat top right; display: block;" onmouseover="hover(this, true)" onmouseout="hover(this, false)" id="4"><a style="text-decoration: none" href="javascript:void(0)" onclick="goto(5)"><span style="font-size:64px; height: 60px; padding: 5px 5px 14px 10px; width: 35px; float: left; color: #e7e7e7;">4</span><p style="color: #000; margin: 0; height:16px; padding: 34px 0 33px 0; width: 200px; float: left; cursor: pointer;">We Do All the Paperwork</p></a></li>');
document.write('<li style="overflow:hidden; margin: 0; float: left; height:83px; list-style:none; width: 253px; padding:0;  background: url(http://assist2sell.com/SellingSvc/passive_nav.jpg) no-repeat top right; display: block;"onmouseover="hover(this, true)" onmouseout="hover(this, false)" id="5"><a style="text-decoration: none" href="javascript:void(0)" onclick="goto(6)"><span style="font-size:64px; height: 60px; padding: 5px 5px 14px 10px; width: 35px; float: left; color: #e7e7e7;">5</span><p style="color: #000; margin: 0; height:16px; padding: 34px 0 33px 0; width: 200px; float: left; cursor: pointer;">"Results with Savings!"<span style="font-size: 11px">&reg;</span></p></a></li>');
document.write('</ul></div>');
document.write('<div id="nextbutton" style="position:absolute; bottom: 9px; right: 12px; z-index: 10;"><a style="text-decoration:none; font-size:14px; color: #003473;" href="javascript:void(0)" onclick="goto(2)"><span style="position:relative; color: #003473; bottom: 20px; padding-right:10px; text-decoration:underline;"><strong>Great Service Starts Here</strong></span><img src="http://assist2sell.com/SellingSvc/nextbutton.png" border=0 alt="Next Button" /></a></div>');
document.write('<div id="footer" style="display: none; overflow: hidden; position:absolute; bottom: 0px; right: 0px; width:207px; height:65px; z-index: 10;">');
document.write('<div style="float:left; width:43px;">');
document.write('<a href="javascript:void(0)" style="color:#fff; font-size: 16px; text-decoration: underline; float: left;" onclick="gotolast()"><img src="http://assist2sell.com/SellingSvc/lastbutton.jpg"  border=0 alt="back" width="43" height="65" /></a>');
document.write('</div>');
document.write('<div id="links" style="float:left; height: 25px; padding:20px 0px; width:100px; background:url(http://assist2sell.com/SellingSvc/footernavbg.jpg)">');
document.write('<a href="javascript:void(0)" style="color:#fff; font-size: 16px; text-decoration: underline; float: left; padding:0 5px;" onclick="goto(2)">1</a>');
document.write('<a href="javascript:void(0)" style="color:#fff; font-size: 16px; text-decoration: underline; float: left; padding:0 5px;" onclick="goto(3)">2</a>');
document.write('<a href="javascript:void(0)" style="color:#fff; font-size: 16px; text-decoration: underline; float: left; padding:0 5px;" onclick="goto(4)">3</a>');
document.write('<a href="javascript:void(0)" style="color:#fff; font-size: 16px; text-decoration: underline; float: left; padding:0 5px;" onclick="goto(5)">4</a>');
document.write('<a href="javascript:void(0)" style="color:#fff; font-size: 16px; text-decoration: underline; float: left; padding:0 5px;" onclick="goto(6)">5</a>');
document.write('</div>');
document.write('<div style="float:left; width:64px;">');
document.write('<a href="javascript:void(0)" onclick="gotonext()"><img src="http://assist2sell.com/SellingSvc/nextbutton.jpg" border=0 alt="next" width="64" height="65" /></a>');
document.write('</div>');
document.write('</div>');
document.write('<div id="content" style="position:absolute; top:0; left:253px; width: 523px; height: 472px; position: relative; overflow: hidden;">');
document.write('<div id="view" style="position: absolute; left: 0; height: 472px; width: 3138px">');
document.write('<div id="landing" class="pages" style="background:url(http://assist2sell.com/SellingSvc/landing.jpg) no-repeat; clear: none; width: 483px; height: 423px; padding: 20px;  position: absolute; left:0px">');
document.write('<p style="margin: 0; font-size: 14px; color: #003473; line-height: 18px; padding: 5px 0 15px 0; width: 486px;">With our <strong>&ldquo;Direct-to-Buyer&rdquo;</strong><sup>sm</sup> marketing program, you pay just a low flat fee to sell your home. Under this program, Assist-2-Sell\'s experienced agents provide full service and market your home directly to home buyers, handling everything throughout the entire home selling process.</p>');
document.write('<p style="margin: 0; font-size: 14px; color: #003473; line-height: 18px; padding: 5px 0 15px 0; width: 486px;">You have the option of placing your home in the local MLS through Assist-2-Sell\'s <strong>&ldquo;MLS for Less&rdquo;</strong><sup>&reg;</sup> program.  If your home sells under this program, an additional fee will apply. These fees vary by office: contact a local office for rates.</p>');
//document.write('<p style="margin: 0; font-size: 14px; color: #003473; line-height: 18px; padding: 5px 0 15px 0; width: 486px;">You may decide to try and sell your home yourself. If so, we are ready to assist you with our <strong>"Paperwork Only"</strong> program. We will help with the sales contract and the closing for an even lower flat fee. Contact a local office for availability and rates.</p>');
document.write('</div>');
document.write('<div id="page1" class="pages" style="background: url(http://assist2sell.com/SellingSvc/background_1.jpg) no-repeat; clear: none; width: 483px; height: 423px;	padding: 20px;  position: absolute; left:523px;">');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Create a customized CMA (Comparative Market Analysis) for your home.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Review prices of active, pending, expired (unsold), and sold homes in your area.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Review market conditions.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Discuss pricing strategies for setting the best price.</p>');
document.write('</div>');
document.write('<div id="page2" class="pages" style="background: url(http://assist2sell.com/SellingSvc/background_2.jpg) no-repeat; clear: none; width: 483px; height: 423px;	padding: 20px;  position: absolute; left:1046px">');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">We implement an aggressive marketing campaign designed to reach active home buyers.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Include your home on our international website plus in many cases on other national and local sites such as:</p>');
document.write('<div id="sitelogos" style="text-align:center;"><img src="http://assist2sell.com/SellingSvc/realtor.jpg" alt="" /><img src="http://assist2sell.com/SellingSvc/trulia.jpg" alt="" /><img src="http://assist2sell.com/SellingSvc/zillow.jpg" alt="" /><img src="http://assist2sell.com/SellingSvc/google.jpg" alt="" /><img src="http://assist2sell.com/SellingSvc/craigslist.jpg" alt="" /></div>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Post an attractive &ldquo;for sale&rdquo; sign on your home with our phone number.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Create a custom features<br />and amenities flyer.</p>');
document.write('</div>');
document.write('<div id="page3" class="pages" style="background: url(http://assist2sell.com/SellingSvc/background_3.jpg) no-repeat; clear: none; width: 483px; height: 423px;	padding: 20px;  position: absolute; left:1569px">');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">Our agents take care of showing your home to buyers.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">We take all calls and schedule appointments.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">We arrange for other agents to show your home.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;">We pre-qualify home buyers. </p>');
document.write('</div>');
document.write('<div id="page4" class="pages" style="background: url(http://assist2sell.com/SellingSvc/background_4.jpg) no-repeat; clear: none; width: 483px; height: 423px;	padding: 20px;  position: absolute; left:2092px">');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;padding-bottom: 35px;">Help the home buyer arrange financing.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;padding-bottom: 35px;">Negotiate the purchase agreement on your behalf.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;padding-bottom: 35px;">Arrange all the inspections and appraisal.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 47px; width: 446px; background: url(http://assist2sell.com/SellingSvc/checkmark.png) no-repeat;padding-bottom: 35px;">Oversee all the paperwork and supervise<br />the closing process.</p>');
document.write('</div>');
document.write('<div id="page5" class="pages" style="background: url(http://assist2sell.com/SellingSvc/background_5.jpg) no-repeat; clear: none; width: 483px; height: 423px;	padding: 20px; position: absolute; left:2615px">');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 0px; width: 446px; no-repeat;padding-bottom: 35px;">Assist-2-Sell is the <strong><em>smart</em></strong> way to sell your home.</p>');
document.write('<p style="margin: 0; font-size: 16px; color: #003473; line-height: 20px; padding: 5px 0 15px 0px; width: 446px; no-repeat;padding-bottom: 35px;">Our offices are comprised of a team of licensed<br/>  local real estate experts who can sell your home<br/> and potentially save you thousands.</p>');
document.write('<div id="callus" style="width: 242px; height: 70px; padding:8px 0; background-image:url(http://assist2sell.com/SellingSvc/callusback.jpg)"><p style="font-size: 24px; padding:0; background: none; padding-bottom:0; width:auto; margin:0 auto; text-align:center; line-height:35px;">Get Started Today!</p><p style="font-size: 24px; padding:0; background: none; padding-bottom:0; width:auto; margin:0 auto; text-align:center; line-height:35px; color:#666666;">'+phone+'</p>');document.write('</div>');
document.write('<p style="margin: 0; font-size: 9px; color: #003473; line-height: 10px; padding: 75px 0 15px 0px; width: 446px; ">Savings compared to paying 5-6% commission, 5-6% commission used for comparison purposes only and may not be typical in your market. Commissions may be negotiable and are not set by law. Each office independently owned and operated. Fees and programs may vary.</p>');

document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');

		viewTransition = new Fx.Morph('view', { fps: 24, duration: 1000, transition: Fx.Transitions.Quad.easeOut, 'link' : 'cancel' });
		var liarray = $$('#nav li');
		active = liarray[0];
		var images = new Array();
		images[0] = "url(http://assist2sell.com/SellingSvc/landing1.jpg) no-repeat";
		images[1] = "url(http://assist2sell.com/SellingSvc/landing2.jpg) no-repeat";
		images[2] = "url(http://assist2sell.com/SellingSvc/landing3.jpg) no-repeat";
		var randback = Math.floor(Math.random()*images.length);
		$('landing').style.background = images[randback];
		
		logoMorphs.push(new Fx.Morph($$('div#sitelogos img')[0], {duration:  500, "link" : 'cancel' }));
		logoMorphs.push(new Fx.Morph($$('div#sitelogos img')[1], {duration:  500, "link" : 'cancel' }));
		logoMorphs.push(new Fx.Morph($$('div#sitelogos img')[2], {duration:  500, "link" : 'cancel' }));
		logoMorphs.push(new Fx.Morph($$('div#sitelogos img')[3], {duration:  500, "link" : 'cancel' }));
		logoMorphs.push(new Fx.Morph($$('div#sitelogos img')[4], {duration:  500, "link" : 'cancel' }));
		hideLogos();