﻿$(function () {
    $(".brochure").prepend("<img src='/images/pdf-icon-sm.jpg' />");
});

// JScript File
function $get(e) { return document.getElementById(e); }
function $toggle(d) {
    if ($get(d).style.display == 'none')
        $get(d).style.display = 'block';
    else
        $get(d).style.display = 'none';
}
function $hide(d) { $get(d).style.display = 'none'; }
function $show(d) { $get(d).style.display = 'block'; }
function disableCartBtn() { $get('scb').innerHTML = 'Shopping Cart'; }
function disableCheckOutBtn() { $get('cob').innerHTML = 'Check Out'; }


var popWin = null // use this when referring to pop-up window
var winCount = 0
var winName = "popWin"
function openPopWin(winURL, winWidth, winHeight, winFeatures, winLeft, winTop) {
    var d_winLeft = 20 // default, pixels from screen left to window left
    var d_winTop = 20 // default, pixels from screen top to window top
    winName = "popWin" + winCount++ //unique name for each pop-up window
    closePopWin() // close any previously opened pop-up window
    if (openPopWin.arguments.length >= 4) // any additional features?
        winFeatures = "," + winFeatures
    else
        winFeatures = ""
    if (openPopWin.arguments.length == 6) // location specified
        winFeatures += getLocation(winWidth, winHeight, winLeft, winTop)
    else
        winFeatures += getLocation(winWidth, winHeight, d_winLeft, d_winTop)
    popWin = window.open(winURL, winName, "width=" + winWidth
+ ",height=" + winHeight + winFeatures)
}
function closePopWin() { // close pop-up window if it is open
    if (navigator.appName != "Microsoft Internet Explorer"
|| parseInt(navigator.appVersion) >= 4) //do not close if early IE
        if (popWin != null) if (!popWin.closed) popWin.close()
}
function getLocation(winWidth, winHeight, winLeft, winTop) {
    return ""
}

function popupPaper(d) {
    document.getElementById(d).style.display = 'block';
}
function popdownPaper(d) {
    document.getElementById(d).style.display = 'none';
}


