function it_IFrameClass(){this.decodeUrl=function(d){return decodeURIComponent(unescape(d).replace(/%/g,"%25"))};this.insertIFrame=function(f,e,g,d){if(g==null){g=1}if(d==null){d=1}document.writeln('<iframe name="'+f+'" id="'+f+'" width="'+g+'" height="'+d+'" src="about:blank" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>\n');document.writeln("<SCRIPT>frames['"+f+"'].location.href = '"+this.escapeQuotes(e)+"';</SCRIPT>\n")};this.getParams=function(f,h){if(h==null){h=new Array()}var l=null;var d=f.indexOf("?");if(d!=-1){d++;l=f.substring(d,f.length);var k=l.split("&");for(var g=0;g<k.length;g++){var j=k[g];var e=j.indexOf("=");if(e!=-1){this.addParam(h,this.decodeUrl(j.substring(0,e)),this.decodeUrl(j.substring(e+1)))}}}return h};this.addParam=function(e,d,f){var g=new Object();g.name=d;if(e[g.name]!=null){return}g.value=f;e[g.name]=g.value;e[e.length]=g};var a=/\\/i;var b=/'/i;var c=/"/i;this.escapeQuotes=function(d){d=d.replace(a,"\\\\");d=d.replace(b,"\\'");d=d.replace(c,'\\"');return d};this.removeStartingSlash=function(d){if(d.charAt(0)=="/"){d=d.substring(1,d.length)}return d};this.removeEndingSlash=function(d){if(d.charAt(d.length-1)=="/"){d=d.substring(0,d.length-1)}return d};this.extractBasePathParts=function(d){if(d==null){d=document.location.href}var j;var i="http://".length;if(d.length>i&&d.substring(0,i)=="http://"){j=i}else{j=0}var h=d.indexOf("/",j);if(h==-1){return null}var e=d.substring(j,h);if(e.indexOf("localhost")===0){e+="/illico";h+="/illico".length}var g;var f=d.indexOf("/",h+1);if(f==-1){g=null}else{g=d.substring(h+1,f);if(g.length!=2){g=null}}if(g==null){if(e.indexOf("illicotravel.com")!=-1){g="fr"}}var k="http://"+e+"/";if(g!=null){k+=g+"/"}return{host:e,subSite:g,basePath:k}};this.getLastElementWithId=function(f){var e=document.getElementsByTagName("*");for(var d=e.length-1;d>=0;d--){if(e[d].id==f){return e[d]}}return null};this.toQueryString=function(f){var g=[];for(var d=0;d<f.length;d++){var e=f[d];g.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}return g.join("&")}}var it_IFrame=new it_IFrameClass();function it_PageParams(c){this.params=[];if(c!=null){it_IFrame.getParams(it_IFrame.getLastElementWithId(c).src,this.params)}it_IFrame.getParams(document.location.href,this.params);var a=this;this.get=function(e,d,g){var f=null;if(g!=null){g=g.charAt(0).toUpperCase()+g.slice(1);f=b(e+g)}if(f==null){f=b(e)}if(f==null&&d!=null){f=d}return f};this.getMandatory=function(d,f){var e=this.get(d,null,f);if(e==null){it_Utils.throwError("The parameter '"+d+"' is missing")}return e};var b=function(d){var e=a.params[d];if(e==null){e=window[d]}return e}}var pageParams=new it_PageParams("it_multiform");var iFrameWidth=pageParams.getMandatory("width");var iFrameHeight=pageParams.getMandatory("height");var queryString=it_IFrame.toQueryString(pageParams.params);var scriptUrl=it_IFrame.getLastElementWithId("it_multiform").src;var iFrameUrl=it_IFrame.extractBasePathParts(scriptUrl).basePath+"affil/multiform/frame.html?"+queryString;document.write('<STYLE TYPE="text/css">.it_link {DISPLAY: none;}</STYLE>');document.write('<iframe src="'+iFrameUrl+'" width="'+iFrameWidth+'" height="'+iFrameHeight+'" marginheight="0" marginwidth="0" frameborder="0" scrolling="no"></iframe>');