$(document).ready(function(){
//Menu Open
$('body:not([id="top"]) nav[role="navigation"] > ul > li').hover(
function () {
$(this).children('ul.menuhide').show();
$(this).children('span.rollover').css('border-bottom','1px solid #ffffff');
  },
function () {
$(this).children('ul.menuhide').hide();
$(this).children('span.rollover').css('border-bottom','1px solid #dddddd');
  }
);


initRollOverImages();

$("a.c_blank").click(function(){ window.open(this.href, ''); return false; });
});

/*rollOver*/
function initRollOverImages() {
  var image_cache = new Object();
  $("img.rover,input.rover").each(function(i) {
    var imgsrc = this.src;
    var dot = this.src.lastIndexOf('.');
    var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
    image_cache[this.src] = new Image();
    image_cache[this.src].src = imgsrc_on;
    $(this).hover(
      function() { this.src = imgsrc_on; },
      function() { this.src = imgsrc; });
  });
}



function preview_back(){ 
window.history.back();
 }

function preview_home(){ 
location.href = "/";
 }
 
function preview_reload(){ 
window.location.reload();
 }

function preview_a(){ 
alert("公開分のコンテンツ表示へ飛ぶ");
 }

function preview_b(){ 
alert("非公開分含むのコンテンツ表示へ飛ぶ");
 }
