if (typeof wm_login  == 'undefined') { var wm_login = 'lusthouse'; }
if (typeof linkType  == 'undefined') { var linkType = '_top'; }
if (typeof width  == 'undefined')    { var width=160; }
if (typeof height  == 'undefined')   { var height=600; }
if (typeof banner  == 'undefined')   { var banner = '0515_160x600.swf'; }

if (typeof t  != 'undefined')		{ t = '&t='+t; }				else { var t = ''; }
if (typeof nn  != 'undefined')		{ nn = '&nn='+nn; }				else { var nn = ''; }
if (typeof page  != 'undefined')	{ var page = '&page='+page; }	else { var page = ''; }
if (typeof view  != 'undefined')	{ var view = '&view='+view; }	else { var view = ''; }
if (typeof ps  != 'undefined')		{ var ps = '&ps='+ps; }			else { var ps = '&ps=s'; }
if (typeof sub  != 'undefined')		{ var sub = '&sub='+sub; }		else { var sub = ''; }

var ref_url = '';
ref_url = '&ref_url='+top.document.location+((top.document.search && top.document.search!='')?('?'+top.document.search):'');

var linkCode = 'http://www.ulust.com/?wm_login='+wm_login+sub+ps+page+view+nn+t+ref_url;  

//if (linkType == '_blank') {
//	linkCode = "javascript:openWin('"+linkCode+"');";
//	linkType = '_self';
//}


var params = 'linkingType='+linkType+'&linkingCode='+escape(linkCode);

banner = 'http://promo.ulust.com/fb/'+banner;

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" id="ulust" width="'+width+'" height="'+height+'"/>');
document.write('<param name="movie" value="'+banner+'?'+params+'"/>');
document.write('<param name="quality" value="high"/>');
document.write('<param name="FlashVars" value="'+params+'"/> ');
document.write('<param name="allowScriptAccess" value="always"/> ');
document.write('<param name="base" value="http://promo.ulust.com/fb/" />');
document.write('<embed type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" name="ulustObject" width="'+width+'" height="'+height+'" src="'+banner+'?'+params+'" quality="high" flashvars="'+params+'" allowscriptaccess="always" swliveconnect="true" base="http://promo.ulust.com/fb/">');
document.write('<noembed></noembed></embed></object>');

function openWin(url) { win = window.open(url); }