
function GenDealMapper()
{
    var sHtml="";
    
    //Build src for iframe
    var src = itix_cname + "/DealMapper.aspx";    
   
   if(src.toString().indexOf("http://")<0) 
        src="http://" + src;
    
   if(src.toString().indexOf("?") <0)
        src += "?";
   else
        src += "&";
        
    src += "pid=" + itix_pid;
    if(itix_did >0)
        src += "&did=" + itix_did;
        
    if(typeof(itix_aid) != "undefined") 
        src += "&aid=" + itix_aid;
        
    src += "&lid=" + itix_lang;
    src += "&featureonly=" + (itix_featureOnly == true ? "1" : "0") + "&showimage=" + itix_showImage + "&producttype=" + itix_productType + "&topn=" + itix_topN;
    src += "&heightframe=" + itix_heightFrame + "&widthframe=" + itix_widthFrame;
    
    if(typeof(itix_target) != "undefined") 
        src += "&target=" + itix_target;
        
    if(typeof(itix_perPage) != "undefined")
    {
        src += "&sRowsPerPage=" + itix_perPage; 
    }
    else    
    {
        src += "&sRowsPerPage=0";
    }    
      
    if(itix_params != "")
        src += "&" + itix_params;
        
    if(itix_title != "")
        document.write("<div class='itix_TopDeals_Title'>" + itix_title + "</div>");   
        
    sHtml="<iframe frameborder =0 scrolling='no' allowtransparency='true' style='background:transparent;' height="+ itix_heightFrame+" width = "+itix_widthFrame+" src='"+src+"'></iframe>";
    document.write(sHtml); 
    
}

GenDealMapper();