/
shop.html
548 lines (478 loc) · 23.5 KB
/
shop.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Lazy Glamour</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body id="top">
<div id="yfc_mini"></div>
<div id="hideItAll"></div>
<!--CONTAINER-->
<div id="container_b">
<div id="inner">
<div class="inn_logo"><a href="index.html"><img src="images/logo.png" /></a></div>
<div class="menu"></div>
<div class="inn_main">
<span class="inn_main1">SHOP
<img src="images/FreeShip.png" />
</span>
<span class="inn_main2"></span>
<span class="inn_main3">
<!-- Bikini France -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="100" src="images/Bikini_Black_France_Small.jpg" /></span>
<span class="inn_main6">Bikini w/ Eiffel Tower</span>
<span class="inn_main7">$<!--#ystore_catalog id="bikini-france" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Bikini Hummingbird -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="100" src="images/Bikini_White_Hummingbird_Small.jpg" /></span>
<span class="inn_main6">Bikini w/ Hummingbird</span>
<span class="inn_main7">$<!--#ystore_catalog id="bikini-hummingbird" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Bikini Lips -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Bikini_White_Lips_Small.jpg" /></span>
<span class="inn_main6">Bikini w/ Kiss</span>
<span class="inn_main7">$<!--#ystore_catalog id="bikini-lips" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Bikini Peacock -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Bikini_White_Peacock_Small.jpg" /></span>
<span class="inn_main6">Bikini w/ Peacock </span>
<span class="inn_main7">$<!--#ystore_catalog id="bikini-peacock" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Bikini Poppy -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Bikini_White_Poppy_Small.jpg" /></span>
<span class="inn_main6">Bikini w/ Poppy</span>
<span class="inn_main7">$<!--#ystore_catalog id="bikini-poppy" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Boyshort Lips -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Boyshort_Black_Lips_Small.jpg" /></span>
<span class="inn_main6">Boyshort w/ Kiss</span>
<span class="inn_main7">$<!--#ystore_catalog id="boyshort-lips" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Boyshort Poppy -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Boyshort_Black_Poppy_Small.jpg" /></span>
<span class="inn_main6">Boyshort w/ Poppy</span>
<span class="inn_main7">$<!--#ystore_catalog id="boyshort-poppy" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Boyshort France -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Boyshort_White_France_Small.jpg" /></span>
<span class="inn_main6">Boyshort w/ Eiffel Tower</span>
<span class="inn_main7">$<!--#ystore_catalog id="boyshort-france" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Boyshort Hummingbird -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Boyshort_White_Hummingbird_Small.jpg" /></span>
<span class="inn_main6">Boyshort w/ Hummingbird</span>
<span class="inn_main7">$<!--#ystore_catalog id="boyshort-hummingbird" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Boyshort Peacock -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Boyshort_White_Peacock_Small.jpg" /></span>
<span class="inn_main6">Boyshort w/ Peacock</span>
<span class="inn_main7">$<!--#ystore_catalog id="boyshort-peacock" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Thong France -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Thong_Black_France_Small.jpg" /></span>
<span class="inn_main6">Thong w/ Eiffel Tower</span>
<span class="inn_main7">$<!--#ystore_catalog id="thong-france" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Thong Hummingbird -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Thong_White_Hummingbird_Small.jpg" /></span>
<span class="inn_main6">Thong w/ Hummingbird</span>
<span class="inn_main7">$<!--#ystore_catalog id="thong-hummingbird" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Thong Lips -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Thong_White_Lips_Small.jpg" /></span>
<span class="inn_main6">Thong w/ Kiss</span>
<span class="inn_main7">$<!--#ystore_catalog id="thong-lips" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Thong Peacock -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Thong_White_Peacock_Small.jpg" /></span>
<span class="inn_main6">Thong w/ Peacock</span>
<span class="inn_main7">$<!--#ystore_catalog id="thong-peacock" field="price" --> <input type="button" class="b_buy"></span>
</span>
<!-- Thong Poppy -->
<span class="inn_main4">
<span class="inn_main5"><img width="150" height="99" src="images/Thong_White_Poppy_Small.jpg" /></span>
<span class="inn_main6">Thong w/ Poppy</span>
<span class="inn_main7">$<!--#ystore_catalog id="thong-poppy" field="price" --> <input type="button" class="b_buy"></span>
</span>
<span class="inn_main13">
<ul class="navp">
<li><img src="images/arrow3.png" /></li>
<li><a href="#" class="nav_over">Page 1</a></li>
<li><a href="#" class="nav1">|</a></li>
<li><img src="images/arrow4.png" /></li>
</ul>
</span>
</span>
</div>
<div class="inn_lb"></div>
<div id="footer"></div>
<div id="productOverlay" class="yui3-overlay-loading">
</div>
</div>
</div>
</body>
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-min.js" charset="utf-8"></script>
<script src="scripts/handlebars-1.0.0.beta.2.js"></script>
<script>
var pageConfig = {
top: {
shop:true,
ecofashion:false,
press:false,
about:false
},
left: {
home:false,
shop:true,
ecofashion:false,
showEcofashion:false,
ecofashion1:false,
ecofashion2:false,
ecofashion3:false,
press:false,
about:false
}
};
var bikiniFranceConfig = {
header: 'Bikini panty with an Eiffel Tower',
largePhoto: 'Bikini_Black_France_Large',
thumbOne: 'Bikini_Black_France_Thumb',
thumbTwo: 'Bikini_Black_Front_Thumb',
thumbThree: 'Design_France_Thumb',
description: 'Our classic bikini panty with an Eiffel Tower print on the back left cheek.',
fitDetail: 'Low-rise, with moderate back coverage',
price: '<!--#ystore_catalog id="bikini-france" field="price" -->',
action: '<!--#ystore_order id="bikini-france" -->',
color: '<!--#ystore_catalog id="bikini-france" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="bikini-france" field="options" optionkey="Size" format="html" -->'
};
var bikiniHummingbirdConfig = {
header: 'Bikini panty with a Hummingbird',
largePhoto: 'Bikini_White_Hummingbird_Large',
thumbOne: 'Bikini_White_Hummingbird_Thumb',
thumbTwo: 'Bikini_White_Front_Thumb',
thumbThree: 'Design_Hummingbird_Thumb',
description: 'Our classic bikini panty with a Hummingbird print on the back right cheek.',
fitDetail: 'Low-rise, with moderate back coverage',
price: '<!--#ystore_catalog id="bikini-hummingbird" field="price" -->',
action: '<!--#ystore_order id="bikini-hummingbird" -->',
color: '<!--#ystore_catalog id="bikini-hummingbird" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="bikini-hummingbird" field="options" optionkey="Size" format="html" -->'
};
var bikiniLipsConfig = {
header: 'Bikini panty with Signature Kiss',
largePhoto: 'Bikini_White_Lips_Large',
thumbOne: 'Bikini_White_Lips_Thumb',
thumbTwo: 'Bikini_White_Front_Thumb',
thumbThree: 'Design_Lips_Thumb',
description: 'Our classic bikini panty with our Signature Lips print on the back right cheek.',
fitDetail: 'Low-rise, with moderate back coverage',
price: '<!--#ystore_catalog id="bikini-lips" field="price" -->',
action: '<!--#ystore_order id="bikini-lips" -->',
color: '<!--#ystore_catalog id="bikini-lips" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="bikini-lips" field="options" optionkey="Size" format="html" -->'
};
var bikiniPeacockConfig = {
header: 'Bikini panty with a Peacock Feather',
largePhoto: 'Bikini_White_Peacock_Large',
thumbOne: 'Bikini_White_Peacock_Thumb',
thumbTwo: 'Bikini_White_Front_Thumb',
thumbThree: 'Design_Peacock_Thumb',
description: 'Our classic bikini panty with a Peacock Feather print on the back left cheek.',
fitDetail: 'Low-rise, with moderate back coverage',
price: '<!--#ystore_catalog id="bikini-peacock" field="price" -->',
action: '<!--#ystore_order id="bikini-peacock" -->',
color: '<!--#ystore_catalog id="bikini-peacock" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="bikini-peacock" field="options" optionkey="Size" format="html" -->'
};
var bikiniPoppyConfig = {
header: 'Bikini panty with a Poppy',
largePhoto: 'Bikini_White_Poppy_Large',
thumbOne: 'Bikini_White_Poppy_Thumb',
thumbTwo: 'Bikini_White_Front_Thumb',
thumbThree: 'Design_Poppy_Thumb',
description: 'Our classic bikini panty with a Poppy print on the back left cheek.',
fitDetail: 'Low-rise, with moderate back coverage',
price: '<!--#ystore_catalog id="bikini-poppy" field="price" -->',
action: '<!--#ystore_order id="bikini-poppy" -->',
color: '<!--#ystore_catalog id="bikini-poppy" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="bikini-poppy" field="options" optionkey="Size" format="html" -->'
};
var boyshortLipsConfig = {
header: 'Boyshort panty with Signature Kiss',
largePhoto: 'Boyshort_Black_Lips_Large',
thumbOne: 'Boyshort_Black_Lips_Thumb',
thumbTwo: 'Boyshort_Black_Front_Thumb',
thumbThree: 'Design_Lips_Thumb',
description: 'Our boyshort panty with our Signature Kiss print on the back right cheek.',
fitDetail: 'Low-rise, with full seat coverage',
price: '<!--#ystore_catalog id="boyshort-lips" field="price" -->',
action: '<!--#ystore_order id="boyshort-lips" -->',
color: '<!--#ystore_catalog id="boyshort-lips" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="boyshort-lips" field="options" optionkey="Size" format="html" -->'
};
var boyshortPoppyConfig = {
header: 'Boyshort panty with a Poppy',
largePhoto: 'Boyshort_Black_Poppy_Large',
thumbOne: 'Boyshort_Black_Poppy_Thumb',
thumbTwo: 'Boyshort_Black_Front_Thumb',
thumbThree: 'Design_Poppy_Thumb',
description: 'Our boyshort panty with a Poppy print on the back left cheek.',
fitDetail: 'Low-rise, with full seat coverage',
price: '<!--#ystore_catalog id="boyshort-poppy" field="price" -->',
action: '<!--#ystore_order id="boyshort-poppy" -->',
color: '<!--#ystore_catalog id="boyshort-poppy" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="boyshort-poppy" field="options" optionkey="Size" format="html" -->'
};
var boyshortFranceConfig = {
header: 'Boyshort panty with an Eiffel Tower',
largePhoto: 'Boyshort_White_France_Large',
thumbOne: 'Boyshort_White_France_Thumb',
thumbTwo: 'Boyshort_White_Front_Thumb',
thumbThree: 'Design_France_Thumb',
description: 'Our boyshort panty with an Eiffel Tower print on the back left cheek.',
fitDetail: 'Low-rise, with full seat coverage',
price: '<!--#ystore_catalog id="boyshort-france" field="price" -->',
action: '<!--#ystore_order id="boyshort-france" -->',
color: '<!--#ystore_catalog id="boyshort-france" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="boyshort-france" field="options" optionkey="Size" format="html" -->'
};
var boyshortHummingbirdConfig = {
header: 'Boyshort panty with a Hummingbird',
largePhoto: 'Boyshort_White_Hummingbird_Large',
thumbOne: 'Boyshort_White_Hummingbird_Thumb',
thumbTwo: 'Boyshort_White_Front_Thumb',
thumbThree: 'Design_Hummingbird_Thumb',
description: 'Our boyshort panty with a Hummingbird print on the back right cheek.',
fitDetail: 'Low-rise, with full seat coverage',
price: '<!--#ystore_catalog id="boyshort-hummingbird" field="price" -->',
action: '<!--#ystore_order id="boyshort-hummingbird" -->',
color: '<!--#ystore_catalog id="boyshort-hummingbird" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="boyshort-hummingbird" field="options" optionkey="Size" format="html" -->'
};
var boyshortPeacockConfig = {
header: 'Boyshort panty with a Peacock',
largePhoto: 'Boyshort_White_Peacock_Large',
thumbOne: 'Boyshort_White_Peacock_Thumb',
thumbTwo: 'Boyshort_White_Front_Thumb',
thumbThree: 'Design_Peacock_Thumb',
description: 'Our boyshort panty with a Peacock print on the back left cheek.',
fitDetail: 'Low-rise, with full seat coverage',
price: '<!--#ystore_catalog id="boyshort-peacock" field="price" -->',
action: '<!--#ystore_order id="boyshort-peacock" -->',
color: '<!--#ystore_catalog id="boyshort-peacock" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="boyshort-peacock" field="options" optionkey="Size" format="html" -->'
};
var thongFranceConfig = {
header: 'Thong panty with an Eiffel Tower',
largePhoto: 'Thong_Black_France_Large',
thumbOne: 'Thong_Black_France_Thumb',
thumbTwo: 'Thong_Black_Back_Thumb',
thumbThree: 'Design_France_Thumb',
description: 'Our thong panty with an Eiffel Tower print on the front.',
fitDetail: 'Low-rise, with thong coverage',
price: '<!--#ystore_catalog id="thong-france" field="price" -->',
action: '<!--#ystore_order id="thong-france" -->',
color: '<!--#ystore_catalog id="thong-france" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="thong-france" field="options" optionkey="Size" format="html" -->'
};
var thongHummingbirdConfig = {
header: 'Thong panty with a Hummingbird',
largePhoto: 'Thong_White_Hummingbird_Large',
thumbOne: 'Thong_White_Hummingbird_Thumb',
thumbTwo: 'Thong_White_Back_Thumb',
thumbThree: 'Design_Hummingbird_Thumb',
description: 'Our thong panty with a Hummingbird print on the front.',
fitDetail: 'Low-rise, with thong coverage',
price: '<!--#ystore_catalog id="thong-hummingbird" field="price" -->',
action: '<!--#ystore_order id="thong-hummingbird" -->',
color: '<!--#ystore_catalog id="thong-hummingbird" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="thong-hummingbird" field="options" optionkey="Size" format="html" -->'
};
var thongLipsConfig = {
header: 'Thong panty with Signature Kiss',
largePhoto: 'Thong_White_Lips_Large',
thumbOne: 'Thong_White_Lips_Thumb',
thumbTwo: 'Thong_White_Back_Thumb',
thumbThree: 'Design_Lips_Thumb',
description: 'Our thong panty with our Signature Kiss print on the front.',
fitDetail: 'Low-rise, with thong coverage',
price: '<!--#ystore_catalog id="thong-lips" field="price" -->',
action: '<!--#ystore_order id="thong-lips" -->',
color: '<!--#ystore_catalog id="thong-lips" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="thong-lips" field="options" optionkey="Size" format="html" -->'
};
var thongPeacockConfig = {
header: 'Thong panty with a Peacock',
largePhoto: 'Thong_White_Peacock_Large',
thumbOne: 'Thong_White_Peacock_Thumb',
thumbTwo: 'Thong_White_Back_Thumb',
thumbThree: 'Design_Peacock_Thumb',
description: 'Our thong panty with a Peacock print on the front.',
fitDetail: 'Low-rise, with thong coverage',
price: '<!--#ystore_catalog id="thong-peacock" field="price" -->',
action: '<!--#ystore_order id="thong-peacock" -->',
color: '<!--#ystore_catalog id="thong-peacock" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="thong-peacock" field="options" optionkey="Size" format="html" -->'
};
var thongPoppyConfig = {
header: 'Thong panty with a Poppy',
largePhoto: 'Thong_White_Poppy_Large',
thumbOne: 'Thong_White_Poppy_Thumb',
thumbTwo: 'Thong_White_Back_Thumb',
thumbThree: 'Design_Poppy_Thumb',
description: 'Our thong panty with a Poppy print on the front.',
fitDetail: 'Low-rise, with thong coverage',
price: '<!--#ystore_catalog id="thong-poppy" field="price" -->',
action: '<!--#ystore_order id="thong-poppy" -->',
color: '<!--#ystore_catalog id="thong-poppy" field="options" optionkey="Color" format="html" -->',
size: '<!--#ystore_catalog id="thong-poppy" field="options" optionkey="Size" format="html" -->'
};
YUI().use('node', 'overlay', function(Y) {
var determineConfig = function(imageName) {
switch (imageName) {
case "Bikini_Black_France_Small.jpg":
return bikiniFranceConfig;
case "Bikini_White_Hummingbird_Small.jpg":
return bikiniHummingbirdConfig;
case "Bikini_White_Lips_Small.jpg":
return bikiniLipsConfig;
case "Bikini_White_Peacock_Small.jpg":
return bikiniPeacockConfig;
case "Bikini_White_Poppy_Small.jpg":
return bikiniPoppyConfig;
case "Boyshort_Black_Lips_Small.jpg":
return boyshortLipsConfig;
case "Boyshort_Black_Poppy_Small.jpg":
return boyshortPoppyConfig;
case "Boyshort_White_France_Small.jpg":
return boyshortFranceConfig;
case "Boyshort_White_Hummingbird_Small.jpg":
return boyshortHummingbirdConfig;
case "Boyshort_White_Peacock_Small.jpg":
return boyshortPeacockConfig;
case "Thong_Black_France_Small.jpg":
return thongFranceConfig;
case "Thong_White_Hummingbird_Small.jpg":
return thongHummingbirdConfig;
case "Thong_White_Lips_Small.jpg":
return thongLipsConfig;
case "Thong_White_Peacock_Small.jpg":
return thongPeacockConfig;
case "Thong_White_Poppy_Small.jpg":
return thongPoppyConfig;
default:
return {};
}
}
//overlay code
var productOverlay = new Y.Overlay({
srcNode: '#productOverlay',
width: '800px',
height: '400px',
zIndex: 10
});
productOverlay.set('centered', 'body');
productOverlay.render();
productOverlay.hide();
var compiledTemplate;
var showProductOverlay = function (sourceImage) {
var templateConfig = determineConfig(sourceImage);
if (!compiledTemplate) {
var productTemplate = Y.one('#overlayTemplate').getContent();
compiledTemplate = Handlebars.compile(productTemplate);
}
productOverlay.set('bodyContent', compiledTemplate(templateConfig));
productOverlay.render();
productOverlay.show();
Y.one('#hideItAll').addClass('fadeToBlack');
Y.one('#hideOverlay').on('click', function() {
productOverlay.hide();
Y.one('#hideItAll').removeClass('fadeToBlack');
});
Y.all('.productDetailSmall').on('click', function(e) {
var imageName = e.target.get('src');
imageName = imageName.replace('Thumb', 'Large', 'i');
Y.one('#productLarge').set('src', imageName);
});
Y.all('.shopbuttons .inn_main11 input').on('click', function(e) {
e.target.ancestor('.inn_main11').previous().submit();
});
};
var getSourceImageName = function (imageNode) {
var imageNodeSrc = imageNode.get('src');
var searchString = '/images/';
var imagesIndex = imageNodeSrc.indexOf(searchString);
var sourceImageName = imageNodeSrc.substring(imagesIndex+searchString.length);
return sourceImageName;
};
Y.all('.b_buy').on('click', function(e) {
var parentImage = e.target.ancestor('.inn_main4').one('.inn_main5 img');
var imageName = getSourceImageName(parentImage);
showProductOverlay(imageName);
});
Y.all('.inn_main5').on('click', function (e) {
var imageName = getSourceImageName(e.target);
showProductOverlay(imageName);
});
});
</script>
<script src="scripts/common.js"></script>
<script type="text/javascript" id="yfc_loader" src="http://l.yimg.com/a/lib/smbiz/store/yfc/js/0.4/loader.js?q=yhst-130100458724450&ts=1306713766"></script>
<script id='overlayTemplate' type='text/x-handlebars-template'>
<span class="inn_main3">
<div class="product_page_spacing1"></div>
<h3>{{header}}</h3>
<a href="#" id="hideOverlay">close</a>
<div class="product_page_spacing2"></div>
<img width="350" height="233" id="productLarge" src="images/{{largePhoto}}.jpg" />
<div class="productDetailSmall">
{{#if thumbOne}}<a href="#" id="thumbOne"><img width="90" height="60" src="images/{{thumbOne}}.jpg" /></a>{{/if}}
{{#if thumbTwo}}<a href="#" id="thumbTwo"><img width="90" height="60" src="images/{{thumbTwo}}.jpg" /></a>{{/if}}
{{#if thumbThree}}<a href="#" id="thumbThree"><img width="90" height="60" src="images/{{thumbThree}}.jpg" /></a>{{/if}}
{{#if thumbFour}}<a href="#" id="thumbFour"><img width="90" height="60" src="images/{{thumbFour}}.jpg" /></a>{{/if}}
</div>
<br/>
<p>{{description}}</p>
<ul>
<li> Ultrasoft fabric, made from 93% Micro Modal, 7% Spandex </li>
<li> {{fitDetail}} </li>
<li> Designed and manufactured in California </li>
<li> Machine wash</li>
<li> Price: ${{price}} </li>
</ul>
<div class="shopbuttons">
<form id="lipsForm" method="post" action="{{{action}}}">
<span class="inn_main10">
<img src="images/arrow2.png" />
{{{color}}}
<br>
<img src="images/arrow2.png" />
{{{size}}}
</span>
</form>
<span class="inn_main11"><input type="button" class="b_buy"></a></span>
</div>
<span class="inn_main13">
<ul class="navp">
</ul>
</span>
</span>
</script>
</html>