YOffset=1; 
XOffset=0;
staticYOffset=0; 
adIsStatic="yes"; 

NS6 = (document.getElementById&&!document.all)
IE = (document.all)
NS = (navigator.appName=="Netscape" && navigator.appVersion.charAt(0)=="4")


function truebody(){
return (document.compatMode!="BackCompat")? document.documentElement : document.body
}

moving=setTimeout('null',1)

function makeStatic() {
if (NS||NS6) {winY = window.pageYOffset;}

if (IE) {winY = truebody().scrollTop;}

if (NS6||IE||NS) {
	if (winY!=lastY&&winY>YOffset-staticYOffset) {
		smooth = .2 * (winY - lastY - YOffset + staticYOffset);
		}
	else if (YOffset-staticYOffset+lastY>YOffset-staticYOffset) {
		smooth = .2 * (winY - lastY - (YOffset-(YOffset-winY)));
		}
else {smooth=0}

if(smooth > 0) smooth = Math.ceil(smooth);
else smooth = Math.floor(smooth);
if (IE) bssm.pixelTop+=smooth;
if (NS6) bssm.top=parseInt(bssm.top)+smooth+"px"
if (NS) bssm.top=parseInt(bssm.top)+smooth
lastY = lastY+smooth;
setTimeout('makeStatic()', 1)}}

function initSlide() {
if (NS6){ssm=document.getElementById("thessm").style;bssm=document.getElementById("basessm").style;
bssm.clip="rect(0 "+document.getElementById("thessm").offsetWidth+" "+document.getElementById("thessm").offsetHeight+" 0)";ssm.visibility="visible";}
else if (IE) {
	basessm.style.left = ((document.body.clientWidth+1010)/2); 
	
	ssm=document.all("thessm").style;bssm=document.all("basessm").style
bssm.visibility = "visible";}
else if (NS) {bssm=document.layers["basessm1"];
bssm2=bssm.document.layers["basessm2"];ssm=bssm2.document.layers["thessm"];
bssm2.clip.left=0;ssm.visibility = "show";}
if (adIsStatic=="yes") makeStatic();}

function buildAd() {
if (IE||NS6) {document.write('<DIV ID="basessm" style="visibility:hidden; POSITION: absolute;Left:'+XOffset+'px; Top:130px ; Z-Index:20; "><DIV ID="thessm" style="Position:Relative; Left:0px; Top:0px; Z-Index:20;">')}

if (NS) {document.write('<LAYER name="basessm1" top="130px" LEFT='+XOffset+' visibility="show"><ILAYER name="basessm2"><LAYER visibility="hide" name="thessm" left="'+XOffset+'>')}

if (NS6){document.write('<table border="0" cellpadding="0" cellspacing="0" ><TR><TD>')}


document.write('<embed src="/themes/mall/default/styles/default/images/quick.swf" quality="high"wmode="transparent" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="81" height="350"></embed>');


if (NS6){document.write('</TD></TR></TABLE>')}
if (IE||NS6) {document.write('</DIV></DIV>')}
if (NS) {document.write('</LAYER></ILAYER></LAYER>')}
lastY=0;
initSlide();
}
