// ++++++++++++++++++++++++++++++++++++++++++ 
// Run Once Per Session 
// 
// Replace the alerts by functions that need to 
// be run once per session. 
// 
// Written by: Michael Regan 
// Website   : www.owt4nowt.ca 
// 
// Released under the GPL. 
// ++++++++++++++++++++++++++++++++++++++++++ 
var key_value = "PMX=true"; 
var foundCookie = 0; 

// Get all the cookies from this site and store in an array 
var cookieArray = document.cookie.split(';'); 

    // Walk through the array 
    for(var i=0;i < cookieArray.length;i++) 
        { 
               var checkCookie = cookieArray[i]; 
        // Remove any leading spaces 
               while (checkCookie.charAt(0)==' ') 
               { 
                 checkCookie = checkCookie.substring(1,checkCookie.length); 
               } 
        
        // Look for cookie set by key_value 
                if (checkCookie.indexOf(key_value) == 0) 
               { 
                  null 
            // The cookie was found so set the variable 
                   foundCookie = 1; 
               } 
    } 
    // Check if a cookie has been found 
    if ( foundCookie == 0) 
    { 
        // The key_value cookie was not found so set it now 
        document.cookie = key_value; 
        window.addEvent("domready", function() { 
   Slimbox.open('http://www.aida-global.com/images/stock/stock-modal.jpg', '<a href="mailto:info@aida-america.com&amp;subject=Stock%20Press%20Inquiry?body=Please%20contact%20me%20about%20AIDA%20Quick%20Delivery%20Stock%20Presses.%0D%0DContact%20Name:%0D%0DCompany%20Name:%0D%0DAddress:%0D%0DTel:%0D%0DEmail:%0D%0DApplication/Press%20Requirements:">CLICK HERE NOW for more information and to REQUEST A QUOTE</a><br /><br />Or contact AIDA now for Quick Delievery Stock Press Information<br /> <a href="mailto:info@aida-america.com">info@aida-america.com</a> | 937-237-2382<br /><br /><a href="http://www.aida-global.com/quick-delivery/stock-presses.cfm">View the entire AIDA Stock Press List - Click Here</a>'); 
}); 
    }  