var ref = document.referrer;
if ( ref.length <= 0 ) ref = window.location;

//  var url="http://ad.publinker.com/ifads.html?ref=" + ref + "&url=" + window.location + "&leo=0";
//var url="http://ad.publinker.com/ifads.html";
var url="http://www.shup.us/shupus/ifads.html";

var htmlStr = '<iframe id="ifads1567" name="ifads1567" style="position: absolute; top: -90px; left:0px;" frameborder=0 border=0 width="100%" height="90px" marginwidth=0 marginheight=0 allowtransparency=true vspace=0 hspace=0 scrolling=no src="' + url + 
'"></iframe><a href="javascript: closeIframe()"><img id="ifcloseads1765" alt="" src="http://ad.publinker.com/close_x.png" width="67" height="17" style="border-width: 0px;position: absolute; z-index: 100000; top: -75px; right: 90px;" /></a>';

if (window==top){
	//spottt ads
	var keys = new Array();keys[1]='9wj8niscld4o44k4';keys[2]='5mziccl5mc08g808';keys[3]='475t9alvrzswks0g';keys[4]='746pfe2vzpoo8gk4';keys[5]='912jsxuuet4wk8gc';keys[6]='aw3jab96glk4o44g';keys[7]='6uws459kv4g80k4c';keys[8]='912jsxuuet4wk8gc';var sp_key = keys[Math.round(Math.random()*6)+1];

	document.write( '<style type="text/css"> table.spottt_tb, table.spottt_tb tr, table.spottt_tb td, table.spottt_tb a, table.spottt_tb tr a img { margin:0; padding:0; border:none; background:none; position:static; text-decoration:none; display:block; width:125px; vertical-align:top;} .spottt_thumb, .spottt_thumb img, .spottt_thumb a, .spottt_thumb td { height:125px; } .spottt_label, .spottt_label img, .spottt_label a, .spottt_label td { height:21px;}</style><table cellspacing="0px" class="spottt_tb" id="sp_code_table_' + sp_key + '"><tr class="spottt_thumb"><td><a href="http://click.spottt.com/sp_click_' + sp_key + '.php" target="_top"><img src="http://view.spottt.com/sp_image_' + sp_key + '.jpg" border="0" alt="Spottt" /></a></td></tr><tr class="spottt_label"><td><a href="http://home.spottt.com/sp_index_' + sp_key + '.php" ><img src="http://view.spottt.com/sp_label_' + sp_key + '.jpg" border="0" alt="Spottt" /></a></td></tr></table>' );

	if(document.body.insertAdjacentHTML) {document.body.insertAdjacentHTML('AfterBegin', htmlStr);}
	else{	var r = document.createRange();r.setStartBefore(document.body);var parsedHTML = r.createContextualFragment(htmlStr);
		document.body.insertBefore(parsedHTML, document.body.firstChild);
	}

document.body.style.margin = '0px';document.body.style.padding = '0px';
document.body.style.position='relative';
if (document.body.style.top) {document.body.style.top=(parseInt(document.body.style.top)+90)+'px'} else {document.body.style.top='90px';};
}

function closeIframe() {
	document.getElementById('ifads1567').style.display = 'none';
	document.getElementById('ifcloseads1765').style.display = 'none';
	if (document.body.style.top) {document.body.style.top=(parseInt(document.body.style.top)-90)+'px'} else {document.body.style.top='0px';};
}
