﻿function OpenItemPreview(id) {
    OpenInline('ItemPreview', 650, 450, 'ItemPreview.aspx?itemId=' + id, '', '', 0);
}

function OpenItemPreviewCart(id) {
    OpenInline('ItemPreview', 650, 450, 'ItemPreview.aspx?addToCart=cart&itemId=' + id, '', '', 0);
}

function OpenEmailFriend(id) { 
    OpenInline('EmailFriend', 650, 450, 'EmailFriend?itemId=' + id);
}

function OpenSendToFriend(id) {
    OpenInline('SendToFriend', 400, 290, '/Category/SendToFriend?itemId=' + id, '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/email_friend.png"/>&nbsp;Send To Friend', 0);
}

function OpenImageGallery(id){
    OpenInline('ImageGallery', 480, 565, '/Category/ImageGallery?itemId=' + id, '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/zoom.png"/>&nbsp;Zoom', 0);
}

function OpenRegisterWindow() {
    OpenInline('Register', 380, 260, '/UserAccount/Register', '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/register.png"/>&nbsp;Create an Account', 0);
}

function OpenForgotPasswordWindow() {
    OpenInline('ForgotPassword', 400, 350, '/UserAccount/ForgotPassword', '', 'Recover Your Password', 0);
}

function OpenSuggestionWindow(type) {
    OpenInline("Suggestion", 410, 280, '/Shared/Suggest?type=' + type, '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/suggestion.png"/>&nbsp;Make a suggestion', 1);
}

function OpenColorFilterWindow(category, isAsSeenIn) {
    OpenInline("ColorFilter", 480, 320, '/Category/FilterColors?categoryUrl=' + category + "&isAsSeenIn=" + isAsSeenIn, '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/colors.png"/>&nbsp;Refine by Color', 0);
}

function OpenBrandFilterWindow(category, isAsSeenIn) {
    OpenInline("BrandFilter", 820, 520, '/Category/FilterBrands?categoryUrl=' + category + "&isAsSeenIn=" + isAsSeenIn, '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/brand.png"/>&nbsp;Refine by Brand', 0);
}

function OpenWebsiteFilterWindow(category, isAsSeenIn) {
    OpenInline("WebsiteFilter", 820, 540, '/Category/FilterWebsites?categoryUrl=' + category + "&isAsSeenIn=" + isAsSeenIn, '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/website.png"/>&nbsp;Refine by Website', 0);
}

function OpenPriceFilterWindow(category, isAsSeenIn) {
    OpenInline("PriceFilter", 350, 210, '/Category/FilterPrices?categoryUrl=' + category + "&isAsSeenIn=" + isAsSeenIn, '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/prices.gif"/>&nbsp;Refine by Price', 0);
}
function OpenFeedbackWindow() {
    OpenInline("Feedback", 400, 225, '/Category/Feedback', '', '<img class="iconTitlePopup" src="//ifashionista.com/assets/layout/window/icons/feedback.png"/>&nbsp;Feedback', 0);
}
function OpenProductCommentWindow(productId) {
    OpenInline("ProductComment", 400, 250, '/Category/ProductComment?productId=' + productId, '', '', 0);
}
function OpenProductRatingWindow(productId) {
    OpenInline("ProductRating", 250, 180, '/Category/ProductRating?productId=' + productId, '', '', 0);
}

function OpenShopByBrandSelectCategoriesWindow(brandId) {
    OpenInline("ShopByBrand", 500, 320, '/ShopBy/Select?brandId=' + brandId, '', 'Shop By Brand Categories', 0);
}

function OpenShopByWebsiteSelectCategoriesWindow(websiteId) {
    OpenInline("ShopByBrand", 500, 320, '/ShopBy/Select?websiteId=' + websiteId, '', 'Shop By Website Categories', 0);
}