//<div ssl-dialog> is in the file footer.tpl
function showSSLDialog(){
    $("#ssl-dialog").dialog({
		modal:true,
		draggable:false,
		width:590,
        buttons: {
            "Close": function(){
                   $(this).dialog("destroy");
            }
        }
	}).dialog("open");
}
//<div shipping-dialog> is in the file footer.tpl
function showShippingDialog(){
    $("#shipping-dialog").dialog({
		modal:true,
		draggable:false,
		width:590,
        buttons: {
            "Close": function(){
                   $(this).dialog("destroy");
            }
        }
	}).dialog("open");
}
//<div moneyback-dialog> is in the file footer.tpl
function showMoneybackDialog(){
    $("#moneyback-dialog").dialog({
		modal:true,
		draggable:false,
		width:700,
        buttons: {
            "Close": function(){
                   $(this).dialog("destroy");
            }
        }
	}).dialog("open");
}

$(document).ready(function(){
    $("a[href$='/cvv/']").click(function(){
        showCVVDialog();
        return false;
    });

});
//<div cvv-dialog> is in the file footer.tpl
function showCVVDialog(){
    $("#cvv-dialog").dialog({
		modal:true,
		draggable:false,
		width:700,
        buttons: {
            "Close": function(){
                   $(this).dialog("destroy");
            }
        }
	}).dialog("open");
}
//<div faq-dialog> is in the file footer.tpl
function showFAQDialog(){
    $("#faq-dialog").dialog({
		modal:true,
		//draggable:false,
		width:790,
		height:580,
        buttons: {
            "Close": function(){
                   $(this).dialog("destroy");
            }
        }
	}).dialog("open");
}
/**
 * делает активной первую вкладку в табах
 * (для полного описания на странице товара)
 */
function selectFirstTab() {
    $("#tabs").tabs('select','#tabs-1');
}