(function() { var d = document, l = d.location, e = encodeURIComponent, u = e(l.href), t = e(d.title); // implied global socializeIt = function(where) { var url; if (where == 'Buzz') { url = 'http://buzz.yahoo.com/submit?submitUrl='+ u +'&t=' + t; } else if (where == 'del.icio.us') { url = 'http://del.icio.us/post?v=4&noui&jump=close&url=' + u + '&title=' + t; } else if (where == 'Facebook') { url = 'http://www.facebook.com/share.php?u='+ u +'&t=' + t; } else if (where == 'Google') { url = 'http://www.google.com/ig/adde?moduleurl=www.google.com/ig/modules/bookmarks.xml&hl=en/u='+ u +'&t=' + t; } else if (where == 'Myspace') { url = 'http://www.myspace.com/Modules/PostTo/Pages/?u='+ u +'&t=' + t; } else if (where == 'StumbleUpon') { url = 'http://www.stumbleupon.com/submit?url=' + u + '&title=' + t; } else if (where == 'Technorati') { url = 'http://technorati.com/faves/?add=' + u; } else if (where == 'Twitter') { url = 'http://twitter.com/home?status=Reading%20about%20this:%20'+t+'%20-%20' + u; } else { throw new Error ('unknown social site "' + where + '"'); } window.open(url, 'sharer', 'toolbar=0,status=0,width=700,height=500,resizable=yes,scrollbars=yes'); return false; }; var sites = ['Google', 'Buzz', 'Facebook', 'Myspace', 'StumbleUpon', 'Technorati', 'del.icio.us', 'Twitter']; // Note that the number of elements and order of the array of images must match that of the sites array above. var imgURLs = new Array(); var iLen = sites.length; var i; for(i = 0; i < iLen; i++) { imgURLs[i] = 'http://yummydelicious.com/01pics/objects/'; } //Google imgURLs[0] += 'google.gif'; //Yahoo Buzz imgURLs[1] +='yahoobuzz1.gif'; //Facebook imgURLs[2] += 'Facebook.jpg'; //Myspace imgURLs[3] += 'myspace.gif'; //StumbleUpon Image imgURLs[4] += 'StumbleUpon.jpg'; //Technorati Image imgURLs[5] += 'Technorati.jpg'; //Delicious Image imgURLs[6] += 'delicious.jpg'; //Twitter Image imgURLs[7] += 'twitter.gif'; document.writeln('

'); for (i=0; i<4; i++) { var site = sites[i]; var imgURL = imgURLs[i]; document.writeln(''); } document.writeln(''); for (i=4; i'+site+''); } document.writeln('
Share this page: 
What\'s This?
'+site+'
'); })();