Subversion Repositories SmartDukaan

Rev

Rev 7063 | Rev 7779 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6967 kshitij.so 1
function toggle(containerId){
2
        var divC = document.getElementById(containerId);
3
        if (divC.style.display == 'none') {
4
            divC.style.display = 'block';
5
        } else if (divC.style.display == 'block'){
6
            divC.style.display = 'none';
7
        }
8
        else {
9
        	divC.style.display = 'none';
10
        }
11
    }
12
 
4126 varun.gupt 13
$(function(){
4984 varun.gupt 14
	function CollapsibleWidget(container)	{
15
 
16
		this.widgetContainer = container;
17
		this.collapsbiles = $(container).children('.common-widget-control-bar, .common-widget-content-area');
18
		this.isCollapsed = null;
19
 
20
		this.collapse = function()	{
21
			$(this.collapsbiles).each(function()	{
22
				$(this).slideUp();
23
			});
24
			this.isCollapsed = true;
25
		};
26
 
27
		this.open = function()	{
28
			$(this.collapsbiles).each(function()	{
29
				$(this).slideDown();
30
			});
31
			this.isCollapsed = false;
32
		};
33
 
34
		this.test = function()	{
35
		};
36
	}
4798 varun.gupt 37
 
4984 varun.gupt 38
	ResearchWidget.prototype = new CollapsibleWidget();
39
	ResearchWidget.prototype.constructor = CollapsibleWidget;
40
 
41
	function ResearchWidget(container)	{
42
		CollapsibleWidget.call(this, container);
43
	}
44
 
4798 varun.gupt 45
	function updateCompareCount()	{
46
		$('#research_compare_count').html($('#myresearch input[type="checkbox"]:checked').length);
47
	}
48
 
4126 varun.gupt 49
	/** Sidebar Widgets **/
4237 varun.gupt 50
 
6840 kshitij.so 51
	$('#otg_know_more,.otg_know_more').click(function(){
6552 kshitij.so 52
		$.colorbox({
53
    		width: "490px",
6772 kshitij.so 54
    		height: "420px",
6552 kshitij.so 55
    		inline: true,
56
    		href: "<h3 style='text-align: center; margin: 18px; font-size: 14px;'>On Time Guarantee, We Pay if we Delay</h3>" +
57
		"<p style='text-align: justify; margin-left: 12px; margin-right: 12px; margin-bottom: 9px; line-height: 22px;'>Saholic stands for 100% on time delivery. We ensure all your orders reach your doorstep on or "+
58
        "before the promised delivery date. In the rare case that we deliver an order later than promised "+
59
        "we will compensate you.This Guarantee is Valid on"+
60
        "</p>" +
61
        "<ul style='list-style: disc none none; margin-left: 25px; text-align: justify; margin-right:12px; line-height: 22px;'><li>All Mobiles, Cameras, Laptops, Tablets and Accessories above Rs. 2000 in value."+
62
        "</li>"+
63
        "<li>Orders Placed using Credit/Debit Card, Net Banking, EMI, Prepaid Cash Cards."+
64
        "</li>"+
65
        "</ul>"+
6772 kshitij.so 66
        "<p style='text-align: justify; line-height: 22px; margin: 12px;'>Compensation for delay is in the form of Gift Vouchers at the rate of Rs. 50 per business day. " +
67
        "GV can be applied to ANY product on Saholic.com without limitation.</p>"+
7063 kshitij.so 68
        "<span class='right'><a target='_blank' href='/static/on-time-guarantee' style='margin-right: 12px; color: #006699';>Detailed Terms & Conditions</a></span>",
6552 kshitij.so 69
        onComplete: function(){
70
		trackEventWithGA('Widget', 'OTG Know More is clicked', '');
71
			}
72
    	});
73
	});
7680 rajveer 74
 
75
	$('#otg_know_more,.otg_know_more').click(function(){
76
		$.colorbox({
77
    		width: "490px",
78
    		height: "420px",
79
    		inline: true,
80
    		href: "<h3 style='text-align: center; margin: 18px; font-size: 14px;'>On Time Guarantee, We Pay if we Delay</h3>" +
81
		"<p style='text-align: justify; margin-left: 12px; margin-right: 12px; margin-bottom: 9px; line-height: 22px;'>Saholic stands for 100% on time delivery. We ensure all your orders reach your doorstep on or "+
82
        "before the promised delivery date. In the rare case that we deliver an order later than promised "+
83
        "we will compensate you.This Guarantee is Valid on"+
84
        "</p>" +
85
        "<ul style='list-style: disc none none; margin-left: 25px; text-align: justify; margin-right:12px; line-height: 22px;'><li>All Mobiles, Cameras, Laptops, Tablets and Accessories above Rs. 2000 in value."+
86
        "</li>"+
87
        "<li>Orders Placed using Credit/Debit Card, Net Banking, EMI, Prepaid Cash Cards."+
88
        "</li>"+
89
        "</ul>"+
90
        "<p style='text-align: justify; line-height: 22px; margin: 12px;'>Compensation for delay is in the form of Gift Vouchers at the rate of Rs. 50 per business day. " +
91
        "GV can be applied to ANY product on Saholic.com without limitation.</p>"+
92
        "<span class='right'><a target='_blank' href='/static/on-time-guarantee' style='margin-right: 12px; color: #006699';>Detailed Terms & Conditions</a></span>",
93
        onComplete: function(){
94
		trackEventWithGA('Widget', 'OTG Know More is clicked', '');
95
			}
96
    	});
97
	});
98
 
4237 varun.gupt 99
	$('#shoppingExpInfo').click(function(){
100
		$.colorbox({
4284 varun.gupt 101
    		width: "550px",
102
    		height: "320px",
4237 varun.gupt 103
    		inline: true,
104
    		href: "<h3>Shopping with Saholic.com is completely safe</h3><br />" +
4284 varun.gupt 105
		"<b>1.</b> We are part of Spice Group - India's # 1 Mobile retailer.<br /><br />" +
106
		"<b>2.</b> We procure directly from the Manufacturers - Hence we only sell genuine products with full Manufacturer Warranty.<br /><br />" +
107
		"<b>3.</b> We provide free Next Day Delivery to most locations - You can check the delivery time to your location by entering your pin code on the product page.<br /><br />" +
6173 kshitij.so 108
		"<b>4.</b> We use the best Internet Security technology - Your payment is 100% secure.<br />",
4372 varun.gupt 109
			onComplete: function(){
6261 amit.gupta 110
				trackEventWithGA('Widget', 'Safe shopping sticky banner is clicked', '');
4372 varun.gupt 111
			}
4237 varun.gupt 112
    	});
113
	});
6245 kshitij.so 114
 
6552 kshitij.so 115
 
6970 kshitij.so 116
	$('.insuranceInfo').click(function(){
117
		$.colorbox({
118
    		width: "520px",
119
    		height: "280px",
120
    		inline: true,
121
    		href: "<h3 style='font-size:15px; text-align:center; font-weight:bold; margin-left:15px; margin-top:5px;margin-bottom:10px'>Exclusively at Saholic</h3>" +
122
    		"<ul style='text-align: justify; padding-right: 10px; width: 93%; padding-left: 16px; line-height: 25px;'>"+
123
    		"<li>Only Saholic brings to you an option to protect your smartphone against theft and burglary.</li>"+
124
    		"<li>While buying your favourite mobile from Saholic, you can opt for 1 year WorldWide theft insurance.</li>"+
125
    		"<li>Introductory offer - You can opt for insurance by paying an all inclusive nominal fee of 1.5% of price of your mobile.</li>"+
7062 kshitij.so 126
    		"<a target='_blank' href='/static/insurance-terms' style='float: right; text-decoration: none;color:#006699';>Detailed Terms and Conditions</a>"+
6970 kshitij.so 127
    		"</ul>",
128
			onComplete: function(){
129
				trackEventWithGA('Widget', 'Insurance sticky banner is clicked', '');
130
			}
131
    	});
132
	});
133
 
134
 
6959 kshitij.so 135
	$('.emiInfo').click(function(){
6453 kshitij.so 136
		$.colorbox({
6967 kshitij.so 137
    		width: "590px",
138
    		height: "480px",
6453 kshitij.so 139
    		inline: true,
7051 kshitij.so 140
    		href: "<h3 style='font-size: 15px; text-align: center; font-weight: bold; margin-left: 15px; margin-bottom: 10px; margin-top: 7px;'>Completely Free EMI For 3 Months</h3>" +
6967 kshitij.so 141
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/hdfc-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 142
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 3, 6, 9, 12 and 18 months.Completely free for 3 months<br><a onclick='toggle(\"emi-table-hdfc\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 143
    		"<div id='emi-table-hdfc' style='padding-left: 5px; display: none;'>"+
144
    		"<table width='85%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
145
    		"<thead>"+
146
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='5'>All Inclusive Processing Fee*</th>"+
147
            "</thead>"+
148
            "<tbody>"+
149
            "<tr>"+
150
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>3 Months</th>"+
151
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>6 Months</th>"+
152
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>9 Months</th>"+
7011 kshitij.so 153
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>12 Months</th>"+
154
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>18 Months</th>"+
6967 kshitij.so 155
            "</tr>"+
156
            "<tr>"+
157
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>Free</td>"+
158
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>4.22%</td>"+
159
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>7.04%</td>"+
7011 kshitij.so 160
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>9.67%</td>"+
161
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray;text-align: center;'>15.36%</td>"+
6967 kshitij.so 162
            "</tr>"+
163
            "</tbody>"+
164
            "</table>"+
165
            "<br>"+
166
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
167
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
6772 kshitij.so 168
    		"<br>"+
6967 kshitij.so 169
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li>"+
170
    		"</ul>"+
6959 kshitij.so 171
    		"<br>"+
6967 kshitij.so 172
    		"</div>"+
173
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/citi-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 174
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 3 and 6 months.Completely free for 3 months<br><a onclick='javascript:toggle(\"emi-table-citi\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 175
    		"<div id='emi-table-citi' style='padding-left: 5px;display: none;'>"+
6970 kshitij.so 176
    		"<table width='70%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
6967 kshitij.so 177
    		"<thead>"+
178
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='2'>All Inclusive Processing Fee*</th>"+
6772 kshitij.so 179
            "</thead>"+
180
            "<tbody>"+
181
            "<tr>"+
6970 kshitij.so 182
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 35%;'>3 Months</th>"+
183
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 35%;'>6 Months</th>"+
6967 kshitij.so 184
            "</tr>"+
185
            "<tr>"+
186
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>Free</td>"+
187
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray; text-align: center;'>4.22%</td>"+
188
            "</tr>"+
189
            "</tbody>"+
190
            "</table>"+
191
            "<br>"+
192
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
193
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
194
    		"<br>"+
195
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li>"+
196
    		"</ul>"+
197
    		"<br>"+
198
    		"</div>"+
199
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/icici-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 200
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 3, 6, 9 ,12 and 18 months.Completely free for 3 months<br><a  onclick='javascript:toggle(\"emi-table-icici\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 201
    		"<div id='emi-table-icici' style='padding-left: 5px;display: none;'>"+
202
    		"<table width='85%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
203
    		"<thead>"+
6970 kshitij.so 204
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='5'>All Inclusive Processing Fee*</th>"+
6967 kshitij.so 205
            "</thead>"+
206
            "<tbody>"+
207
            "<tr>"+
208
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>3 Months</th>"+
6959 kshitij.so 209
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>6 Months</th>"+
210
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>9 Months</th>"+
211
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>12 Months</th>"+
212
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>18 Months</th>"+
213
            "</tr>"+
6772 kshitij.so 214
            "<tr>"+
7051 kshitij.so 215
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>Free</td>"+
6967 kshitij.so 216
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>5.58%</td>"+
217
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>8.47%</td>"+
218
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>11.53%</td>"+
219
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray;text-align: center;'>16.72%</td>"+
6772 kshitij.so 220
            "</tr>"+
6967 kshitij.so 221
            "</tbody>"+
222
            "</table>"+
223
            "<br>"+
224
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
225
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
226
    		"<br>"+
6970 kshitij.so 227
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li><br><li>Minimum payment amount required to convert into EMI is Rs 1500.</li>"+
6967 kshitij.so 228
    		"</ul>"+
229
    		"<br>"+
230
    		"</div>"+
231
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/sbi-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 232
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 3, 6, 9 ,12 and 18 months.Completely free for 3 months<br><a onclick='javascript:toggle(\"emi-table-sbi\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 233
    		"<div id='emi-table-sbi' style='padding-left: 5px;display: none;'>"+
234
    		"<table width='85%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
235
    		"<thead>"+
6970 kshitij.so 236
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='5'>All Inclusive Processing Fee*</th>"+
6967 kshitij.so 237
            "</thead>"+
238
            "<tbody>"+
6772 kshitij.so 239
            "<tr>"+
6967 kshitij.so 240
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>3 Months</th>"+
241
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>6 Months</th>"+
242
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>9 Months</th>"+
243
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>12 Months</th>"+
244
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>18 Months</th>"+
6772 kshitij.so 245
            "</tr>"+
246
            "<tr>"+
7051 kshitij.so 247
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>Free</td>"+
6967 kshitij.so 248
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>5.58%</td>"+
249
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>8.47%</td>"+
250
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>11.53%</td>"+
251
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray;text-align: center;'>16.72%</td>"+
252
            "</tr>"+
253
            "</tbody>"+
254
            "</table>"+
255
            "<br>"+
256
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
257
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
258
    		"<br>"+
6970 kshitij.so 259
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li><br><li>Minimum payment amount required to convert into EMI is Rs 1000.</li>"+
6967 kshitij.so 260
    		"</ul>"+
261
    		"<br>"+
262
    		"</div>"+
263
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/hsbc-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 264
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 3, 6, 9 and 12 months.Completely free for 3 months<br><a onclick='javascript:toggle(\"emi-table-hsbc\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 265
    		"<div id='emi-table-hsbc' style='padding-left: 5px;display:none;'>"+
6970 kshitij.so 266
    		"<table width='70%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
6967 kshitij.so 267
    		"<thead>"+
6970 kshitij.so 268
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='5'>All Inclusive Processing Fee*</th>"+
6967 kshitij.so 269
            "</thead>"+
270
            "<tbody>"+
271
            "<tr>"+
7017 kshitij.so 272
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>3 Months</th>"+
273
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>6 Months</th>"+
274
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>9 Months</th>"+
275
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>12 Months</th>"+
6967 kshitij.so 276
            "</tr>"+
277
            "<tr>"+
7051 kshitij.so 278
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>Free</td>"+
7017 kshitij.so 279
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>5.58%</td>"+
280
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>8.47%</td>"+
281
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray;text-align: center;'>11.53%</td>"+
6772 kshitij.so 282
            "</tr>"+
6967 kshitij.so 283
            "</tbody>"+
284
            "</table>"+
285
            "<br>"+
286
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
287
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
288
    		"<br>"+
6970 kshitij.so 289
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li><br><li>Minimum payment amount required to convert into EMI is Rs 1500.</li>"+
6967 kshitij.so 290
    		"</ul>"+
291
    		"<br>"+
292
    		"</div>"+
293
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/std-chartered-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 294
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 3, 6, 9 and 12 months.Completely free for 3 months<br><a onclick='javascript:toggle(\"emi-table-std-chart\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 295
    		"<div id='emi-table-std-chart' style='padding-left: 5px;display: none;'>"+
296
    		"<table width='85%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
297
    		"<thead>"+
6970 kshitij.so 298
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='5'>All Inclusive Processing Fee*</th>"+
6967 kshitij.so 299
            "</thead>"+
300
            "<tbody>"+
6772 kshitij.so 301
            "<tr>"+
6970 kshitij.so 302
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%%;'>3 Months</th>"+
6967 kshitij.so 303
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>6 Months</th>"+
304
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>9 Months</th>"+
305
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>12 Months</th>"+
6772 kshitij.so 306
            "</tr>"+
307
            "<tr>"+
7051 kshitij.so 308
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>Free</td>"+
6967 kshitij.so 309
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>5.58%</td>"+
310
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>8.47%</td>"+
311
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray;text-align: center;'>11.53%</td>"+
6772 kshitij.so 312
            "</tr>"+
6967 kshitij.so 313
            "</tbody>"+
314
            "</table>"+
315
            "<br>"+
316
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
317
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
318
    		"<br>"+
6970 kshitij.so 319
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li><br><li>Minimum payment amount required to convert into EMI is Rs 500.</li>"+
6967 kshitij.so 320
    		"</ul>"+
321
    		"<br>"+
322
    		"</div>"+
323
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/axis-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 324
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 3, 6, 9 ,12 and 18 months.Completely free for 3 months<br><a onclick='javascript:toggle(\"emi-table-axis\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 325
    		"<div id='emi-table-axis' style='padding-left: 5px;display: none;'>"+
326
    		"<table width='85%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
327
    		"<thead>"+
6970 kshitij.so 328
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='5'>All Inclusive Processing Fee*</th>"+
6967 kshitij.so 329
            "</thead>"+
330
            "<tbody>"+
331
            "<tr>"+
332
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>3 Months</th>"+
333
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>6 Months</th>"+
334
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>9 Months</th>"+
335
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>12 Months</th>"+
336
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>18 Months</th>"+
337
            "</tr>"+
338
            "<tr>"+
7051 kshitij.so 339
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>Free</td>"+
6967 kshitij.so 340
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>5.58%</td>"+
341
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>8.47%</td>"+
342
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>11.53%</td>"+
343
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray;text-align: center;'>16.72%</td>"+
6959 kshitij.so 344
            "</tr>"+
6967 kshitij.so 345
            "</tbody>"+
346
            "</table>"+
347
            "<br>"+
348
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
349
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
350
    		"<br>"+
6970 kshitij.so 351
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li><br><li>Minimum payment amount required to convert into EMI is Rs 2500.</li>"+
6967 kshitij.so 352
    		"</ul>"+
353
    		"<br>"+
354
    		"</div>"+
355
    		"<div style='display: inline-block; padding-left: 5px;' class='bank-logo'><img src='/images/indusind-icon.png' style='vertical-align: middle;'></div>"+
7062 kshitij.so 356
    		"<div class='emi-text' style='text-align: justify; height: 49px; padding-left: 3px; width: 397px; display: inline-block; vertical-align: top;'><p style='height: 38px; width: 420px;'>Available for 6, 9 and 12 months. <br><a onclick='javascript:toggle(\"emi-table-indus\");' style='cursor: pointer; text-decoration: none;color:#006699;'>See Full Details</a></p></div>"+
6967 kshitij.so 357
    		"<div id='emi-table-indus' style='padding-left: 5px;display: none;'>"+
358
    		"<table width='85%' cellspacing='0' cellpadding='0' border='0' id='emiwidget' style='padding-top: 2px; padding-bottom: 2px; border-top-width: 0px; border-left-width: 0px;padding-left: 5px'>"+
359
    		"<thead>"+
360
            "<th style='border:1px solid gray;text-align: center;background-color: #F1F1F1;' colspan='5'>All Inclusive Processing Fee*</th>"+
361
            "</thead>"+
362
            "<tbody>"+
6959 kshitij.so 363
            "<tr>"+
6967 kshitij.so 364
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>6 Months</th>"+
365
            "<td style='border-width: 0px 0px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>9 Months</th>"+
366
            "<td style='border-width: 0px 1px 1px 1px; border-style: solid; border-color: gray;text-align: center; width: 9%;'>12 Months</th>"+
6959 kshitij.so 367
            "</tr>"+
368
            "<tr>"+
7051 kshitij.so 369
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>5.58%%</td>"+
6967 kshitij.so 370
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 0px solid gray; text-align: center;'>8.47%</td>"+
371
            "<td style='border-bottom: 1px solid gray; border-left: 1px solid gray; border-right: 1px solid gray;text-align: center;'>11.53%</td>"+
6959 kshitij.so 372
            "</tr>"+
6772 kshitij.so 373
            "</tbody>"+
374
            "</table>"+
375
            "<br>"+
6967 kshitij.so 376
    		"<ul style='list-style : disc none none; padding-left: 20px; text-align:justify; line-height: 13px; padding-right: 10px; width: 83%;'>"+
377
    		"<li>Select EMI on Make Payment Page to see Monthly EMI payable and Total Amount Payable.</li>"+
378
    		"<br>"+
379
    		"<li>No charges will be levied by the bank.</li><br><li>Credit limit of full amount is needed and blocked at the time of buying on EMI.</li><br><li>As you pay the installments, correspondingly your credit limit increases.</li>"+
380
    		"</ul>"+
381
    		"<br>"+
382
    		"</div>"+
383
    		"<br><br>",
6453 kshitij.so 384
			onComplete: function(){
385
				trackEventWithGA('Widget', 'Emi info widget is clicked', '');
386
			}
387
    	});
388
	});
6245 kshitij.so 389
 
6792 vikram.rag 390
	$('a.mk_best_deal_detail').live('click', function(){
391
		var offerLinkHtml = '';
392
		if(OFFER_HELP_LINK!='$OFFER_DETAIL_LINK') {
6795 vikram.rag 393
			offerLinkHtml = '<a target="_blank" href="' +OFFER_HELP_LINK + '" style="z-index: 1; float: right; bottom: 0px; right: 0px; margin: 15px; position: relative;">More</a></span>';
6792 vikram.rag 394
		}
395
		$.colorbox({
396
			width: "550px",
397
    		height: "300px",
398
    		inline: true,
399
    		href: '<h3 style="text-align: left; padding: 10px;">Offer Details</h3>' +
400
    			'<p style="text-align: justify; line-height: 22px; margin: 12px;">' + OFFER_HELP_TEXT +
401
    			'</p><span class="right">' + offerLinkHtml 
402
		});
403
	});
6453 kshitij.so 404
 
6792 vikram.rag 405
 
6245 kshitij.so 406
	$('#pickupstoreInfo').click(function(){
407
		$.colorbox({
408
    		width: "550px",
409
    		height: "370px",
410
    		inline: true,
411
    		href: "<h3>Frequently Asked Questions</h3><br />" +
7062 kshitij.so 412
		"<b style='color: black; cursor: default;'>Q)</b> What is 'Buy Online & Pickup in Store' ?<br /><br />" +
413
		"<b style='color: black; cursor: default;'>A)</b> Buy Online from Saholic.Com and pickup your product from the nearest Spice Hotspot Retail Store.<br /><br />" +
414
		"<b style='color: black; cursor: default;'>Q)</b> How do i avail this facility ?<br /><br />" +
415
		"<b style='color: black; cursor: default;'>A)</b> Simply select Pickup In Store On the Shipping Page and select your nearest store. Please note this facility is available only in Delhi/NCR.</a><br /><br />"+
416
		"<b style='color: black; cursor: default;'>Q)</b> When will the product be available for pickup ?<br /><br />" +
417
		"<b style='color: black; cursor: default;'>A)</b> You can enter your pin code on the Product Page to find estimated time to deliver. After placing the order we will also give you the estimated date for pickup.</a><br /><br />",
6245 kshitij.so 418
 
419
			onComplete: function(){
6262 amit.gupta 420
				var ev = "Product Page";
6303 amit.gupta 421
				var label = window.location.pathname;
6264 amit.gupta 422
				if (label=="" || label=="#")
6261 amit.gupta 423
				{
6303 amit.gupta 424
					label = "";
6262 amit.gupta 425
					ev = "Home Page";
6261 amit.gupta 426
				}
6262 amit.gupta 427
				else if (label.indexOf("shipping") != -1){
428
					ev = "Shipping Page";
429
					var blkstr = [];
6263 amit.gupta 430
					jQuery("#cartDetail").find("span.cart-item-name").each(function(key,str){
6262 amit.gupta 431
						blkstr.push(str);
432
					});
6303 amit.gupta 433
					label = blkstr.join(", ");
434
				} else if (label.substr(label.lastIndexOf('/') + 1).length==5 && typeof label.substr(label.lastIndexOf('/') + 1) =="number") {
435
					ev = "Category Page";
436
				} else if (label.substr(label.lastIndexOf('-') + 1).length==7  && typeof label.substr(label.lastIndexOf('-') + 1) =="number") {
437
					ev = "Product Page";
6262 amit.gupta 438
				}
6261 amit.gupta 439
				trackEventWithGA('Pickup in Store LightBox', ev, label);
6245 kshitij.so 440
			}
441
    	});
442
	});
4126 varun.gupt 443
 
5420 amit.gupta 444
	$('.common-widget-top-bar').live('click', function(e, callback){
4126 varun.gupt 445
		var isColapsed = $(this).data('is_colapsed') == true ? true : false;
446
		var widgetBox = $(this).siblings('.common-widget-content-area');
447
		var controlBox = $(this).siblings('.common-widget-control-bar');
448
		var controlBoxArrowImg = $(this).find('img');
4210 varun.gupt 449
 
4126 varun.gupt 450
		if (isColapsed)	{
451
			if(controlBox.length > 0)	{
452
				$(controlBox).slideDown('fast', function(){
5420 amit.gupta 453
					$(widgetBox).slideDown('fast', callback);
4126 varun.gupt 454
					$(controlBoxArrowImg).attr('src', '/images/IconDownArrow_UnselectedTab.png');
455
				});
456
			} else	{
457
				$(widgetBox).slideDown();
458
				$(controlBoxArrowImg).attr('src', '/images/IconDownArrow_UnselectedTab.png');
459
			}
460
		} else	{
461
			$(widgetBox).slideUp(function(){
462
				$(controlBox).slideUp('fast');
463
				$(controlBoxArrowImg).attr('src', '/images/IconRightArrow_UnselectedTab.png');
464
			});
465
		}
466
		$(this).data('is_colapsed', !isColapsed);
467
	});
468
 
469
	/**
470
	 * Update count of products checked for comparison
471
	 **/
472
	$('#myresearch input[type="checkbox"]').live('click', function(){
4798 varun.gupt 473
		updateCompareCount();
4126 varun.gupt 474
	});
475
 
476
	$("#research_compare").live('click', function(){
477
		var seldata = "";
5322 amit.gupta 478
		var prodnames = "";
4126 varun.gupt 479
		var tot = 1;
480
		var saprt = "";
481
		var par = $('#myresearch').find('input[type=checkbox]:checked');
4926 varun.gupt 482
		var haveSameProductType = true;
483
		var productType = null;
484
 
4126 varun.gupt 485
		$(par).each(function(){
4926 varun.gupt 486
 
487
			if(productType != null && productType != $(this).attr('producttype'))	{
488
				haveSameProductType = false;
489
			}
490
			productType = $(this).attr('producttype');
491
 
4126 varun.gupt 492
			if(tot == 1)	{
5358 amit.gupta 493
				prodnames += $(this).attr("title").replace(/ +/g, '-').replace(/\/+/g,'-').replace(/-+/g,'-').toLowerCase();
4126 varun.gupt 494
				seldata += "p" + tot + "=" + $(this).val();
495
			} else	{
496
				seldata += "&p" + tot + "=" + $(this).val();
5358 amit.gupta 497
				prodnames += "-vs-" + $(this).attr("title").replace(/ +/g, '-').replace(/\/+/g,'-').replace(/-+/g,'-').toLowerCase();
4126 varun.gupt 498
			}
499
			tot ++;
500
		});
4984 varun.gupt 501
 
4926 varun.gupt 502
		if(! haveSameProductType)	{
503
			alert("Only products of same category can be compared");
504
		} else if(tot > 6)	{
4126 varun.gupt 505
			alert("Can compare upto five products only.");
506
		} else if(tot > 2)	{
5552 phani.kuma 507
			window.location = "/compare-" + productType.replace(/ +/g, '-').toLowerCase() + "/" + prodnames + "?" + seldata+"&fromsrc=comparison_widget";
4126 varun.gupt 508
		} else	{
509
			alert("Please select atleast two products");
510
		}
511
	});
512
 
513
	$("#research_delete").live('click', function(){
514
		var research_tot = $("#research_total").val();
515
		var seldata = [];
516
		var tot = 0;
517
		var saprt = "";
518
		var par = $('#myresearch').find('input[type=checkbox]:checked');
519
 
520
		$(par).each(function(){
521
			seldata.unshift($(this).val());
522
			tot ++;
523
		});
524
 
525
		if(tot > 0)	{
526
			var t = (research_tot * 1) - (tot * 1);
527
			$("#research_total").val(t);
528
 
529
			jQuery.ajax({
530
				type: "GET",
531
				url: "/deletefromresearch/[" + seldata + "]?_method=delete",
532
				success: function(msg)	{
533
					jQuery.each(seldata, function(intIndex, objValue){
534
						delete_from_storage_set("resitems", objValue);
535
						$("#myresearch").find("#" + objValue).fadeOut('slow', function() {
536
							$(this).remove();
537
							if(t === 0)	{
538
								$("#research_default").css("display", "block");
539
							}
540
						});
541
					});
4984 varun.gupt 542
 
4922 varun.gupt 543
					//Updating the count
544
					$('#research_compare_count').html($('#myresearch input[type="checkbox"]:checked').length - seldata.length);
4984 varun.gupt 545
 
546
					if ($('#myresearch input[type="checkbox"]').length - seldata.length <= 0)	{
547
						$("#myresearch").children(".common-widget-top-bar").trigger('click');
548
					}
4126 varun.gupt 549
				}
550
			});
551
		} else	{
552
			alert("Please select atleast one product");
553
		}
554
	});
555
 
556
	// No uid cookie
557
	if (!$.cookie("uid"))	{
558
		// No uid in storage
559
		if (!$.Storage.get("uid"))	{
560
			if (!$.Storage.get("resitems"))	{
561
				$.Storage.set("resitems", "[]");
562
			}
563
			if (!$.Storage.get("histitems"))	{
564
				$.Storage.set("histitems", "[]");
565
			}
566
		}
567
		else	{			// uid in storage : logout
568
			$.Storage.remove("uid");
569
			$.Storage.set("resitems", "[]");
570
			$.Storage.set("histitems", "[]");
571
		}
572
		load_research_widget();
573
		load_history_widget();
574
	}
575
	else	{				// With uid cookie
576
		var cookie = $.cookie("uid");
577
		// Just logged in merge storage items
578
		if (!$.Storage.get("uid"))	{
579
			$.Storage.set("uid", cookie);
580
			merge_history_items();
581
			load_research_items();
582
		}
583
		else	{
584
			// UID changed
585
			if ( cookie != $.Storage.get("uid"))	{
586
				$.Storage.set("uid", cookie);
587
				$.Storage.set("resitems", "[]");
588
				$.Storage.set("histitems", "[]");
589
				merge_history_items();
590
				load_research_items();
591
			}
592
			else	{		// Uid is same
593
				if (!$.Storage.get("resitems"))	{
594
					$.Storage.set("resitems", "[]");
595
					load_research_items();
596
				}
597
				else	{
598
					load_research_widget();
599
				}
600
 
601
				if (!$.Storage.get("histitems"))	{
602
					$.Storage.set("histitems", "[]");
603
					merge_history_items();
604
				}
605
				else	{
606
					load_history_widget();
607
				}
608
			}
609
		}
610
	}
4798 varun.gupt 611
 
612
	function load_research_items(){
613
		jQuery.ajax({
614
			type: "GET",
615
			url: "/myresearch",
616
			cache: false,
617
			success: function(json) {
618
			    $.Storage.set("resitems", json);
619
			    load_research_widget();
620
		    }
621
		});
622
	}
623
 
624
	function load_research_widget(){
625
		var myResearchWidgetContainer = $("#myresearch");
626
 
627
		if($(myResearchWidgetContainer).length == 0) {
628
			return;
629
		}
630
		var resitems = $.Storage.get("resitems");
631
 
632
		if (resitems == "[]") {
633
			var emptyResWidgetHtml = '<table border="0" width="100%" cellspacing="1" cellpadding="0" id="research_default">\
634
		      <tbody>\
635
		        <tr><td align="center"><b>Add items to compare list</b></td></tr>\
636
		       </tbody>\
637
		      </table>';
638
			$(myResearchWidgetContainer).find(".common-widget-content-area").html(emptyResWidgetHtml);
639
			$(myResearchWidgetContainer).children(".common-widget-top-bar").trigger('click');
640
			return;
641
		}
642
		var params = "/" + resitems;
643
 
644
		jQuery.ajax({
645
			type : "GET",
646
			url : "/myresearch" + params,
647
			cache: true,
648
			success : function(html) {
649
	   		    $("#myresearch").html(html);
650
	   			updateCompareCount();
651
 
652
			    // Product Title
653
			    $("#myresearch table td div a.truncate").each(function() {
654
						$(this).truncate({addtitle : true});
655
			    });
656
 
657
			    // Product Price
658
			    $("#myresearch table td div div.price").each(function() {
659
						$(this).truncate({addtitle : true});
660
				});
661
 
662
			    // Product Details
663
			    $("#myresearch table td div div.text").each(function() {
664
						$(this).truncate( {addtitle : true});
665
				});
666
		    }
667
		});
668
	}
4126 varun.gupt 669
});