/*eb_popus.js */

// Popup Functions
function smallPopup(url) {
   return window.open( url, "ebpopup", "height = 300, width = 400, resizable = 1, toolbar=0, location=0, directories=0, status=0, menubar=0, top=400, left=400, scrollbars=0" );
}

function mediumPopup(url) {
   return window.open( url, "ebpopup", "height = 500, width = 500, resizable = 1, toolbar=0, location=0, directories=0, status=0, menubar=0, top=400, left=400, scrollbars=0" );
}
function largePopup(url) {
   return window.open( url, "ebpopup", "height = 700, width = 700, resizable = 1, toolbar=0, location=0, directories=0, status=0, menubar=0, top=200, left=200, scrollbars=0" );
}


// JQuery Scripts  +

$(function(){ // Run this code when the document's done loading    

    // Apply this code to each link with class="smallpopup"
   $("a.smallpopup").each(function (i){

        // Add an onClick behavior to this link
       $(this).click(function(event) {

            // Prevent the browser's default onClick handler
           event.preventDefault();
            // Pop up the window
           smallPopup(this.href);
       });
   });


   $("a.mediumpopup").each(function (i){

        // Add an onClick behavior to this link
       $(this).click(function(event) {

            // Prevent the browser's default onClick handler
           event.preventDefault();
            // Pop up the window
           mediumPopup(this.href);
       });
   });


   $("a.largepopup").each(function (i){

        // Add an onClick behavior to this link
       $(this).click(function(event) {

            // Prevent the browser's default onClick handler
           event.preventDefault();
            // Pop up the window
           largePopup(this.href);
       });
   });
});

// JQuery Scripts  -

