				//change nothing below this line
				//
				//
				function epoq_getRecommendationForItemRr(tenantId, sessionId, productId, successCallBack, timeoutinms, timoutCallback)
				{
					if(typeof(tenantId)=="object")
					{
					    //function(xOptions)
					    xOptions = tenantId;
						tenantId = xOptions.tenantId;
						sessionId = xOptions.sessionId;
						productId = xOptions.productId;
						successCallBack = xOptions.success;
						timoutCallback = xOptions.error;
						timeoutinms = xOptions.timeout;
						demo = xOptions.demo;
						rules = xOptions.rules;
					}
					else
					{
						demo = 5;
						rules = "";
					}	
				
					var rand_no = Math.random();
					rand_no = rand_no * 10000;
					rand_no = Math.ceil(rand_no);
					var callbackname = "C"+(new Date()).getTime()+"_"+rand_no;
					var getData = "tenantId=" + tenantId + "&sessionId=" + encodeURIComponent(sessionId) + "&productId=" + encodeURIComponent(productId) + "&widgetTheme=json1" ;
					if(typeof(demo) != "undefined")getData+= "&demo=" + demo;
					if(typeof(rules) != "undefined")getData+= "&rules=" + rules;
					
					
					jQuery.jsonp({
							  url: "http://rs1.epoq.de/inbound-servletapi/getRecommendationsForItem", 
							  //dataType: 'jsonp',
							  //data:  getData + "&callback=?",
							  data:  getData + "&callback="+callbackname,
							  callback: callbackname,
							  success: function (data) {  
									var epoq_recommendationPids = new Array();
								  	if(typeof(data['recommendations']) != "undefined")
									{
										var recommendations = data['recommendations'];
										if(typeof(recommendations['recommendation']) != "undefined")
										for(var i=0; i < recommendations['recommendation'].length; i++){
											epoq_recommendationPids[i] = recommendations['recommendation'][i].productId['$'];
										}
										var recommendationId = recommendations.recommendationId['$'];
										//alert(recommendationId);
										successCallBack(epoq_recommendationPids, recommendationId);
									}
									else
									{
									  successCallBack(new Array(), "");
									}
							  },
						  	  error: function () {
								  if(typeof(timoutCallback) != "undefined") timoutCallback();
							  	 // alert('error'); // place here the timeout code  
						  	  },
						  	  timeout: timeoutinms
						});
				}
				
				{
					if(typeof(epoq) == "undefined")var epoq = new Object();
					epoq.getRecommendationForItemRr = epoq_getRecommendationForItemRr;
				}
				
			
				
				