
document.write('<style type="text/css" media="screen,tty,tv,projection,handheld,print,braille,embossed,speech">');

//共通
document.write('#logo,');
document.write('#pagetop,');
document.write('#foot-logo,');
document.write('#ban li,');

//ホーム
document.write('#subhead li,');
document.write('#subnav li,');
document.write('h1');

document.write('{display:block;text-align: left;text-indent: -9999px;}');
document.write('</style>');

//画像置換
$(function(){
	//共通
	$("#logo").jQIR("png", "/img/common/");
	$("#pagetop").jQIR("gif", "/img/common/");
	$("#foot-logo").jQIR("gif", "/img/common/");
	
	//nav
	$("#subhead li").jQIR("png", "/img/subnav/");
	$("#subnav li").jQIR("png", "/img/subnav/");

	//h1
	$(".cat-news h1").jQIR("png", "/img/h1/news");
	$(".cat-staff_blog h1").jQIR("png", "/img/h1/staff_blog");
	$(".cat-dsh h1").jQIR("png", "/img/h1/dsh");
	$(".cat-join_designer h1").jQIR("png", "/img/h1/join_designer");
	$(".cat-seminar_events h1").jQIR("png", "/img/h1/seminar_events");
	$(".cat-access h1").jQIR("png", "/img/h1/access");
	$(".cat-volunteer h1").jQIR("png", "/img/h1/volunteer");
	$(".cat-supporting h1").jQIR("png", "/img/h1/supporting");
	$(".cat-link h1").jQIR("png", "/img/h1/link");
	$(".cat-privacy h1").jQIR("png", "/img/h1/privacy");
	$(".cat-inquiry h1").jQIR("png", "/img/h1/inquiry");

	//sidebar
	$("#ban01").jQIR("png", "/img/sidebar/");
	$("#ban02").jQIR("gif", "/img/sidebar/");
	$("#ban03").jQIR("gif", "/img/sidebar/");


	//ロールオーバー
	$("#subnav li a img").rollover(); //接尾語は初期設定値のまま
	
	//アクティブ
	$(".cat-news #subnav-news a").jQIR("png", "/img/subnav/subnav-news_over");
	$(".cat-staff_blog #subnav-staff_blog a").jQIR("png", "/img/subnav/subnav-staff_blog_over");
	$(".cat-dsh #subnav-designers_showhouse a").jQIR("png", "/img/subnav/subnav-designers_showhouse_over");
	$(".cat-join_designer #subnav-join_designer a").jQIR("png", "/img/subnav/subnav-join_designer_over");
	$(".cat-seminar_events #subnav-seminar_events a").jQIR("png", "/img/subnav/subnav-seminar_events_over");
	$(".cat-access #subnav-access a").jQIR("png", "/img/subnav/subnav-access_over");
	$(".cat-volunteer #subnav-volunteer a").jQIR("png", "/img/subnav/subnav-volunteer_over");
	$(".cat-supporting #subnav-supporting a").jQIR("png", "/img/subnav/subnav-supporting_over");
	$(".cat-link #subnav-link a").jQIR("png", "/img/subnav/subnav-link_over");

	
	//最後の記述
	$("style[media='screen,tty,tv,projection,handheld,print,braille,embossed,speech']").remove();
});

//角丸
  addEvent(window, 'load', initCorners);

  function initCorners() {
    var settings = {
      tl: { radius: 5 },
      tr: { radius: 5 },
      bl: { radius: 5 },
      br: { radius: 5 },
						antiAlias: true
    }

    /*
    Usage:

    curvyCorners(settingsObj, selectorStr);
    curvyCorners(settingsObj, Obj1[, Obj2[, Obj3[, . . . [, ObjN]]]]);

    selectorStr ::= complexSelector [, complexSelector]...
    complexSelector ::= singleSelector[ singleSelector]
    singleSelector ::= idType | classType
    idType ::= #id
    classType ::= [tagName].className
    tagName ::= div|p|form|blockquote|frameset // others may work
    className : .name
    selector examples:
      #mydiv p.rounded
      #mypara
      .rounded
    */
    curvyCorners(settings, "h2");
  }
