<!--
function ld_prh() {
	var d = document;
	if (d.images) {
		if (!d.lc) {
			d.lc = new Array();
		}
		var j = d.lc.length;
		var a = ld_prh.arguments;
		for (var i = 0; i < a.length; i++) {
			if (a[i].indexOf('#') != 0) {
				d.lc[j] = new Image;
				d.lc[j++].src = a[i];
			}
		}
	}
}
function vf() {
	for (var i = 0; i < document.images.length; i++) {
		img = document.images[i];
		w = img.width;
		h = img.height;
		if (img.src.indexOf('amazon') >= 0) {
			if ((w == 1) || (h == 1)) {
				img.width = 112;
				img.height = 140;
				img.src = 'http://3dup.com/images/shop/nlg.gif';
			}
			else if ((img.complete != null) && (!img.complete)) {
				img.width = 112;
				img.height = 140;
				img.src = 'http://3dup.com/images/shop/nlg.gif';
			}
			else {
				img.width = w;
				img.height = h;
			}
		}
		else if (img.src.indexOf('images/shop/cache') >= 0) {
			if ((w == 1) || (h == 1)) {
				img.width = 112;
				img.height = 140;
			}
			else if ((img.complete != null) && (!img.complete)) {
				img.width = 112;
				img.height = 140;
				img.src = 'http://3dup.com/images/shop/nlg.gif';
			}
			else {
				img.width = w;
				img.height = h;
			}
		}
	}
}
var ld = location.href;
var cm = '';
if (ld.match(/gallery\/featured/)) {
	cm = 'ID_MyAlbum';
}
else if (ld.match(/gallery\/users/)) {
	cm = 'ID_Album';
}
else if (ld.match(/gallery\/postcards/)) {
	cm = 'ID_Prd';
}
else if (ld.match(/textures/)) {
	cm = 'ID_Text';
}
else if (ld.match(/models/)) {
	cm = 'ID_Models';
}

function myw() {
	var ix = document.cookie.indexOf(cm);
	var cb = (document.cookie.indexOf('=', ix) + 1);
	var ce = document.cookie.indexOf(';', ix);
	if (ce == -1) {
		ce = document.cookie.length;
	}
	var fl = document.cookie.substring(cb, ce);
	fl = fl.replace(cm, '');
	fl = fl.replace('.[', '[');

	if (document.getElementById('myn') != null) {
		if (fl.match(/\[(\d+)\|/g)) {
			document.getElementById('myn').style.backgroundColor = '#C9FFC6';
		}
	}
	if (document.getElementById('mys') != null) {
		var cnt = 0;
		var pst = fl.indexOf('jpg');
		while (pst != -1) {
   			cnt++;
   			pst = fl.indexOf('jpg', pst + 1);
		}
		if (fl.match(/\[(\d+)\|/g)) {
			document.getElementById('mys').style.backgroundColor = '#C9FFC6';
			if (cnt != 0) {
				if (document.getElementById('frw') != null) {
					document.getElementById('frw').innerHTML = '<img style="vertical-align:bottom" src="http://3dup.com/images/upd.gif" border="0" width="10" height="10" alt="">';
					setTimeout('document.getElementById(\'frw\').innerHTML = \'' + cnt + '\';', 300);
				}
			}
		}
		else {
			if (document.getElementById('frw') != null) {
				document.getElementById('frw').innerHTML = '<img style="vertical-align:bottom" src="http://3dup.com/images/upd.gif" border="0" width="10" height="10" alt="">';
				setTimeout('document.getElementById(\'frw\').innerHTML = \'0\';', 300);
			}
		}
	}
}
window.onload = function(e) {
	sce();
	ld_prh('http://3dup.com/images/shared/mybk_on.gif','http://3dup.com/images/shared/rt_on.gif','http://3dup.com/images/jls_on.gif','http://3dup.com/images/shared/upl_on.gif','http://3dup.com/images/shared/bk_on.gif','http://3dup.com/images/shared/backb_on.gif','http://3dup.com/images/shared/forwb_on.gif','http://3dup.com/images/shared/forwa_on.gif','http://3dup.com/styles/lm.cur','http://3dup.com/styles/close.cur','http://3dup.com/styles/back.cur','http://3dup.com/styles/zoom_in.cur','http://3dup.com/styles/up.cur','http://3dup.com/styles/go.cur','http://3dup.com/styles/down.cur','http://3dup.com/styles/jump.cur','http://3dup.com/styles/plus.cur','http://3dup.com/styles/minus.cur','http://3dup.com/images/shop/arw_on.gif','http://3dup.com/images/shop/arw_n_on.gif','http://3dup.com/images/shop/arw_dw_on.gif','http://3dup.com/images/news/icons/home.gif','http://3dup.com/images/news/icons/rc_pr.gif','http://3dup.com/images/news/icons/rc_fr.gif','http://3dup.com/images/news/icons/rc_rl.gif','http://3dup.com/images/news/icons/rc_bm.gif','http://3dup.com/images/news/icons/rc_nw.gif','http://3dup.com/images/news/icons/rc_sr.gif','http://3dup.com/images/news/icons/rc_im.gif','http://3dup.com/images/jl_on.gif','http://3dup.com/images/i_on.gif','http://3dup.com/images/il_on.gif','http://3dup.com/images/mi_on.gif','http://3dup.com/images/mri_on.gif','http://3dup.com/images/log_a_on.gif','http://3dup.com/images/shop/exp_sh_up.gif','http://3dup.com/images/log_v_on.gif','http://3dup.com/styles/al.cur','http://3dup.com/images/hsp_on.gif');
	vf();
	myw();
	t_chk(igeg);
}
//-->
