﻿/// <reference path="jquery-1.4.2-vsdoc.js" />

$(document).ready(function () {

    //    var i = 0;

    //    if ($('#paginator').height() > 0) {
    //        i = 20;
    //    }
    //    if ($('#detail').height() > 0) {
    //        i = -14;
    //    }

    //    if ($('#g18').height() > $('#nav').height()) {

    //        $('#nav').height($('#g18').height() - i);

    //    } else {

    //        $('#list').height($('#nav').height() - $('#bar').height() - 77);

    //    }
    //        
    

});

function changeImg(img, lnk, imageURL, bigImageURL) {
    
    var image = $('#' + img);
    var link = $('#' + lnk);

    if (img) {
        image.attr('src', imageURL);
    }
    if (lnk) {
        link.attr('href', bigImageURL);
    }
}

function cvv() {
    var wWidth = 400;
    var wHeight = 350;
    var wTop = (screen.availHeight - wHeight) / 2
    var wLeft = (screen.availWidth - wWidth) / 2
    var vbvWindow = window.open(path + '/cvv.aspx', 'cvv', 'width=' + wWidth + ',height=' + wHeight + ',top=' + wTop + ',left=' + wLeft);
}

function vbv() {
    var wWidth = 400;
    var wHeight = 350;
    var wTop = (screen.availHeight - wHeight) / 2
    var wLeft = (screen.availWidth - wWidth) / 2
    var vbvWindow = window.open(path + '/vbv.aspx', 'vbv', 'width=' + wWidth + ',height=' + wHeight + ',top=' + wTop + ',left=' + wLeft);
}

function mc() {
    var wWidth = 550;
    var wHeight = 400;
    var wTop = (screen.availHeight - wHeight) / 2
    var wLeft = (screen.availWidth - wWidth) / 2
    var vbvWindow = window.open('http://www.MasterCardbusiness.com/mcbiz/index.jsp?template=/orphans&content=securecodepopup', 'mc', 'width=' + wWidth + ',height=' + wHeight + ',top=' + wTop + ',left=' + wLeft);
}
