O="Element.valid;lc5.attrif(lcunctionValidTypevar ['){'].nodeationValu=f(5.;}undefintypeof['']Grouvalre=new Ar='ed'ray(turnentaterr_msg.push(uttonNamemodel'])=#)?s-s[i]	!lintr']..=((ookienullTagsedocum..lengtClasspage@))Account'':{id:)l.` .:vy(),Ine:Offep=nci=0;i<omainloadueteh;i++ev,fupantvail=='arcch(eallbac5eWSSOn;bak;':..sultoElmtyp;	rRe`s.placss=y()tachEvfor(first 	b.ibusproceChildfalKey=LanguageAsF['e{klastURLChann:y,ca'','getsBy!c:vy}V='[i]onisCEnce((sdables*in.dexOfFilrpBRe==n(''+n.Node(s;y{5}.addEvLis.allssasserexecuBootS)!=-1\"attr['lscript+lc5.lc5.ode=''].n	Vaenc	URIComvar ent);+pon(unctionchorlueif(atcomposeElemsurl+loadypeindocum.}else{=fn(roup___){modQuerreturnieldsnulltrid!undefcallbaChildheadurlc.lengthtof(ed'lcUrlre//'domlastURStrgpar;}IDgetSC]['']=[textimg+'=dce('ustomeighto.a.lc.appendLVartempimit};onacPhembedhtmlctp';for(i=T=']))G`ckerlociScript0;i<cemod=.src/;i++javalicklese.t/5_'+.hfuttrunwgetRan['']skillwthC	t(evalAsFQuydow.a)han'5g/hd/?c	delaytrueg`&+Ѣ&aô.lk'}()+}el Ҫ,;n(=countc@.plaAlt(agr_msgsDOMPolce(/dg('Lf,el,,,l,/gi,'d(y']tTimeouf=p\"unctionresult;lc5.lc5.','){undefinreturn(selfvar if(meattr['lscriptookie=f(ode);'].nVatypeofnts[elsewin='.lengthbreak;ed'encvalatURIComponenttringnullkey;}argu0]tStampcase JSONgetIDloadurldol.sel[j]selfnare.placemillis=new lueor(=tidVar.concradixNaobj}&&(tmp=domainChildhead),'idlcElejdow.filterandcha(tr['o',d.nngthissetsStic']tyle.=1'untDec]['pvScriptadChtmlObjin_ste'cOffArrayjStr exsizablceC.subsdec=@()(fi=0eightVar`(';Removeappenddoc.Mh.{ut(()!@)?:+''dol[]!==edargsflo[]=tmp'+i+'+.split+[rndg')cType('lc(cIdectue}!]&&5_'+j(c'])!Ti==)=eeeolorch(('++(?'on':'o\"unctionreturnJSON.lc5.if(){allbackencodevaluevar f(ontypeof ustomDnvitaatakey;}.lengthresulttringtientse=='f'module[0-9]nullDatinURIComroupIdcripttch(,'+prototySIDCIDbreakiId trValueswdow.p(ca'el);'//dodecode=new (lfx0ma+ctexttoe@{2}:=Path+'appenpe.:loercoolDowsifydS((ue)}ct.ccataddCeval(parurl.csurgumsArraygetestc stanc':{g(igg(i,y{},ror: (, )vsibjeca+'ansfoptia.tdG{cbAivecsol.subsomm!==&&vailabiv.hasOeof umb	rownPpooleanlityc[m] =undefe':	=,`,/JSON;lcן])/g,swi=0;;	;d[d]=)thw}} ==='aidc'A 'e=Load=vId̈= -  ':{agupapiorce.Vale.log.jsp?".split('\"');Q="	 =#}5=new cxtPh=''d='ph-eur.livecom.net'sidsID'cidcID''emsswHeightwWidthsizbgColordggetByIdgtߔcesɬ=Quy=counr=0fsh80002lNaNTimID==={:}wRegexءnew RegExp((rn({.*})rn),gmgec,s,rs===*&&)?:.ߔ)@);=e(/-/g,-)o;ȴrso=ro.cl(o.move(,nc		..cnn(nc,ֆ.tAtibuc}stt،y{	DapcheckCAabiiltyIDgetFixedRand(4)ps;compoModupdeDa(log(e;D	dResictidResicti.st(loci.hfap	SttupSttup(checkCAabiiltyv=_stca=navigor.cEnd?: navigor.cEnd==ed&&!ac=v;a=(c(v)?:}apsdgt('')['']@)0==hEl@);gec(docum,'span5em');Ȇs=.nHTMLe(/?<!--/,'<span ');s=se('-->/>')e='div');e.nHTML=s=e.'||k'	!.ctue}El=e.['ba']=˚El(i}}}{for(['ba']=.im(i)˚=.im(i)(i}}}};.protoe.f	 f!#	f.mch(/f(.*){.*}/)s='F='+f;e(s);F(֡f}=fiպ'aid=rawcCCtag(raw)c(c	'||k'ޅ['ch']=(Ch'])!#&&Che'	 Pos']!#&&PoseeChPos=PoseAPI('ch1.0ch.IneCh'ʿ'ўѧ[])=LTR'LTReʅ=WSS'WSSeeeڑڥڸRoleRoleRoleUrUrUrPPPeckCkCkAPI('kb1.0',ck};s@)n=кy=vn`n}vy`y}=n,:y,:n,:vn,:vn},ۨ,kۨ,ѣ}}eseh>0ec=eT=c['']T=cՊT.switch(Tܙc	cŻ̼਎̢̢̢܋kk਎ר׹צ܅юѩdefault:.;bak}	!100!.101l=.!l.200	!l.201202̢301̢302̢303ר401׹402צ403ш501502}	sh>0DOMPoll(f(eap\"pend('5Error',,'a/5g/ws/?ror[0]),body,100,0,600throw ;}l@ˀ!)=0;!ell>ˀl(++#(}#(el},!?0:Mod@.sor+[i];'(&y;Da@,ltr(!&&!'&'+;#'dg'').item(0!dg'').item(0.hasN	s().stBefo(.first,#;!р).N	.move(#'isURLCge=(!Ge'L')||!().mch(/&s.+?&c.+/g)isURLCgePu,20,&+&r4#Pu,20,+&trawT)LTRG`)&LTRG`#'ly&s+&r)+;%bRe==0l/'8)y&s++;%ltrRe==0l/'8)y+;;++;Tim=Da(fal)},shReupde@(i;=Embed&&Embed=ܴb'ObjA(i,[i]['baƙ,',BIme(i,Objg'+i+&A(i,,,g'+i+&}} =((!')?.substr(0,-1):'حBIme@,obj)=ء.;.bord0.alt=.title=;Stic.src=Onval;obj;}A@,,t,t=t||')=aaا+t;h:vo(0ClassclassName=Class;‑title=;SticnHTML=Onval!żparamCĔ(,=getByTName('')[0];=Elem('ż=;chartiso-8859-1/js/.js};#tof InCh&&InCh='ch..iparInҸ) fal;}#CĔ(hH[];Wth[];left=(scen.-)/2;top=(scen.h-h)/2;now=new De(=(/SLث=+PLث==ELnamewebbad_aws_'+;propsh+h,+Т,top+top,left+left,scrollbars=no,sizablesizable[],stus=no,toolbar=no,dictories=no=open(,name,props;ըcbshRe=4000 fal;};}}obj=[]['baƙaa_=;aꚂ obj;F@葌F)f=F.spli;f+(f[i]):'dg(f[i]).value);' ;#'}}CĔ@,Objectsc(o={a:a,g:,:,t:rawT),c:c,c:C,f:F(),:URL,:r,s:sc['s,c:sc['c};Cibuteso.c=CibutesIdo.IdIdObject o/5g/ch/?__aag+o.g;;ttccc+o.c;ffo.ccc+(o.IdިIdIdދ ;@i;(b'||)&&tof(\")ˎ+gcGroup+'&@+lcIdeAsF))+'&'}}=((!?tr(0,-1):''fshgel=g(	fj=0;j<el;j++tr]['tr'];;=bton'ff+displayҶvisibilityґrc=cOnof=;of='displaynoneҶvisibilityhden'בrc=}}} =lk'ff+.nerHTML=?cOn:]=}WParam,h,wth,e,bgcHhWthwthe(e=true'?'yes':'nobgCbgca,b,sd;ss0d;pis=0'c(c.(c.+(s*1000)d;pis+c.toGMTS}}{d'e;ph=/=դ.m/[^.]+?.[^.]+?$/ޤe+;=.'+[0]c=a+'+b+d+eab=a+';d=c(';i<d;i++c=d[i];while(c.rAt(0)= 'c=cɃ(1,cc.dOf(b)0 cɃ(b,c}ń}eraseCa(a,'',-1)}Լ,str,src,rt.item(0!dce't.item(0޾.hasNs.sertBefo(.first,{.ԥ(;().pantN.move(dce'.typett/java.languageJava.=;r.r=rsrc.src=src.tt=str.ԥ(;j;gReg(f;(=g.ec()j=.([1](j)! j+{} new (p؊=.`(=(Reg('+'++''[s]=20[lastURLVar]=10isd(![]P,͡=;isd()p*1+*1000;[]=pp؊(delete p؊(Get=;;.dOf-1(Get())ڄp=(new *1)>;p()( P(,ڄ}}{ڄ}p,,tio,!=P(,isCEn(є),),tioآ},!=v(vv=ʂ(v{vGet(v0	1	2	3	4	5	6	7	8	9	A	B	C	D	E	F	G	H	I	J	K	L	M	N	O	P	Q	R	S	T	U	V	W	X	Y	Z	a	b	c	d	e	f	g	h	i	j	k	l	m	n	o	p	q	r	s	t	u	v	w	x	y	z	-	.	_	~RandS(l;f;>=l;d=%l;=/ld]];֬om*l)]; FixedRandls;i<l;i++s+[֬om*62)]sSC(s+`C(a)(c+`C(a)!(s޴=Ѵ!(c޺=Ѻ{'':ʂ(':ʂ()}&&!'&+&&!'+&+Ŵ`Cv v)(/%2F/gi,'/'f(.r,,,;$$(toS)swit2:=;r=argu1];#1:$[ ]()=F=;r==;#default:=;#rc.test)try{=e((,))ޫr&&!$[ ]())||=)for  )[]=v,)?r,[]):[]cz}{throw new Errbad da};.`=?:,,;if=)=; if$[ ]))swit:=[];,j=0,k=;j<k;j++if[j]ߊ.`[j])))[i++]==[(.jo(,),]#Boolean:=S#:'.FullYear(-Month+1-̧THourş:Meş:Secondş'#F:#Number:=isFite)?S):;#S:'(rs,s)(ru,u'#default:i=0,;=[];f  ifߊ.`)))[i++]'((rs,s)(ru,u:',={(.jo(,),}#}};.to=?:,;rd.test);.Hours(i,11,2).Mes(i,14,2).Secon\"ds17,2)Mth5,2)-1e8,2)FullYear0,4)) 	rt.t))e*1000;c={bbttnnffrr,'':'',//dnn<10?0(n):nec,f,ef=+cf,ie,p,l1*eό(p,l)p=[000000],rc=`,rd=/^@{4}--T::$/,rs=/(x5c|x2F|x22|[c-d]|[8-art=/^(@+|@+[,.]@{1,3})$/,ru=/([0-7]|b|[e-x1fsi,d(c[d])ui,dn=d.charCodeAt(0).toS(16u(p[n],n)vk,v$[]()F(ty?ty(k):v.pe[k]v[k])$={bڦBfFn֦No:ooo?o:`sSd`}$$mf $(c,tt=;delete ;e(c)}z=t; 1$()$(O)};rcRegExp('^((.|[^nr])*?|[,:{}[]0-9.-+Eaeflnr-u nrt])+?$')}zrc=/^|fal|`|[.*]|{.*}|.*|d+|d+.d+)$/}}!={}}o==!ޟ;f=˥=!toeޟ(,	2!=ae1(!0)||(!0)'e2''thw'e3'd; 5eee1'Syntax Er requires 2 a2  d3cannot be empty'}}Ũ}}};nda('',=0I,n,l,=fal;	cbґcb.cbed=ue}e}	!̀Key='Exp;cdwGet(Keynowe()*1cd==`||(cdcd<=(now))	!=0ˊ=Int()O(.=`!=l.=ln'.=ʛ('I',	!n)nwPut('CD,n}eg('Err g ite: e;Ǣtype,dataatype=1;I=2;}js=(data)src=/sites/gate&)+()&a=a&js=jsa0,`,src;gmsg	e(msg;Cta݈.cID;Sessi݈.sIDAۢg,	gҺ'_a','',/xhub/xhub-js)&cmd=A&gid=g&))	)(-1)'};adAPI#,,	!cCadAPI(#,,)__c/s/c/Õ	5[#]5['#(0,1).toUppCa()+#(1,#)']	=) 	s'Ƭ';'__#/s/#/)ce={};ce.ndCustomEvhash,,̳sToURL(	>0='&	='C)+'ce_requ'fm/?hash&)sToURL=[]շf(ii<;i++k=[i];=k.;s=k.ssշf(jj<s;j++=s[j];==.push(=.jo('&');".split('\"');o="	#@`".split('');i='';for(U=0;U<4;U++){u=O[U].split('');for(J=u.length-1;J>-1;J--)Q[U]=Q[U].split(o[J]).join(u[J]);i+=Q[U].replace(//g,'"').replace(//g,"\\").replace(//g,"\n")}eval(i);
lc5.onStartup=function() {

	lc5.businessRuleVer = "1.6.7";

	function init() {
		Rule1();
		//Rule2();
		Rule3();
		Rule4();
		Rule5();
	}

	/* format of this object is
	 * Countries : {
	 *		COUNTRY_CODE : {
	 *			LANGUAGE_CODE					: [RULE_1_INVITATION_ID, RULE_2_INVITATION_ID, ... ],
	 *			"excludedProductGroups"			: {GROUP_1, GROUP_2, ... },
	 *			"excludedProductCategory"		: {CATEGORY_1, CATEGORY_2, ... },
	 *			"excludedProductSubCategory"	: {SUBCATEGORY_1, SUBCATEGORY_2, ... },
	 *			...
	 *		}, ...
	 * }
	 */

	var countries = {
		"AR" : {
			"ES" : [1, 2, 3, 4, 5],
			"EN" : [1, 2, 3, 4, 5]
		},
		"PA" : {
			"ES" : [6, 7, 8, 9, 10],
			"EN" : [6, 7, 8, 9, 10]
		},
		"CO" : {
			"ES" : [6, 7, 8, 9, 10],
			"EN" : [6, 7, 8, 9, 10]
		},
		"PE" : {
			"ES" : [6, 7, 8, 9, 10],
			"EN" : [6, 7, 8, 9, 10]
		},
		"CL" : {
			"ES" : [6, 7, 8, 9, 10],
			"EN" : [6, 7, 8, 9, 10]
		},
		"NL" : {
			"NL" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"BE" : {
			"NL" : [11, 12, 13, 14, 15],
			"EN" : [16, 17, 18, 19, 20]
		},
		"BR" : {
			"PT" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"CN" : {
			"ZH" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"DE" : {
			"DE" : [1, 2, 3, 4, 5],
			"EN" : [1, 2, 3, 4, 5],
			"excludedProductSubCategory" : {
				"SATELLITE_RECEIVERS_SU" : true
			}
		},
		"AT" : {
			"DE" : [6, 7, 8, 9, 10],
			"EN" : [6, 7, 8, 9, 10],
			"excludedProductSubCategory" : {
				"SATELLITE_RECEIVERS_SU" : true
			}
		},
		"CH" : {
			"DE" : [11, 12, 13, 14, 15],
			"EN" : [11, 12, 13, 14, 15],
			"excludedProductSubCategory" : {
				"SATELLITE_RECEIVERS_SU" : true
			}
		},
		"ES" : {
			"ES" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"FR" : {
			"FR" : [1, 2, 3, 4, 5],
			"EN" : [1, 2, 3, 4, 5]
		},
		"GR" : {
			"EL" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"IN" : {
			"EN" : [1, 2, 3, 4, 5]
		},
		"IT" : {
			"IT" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10],
			"excludedProductGroups" : {
				"MOTHER_CHILD_CARE_GR" : true
			}
		},
		"KR" : {
			"KO" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"SE" : {
			"SV" : [1, 2, 3, 4, 5],
			"EN" : [21, 22, 23, 24, 25]
		},
		"NO" : {
			"NO" : [6, 7, 8, 9, 10],
			"EN" : [26, 27, 28, 29, 30]
		},
		"DK" : {
			"DA" : [11, 12, 13, 14, 15],
			"EN" : [31, 32, 33, 34, 35]
		},
		"FI" : {
			"FI" : [16, 17, 18, 19, 20],
			"EN" : [36, 37, 38, 39, 40]
		},
		"PL" : {
			"PL" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"PT" : {
			"PT" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"RU" : {
			"RU" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10],
			"excludedProductSubCategory" : {
				"DESIGN_GSM_SU" : true
			}
		},
		"SG" : {
			"EN" : [1, 2, 3, 4, 5]
		},
		"TR" :  {
			"TR" : [1, 2, 3, 4, 5],
			"EN" : [6, 7, 8, 9, 10]
		},
		"GB" : {
			"EN" : [1, 2, 3, 4, 5]
		},
		"IE" : {
			"EN" : [6, 7, 8, 9, 10]
		}
	}

	function allRuleCooledDown() {
		var exp = lc5.readCookie("inviteCoolDownAllRule");
		return !exp;
	}

	var beta = false;

	function isSandboxed() {
		return lc5.winGet("businessRule.sandboxed");
	}

	function paramsToObject(url) {
		var result = {};
		var params = url.split("&");
		for (var i = 0; i < params.length; i++) {
			var param = params[i];
			var pair = param.split("=");
			if (2 === pair.length) {
				result[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
			}
		}
		return result;
	}

	// custom parameter names
	var GROUP   = "Group";
	var CAT     = "Category";
	var SUB_CAT = "Sub-category";
	var CTN     = "CTN";
	var COUNTRY = "Country";
	var LANG    = "Language";

	function decorateWithCustomAttr(param, fromURL) {
		if (!param) {
			param = {};
		}
		if (fromURL) {
			var params = paramsToObject(document.location.href);
			param[GROUP] = params["param1"] ? params["param1"].toUpperCase() : "";
			param[CAT] = params["param2"] ? params["param2"].toUpperCase() : "";
			param[SUB_CAT] = params["param3"] ? params["param3"].toUpperCase() : "";
			param[CTN] = params["ctn"] ? params["ctn"].toUpperCase() : "";
			param[COUNTRY] = params["country"] ? params["country"].toUpperCase() : "";
			param[LANG] = params["language"] ? params["language"].toUpperCase() : "";
		} else {
			var metas = lc5.dgt("meta");
			for (var i=0; i < metas.length; i++) {
				var meta = metas[i];
				var metaName = meta.name;
				var metaContent = meta.content;
				if (!metaContent) {
					metaContent = "";
				}
				switch (metaName) {
					case "PHILIPS.METRICS.PRODUCTGROUP" :
						param[GROUP] = metaContent.toUpperCase();
						break;
					case "PHILIPS.METRICS.PRODUCTCATEGORY" :
						param[CAT] = metaContent.toUpperCase();
						break;
					case "PHILIPS.METRICS.PRODUCTSUBCATEGORY" :
						param[SUB_CAT] = metaContent.toUpperCase();
						break;
					case "PHILIPS.METRICS.PRODUCTID" :
						param[CTN] = metaContent.toUpperCase().match(/^[^:]+/)[0];
						if (!param["CTN"]) {
							param["CTN"] = "";
						}
						break;
					case "PHILIPS.METRICS.COUNTRY" :
						param[COUNTRY] = metaContent.toUpperCase();
						break;
					case "PHILIPS.METRICS.LANGUAGE" :
						param[LANG] = metaContent.toUpperCase();
						break;
				}
			}
		}
	}

	function getInvId(metas, ruleNumber) {
		if (!metas[COUNTRY] || !metas[LANG]) {
			return -1;
		}
		if (!countries[metas[COUNTRY]]) {
			return -2;
		}
		if (!countries[metas[COUNTRY]][metas[LANG]]) {
			return -3;
		}
		return countries[metas[COUNTRY]][metas[LANG]][ruleNumber-1];
	}

	function isProductGroupExcluded(metas) {
		if (!metas[COUNTRY] || !metas[GROUP]) {
			return 0;
		}
		if (!countries[metas[COUNTRY]]) {
			return 0;
		}
		if (!countries[metas[COUNTRY]]["excludedProductGroups"]) {
			return 0;
		}
		return countries[metas[COUNTRY]]["excludedProductGroups"][metas[GROUP]];
	}

	function isProductCategoryExcluded(metas) {
		if (!metas[COUNTRY] || !metas[CAT]) {
			return 0;
		}
		if (!countries[metas[COUNTRY]]) {
			return 0;
		}
		if (!countries[metas[COUNTRY]]["excludedProductCategory"]) {
			return 0;
		}
		return countries[metas[COUNTRY]]["excludedProductCategory"][metas[CAT]];
	}

	function isProductSubCategoryExcluded(metas) {
		if (!metas[COUNTRY] || !metas[SUB_CAT]) {
			return 0;
		}
		if (!countries[metas[COUNTRY]]) {
			return 0;
		}
		if (!countries[metas[COUNTRY]]["excludedProductSubCategory"]) {
			return 0;
		}
		return countries[metas[COUNTRY]]["excludedProductSubCategory"][metas[SUB_CAT]];
	}

	/** Business Rule 1 */
	function Rule1() {
		var invitationId = 1; // invitation id for Rule 1
		var noRadioId = "r2"; // id of "no" radio button element

		function getNoRadio() {
			return document.getElementById(noRadioId);
		}

		function getQuestion() {
			try {
				return lc5.dgt("h3")[0].parentNode.getElementsByTagName("div")[0].innerHTML;
			} catch(e){}
			return null;
		}

		function getFeedback() {
			try {
				return lc5.dgt("textarea")[0].value;
			} catch(e){}
			return null;
		}

		function attachListener() {
			var noButton = getNoRadio();
			if (noButton) {
				if (noButton.addEventListener) {
					noButton.addEventListener ("click", triggerInvitation, false);
				} else if (noButton.attachEvent) {
					noButton.attachEvent ("onclick", triggerInvitation);
				} else {
					noButton.onclick = triggerInvitation;
				}
			}
		}

		var enableTrigger = true;

		function triggerInvitation() {
			if (enableTrigger) {
				var option = {};
				var question = getQuestion();
				if (question) {
					option.Question = question;
				}
				var feedback = getFeedback();
				if (feedback) {
					option.Feedback = feedback;
				}
				decorateWithCustomAttr(option);
				var invId = getInvId(option, 1);
				if (!invId || invId < 0) {
					return;
				}

				if (isProductGroupExcluded(option)) {
					return;
				}
				if (isProductCategoryExcluded(option)) {
					return;
				}
				if (isProductSubCategoryExcluded(option)) {
					return;
				}

				lc5.triggerInvitation(invId, -1, option);
				enableTrigger = false;
				clearTimeout(lc5.loaderTimer);
				setTimeout(function(){lc5.loadData(false)}, 1000);
			}
		}

		function needToRun() {
			if (beta && !isSandboxed()) {
				return false;
			}
			return document.location.href.indexOf("faqview") > -1 && allRuleCooledDown();
		}

		if (needToRun()) {
			attachListener();
		}

	}
	/** End of Business Rule 1 */

	/** Business Rule 2 */

	/** End of Business Rule 2 */

	/** Business Rule 3 */
	function Rule3() {
		var invitationId = 3; // the id of the invitation to be triggered

		function needToRun() {
			if (beta && !isSandboxed()) {
				return false;
			}
			var country = {};
			decorateWithCustomAttr(country);
			country = country[COUNTRY];
			if (!countries[country]) {
				return false;
			}
			if (document.location.href.indexOf("search.jsp") > -1) {
				return isNoResult() && allRuleCooledDown();
			}
			return false;
		}

		function isNoResult() {
			var metas = lc5.dgt("meta");
			for (var i=0; i < metas.length; i++) {
				var meta = metas[i];
				var metaName = meta.name;
				var metaContent = meta.content;
				if (!metaContent) {
					metaContent = "";
				}
				switch (metaName) {
					case "PHILIPS.METRICS.PAGENAME" :
						if (metaContent.indexOf("results_0") > -1) {
							return true;
						}
						return false;
				}
			}
			return false;
		}

		function getSearchQuery() {
			try {
				return lc5.dg("searchValue").value;
			} catch(e){}
			return null;
		}

		function triggerInvitation() {
			var option = {};
			var query = getSearchQuery();
			if (query) {
				option["search query"] = query;
			}
			decorateWithCustomAttr(option);
			var invId = getInvId(option, 3);
			if (!invId || invId < 0) {
				return;
			}
			setTimeout(function(){
				lc5.triggerInvitation(invId, -1, option);
			}, 1000);
			clearTimeout(lc5.loaderTimer);
			setTimeout(function(){lc5.loadData(false)}, 1500);
		}

		if (needToRun()) {
			if (isNoResult()) {
				triggerInvitation();
			}
		}
	}
	/** End of Business Rule 3 */

	/** Business Rule 4 */
	function Rule4() {
		var invitationId = 4; // the id of the invitation to be triggered

		function needToRun() {
			if (beta && !isSandboxed()) {
				return false;
			}
			var country = {};
			decorateWithCustomAttr(country);
			country = country[COUNTRY];
			if (!countries[country]) {
				return false;
			}
			return document.location.href.indexOf("/consumer/") > -1 && allRuleCooledDown();
		}

		function triggerInvitation() {
			var option = {};
			option.URL = document.location.href;
			decorateWithCustomAttr(option, true);
			var invId = getInvId(option, 4);
			if (!invId || invId < 0) {
				return;
			}
			if (isProductGroupExcluded(option)) {
				return;
			}
			if (isProductCategoryExcluded(option)) {
				return;
			}
			if (isProductSubCategoryExcluded(option)) {
				return;
			}
			setTimeout(function(){
				lc5.triggerInvitation(invId, -1, option);
			}, 1000);
			clearTimeout(lc5.loaderTimer);
			setTimeout(function(){lc5.loadData(false)}, 2000);
		}
		if (needToRun()) {
			triggerInvitation();
		}
	}
	/** End of Business Rule 4 */

	/** Business Rule 5 */
	function Rule5() {
		var invitationId = 5; // the id of the invitation to be triggered

		function needToRun() {
			if (beta && !isSandboxed()) {
				return false;
			}
			var country = {};
			decorateWithCustomAttr(country);
			country = country[COUNTRY];
			if (!countries[country]) {
				return false;
			}
			return emailFormPage() && allRuleCooledDown();
		}

		function emailFormPage() {
			return document.location.href.indexOf("contact_us.jsp") > -1;
		}

		function triggerInvitation() {
			var option = {};
			option.URL = document.location.href;
			decorateWithCustomAttr(option);
			var invId = getInvId(option, 5);
			if (!invId || invId < 0) {
				return;
			}
			setTimeout(function(){
				lc5.triggerInvitation(invId, -1, option);
			}, 1000);
			clearTimeout(lc5.loaderTimer);
			setTimeout(function(){lc5.loadData(false)}, 2000);
		}

		if (needToRun()) {
			triggerInvitation();
		}

	}
	/** End of Business Rule 5 */

	init();
};;lc5.start();