'; var w = window.open( '', 'Original', 'status=no,menubar=yes,resizable=yes,scrollbars=yes,toolbar=no' ); w.document.open(); w.document.writeln( s ); w.document.close(); } // function viewall() { var s = 'Full Photo Tour'; //: ' + document.getElementById('showaddress').innerHTML + ''; s += ''; s += ''; s += ''; s += '
'; s += '
Full Photo Tour
'; s += '
' + document.getElementById('showaddress').innerHTML + '
'; s += '
 '; s += '
'; s += '
'; s += ''; var row = 0; for( var i = 0; i < photos.length; i++ ) { if( (i % 2) == 0 && i > 0 ) s += ''; if( (i % 2) == 0 ) { row++; if( row == 3 || (row > 4 && ((row+1) % 4) == 0) ) s += ''; else s += ''; } var description = photos[i].description.replace(/"/g,"''"); s += ''; } s += '
'; s += ''; s += ''; s += ''; s += ''; s += '
' + photos[i].description + '
' + description + '
' + photos[i].caption + '
'; // s += '' + photos[i].description + '
'; // s += '' + description + ''; // s += '
' + photos[i].caption + '
'; s += '
'; s += ' '; var w = window.open( '', 'Original', 'status=no,menubar=yes,resizable=yes,scrollbars=yes,toolbar=no' ); w.document.open(); w.document.writeln( s ); w.document.close(); } function ensure_visible( newindex ) { var photo = document.getElementById('photo'+newindex); var thumbs = document.getElementById('thumbs'); if( photo.offsetTop < thumbs.scrollTop ) { if( thumbs.scrollTop - photo.offsetTop > 80 ) thumbs.scrollTop = 0; else thumbs.scrollTop -= (thumbs.scrollTop - 80 < 0 ? thumbs.scrollTop : 80); } if( (photo.offsetTop+photo.offsetHeight) > thumbs.scrollTop + thumbs.offsetHeight ) { if( (photo.offsetTop+photo.offsetHeight) - (thumbs.scrollTop + thumbs.offsetHeight) > 80 ) thumbs.scrollTop = photo.offsetTop; else thumbs.scrollTop += 80; } } function navigate( direction ) { var newindex = selectedIndex + direction; if( newindex >= photos.length ) newindex = 0; else if( newindex < 0 ) newindex = photos.length - 1; ensure_visible( newindex ); showphoto( newindex ); } function showphoto( index ) { if( isNaN( parseInt( index ) ) ) return; if( index == -1 ) { document.getElementById('previewtext').innerHTML = ''; document.getElementById('imgpreview').innerHTML = 'No photo selected'; document.getElementById('caption').innerHTML = ''; if( isEnabled( document.getElementById('editphoto') ) ) document.getElementById('editphoto').className += ' disabled'; if( isEnabled( document.getElementById('removephoto') ) ) document.getElementById('removephoto').className += ' disabled'; } else { var previewtext = document.getElementById('previewtext'); var imgpreview = document.getElementById('imgpreview'); var caption = document.getElementById('caption'); var preview = document.getElementById('preview'); var description = photos[index].description; description = description.replace(/"/g,"''"); previewtext.innerHTML = photos[index].description; if( photos[index].picture_id != '' ) { previewtext.style.display = ''; // var imgtext = ''; imgtext += ''; //imgtext += ''; imgtext += '
'; imgtext += '' + description + ''; imgtext += '
'; imgpreview.innerHTML = imgtext; imgpreview.style.display = ''; var captiontext = '
' + photos[index].caption + '
'; caption.innerHTML = captiontext; } else { uploading = false; var debug = false; previewtext.style.display = 'none'; imgpreview.style.display = 'none'; // var anymainlist = false; for( var i = 0; i < photos.length; i++ ) { if( photos[i].table_name == 'list' ) { anymainlist = true; break; } } //imgpreview.innerHTML = 'No photo available'; var s = '
Upload New Photo
'; if( debug ) { s += '
'; s += ''; } else { s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; } s += ''; if( !debug ) s += ''; s += ''; s += ''; s += '
Photo File:
Description:
Caption:
'; s += ' '; if( photos.length > 1 ) s += ''; s += '
'; caption.innerHTML = s; } if( selectedIndex > -1 ) document.getElementById('photo' + selectedIndex).className = 'thumb'; selectedIndex = index; document.getElementById('photo' + index).className = 'thumb_selected'; var buttons = new Array( 'editphoto', 'removephoto' ); for( var i = 0; i < buttons.length; i++ ) { var button = document.getElementById( buttons[i] ); if( button && !isEnabled( button ) ) button.className = button.className.replace(/disabled/g,""); } } } // var uploading = false; function submit_upload() { if( uploading ) return; if( document.getElementById('upload_description').value == '' ) { alert('Please enter a description for this photo.'); document.getElementById('upload_description').focus(); return; } uploading = true; document.getElementById('uploadform').submit(); display_pleasewait(); } function display_pleasewait() { window.setTimeout( 'display_pleasewait_timeout();', 250 ); } function display_pleasewait_timeout() { document.getElementById('previewtext').style.display = 'none'; document.getElementById('imgpreview').style.display = 'none'; document.getElementById('caption').innerHTML = '
Saving...

Please Wait...
'; } function thumb_mouseover( object, index ) { if( mouse_state == 'down' ) return true; if( mouse_state == 'down' && target && target.id == 'photo'+index) return true; object.className='thumb_over'; } function thumb_mouseout( object, index ) { if( mouse_state == 'down' ) return; if( mouse_state == 'down' && target && target.id == 'photo'+index) return true; if( selectedIndex == index ) object.className='thumb_selected'; else object.className='thumb'; } function drawphotos() { var showthumb = false; var s = ''; for( var i = 0; i < photos.length; i++ ) { var description = photos[i].description; description = description.replace(/"/g,"''"); s += '
'; else s += 'No photo available'; s += '
'; } s += description; if( showthumb ) s += '
'; s += '
'; } // if( navigator.userAgent.indexOf( 'Opera' ) != -1 ) s += '
 
'; document.getElementById('thumbs').innerHTML = s; } function move( source_i, dest_i ) { if( source_i > dest_i ) { start_i = dest_i; end_i = source_i; var photo = photos[end_i]; var tmp = new Photo( photo.picture_id, photo.table_name, photo.table_tech_id, photo.description, photo.caption ); for( var i = end_i; i > start_i; i-- ) { delete photos[i]; photos[i] = new Photo( photos[i-1].picture_id, photos[i-1].table_name, photos[i-1].table_tech_id, photos[i-1].description, photos[i-1].caption ); } delete photos[start_i]; photos[start_i] = new Photo( tmp.picture_id, tmp.table_name, tmp.table_tech_id, tmp.description, tmp.caption ); } else // { var start_i = source_i; var end_i = dest_i; var photo = photos[start_i]; var tmp = new Photo( photo.picture_id, photo.table_name, photo.table_tech_id, photo.description, photo.caption ); for( var i = start_i; i < end_i; i++ ) { delete photos[i]; photos[i] = new Photo( photos[i+1].picture_id, photos[i+1].table_name, photos[i+1].table_tech_id, photos[i+1].description, photos[i+1].caption ); } delete photos[end_i]; photos[end_i] = new Photo( tmp.picture_id, tmp.table_name, tmp.table_tech_id, tmp.description, tmp.caption ); } } var move_direction = 0; function moveup() { if( selectedIndex > 0 ) { move( selectedIndex - 0, selectedIndex - 1 ); // selectedIndex--; drawphotos(); showphoto( selectedIndex ); var photo = document.getElementById('photo'+selectedIndex); var thumbs = document.getElementById('thumbs'); if( photo.offsetTop < thumbs.scrollTop ) thumbs.scrollTop -= (thumbs.scrollTop - 80 < 0 ? thumbs.scrollTop : 80); window.setTimeout( 'move_timer();', (move_direction == -1 ? 120 : 400 ) ); move_direction = -1; } } function movedown() { if( selectedIndex < photos.length-1 & selectedIndex > -1 ) { move( selectedIndex - 0, selectedIndex - 0 + 1 ); // selectedIndex++; drawphotos(); showphoto( selectedIndex ); var photo = document.getElementById('photo'+selectedIndex); var thumbs = document.getElementById('thumbs'); if( (photo.offsetTop+photo.offsetHeight) > thumbs.scrollTop + thumbs.offsetHeight ) thumbs.scrollTop += 80; window.setTimeout( 'move_timer();', (move_direction == 1 ? 120 : 400 ) ); move_direction = 1; } } // function move_timer() { if( move_direction == -1 ) moveup(); else if( move_direction == 1 ) movedown(); } function move_save() { move_direction = 0; if( selectedIndex > -1 ) savemove(); } // function savemove() { var s = '
'; s += ''; s += ''; for( var i = 0; i < photos.length; i++ ) { s += ''; s += ''; s += ''; } s += ''; s += '
'; document.getElementById('formdiv').innerHTML = s; document.getElementById('saveform').submit(); } // function removephoto( index ) { if( index < 0 ) return; if( index >= photos.length ) return; var length = photos.length; for( var i = index; i < (length-1); i++ ) photos[i] = photos[i+1]; photos.length--; selectedIndex--; if( selectedIndex < 0 && photos.length > 0 ) selectedIndex = 0; drawphotos(); showphoto( selectedIndex ); } // // function submit_photo() { if( document.getElementById('description_edit').value == '' ) { alert('Please enter a description for this photo.'); document.getElementById('description_edit').focus(); return; } var frm = document.getElementById('editform'); if( document.getElementById('replacephoto').checked || ( browser_type == 'Safari' && document.getElementById('filename').value != '' ) ) { frm.action = 'http://photos.flexmls.com/servlets/PhotoLoad'; ( browser_type != 'Safari' ) ? frm.encoding = 'multipart/form-data' : frm.enctype = 'multipart/form-data' ; } else { frm.action = 'mainmenu.cgi'; ( browser_type != 'Safari' ) ? frm.encoding = 'application/x-www-form-urlencoded' : frm.enctype = 'application/x-www-form-urlencoded' ; } frm.submit(); display_pleasewait(); } // function editphoto( index ) { var submit_through_servlet = false; var s = ''; s += '
'; s += ''; s += ''; s += ''; s += ''; s += ''; s += '
Description
Caption
'; s += ''; s += '
'; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ' '; s += ''; s += '
'; document.getElementById('caption').innerHTML = s; if( photos[index].table_name == 'list' ) document.getElementById('description_edit').value = photos[index].description.substr(2); else document.getElementById('description_edit').value = photos[index].description; document.getElementById('caption_edit').value = photos[index].caption; document.getElementById('description_edit').focus(); } // function physicallyremovephoto( index ) { var s = '
'; s += ''; s += ''; s += ''; s += ''; s += ''; s += '
'; document.getElementById('formdiv').innerHTML = s; document.getElementById('removeform').submit(); } function refresh_photos( retain_selectedIndex ) { var s = '
'; s += ''; s += ''; if( retain_selectedIndex ) s += ''; s += '
'; document.getElementById('formdiv').innerHTML = s; document.getElementById('refreshform').submit(); } // function refresh_photos_done( reposition_selectedIndex ) { if( reposition_selectedIndex ) selectedIndex = photos.length - 1; else { if( selectedIndex > photos.length - 1 ) selectedIndex = photos.length - 1; } drawphotos(); if( reposition_selectedIndex ) { // document.getElementById('thumbs').scrollTop = document.getElementById('photo'+selectedIndex).scrollHeight; } else { document.getElementById('thumbs').scrollTop = document.getElementById('photo'+selectedIndex).offsetTop; } showphoto( selectedIndex ); if( photos.length == 0 ) addphoto(); } function explain( obj, text ) { var str = text + '\n--------\n'; var i = 0; for( prop in obj ) { i++; str += 'name: ' + prop + '; value: ' + obj[prop] + '\n'; if( i > 10 ) { alert( str ); i = 0; str = ''; } } alert( str ); } function getprotocol() { var p = new String( document.location.protocol ); var urlArr = p.split(':'); return urlArr[0]; } function gethost() { var host = new String(document.location); var urlArr = new Array(); urlArr = host.split('/'); return(urlArr[2]); } // function addphoto() { // if( document.getElementById('upload').style.display == '' ) return; var index = photos.length; selectedIndex = index; photos[index] = new Photo( '', '', '', 'New Photo', '' ); drawphotos(); // document.getElementById('thumbs').scrollTop = document.getElementById('thumbs').scrollHeight; showphoto( index ); } // function newphoto() { // if( document.getElementById('upload').style.display == '' ) return; var index = photos.length; selectedIndex = index; photos[index] = new Photo( '', '', '', 'New Photo', '' ); drawphotos(); window.setTimeout( 'newphoto_timeout(' + index + ');', 250 ); //explain(document.getElementById('thumbs') ); } // function getSelectValue( select_control ) { if( select_control.selectedIndex == -1 ) return ''; return select_control.options[select_control.selectedIndex].value; } var submitted = false; // function do_submit() { if( !submitted ) { submitted = true; // for( var i = 0; i < photo_count; i++ ) { var index = i+1; //var object = document.getElementById('selec } } } // var photo_count = 0; // function newphoto_timeout( index ) { photo_count = 0; // // document.getElementById('thumbs').scrollTop = document.getElementById('thumbs').scrollHeight; showphoto( index ); var s = '
'; s += ''; s += 'Close Upload Window'; s += '
Add Photos
'; s += '
'; s += ''; s += ''; //s += ''; s += '
'; s += '
'; // s += ''; s += '
'; var upload = document.getElementById('upload'); upload.innerHTML = s; upload.style.display = ''; document.getElementById('upload_grid').style.height = (getWindowHeight() * 0.65) + 'px'; submitted = false; // set_photo_count( 20 ); //show_photo_count(); } /* // function show_photo_count() { var s = '
How many photos would you like to attach at this time?
'; s += '
'; for( var i = 1; i <= 20; i++ ) { if( !((i-1) % 5 ) ) s += ''; s += ''; if( !(i % 5) ) s += ''; } s += '
'; s += ''; s += '
'; document.getElementById('upload_grid').innerHTML = s; } */ // function set_photo_count( new_photo_count ) { photo_count = new_photo_count; document.getElementById('upload_toolbar').style.visibility='visible'; update_upload_grid(); } // function show_description( index ) { if( document.getElementById('upload_as'+index).options.selectedIndex == 1 ) document.getElementById('description'+index).style.visibility = 'visible'; else document.getElementById('description'+index).style.visibility = 'hidden'; } // function update_upload_grid() { var s = ''; // s += ''; var h = ''; for( var i = 0; i < photo_count; i++ ) { var index = i+1; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; s += ''; h += ''; h += ''; h += ''; h += ''; } s += '
' + index + '.'; s += 'Upload As:
'; s += ''; s += '
Photo File:
Caption:
'; h += ''; document.getElementById('upload_grid').innerHTML = s + h; } // function cancelnew( index ) { for( var i = index; i < photos.length - 1; i++ ) photos[i] = photos[i+1]; if( photos.length > 0 ) photos.length--; // If the innerHTML isn't cleared, Mozilla 1.6 & 1.7 will crash. document.getElementById('upload').innerHTML = ''; document.getElementById('upload').style.display='none'; selectedIndex = -1; drawphotos(); showphoto( selectedIndex ); } function getdetails() { return ''; } function getrooms() { return ''; } function getunits() { return ''; } function init() { // if( prop_group_abbr != 'C' && prop_group_abbr != 'M' && prop_group_abbr != 'L' ) listing_has_rooms = true; } var listing_has_rooms = false; var listing_has_units = false; function Item( name, value ) { this.name = name; this.value = value; } // function email_page( include_report ) { var s = ''; s += '
'; s += ''; s += ''; s += ''; var item = new Array(); //item[item.length] = new Item( 'tech_id', "x'20060303171052469519000000'" ); //item[item.length] = new Item( 'ma_tech_id', "x'20000803155315496750000000'" ); item[item.length] = new Item( 'list_tech_id', "x'20060405140622679839000000'" ); item[item.length] = new Item( 'include_report', include_report ? 'true' : 'false' ); for( var i = 0; i < item.length; i++ ) { s += ''; s += ''; } s += ''; s += ''; s += ''; s += '
'; document.getElementById('formdiv').innerHTML = s; document.getElementById('emailform').submit(); }

Photo Tour

1767 COUNTY RD 18, Baudette, MN 56623
This listing is Active     Listed for $1,000,000     MLS # 59-1
No photo selected