<!--
function swfout(swf,w,h){
document.write('<embed src="'+swf+'" quality=high pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" menu="false" wmode="transparent" align="top"></embed>');
}

var copytoclip=1
function HighlightAll(theField) {
if(!document.code.select.value){
alert('Nothing to copy, generate the banner code first!');
document.user.clickTAG.select();
}else{
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
if (document.all&&copytoclip==1){
therange=tempval.createTextRange()
therange.execCommand("Copy")
window.status="The HTML code has been copied to clipboard!"
setTimeout("window.status=''",4800);
}
}
}
function showspan(spanid){
var thisSpan = document.getElementById(spanid);
if(thisSpan.style.display != "block"){thisSpan.style.display = "block";}
else{thisSpan.style.display = "none";}
}
function Bookmark(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
function urlize(str){
  str = this != window? this : str;
  str = str.replace(/^\s+/g, '').replace(/\s+$/g, '');
	if(str!=''&&str.substr(0,7)!='http://'){
		str = 'http://'+str;
	}
	return str;
}
function draw(bid){
var swfurl=urlize(document.forms['user'].swfurl.value.toLowerCase());
if(swfurl.substring(swfurl.length-4)!='.swf'){
	alert('Please enter a valid URL (web address) of your SWF file.');
	document.forms['user'].swfurl.focus()
	return false;
}else{
	if(swfurl.substring(0,7)!='http://'){swfurl = 'http://'+swfurl;}
}
var clickTAG = urlize(document.user.clickTAG.value.toLowerCase());
if(clickTAG!=''){
clickTAG=escape(clickTAG);
if(clickTAG.substr(0,7)!='http%3A'){clickTAG = 'http://'+clickTAG;}
}else{clickTAG='logo';}
var w=document.user.w.value;
var h=document.user.h.value;
if(isNaN(w)||!w||w.length>4||w.length<2||w/h<3){w = '468';}
if(isNaN(h)||!h||h.length>3||h.length<2||w/h<3){h = '60';}
if(document.user.t.value=='_blank'){ var t='&target=_blank';}else{var t='';}
if(document.user.bord.checked){var bs=document.user.bstyle.value;var bw=document.user.bwidth.value;var bc=document.user.bcolor.value;var stystr=' style="border: '+bs+' '+bw+bc+'"';}else{var stystr='';}

var str1='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6" width="'+w+'" height="'+h+'"'+stystr+'><param name="movie" value="'+swfurl+'?clicktag='+clickTAG+t+'" /><param name="quality" value="high" /><param name="menu" value="false" /><param name="scale" value="exactfit" /><embed  src="'+swfurl+'?clicktag='+clickTAG+t+'" width="'+w+'" height="'+h+'" menu="false" scale="exactfit" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"'+stystr+' /></object>';
if(swfurl.indexOf("imageshack")>0){
str1+='<br /><a href="http://www.imageshack.us" target="_blank">Image hosted with ImageShack.us</a>';
}
document.code.select.value=str1;
var banner='\<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,2,0" width="'+w+'" height="'+h+'"'+stystr+'\>\<param name=movie value="dl/'+bid+'.swf?clickTAG='+clickTAG+t+'"\>\<param name=quality value=high\>\<param name=menu value=false\><param name=scale value=exactfit>\n\<embed src="dl/'+bid+'.swf?clickTAG='+clickTAG+t+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" menu="false" scale="exactfit"\>\</embed\>\</object\>';
document.getElementById("showBanner").innerHTML=banner;
document.getElementById("codeout").style.display='block';
location.hash = 'codegen';
window.status="The banner HTML code has been updated! Now reloading your banner."
setTimeout("window.status=''",4800);
}
-->

