function onSmartWinEvent() {
		var words = '<div style="width:160px;height:50px;"><b>jackie@choosejackie.com</b><br>715-612-2673<br>1-800-732-9597</div>';
		marker.openSmartWindow(words);
}

function addMarker() {
		// Create a map object
		ymap = new YMap(document.getElementById('mapContainer'));
		
		// Add map type control
		ymap.addTypeControl();
		
		// Add a pan control 
		ymap.addPanControl(); 

		// Add a slider zoom control 
		ymap.addZoomLong();  
		
		// Display the map centered on office
		ymap.drawZoomAndCenter("24 W. Wisconsin Ave 54487", 4);
 
		myImage = new YImage();
  		myImage.src = 'http://www.choosejackie.com/assets/images/c21marker.png';
  		myImage.size = new YSize(35,35);
  		myImage.offsetSmartWindow = new YCoordPoint(0,0);

		marker = new YMarker("24 W. Wisconsin Ave 54487",myImage);
		
		// Set marker at that address 
		ymap.addOverlay(marker); 
		
		// OR 
		// ymap.addMarker("54487"); 
		
		// Add a label to the marker
		// marker.addLabel("<blink>R!</blink>");

		// Add auto expand
		var _txt = "<div style='text-align:center;'>Century 21 Best Way Realty LLC<br>Toll Free: <strong>1-800-732-9597</strong><br>24 W. Wisconsin Ave, Tomahawk WI</div>";
		marker.addAutoExpand(_txt);

		// Call onSmartWinEvent when the user clicks on the marker
		YEvent.Capture(marker, EventsList.MouseClick, onSmartWinEvent);
		
		// Display the marker
		ymap.addOverlay(marker);

}

function addMarkerr() {
		// Create a map object
		ymap = new YMap(document.getElementById('mapContainerr'));
		
		// Add map type control
		ymap.addTypeControl();
		
		// Add a pan control 
		ymap.addPanControl(); 

		// Add a slider zoom control 
		ymap.addZoomLong();  
		
		// Display the map centered on office
		ymap.drawZoomAndCenter("24 W. Wisconsin Ave 54487", 4);
 
		myImage = new YImage();
  		myImage.src = 'http://www.choosejackie.com/assets/images/c21marker.png';
  		myImage.size = new YSize(35,35);
  		myImage.offsetSmartWindow = new YCoordPoint(0,0);

		marker = new YMarker("24 W. Wisconsin Ave 54487",myImage);
		
		// Set marker at that address 
		ymap.addOverlay(marker); 
		
		// OR 
		// ymap.addMarker("54487"); 
		
		// Add a label to the marker
		// marker.addLabel("<blink>R!</blink>");

		// Add auto expand
		var _txt = "<div style='text-align:center;'>Century 21 Best Way Realty LLC<br>Toll Free: <strong>1-800-732-9597</strong><br>24 W. Wisconsin Ave, Tomahawk WI</div>";
		marker.addAutoExpand(_txt);

		// Call onSmartWinEvent when the user clicks on the marker
		YEvent.Capture(marker, EventsList.MouseClick, onSmartWinEvent);
		
		// Display the marker
		ymap.addOverlay(marker);

}



function findYLocation(yaddress) {
		//var ymap = YMap(document.getElementById('mapContainer'));
		ymap.drawZoomAndCenter(yaddress, 4);
		
		// Add map type control
		//ymap.addTypeControl();
		
		// Add a pan control 
		//ymap.addPanControl(); 

		// Add a slider zoom control 
		//ymap.addZoomLong();  
		
                myImage = new YImage();
  		myImage.src = 'http://www.choosejackie.com/assets/images/c21marker.png';
  		myImage.size = new YSize(35,35);
  		myImage.offsetSmartWindow = new YCoordPoint(0,0);
		marker = new YMarker(yaddress, myImage);

		// Call onSmartWinEvent when the user clicks on the marker
		//YEvent.Capture(marker, EventsList.MouseClick, onSmartWinEvent);

        var _txt = yaddress;
		marker.addAutoExpand(_txt);
		
      	ymap.addOverlay(marker);
      
    }  

function addmeToo(ymeaddress,ymeimg,ymetitle, ymeinfo) {
                ymap.drawZoomAndCenter(ymeaddress, 4);
		myImage = new YImage();
  		myImage.src = 'http://www.choosejackie.com/assets/images/c21marker.png';
  		myImage.size = new YSize(35,35);
  		myImage.offsetSmartWindow = new YCoordPoint(0,0);
		marker = new YMarker(ymeaddress, myImage);
		
		var _txt = "<div style='text-align:center;'><fieldset><legend>" + ymetitle + "</legend><img src='" + ymeimg + "' width='80px' height='60px'><br />" + ymeinfo + "</div>";
		marker.addAutoExpand(_txt);
		
      	ymap.addOverlay(marker);
}

function maximize() {
         new Effect.SlideUp(document.getElementById('rightside'));
         Element.setStyle('content', {width: '761px'}) ;
         Element.setStyle('main1', {width: '761px'}) ;
         Element.setStyle('mapContainer', {width: '590px'}, {duration:0.2}) ; 
         Element.setStyle('mapContainer', {height: '500px'}, {duration:0.2}) ;
//         Effect.BlindUp(document.getElementById('head'));
//        document.getElementById('magnify').setAttribute('src', 'http://www.choosejackie.com/assets/templates/jackie/images/zoomOut.png'); 
//         document.getElementById('magnify').setAttribute('onclick', 'minimize();'); 
}
function minimize() {
         Element.setStyle('mapContainer', {width: '391px'}) ; 
         Element.setStyle('mapContainer', {height: '300px'}) ; 
        Element.setStyle('content', {width: '561px'}) ;
         Element.setStyle('main1', {width: '561px'}) ;
//         Effect.BlindDown(document.getElementById('head'));
         new Effect.Appear(document.getElementById('rightside'));
//        document.getElementById('magnify').setAttribute('src', 'http://www.choosejackie.com/assets/templates/jackie/images/zoomIn.png'); 
//         document.getElementById('magnify').setAttribute('onclick', 'maximize();'); 
 }

function header_up () {
         new Effect.BlindUp(document.getElementById('head'));
         document.getElementById('arrow').setAttribute('src', 'http://www.choosejackie.com/assets/templates/jackie/images/arrow_up.jpg'); 
         document.getElementById('arrow').setAttribute('onclick', 'header_down();');          
}

function header_down () {
         new Effect.BlindDown (document.getElementById('head'));
         document.getElementById('arrow').setAttribute('src', 'http://www.choosejackie.com/assets/templates/jackie/images/arrow_down.jpg'); 
         document.getElementById('arrow').setAttribute('onclick', 'header_up();');          
}