jQuery(document).ready( function(){
// doccument ready ////////////////////////////////////////
PEPS.rollover.init();

$(".asahiTweet .tweet").tweet({
				username: 		["shukanasahi_dan"]												
});
$(".yamaguchiTweet .tweet").tweet({
				username: 		["kazu1961omi"]												
});

//End of doccument ready ////////////////////////////////////////
});


// Roll over ////////////////////////////////////////
PEPS = {};

PEPS.rollover =
{
   init: function()
   {
      this.preload();
     
      jQuery(".over").hover(
         function () { jQuery(this).attr( 'src', PEPS.rollover.newimage(jQuery(this).attr('src')) ); },
         function () { jQuery(this).attr( 'src', PEPS.rollover.oldimage(jQuery(this).attr('src')) ); }
      );
   },

   preload: function()
   {
      jQuery(window).bind('load', function() {
         jQuery('.over').each( function( key, elm ) { jQuery('<img>').attr( 'src', PEPS.rollover.newimage( jQuery(this).attr('src') ) ); });
      });
   },
   
   newimage: function( src )
   {
      return src.substring( 0, src.search(/(\.[a-z]+)$/) ) + '_over' + src.match(/(\.[a-z]+)$/)[0];
   },

   oldimage: function( src )
   {
      return src.replace(/_over\./, '.');
   }
};
// Roll over end ////////////////////////////////////////

function sampleView(url) {
	window.open(url,'popup',"width=960,height=700,toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1").focus();
}


// SWF object ////////////////////////////////////////
var flashvars = {};
var params = {
wmode: "transparent",
allowscriptaccess: "always"
};
var attributes = {};
swfobject.embedSWF("http://www.wa-dan.com/images/topfla.swf", "noFlash", "930", "220", "9.0.0","", flashvars, params, attributes);
swfobject.embedSWF("http://www.wa-dan.com/images/douga.swf", "noVideo", "314", "234", "9.0.0","", flashvars, params, attributes);
