function WM_preloadImages() {

/*
WM_preloadImages()
Loads images into the browser's cache for later use.

Source: Webmonkey Code Library
(http://www.hotwired.com/webmonkey/javascript/code_library/)

Author: Nadav Savio
Author Email: nadav@wired.com

Usage: WM_preloadImages('image 1 URL', 'image 2 URL', 'image 3 URL', ...);
*/

  // Don't bother if there's no document.images
  if (document.images) {
    if (typeof(document.WM) == 'undefined'){
      document.WM = new Object();
    }
    document.WM.loadedImages = new Array();
    // Loop through all the arguments.
    var argLength = WM_preloadImages.arguments.length;
    for(arg=0;arg<argLength;arg++) {
      // For each arg, create a new image.
      document.WM.loadedImages[arg] = new Image();
      // Then set the source of that image to the current argument.
      document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
    }
  }
}


// -->

function openPopUp2(url, name, width, height)
{
	
	//First Set the Attributes  for the Pop-Up Window ... !!!
	//If the Screen Resolution is <= 1024 Then the Pop-Up Window should be shown on the Top-Right Corner of the Screen
	//If the Screen Resolution is >  1024 Then the Pop-Up Window should be shown using the Standard Off-Set of 1024 Resolution.
	
	var screenW = screen.width;
	var screenH = screen.height;
	if (screenW > 1024)
		{
			screenW = 1024 - width;
		}
	else
		{
			screenW = screenW - width - 15;
		}
	
	settings = "toolbar=1,location=1,directories=0,"+
	           "status=1,menubar=1,scrollbars=1,"+
	           "resizable=1,width="+width+",height="+
	           height+",left="+screenW+",top=10,screenX=250,screenY=10";

	var PopUp1 = window.open(url, name, settings); 
	
	//Added the Following Code to Keep the Window Active When Clicking on the Next Link, Especially on the MyDownloads Page in eStore... !!!
	if (!PopUp1 || PopUp1.closed)
		{
			PopUp1 = window.open(url, name, settings);
		}
	else
		{
			PopUp1.focus();
		}
}
