﻿$(document).ready(function() {
    $('#PlusMinusHardwoodFlooringListTrigger').bind('click',function() {
        $('#HardwoodFlooringList').slideToggle('normal');
    });
    $('#TextHardwoodFlooringListTrigger').bind('click',function() {
        $('#HardwoodFlooringList').slideToggle('normal');
    });
    $('#PlusMinusLaminateFlooringListTrigger').bind('click',function() {
        $('#LaminateFlooringList').slideToggle('normal');
    });
    $('#TextLaminateFlooringListTrigger').bind('click',function() {
        $('#LaminateFlooringList').slideToggle('normal');
    });
    $('#PlusMinusMarbleListTrigger').bind('click',function() {
        $('#MarbleList').slideToggle('normal');
    });
    $('#TextMarbleListTrigger').bind('click',function() {
        $('#MarbleList').slideToggle('normal');
    });
    $('#PlusMinusCarpetListTrigger').bind('click',function() {
        $('#CarpetList').slideToggle('normal');
    });
    $('#TextCarpetListTrigger').bind('click',function() {
        $('#CarpetList').slideToggle('normal');
    });
    $('.buy-now').each(function (i) {
        $(this).before("<img src='/App_Themes/Default/Images/buy-now.png' alt='' style='position:absolute;padding-top:14px;padding-left:14px;' width='75px' height='75px' />");
    });
    $(".numeric").numeric();
    $('.button').button();
    $(".fancybox").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	true
	});
});
function startMenuCountdown() {
    
}
function changePlusMinus(id) {
    if (document.getElementById(id).title == "false") {
        document.getElementById(id).src = "/App_Themes/Default/Images/SideNavPlusIcon.gif";
        document.getElementById(id).alt = "Expand";
        document.getElementById(id).title = "true";
    }
    else {
        document.getElementById(id).src = "/App_Themes/Default/Images/SideNavMinusIcon.gif";
        document.getElementById(id).alt = "Expand";
        document.getElementById(id).title = "false";
    }
}
function rebindNumerics() {
    $(".numeric").numeric();
}
function openmodal(url) {
    //jquery dialog
    //var dialog = $('#loginmodal').appendTo('body');
    // load remote content
    $('#loginmodal').load(
            url, 
            {},
            function (responseText, textStatus, XMLHttpRequest) {
                    $('#loginmodal').dialog( {modal:true,title:'Enter email address',width:'420px' });
            }
    );
}
function openBecomemodal(url) {
    //jquery dialog
    //var dialog = $('#loginmodal').appendTo('body');
    // load remote content
    $('#loginmodal').load(
            url, 
            {},
            function (responseText, textStatus, XMLHttpRequest) {
                    $('#loginmodal').dialog( {modal:true,title:'Become a Member',width:'720px' });
            }
    );
}
function openMembermodal(url) {
    //jquery dialog
    //var dialog = $('#loginmodal').appendTo('body');
    // load remote content
      
    radWindow_ctl00_ContentPlaceHolder1_Singleton_ctl01.Close();
    $('#loginmodal').load(
            url, 
            {},
            function (responseText, textStatus, XMLHttpRequest) {
                    $('#loginmodal').dialog( {modal:true,title:'Enter email address',width:'420px' });
            }
    );
}
function closemodal() {
    $('#loginmodal').dialog("close");
    window.location.reload() ;
}


