if (!self.storytools_js) { self.storytools_js = true; if (!self.pwc) { /*********************************************************************************** * Print an appropriate ema*l l*nk. **********************************************************************************/ function pwc(sToken, sStyle) { if ('undefined' != typeof sToken ) { switch (sToken) { case 'media': ec("media4glc", "GoLakeChelan", "com", undefined, undefined, undefined, sStyle); break; case 'news': ec("newsroom", "GoLakeChelan", "com", undefined, undefined, undefined, sStyle); break; case 'sales': ec("sales4glc", "GoLakeChelan", "com", undefined, undefined, undefined, sStyle); break; case 'main': default: ec("staff.all", "GoLakeChelan", "com", undefined, undefined, undefined, sStyle); break; } } else { } } } if (!self.continueLink) { /*********************************************************************************** * Print a link to continue to rest of story/full store on home page only. **********************************************************************************/ function continueLink(label_text, section_name, file_name, sid, target) { var target_string = target || ""; if (self.location.href.indexOf("index2.php") != -1) { document.write('' + label_text + '

'); } } } if (!self.emailStoryLink) { /*********************************************************************************** * Print a link to email this story to a friend. **********************************************************************************/ function emailStoryLink(label_text, story_title, section_name, file_name, sid) { var title_string = story_title || "A Story of Interest on GoLakeChelan.com"; story_title = story_title.replace(/'/gi, '`'); /* var label_string = label_text || "Click Here to Email This Story to A Friend"; */ var label_string = label_text || ""; /* var href_string = 'mailto:?subject=' + title_string + '&body=' + escape('Here\'s a link to a great GoLakeChelan.com story: http://www.golakechelan.com/modules.php?name=' + section_name + '&file=' + file_name + '&sid=' + sid); */ var href_string = '"gonowhere.htm" onclick="window.open(\'http://golakechelan.com/send2friend/send2friend.php?storyID=' + sid + '&s_title=' + story_title + '\',\'mywindow\',\'width=300,height=350\');return false;"'; /* document.write('' + label_string + ''); } } if (!self.ec) { /*********************************************************************************** * Print an *ma*l ad*r*ss obf*sc*ted **********************************************************************************/ function ec(sAlias, sDom, sSuf, sLabel, sSubj, sBody, sStyle) { // Custom *ma*l link generator for GoLakeChelan.com var sEA = sAlias; if (sEA.toLowerCase() == 'staff') sEA = 'staff.all'; sEA += "@"; sEA += sDom; sEA += "." + sSuf; if ('undefined' == typeof sLabel) sLabel = sEA; document.write('<'); document.write('a '); document.write('hr'); document.write('ef'); document.write('="ma'); document.write('ilt'); document.write('o:'); document.write(sEA); // If a subject and/or body is supplied, use it/them if ('undefined' != typeof sSubj && sSubj.length) document.write('?sub' + 'ject' + '=' + escape(sSubj)); if ('undefined' != typeof sBody && sBody.length) { if ('undefined' != typeof sSubj && sSubj.length) document.write('&'); else document.write('?'); document.write('bo' + 'dy' + '=' + escape(sBody)); } if ('undefined' != typeof sStyle && sStyle.length) document.write('" style="' + sStyle); document.write('">'); document.write(sLabel); document.write('<'); document.write('/'); document.write('a>'); } } } // if (storytools_js)