if(!com)var com={};if(!com.CongoCart)com.CongoCart={};if(!com.CongoCart.MiniList)com.CongoCart.MiniList={};com.CongoCart.MiniList=function(site,rows,columns,special,width,height,site_id,title,textoptions,view,oldframe)
{this.site=site;this.featured=0;this.random=0;if(oldframe==undefined){this.oldframe=1}else{this.oldframe=oldframe;}
if(title==undefined){this.title='';}else{this.title=title;}
if(view==undefined){this.view=0;}else{this.view=parseInt(view);}
if(textoptions==undefined){this.textoptions=3;}else{this.textoptions=parseInt(textoptions);}
if(site_id==undefined){this.site_id=0;}else{this.site_id=site_id;}
if(rows==undefined||rows==0||rows=="0"){this.rows=5;}else{this.rows=parseInt(rows);}
if(columns==undefined||columns==0||columns=="0"){this.columns=1;}else{this.columns=parseInt(columns);}
if(special!=undefined){if(special==1||special=="1"){this.random=1;}else if(special==2||special=="2"){this.featured=1;}}
if(width==undefined||width==0||width=="0"){this.width=150;}else{this.width=parseInt(width);}
if(height==undefined||height==0||height=="0"){this.height=this.width+22;if(this.width<150){if(this.textoptions==1||this.textoptions==2)this.height+=20;if(this.textoptions==3)this.height+=40;}else{if(this.textoptions>0)this.height+=20;}}else{this.height=parseInt(height);}}
com.CongoCart.MiniList.prototype={frameURL:function()
{var source=this.site+'?H='+this.rows+'&W='+this.columns+'&title='+this.title;if(this.random>0){source=source+'&Random=1';}
if(this.featured>0){source=source+'&Featured=1';}
if(this.site_id>0){source=source+'&VS='+this.site_id;}
if(this.width!=150){source=source+'&width='+this.width;}
if(this.textoptions!=0){source=source+'&TL='+this.textoptions;}
if(this.view!=0){source=source+'&SB='+this.view;}
if(this.oldframe!=0){source=source+'&OF='+this.oldframe;}
return(source);},getFrameCode:function()
{var width=(((this.width+18)*this.columns)+2);var height=((this.height*this.rows)+5);if(this.textoptions==1||this.textoptions==2)height+=10;if(this.textoptions==3)height+=20;var html='<iframe id="cc_minilist" style="width: '+width+'px; '+'height: '+height+'px;" '+'src="'+this.frameURL()+'" scrolling="no" frameborder="0">'+'</iframe>';return(html);},getFrameSource:function()
{document.write(this.getFrameCode());}}