/*
$(document).ready(function(){
		if(window.share_services_active ){
			$("#contentDialogButtons").css("display","block");
		}else{
			$("#contentDialogButtons").css("display","none");
		}
});
*/

function dialogBoxesSetDimensions() {
  $('.dialogbox').each(function() {
    $(this).find(".content").css("height","auto");
    //var contentWidth = $(this).find(".content").width();
    var contentWidth = $(this).width() - 24;
    var contentWidthIE = $(this).width();
    var contentHeight = $(this).find(".content").height();
    $(this).find(".leftBorder").css("height",contentHeight + 18);
    $(this).find(".rightBorder").css("height",contentHeight + 18);
    $(this).find(".content").css("height",contentHeight);
    if ( $.browser.msie ) {
	    $(this).find(".content").css("width",contentWidthIE);
    }else{
	    $(this).find(".content").css("width",contentWidth);
    }
    $(this).find(".topBorder").css("width",contentWidth - 6 + 24);
    $(this).find(".bottomBorder").css("width",contentWidth - 4 + 24);
    contentWidth = $(this).width();
    contentHeight = $(this).height();
    $(this).find("img.background").attr("width", contentWidth - 6).attr("height", contentHeight - 10).show();
  });
}

/*---------------fix the new showroom print page lose 'module_header' error--------------------*/
var separator = "";
if(document.title.indexOf("：") != -1){
    separator= "：";
}else if(document.title.indexOf(":") != -1){
    separator= ":";
}
if(separator){
    var separator_position = document.title.indexOf(separator);
    var module_header = document.title.substr(0,separator_position);
    if(typeof(moduleHeader) == 'undefined'){
        var moduleHeader =  module_header;
    }
}

