﻿function openChat() {
    window.open('http://www.simplyss.com/chat.html', 'asdf', 'width=400,height=230,left=200,top=150, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=yes');
}

function showMap(url) {
    window.open(url, 'googMap');
}

function showCVV() {
    window.open('http://www.simplyss.com/cvvInfo.htm', 'asdf', 'width=200,height=200,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no');
}


function ShowPopup(url, winname, width, height) {
    var MyURL = url;
    var MyWindowName = winname;
    var MyWidth = width;
    var MyHeight = height;
    var MyScrollBars = 'No';
    var MyResizable = 'No';
    var MyMenuBar = 'No';
    var MyToolBar = 'No';
    var MyStatusBar = 'No';
    //var MyMinimizable = 'No';
    var MyDependent = 'Yes';
    var MyTitleBar = 'No';

    if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
        var xMax = window.outerWidth, yMax = window.outerHeight;
    else
        var xMax = 640, yMax = 480;

    var xOffset = (xMax - MyWidth) / 2, yOffset = (yMax - MyHeight) / 2;
    window.open(MyURL, MyWindowName, 'width=' + MyWidth + ',height=' + MyHeight + ',screenX= ' + xOffset + ',screenY=' + yOffset + ',top=' + yOffset + ',left=' + xOffset + ',scrollbars=' + MyScrollBars + ',resizable=' + MyResizable + ',menubar=' + MyMenuBar + ',toolbar=' + MyToolBar + ',status=' + MyStatusBar + ', dependent=' + MyDependent + ', TitleBar=' + MyTitleBar + '');
}


$(document).ready(function() {
    //Examples of how to assign the ColorBox event to elements
    $("a[rel='example1']").colorbox();
    $("a[rel='example2']").colorbox({ transition: "fade" });
    $("a[rel='example3']").colorbox({ transition: "none", width: "75%", height: "75%" });
    $("a[rel='example4']").colorbox({ slideshow: true });
    $(".single").colorbox({}, function() {
        alert('Howdy, this is an example callback.');
    });
    $(".colorbox").colorbox();
    $(".youtube").colorbox({ iframe: true, width: 650, height: 550 });
    $(".iframe").colorbox({ width: "80%", height: "80%", iframe: true });
    $(".inline").colorbox({ width: "50%", inline: true, href: "#inline_example1" });

    //Example of preserving a JavaScript event for inline calls.
    $("#click").click(function() {
        $('#click').css({ "background-color": "#f00", "color": "#fff", "cursor": "inherit" }).text("Open this window again and this message will still be here.");
        return false;
    });
});

