ATP 04: ATP Nationwide Medical Mission

Not a Member? Get your own stunning online album! Get Started!

cssdropdown.startchrome(“chromemenushop”)

Atp’s Album Collection

gallery views
Link to this gallery

Embed Code:

Copied to your clipboard

HTML Link Code:

Copied to your clipboard

var collapse1 = new animatedcollapse(“MoreRSS”, 1000, true, “block”)

Atp Atp
Country: PH

// resistance is futile
var showpopup = 0;
var wasclicked = false;
var consuela = “unset”;
var debug_popup = false;

function log(msg) {

if ( ! debug_popup) return;

if ( typeof consuela == “string” || consuela.closed) {
consuela = window.open(”, “console”, “height=600,width=500,scrollbars=yes”);
consuela.document.writeln(‘<hr>’ + new Date() + ‘<br>’);
}
consuela.document.writeln(msg + “<br>”);
consuela.scrollBy(0,50); // keep scrolling down
}

if (document.referrer.indexOf(‘myphotoalbum.com’) == -1 && (!(document.referrer == null))) {
log(“Set showpopup to 1: referrer was not myphotoalbum.com, and was not null.<br>”);
showpopup = 1;
} else {
log(“Did not set showpopup, on: myphotoalbum.com, http://atpcorporation.myphotoalbum.com/<br>&#8221;);
}

if (navigator.appVersion.indexOf(‘MSIE’) != -1 && navigator.appVersion.indexOf(‘Macintosh’) != -1) {
showpopup = 0;
log(“this is IE on the mac. Not doing anything.”);
}

// set a cookie for 90 days. If the cookie already exists we don’t need to give them the popup.

function createCookie(name,value,days)
{
if (days)
{
var date = new Date();
date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
var expires = “; expires=” + date.toGMTString();
}
else var expires = “”;
log(“setting teh c00kie!” + value + expires + “<br>”);
document.cookie = name + “=” + value + “; domain=myphotoalbum.com” + expires + “; path=/”;
//alert (document.cookie);
}

function readCookie(name)
{
var nameEQ = name + “=”;
var ca = document.cookie.split(‘;’);
for(var i=0;i < ca.length;i++)
{
var c = ca[i];
while (c.charAt(0) == ‘ ‘) c = c.substring(1,c.length);
if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}
log(“readCookie: nope, didn’t find a cookie. returning false.<br>”);
return false;
}

function MyExtendOnClick() {

wasclicked = true;
if ( (this.host.indexOf(‘myphotoalbum.com’) != -1) || (this.href.indexOf(‘javascript:’) != -1) ) {
showpopup = 0;
}

else {
showpopup = 1;
}

if (this.my_onclick != null) {
this.my_onclick();
}
}

function setonclickmethods() {
log(‘setonclickmethods called’);

if (navigator.appVersion.indexOf(‘MSIE’) != -1 && navigator.appVersion.indexOf(‘Macintosh’) != -1) {
return;
}

for(i = 0; i < document.links.length; i++) {

document.links[i].my_onclick = document.links[i].onclick;

document.links[i].onclick = MyExtendOnClick;
}
log(‘i have set the links. i is: ‘ + i);
}

function spawnExitAd() {
log(“spawn called.<br>”);
var hasCookie = readCookie(“mpa_popup”);
if ( hasCookie ) {
log(“spawnExitAd: there’s already a cookie. No ad served.<br>”);
return;
}

log(“spawnExitAd: There was not a cookie.<br>”);

if (wasclicked == false) {
showpopup = 1; // user chose bookmark, clicked back button, etc.
log(“spawnExitAd: User did not click; showpopup set to 1.<br>”);
}

if (wasclicked == false || showpopup == 1) {
createCookie(‘mpa_popup’, ‘true’, 90);
log(“spawnExitAd: I just created the cookie. Here comes the science:<br>”);
exit_popup = ‘http://atpcorporation.myphotoalbum.com/images/promo/exitpop/mpapop.htm&#8217;;
window.open(exit_popup,’MPA_exit_ad’,’toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=500,height=500,left=0,top=0,screenX=0,screenY=0′);
} else {
log(“spawnExitAd: not showing a popup, as wasclicked was true or showpopup was zero.<br>”);
}
}

window.onunload = spawnExitAd;
window.onload = function() {
log(“pageload complete.<hr>”);
}

setonclickmethods(); // rewrite all link onclick() event handlers

<!–
document.getElementById(‘jointab’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘siguptab’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink1’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink2’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink3’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink4’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink5’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink7’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink8’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink9’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘albumfooterlink10’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
document.getElementById(‘logo’).search = ‘?sid=atpcorporation.myphotoalbum.com’;
// –>

derive_sid();

_uacct = “UA-497528-1”;
_udn = “myphotoalbum.com”;
urchinTracker();

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

%d bloggers like this: