﻿function noAction() {
}
$(document).ready(function() {
    $("#ilv").click(function() {
        $("#topSelect").animate({
            left: "109px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/ilv.jpg"
			    }
		    );
        });
        $("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=ILV&packageCode=PULS3"
			    }
		    );
		$("#popupPropLogoImg").attr({
		            src: "images/ilvSmallLogo.gif"
		});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    })
    $("#flv").click(function() {
        $("#topSelect").animate({
            left: "203px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/flv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=FLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/flvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    })
    $("#las").click(function() {
        $("#topSelect").animate({
            left: "295px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/las.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=LAS&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/lasSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    })
    $("#blv").click(function() {
        $("#topSelect").animate({
            left: "395px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/blv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=BLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/blvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    })
    $("#rlv").click(function() {
        $("#topSelect").animate({
            left: "490px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/rlv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=RLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/rlvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    })
    $("#plv").click(function() {
        $("#topSelect").animate({
            left: "570px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/plv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=PLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/plvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    })
    $("#clv").click(function() {
        $("#topSelect").animate({
            left: "663px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/clv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=CLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/clvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    })


    // Auto Rotate Stuff

    //Turn off if click popup or any of the props
    $(".topNavProp, #couponDetailsLink").click(function() {

    $("#bookNowLink").stopTime();

    });
    $("#bookNowLink").oneTime("5s", function() {
        $("#topSelect").animate({
            left: "203px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/flv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=FLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/flvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);
    });

    $("#bookNowLink").oneTime("10s", function() {
        $("#topSelect").animate({
            left: "295px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/las.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=LAS&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/lasSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);
    });


    $("#bookNowLink").oneTime("15s", function() {
        $("#topSelect").animate({
            left: "395px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/blv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=BLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/blvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);
    });

    $("#bookNowLink").oneTime("20s", function() {
        $("#topSelect").animate({
            left: "490px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/rlv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=RLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/rlvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);
    });

    $("#bookNowLink").oneTime("25s", function() {
        $("#topSelect").animate({
            left: "570px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/plv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=PLV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/plvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);
    });

    $("#bookNowLink").oneTime("30s", function() {
        $("#topSelect").animate({
            left: "663px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/clv.jpg"
			    }
		    );
        });
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);

    });

    $("#bookNowLink").oneTime("35s", function() {
        $("#topSelect").animate({
            left: "109px"
        }, 1000);
        $("#propSpecificContent").animate({
            opacity: 0
        }, 500, function() {
            $("#propSpecificContentImg").attr(
			    {
			        src: "images/ilv.jpg"
			    }
		    );
			});
			$("#bookNowLink, #bookNowPopupLink").attr(
			    {
			        href: "http://www.harrahs.com/MakeReservation.do?propCode=ILV&packageCode=PULS3"
			    }
		    );
			$("#popupPropLogoImg").attr({
			    src: "images/ilvSmallLogo.gif"
			});
        $("#propSpecificContent").animate({
            opacity: 1
        }, 500);
    });
    $('#couponDetailsLink').attr('href', '#offersDiv');
    $.nyroModalSettings({
        padding: 0,
        resizable: false,
        width: 975,
        height: 585,
        css: {
            content: {
                overflow: 'hidden'
            }
        }
    });
})

