<!--
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];
			}
		}
	}
}
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);
			}
		}
	}
	var str = location.search.substring(1);
	if (str.match(/id\=sc/ig)) {
		if (document.getElementById('vci') != null) {
			document.getElementById('vci').style.color = '#CEFFE8';
			lck('vci');
			setTimeout('document.getElementById(\'vci\').style.color = \'#FFFFFF\';', 400);
		}
	}
}
window.onload = function(e) {
	sce();
	ld_prh('http://3dup.com/images/shared/tmpl/hl/images/ayes.gif','http://3dup.com/images/shared/tmpl/hl/images/ayes2.gif','http://3dup.com/images/shared/mybk_on.gif','http://3dup.com/images/upd.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/ply.cur','http://3dup.com/styles/stp.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');
	myw();
	s_fdx('vs');
	t_chk(igeg);
}
//-->
