//non-obtrusive javascript popup window.
//to use this add mccpopup class to your a href tag.
// the window opened will be 600 by 500

$(document).ready(function () {
    //500x600 popup window.   
    $('a.mccpopup').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=yes, width=500, height=600, resizable=yes");
            return false;
        });
    });
        
    //780x500 popup window.   
    $('a.mccpopup780').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=yes, width=780, height=500, resizable=yes");
            return false;
        });
    });
   //780x600 popup window.   
    $('a.mccpopup780L').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=yes, width=780, height=600, resizable=yes");
            return false;
        });
    });

    //600x600 popup window.   
    $('a.mccpopup600').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=yes, width=600, height=600, resizable=yes");
            return false;
        });
    });
    //400x400 popup window.   
    $('a.mccpopup400').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=no, width=400, height=400, resizable=yes");
            return false;
        });
    });
    //800x600 popup window.   
    $('a.mccpopup800').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=yes, width=800, height=600, resizable=yes");
            return false;
        });
    });
    //800x350 popup window.   
    $('a.mccpopup835').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=yes, width=835, height=350, resizable=yes");
            return false;
        });
    });
    //800x350 popup window.   
    $('a.mccpopup860').each(function (i) {
        $(this).click(function () {
            window.open(this.href, "window", "scrollbars=yes, width=880, height=600, resizable=yes");
            return false;
        });
    });
	//Close a popup window. Use the closewindow class for the href tag.  
    $('a.closewindow').each(function (i) {
        $(this).click(function () {
            self.close();
            return false;
        });
    });
});





