//// // function makeLinkForm( num, title ){ var link; link = ''+title+''; if( typeof(_main_markers[num]) != 'undefined' ){ link += ''; } return link; } function makeLinkFormInComp( num, title, comp ){ var link; link = ''+title+''; if( typeof(comp) != 'undefined' ){link += '
'+comp+'
';} if( typeof(_main_markers[num]) != 'undefined' ){ link += ''; } return link; } function readMaterialAdminAsync(opt, marker_num){ var mat = new MaterialSoba(); var xml = mat.readMaterialAsync(opt); var tree = parseXML4Material(xml); if( typeof(tree.material) != 'undefined' ){ return mat.compSmallMaterial(tree.material, marker_num) } else { return ''; } } function readMaterialMainAsync(opt, marker_num){ var mat = new MaterialSoba(); var xml = mat.readMaterialAsync(opt); var tree = parseXML4Material(xml); if( typeof(tree.material) != 'undefined' ){ return mat.compBigMaterial(tree.material, marker_num) } else { return ''; } } function putMaterial(html){ var mat = new MaterialSoba(); return mat.compHtml(html) } /*--------------------------------------------------------------------------*/ var MaterialSoba = Class.create(MaterialAdmin, { // // Composition Material practice // compSmallMaterial : function(material, marker_num){ var html = ''; var title; var url; var comment; var img_url = ''; var lng = material.lng; var lat = material.lat; var width = 400; var height = 250; tid = material.tid; if( typeof(material.title) != 'undefined' ){title = material.title;} else {title = '';} if( typeof(material.url) != 'undefined' ){url = material.url;} else {title = '';} if( typeof(material.comment) != 'undefined' ){comment = material.comment;} else {comment = '';} if( typeof(material.img_url) != 'undefined' ){ img_url = material.img_url; } else if( typeof(material.thumb_url) != 'undefined' ){ img_url = material.thumb_url; } comment = comment.replace('<', '<'); comment = comment.replace('>', '>'); comment = comment.replace('"', '"'); comment = comment.replace('\'', '\''); html += '
'; html += ''; html += ''; html += '
'; html += '
'; if( ! _linkoff ){html += '';} html += title; if( ! _linkoff ){html += '';} html += ''; if( img_url != '' ){ html += '
'; } if( _viewmode == 'ex' ){ html += ''; html += '[*]'; html += ''; } html += '
'; html += '
'+comment+'
'; if( _viewmode == 'routeset' ){ opt = '&modname='+_modname+'&id='+material.id; html += '

'; html += '目的地へ追加 / '; html += '目的地から削除'; } html += '
'; html += '
'; return html; }, // // Composition Material practice // compBigMaterial : function(material, marker_num){ var html = ''; var title; var url; var comment; var lng = material.lng; var lat = material.lat; var width = 400; var height = 250; tid = material.tid; if( typeof(material.title) != 'undefined' ){title = material.title;} else {title = '';} if( typeof(material.url) != 'undefined' ){url = material.url;} else {title = '';} if( typeof(material.comment) != 'undefined' ){comment = material.comment;} else {comment = '';} comment = comment.replace('<', '<'); comment = comment.replace('>', '>'); comment = comment.replace('"', '"'); comment = comment.replace('\'', '\''); html += '
'; html += ''; html += ''; html += '
'; html += '
'; if( ! _linkoff ){html += '';} html += title; if( ! _linkoff ){html += '';} html += ''; if( _viewmode == 'ex' ){ html += ''; html += '[*]'; html += ''; } html += '
'; html += '
'+comment+'
'; html += '
'; html += '
'; return html; } });