// JavaScript Document

function openWindow(win_url, win_name, win_w, win_h) {
  var win_para = "left=300,top=150,status=1,scrollbars=1,resizable=1,width="+win_w+",height="+win_h;
  newWindow = window.open(win_url,win_name,win_para);
  if (newWindow) { newWindow.focus(); }
  return false;
}

function launchWallpaper(strImageName) { 
  openWindow('popup/?image='+strImageName,'wallpop',720,700,1,1,0);
}


// Atlas link tracking in Flash
// The TrackTag variable refers to the location of the
// base action tag. In the actual implementation this 
// action tag will point to a 1x1 pixel GIF.

var TrackTag = 'http://view.atdmt.com/jaction/';

function GetActionTag(URL){ 
	//alert(TrackTag + URL);
  document.action_tag.src = TrackTag + URL;

// The URL passed from the SWF will be appended to TrackTag.
// The image will be loaded into the img src tags below the 
// Flash ad's OBJECT tag.

	// also for google analytics

	pageTracker._trackPageview(TrackTag + URL);
}
