$(function(){
						if($.browser.msie && $.browser.version == 7) {
							$(".removeForIE7").remove();
						}
						
						$('#slider_home').cycle({ 
							fx:     'fade', 
							speed: 'slow',
							timeout: 0, 
							next:   '#next_home', 
							prev:   '#prev_home' 
						});
						
						$('#experiencesSlide').cycle({ 
                                fx:     'scrollUp', 
    							speed: 1000,
    							timeout: 10000,
    							pause: 1
    						});
						
						$(".mainTransDiv").mouseover(function(){
							$('#overlayText').css('display','block');
							$('.overlayText2').css('display','block');
							$(".mainImageHeading").css('bottom',67);
						});
						$(".mainTransDiv").mouseout(function(){
							$("#overlayText").css('display','none'); 
							$(".overlayText2").css('display','none');
							$(".mainImageHeading").css('bottom',0);
						});
						
						$(".ptModFeaturedNews").click(function() {
							//TODO: we are on a slippery ground here. Convince kiran that we need to be "dynamic" even for marketing content.
							var strLocation = $(this).children(".mainImageHeading").attr("id");
							var locationParts = strLocation.split("_");
							if (locationParts.length > 2) {
								var locationId = locationParts[2];
								window.location = "/holiday/destinations/" + locationId + "/";
							}
						});
						$(".ptModFeaturedPlan").click(function() {
							var strLocation = $(this).children(".mainImageHeading").attr("id");
							var planParts = strLocation.split("_");
							if (planParts.length > 2) {
								var planType = planParts[1];
								var planId = planParts[2];
								var baseURL = "/holiday-packages/";
								if(planType=="Experience") {
									baseURL += "experiences/";
								} else if(planType="Holiday") {
									baseURL += "holidays/";
								}
								window.location = baseURL + planId +"/";
							}
						});
						
						
					});
