Subversion Repositories SmartDukaan

Rev

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