document.writeln('<link rel="stylesheet" type="text/css" href="/freeplus/common/styles/clobber.css" media="all" />');

jQuery.fn.accordion = function( elem, elemIco ){
	( jQuery( elem ).css( "display" ) == "block" || jQuery( elem ).css( "display" ) == "inline" ) ? jQuery( elem ).hide() : jQuery( elem ).show();
}

jQuery.fn.accordionNone = function( elem, elemIco ){
	if( jQuery( elem ).css( "display" ) == "inline" ){
		elemIco.src = elemIco.rSrc;
	}
}

jQuery.fn.objectOffsetTop = function(elem){
	return jQuery(elem).offset().top;
}

jQuery(function(){
	var closeImage = new Image();
	closeImage.src = "/freeplus/lineup/images/lineup_step01Ico_01.gif";
	jQuery('div.step01Title img').each(function(){
		this.oSrc = this.src;
		this.rSrc = this.oSrc.replace(/(\.gif|\.jpg|\.png)/, "_o" + "$1");
		jQuery(this).accordionNone( jQuery( this ).parent().parent().next(), this );
	});
	jQuery('map#accordionIco,map#accordionIco01,map#accordionIco02').bind('click', function(){
		var obj = this.parentNode.firstChild;
		if(obj.src == obj.oSrc){
			obj.src = obj.rSrc;
			this.firstChild.alt = "close";
		}else{
			obj.src = obj.oSrc;
			this.firstChild.alt = "open";
		}
		jQuery(this).accordion( 'div#' + jQuery( this ).parent().parent().next().attr( 'id' ), obj);
	})
	
});

