/**
 * link with div
 */
function linkWithDiv(class_box)
{
  $(class_box).each(function() {
    var href = $(this).find("a").attr("href")
    $(this).hover(function(){ $(this).css("cursor", "pointer") })
    $(this).click(function(){ location.href = href })
  })
}


/**
 * setting background image
 */
function setBackImg(class_box, img_back) 
{
  $(class_box).each(function(){
  
    var str_html = $(this).html()
    var w = $(this).css("width")
    var h = $(this).css("height")
  
    $(this).css("position", "relative")
    $(this).html('<img class="back_content" style="position:absolute; top:0; left:0;" />')
    $(this).find(".back_content").attr("src"  , img_back)
    $(this).find(".back_content").css("width" , w)
    $(this).find(".back_content").css("height", h)
    
    $(this).append('<div class="back_html" style="margin: 10px; position:absolute; top:0; left:0;"></div>')
    $(this).find(".back_html").html(str_html)
    
  })
}


