├── evercookie.fla ├── evercookie.swf ├── evercookie.xap ├── evercookie_sl ├── evercookie.suo ├── evercookie │ ├── Bin │ │ └── Debug │ │ │ ├── evercookie.dll │ │ │ ├── evercookie.pdb │ │ │ ├── evercookie.xap │ │ │ ├── AppManifest.xaml │ │ │ └── evercookieTestPage.html │ ├── obj │ │ └── Debug │ │ │ ├── evercookie.dll │ │ │ ├── evercookie.pdb │ │ │ ├── evercookie.g.resources │ │ │ ├── DesignTimeResolveAssemblyReferences.cache │ │ │ ├── DesignTimeResolveAssemblyReferencesInput.cache │ │ │ ├── XapCacheFile.xml │ │ │ ├── evercookie.csproj.FileListAbsolute.txt │ │ │ ├── App.g.cs │ │ │ ├── App.g.i.cs │ │ │ ├── MainPage.g.cs │ │ │ └── MainPage.g.i.cs │ ├── Properties │ │ ├── AppManifest.xml │ │ └── AssemblyInfo.cs │ ├── App.xaml │ ├── MainPage.xaml │ ├── evercookie.csproj.user │ ├── MainPage.xaml.cs │ ├── App.xaml.cs │ └── evercookie.csproj └── evercookie.sln ├── README.md ├── ChangeLog ├── evercookie_cache.php ├── evercookie_etag.php ├── evercookie.php ├── evercookie_png.php ├── example.html ├── swfobject-2.2.min.js ├── index.php ├── evercookie.js └── jquery-1.4.2.min.js /evercookie.fla: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie.fla -------------------------------------------------------------------------------- /evercookie.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie.swf -------------------------------------------------------------------------------- /evercookie.xap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie.xap -------------------------------------------------------------------------------- /evercookie_sl/evercookie.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie.suo -------------------------------------------------------------------------------- /evercookie_sl/evercookie/Bin/Debug/evercookie.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/Bin/Debug/evercookie.dll -------------------------------------------------------------------------------- /evercookie_sl/evercookie/Bin/Debug/evercookie.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/Bin/Debug/evercookie.pdb -------------------------------------------------------------------------------- /evercookie_sl/evercookie/Bin/Debug/evercookie.xap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/Bin/Debug/evercookie.xap -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/evercookie.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/obj/Debug/evercookie.dll -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/evercookie.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/obj/Debug/evercookie.pdb -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/evercookie.g.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/obj/Debug/evercookie.g.resources -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/DesignTimeResolveAssemblyReferences.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/obj/Debug/DesignTimeResolveAssemblyReferences.cache -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stereobooster/evercookie/master/evercookie_sl/evercookie/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache -------------------------------------------------------------------------------- /evercookie_sl/evercookie/Properties/AppManifest.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/App.xaml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # evercookie 2 | evercookie is a javascript API available that produces extremely persistent cookies in a browser. Its goal is to identify a client even after they've removed standard cookies, Flash cookies (Local Shared Objects or LSOs), and others. 3 | 4 | ## Other stuf on subject 5 | - http://geektimes.ru/post/244065/ 6 | - https://panopticlick.eff.org/ 7 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/Bin/Debug/AppManifest.xaml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | evercookie 0.4 :: 10/13/2010 2 | - added Silverlight Isolated Storage support 3 | - added window.name storage support 4 | - added standard cache support 5 | - fixed some IE bugs 6 | - fixed LSO bug so data is retrieved on first request 7 | - fixed bug with PNG support 8 | - fixed bug where null/empty values would reset others 9 | 10 | evercookie 0.3 :: 09/23/2010 11 | - added ETag storage support 12 | - added IE userData storage support 13 | - added jquery 14 | - various bug fixes 15 | - speed enhancements 16 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/XapCacheFile.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /evercookie_cache.php: -------------------------------------------------------------------------------- 1 | 25 | -------------------------------------------------------------------------------- /evercookie_etag.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Web Developer Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "evercookie", "evercookie\evercookie.csproj", "{4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/evercookie.csproj.FileListAbsolute.txt: -------------------------------------------------------------------------------- 1 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.dll 2 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.pdb 3 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\AppManifest.xaml 4 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookie.xap 5 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\Bin\Debug\evercookieTestPage.html 6 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\ResolveAssemblyReference.cache 7 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\App.g.i.cs 8 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\MainPage.g.i.cs 9 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.g.resources 10 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.dll 11 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\evercookie.pdb 12 | C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\obj\Debug\XapCacheFile.xml 13 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/evercookie.csproj.user: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | DynamicPage 10 | True 11 | False 12 | False 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | True 22 | 23 | 24 | True 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("evercookie")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("evercookie")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2010")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("2677569e-14bc-4ec6-b4b1-3c7de7b21afd")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Revision and Build Numbers 33 | // by using the '*' as shown below: 34 | [assembly: AssemblyVersion("1.0.0.0")] 35 | [assembly: AssemblyFileVersion("1.0.0.0")] 36 | -------------------------------------------------------------------------------- /evercookie.php: -------------------------------------------------------------------------------- 1 | 53 | -------------------------------------------------------------------------------- /evercookie_png.php: -------------------------------------------------------------------------------- 1 | 53 | -------------------------------------------------------------------------------- /example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Evercookie - unforgettable cookies 4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 |  
28 |     Cookie found: uid = currently not set 
29 |  
30 |     Click to create an evercookie. Don't worry, the cookie is a
31 |     random number between 1 and 1000, not enough for me to track
32 |     you, just enough to test evercookies.
33 |      
34 |  
35 |     
36 | Now, try deleting this "uid" cookie anywhere possible, then 37 | 38 | or 39 | 40 | 41 |
42 | 43 | 44 | 45 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/App.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D9A8BE4B3DC1C91D368CA6B44F124B38" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.1 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace evercookie { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/App.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\App.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "D9A8BE4B3DC1C91D368CA6B44F124B38" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.1 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace evercookie { 34 | 35 | 36 | public partial class App : System.Windows.Application { 37 | 38 | private bool _contentLoaded; 39 | 40 | /// 41 | /// InitializeComponent 42 | /// 43 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 44 | public void InitializeComponent() { 45 | if (_contentLoaded) { 46 | return; 47 | } 48 | _contentLoaded = true; 49 | System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/App.xaml", System.UriKind.Relative)); 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/MainPage.g.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EF5CB8E67DD7E04FA002328FDB17DC85" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.1 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace evercookie { 34 | 35 | 36 | public partial class MainPage : System.Windows.Controls.UserControl { 37 | 38 | internal System.Windows.Controls.TextBox txtOut; 39 | 40 | private bool _contentLoaded; 41 | 42 | /// 43 | /// InitializeComponent 44 | /// 45 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 46 | public void InitializeComponent() { 47 | if (_contentLoaded) { 48 | return; 49 | } 50 | _contentLoaded = true; 51 | System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/MainPage.xaml", System.UriKind.Relative)); 52 | this.txtOut = ((System.Windows.Controls.TextBox)(this.FindName("txtOut"))); 53 | } 54 | } 55 | } 56 | 57 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/obj/Debug/MainPage.g.i.cs: -------------------------------------------------------------------------------- 1 | #pragma checksum "C:\Users\Ethrel\Documents\Projects\Silverlight\evercookie\evercookie\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "EF5CB8E67DD7E04FA002328FDB17DC85" 2 | //------------------------------------------------------------------------------ 3 | // 4 | // This code was generated by a tool. 5 | // Runtime Version:4.0.30319.1 6 | // 7 | // Changes to this file may cause incorrect behavior and will be lost if 8 | // the code is regenerated. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | using System; 13 | using System.Windows; 14 | using System.Windows.Automation; 15 | using System.Windows.Automation.Peers; 16 | using System.Windows.Automation.Provider; 17 | using System.Windows.Controls; 18 | using System.Windows.Controls.Primitives; 19 | using System.Windows.Data; 20 | using System.Windows.Documents; 21 | using System.Windows.Ink; 22 | using System.Windows.Input; 23 | using System.Windows.Interop; 24 | using System.Windows.Markup; 25 | using System.Windows.Media; 26 | using System.Windows.Media.Animation; 27 | using System.Windows.Media.Imaging; 28 | using System.Windows.Resources; 29 | using System.Windows.Shapes; 30 | using System.Windows.Threading; 31 | 32 | 33 | namespace evercookie { 34 | 35 | 36 | public partial class MainPage : System.Windows.Controls.UserControl { 37 | 38 | internal System.Windows.Controls.TextBox txtOut; 39 | 40 | private bool _contentLoaded; 41 | 42 | /// 43 | /// InitializeComponent 44 | /// 45 | [System.Diagnostics.DebuggerNonUserCodeAttribute()] 46 | public void InitializeComponent() { 47 | if (_contentLoaded) { 48 | return; 49 | } 50 | _contentLoaded = true; 51 | System.Windows.Application.LoadComponent(this, new System.Uri("/evercookie;component/MainPage.xaml", System.UriKind.Relative)); 52 | this.txtOut = ((System.Windows.Controls.TextBox)(this.FindName("txtOut"))); 53 | } 54 | } 55 | } 56 | 57 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.IO.IsolatedStorage; 5 | using System.Linq; 6 | using System.Net; 7 | using System.Windows; 8 | using System.Windows.Browser; 9 | using System.Windows.Controls; 10 | using System.Windows.Documents; 11 | using System.Windows.Input; 12 | using System.Windows.Media; 13 | using System.Windows.Media.Animation; 14 | using System.Windows.Shapes; 15 | 16 | namespace evercookie 17 | { 18 | public partial class MainPage : UserControl 19 | { 20 | private static string isoFile = "evercookie_isoData.txt"; 21 | public static TextBox output; 22 | public MainPage() 23 | { 24 | InitializeComponent(); 25 | output = txtOut; 26 | } 27 | 28 | [ScriptableMember()] 29 | public string getIsolatedStorage() 30 | { 31 | output.Text += "Loading isoData...\n"; 32 | string data = String.Empty; 33 | using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) 34 | { 35 | using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(isoFile, FileMode.Open, isf)) 36 | { 37 | using (StreamReader sr = new StreamReader(isfs)) 38 | { 39 | string lineOfData = String.Empty; 40 | while ((lineOfData = sr.ReadLine()) != null) 41 | { 42 | data += lineOfData; 43 | output.Text += "Loading: " + lineOfData + "\n"; 44 | } 45 | } 46 | } 47 | } 48 | return data; 49 | } 50 | 51 | public static void save(string name, string value) 52 | { 53 | output.Text += "Saving: " + name + "=" + value + "\n"; 54 | using (IsolatedStorageFile isf = IsolatedStorageFile.GetUserStoreForApplication()) 55 | { 56 | using (IsolatedStorageFileStream isfs = new IsolatedStorageFileStream(isoFile, FileMode.Create, isf)) 57 | { 58 | using (StreamWriter sw = new StreamWriter(isfs)) 59 | { 60 | sw.Write(name+"="+value); 61 | sw.Close(); 62 | } 63 | } 64 | } 65 | } 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/Bin/Debug/evercookieTestPage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | evercookie 6 | 20 | 21 | 57 | 58 | 59 |
60 |
61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | Get Microsoft Silverlight 69 | 70 |
71 |
72 | 73 | 74 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.IO.IsolatedStorage; 5 | using System.Linq; 6 | using System.Net; 7 | using System.Windows; 8 | using System.Windows.Browser; 9 | using System.Windows.Controls; 10 | using System.Windows.Documents; 11 | using System.Windows.Input; 12 | using System.Windows.Media; 13 | using System.Windows.Media.Animation; 14 | using System.Windows.Shapes; 15 | 16 | namespace evercookie 17 | { 18 | public partial class App : Application 19 | { 20 | public App() 21 | { 22 | this.Startup += this.Application_Startup; 23 | this.Exit += this.Application_Exit; 24 | this.UnhandledException += this.Application_UnhandledException; 25 | 26 | InitializeComponent(); 27 | } 28 | 29 | private void Application_Startup(object sender, StartupEventArgs e) 30 | { 31 | MainPage scriptableControl = new MainPage(); 32 | this.RootVisual = scriptableControl; 33 | HtmlPage.RegisterScriptableObject("App", scriptableControl); 34 | 35 | MainPage.output.Text = "To save: " + e.InitParams.Count.ToString() + " values\n"; 36 | if (e.InitParams != null) 37 | { 38 | foreach (var item in e.InitParams) 39 | { 40 | this.Resources.Add(item.Key, item.Value); 41 | MainPage.save(item.Key,item.Value); 42 | } 43 | } 44 | } 45 | 46 | private void Application_Exit(object sender, EventArgs e) 47 | { 48 | 49 | } 50 | 51 | private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) 52 | { 53 | // If the app is running outside of the debugger then report the exception using 54 | // the browser's exception mechanism. On IE this will display it a yellow alert 55 | // icon in the status bar and Firefox will display a script error. 56 | if (!System.Diagnostics.Debugger.IsAttached) 57 | { 58 | 59 | // NOTE: This will allow the application to continue running after an exception has been thrown 60 | // but not handled. 61 | // For production applications this error handling should be replaced with something that will 62 | // report the error to the website and stop the application. 63 | e.Handled = true; 64 | Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); }); 65 | } 66 | } 67 | 68 | private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e) 69 | { 70 | try 71 | { 72 | string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace; 73 | errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n"); 74 | 75 | System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight Application " + errorMsg + "\");"); 76 | } 77 | catch (Exception) 78 | { 79 | } 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /evercookie_sl/evercookie/evercookie.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.50727 7 | 2.0 8 | {4F1FD744-6C5A-4C7E-8DFB-702FBC6B9964} 9 | {A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} 10 | Library 11 | Properties 12 | evercookie 13 | evercookie 14 | Silverlight 15 | v4.0 16 | $(TargetFrameworkVersion) 17 | true 18 | 19 | 20 | true 21 | true 22 | evercookie.xap 23 | Properties\AppManifest.xml 24 | evercookie.App 25 | evercookieTestPage.html 26 | true 27 | true 28 | false 29 | Properties\OutOfBrowserSettings.xml 30 | false 31 | true 32 | 33 | 34 | 35 | 38 | 39 | v3.5 40 | 41 | 42 | true 43 | full 44 | false 45 | Bin\Debug 46 | DEBUG;TRACE;SILVERLIGHT 47 | true 48 | true 49 | prompt 50 | 4 51 | 52 | 53 | pdbonly 54 | true 55 | Bin\Release 56 | TRACE;SILVERLIGHT 57 | true 58 | true 59 | prompt 60 | 4 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | App.xaml 74 | 75 | 76 | MainPage.xaml 77 | 78 | 79 | 80 | 81 | 82 | Designer 83 | MSBuild:Compile 84 | 85 | 86 | Designer 87 | MSBuild:Compile 88 | 89 | 90 | 91 | 92 | 93 | 94 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | copy "$(TargetDir)$(TargetName).xap" "Y:\My Dropbox\www\evercookie\evercookie.xap" 110 | 111 | -------------------------------------------------------------------------------- /swfobject-2.2.min.js: -------------------------------------------------------------------------------- 1 | /* SWFObject v2.2 2 | is released under the MIT License 3 | */ 4 | var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y0){for(var af=0;af0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad'}}aa.outerHTML='"+af+"";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab 2 | 3 | 4 | 5 | 6 | 7 | evercookie - virtually irrevocable persistent cookies 8 | 9 | 10 | 11 |
12 |
13 |
14 | 15 |
16 | samy's home page || follow my twitter || blog || email me || samy kamkar
17 | 18 |

evercookie -- never forget.

19 | 10/10/2010: Reported on by the New York Times 20 | 21 |
 22 | 
 23 | 
24 |

DESCRIPTION

 25 |     evercookie is a javascript API available that produces
 26 |     extremely persistent cookies in a browser. Its goal
 27 |     is to identify a client even after they've removed standard
 28 |     cookies, Flash cookies (Local Shared Objects or LSOs), and
 29 |     others.
 30 | 
 31 |     evercookie accomplishes this by storing the cookie data in
 32 |     several types of storage mechanisms that are available on
 33 |     the local browser. Additionally, if evercookie has found the
 34 |     user has removed any of the types of cookies in question, it
 35 |     recreates them using each mechanism available.
 36 | 
 37 |     Specifically, when creating a new cookie, it uses the
 38 |     following storage mechanisms when available:
 39 |      - Standard HTTP Cookies
 40 |      - Local Shared Objects (Flash Cookies)
 41 |      - Silverlight Isolated Storage
 42 |      - Storing cookies in RGB values of auto-generated, force-cached 
 43 |         PNGs using HTML5 Canvas tag to read pixels (cookies) back out
 44 |      - Storing cookies in and reading out Web History
 45 |      - Storing cookies in HTTP ETags
 46 |      - Storing cookies in Web cache
 47 |      - window.name caching
 48 |      - Internet Explorer userData storage
 49 |      - HTML5 Session Storage
 50 |      - HTML5 Local Storage
 51 |      - HTML5 Global Storage
 52 |      - HTML5 Database Storage via SQLite
 53 | 
 54 |     TODO: adding support for:
 55 |      - Caching in HTTP Authentication
 56 |      - Using Java to produce a unique key based off of NIC info
 57 | 
 58 |     Got a crazy idea to improve this? Email me!
 59 | 
 60 | 
61 |

EXAMPLE

 62 | 
 82 |     Cookie found: uid = currently not set
 83 | 
 84 |     Click to create an evercookie. Don't worry, the cookie is a
 85 |     random number between 1 and 1000, not enough for me to track
 86 |     you, just enough to test evercookies.
 87 |     
 88 | 
 89 |     
90 | Now, try deleting this "uid" cookie anywhere possible, then 91 | 92 | or 93 | 94 | 95 |
96 |

DOWNLOAD

 97 |     evercookie is written in JavaScript and additionally
 98 |     uses a SWF (Flash) object for the Local Shared Objects and
 99 |     PHPs for the server-side generation of cached PNGs and ETags.
100 | 
101 |     v0.4 BETA, released 10/13/2010
102 |             download source here
103 | 
104 |     Or get it from github: http://github.com/samyk/evercookie
105 | 
106 | 
107 |

FAQ

108 | 	What is the point of evercookie?
109 | 	Evercookie is designed to make persistent data just that, persistent. By
110 | 	storing the same data in several locations that a client can access, if
111 | 	any of the data is ever lost (for example, by clearing cookies), the data
112 | 	can be recovered and then reset and reused.
113 | 
114 | 	Simply think of it as cookies that just won't go away.
115 | 
116 | 	PRIVACY CONCERN! How do I stop websites from doing this?
117 | 	Great question. So far, I've found that using Private Browsing
118 | 	in Safari will stop ALL evercookie methods after a browser restart.
119 | 
120 | 	What if the user deletes their cookies?
121 | 	That's the great thing about evercookie. With all the methods available,
122 | 	currently thirteen, it only takes one cookie to remain for most, if not all,
123 | 	of them to be reset again.
124 | 
125 | 	For example, if the user deletes their standard HTTP cookies, LSO data,
126 | 	and all HTML5 storage, the PNG cookie and history cookies will still
127 | 	exist. Once either of those are discovered, all of the others will
128 | 	come back (assuming the browser supports them).
129 | 
130 | 	Why not use EFF's Panopticlick?
131 | 	Panopticlick is an awesome idea, however the uniqueness really only
132 | 	helps in consumer machines and typically not systems running in a
133 | 	business or corporation. Typically those systems are virtually
134 | 	identical and provide no difference in information where a home
135 | 	user's laptop would. Evercookie is meant to be able to store the
136 | 	same unique data a normal cookie would.
137 | 
138 | 	Does this work cross-browser?
139 | 	If a user gets cookied on one browser and switches to another browser,
140 | 	as long as they still have the Local Shared Object cookie, the cookie
141 | 	will reproduce in both browsers.
142 | 
143 | 	Does the client have to install anything?
144 | 	No, the client simply uses the website without even knowing about the
145 | 	persistent data being set, just as they would use a website with standard
146 | 	HTTP cookies.
147 | 
148 | 	Does the server have to install anything?
149 | 	The server must at least have access to the JavaScript evercookie file.
150 | 	Additionally, to use Local Shared Object (Flash Cookies) storage, the
151 | 	evercookie.swf file must be present, and to use the auto-generated PNG
152 | 	caching, standard caching and ETag storage mechanisms, PHP must be
153 | 	installed and evercookie_(png|etag|cache).php must be on the server.
154 | 
155 | 	All of these are available in the download.
156 | 
157 | 	Is evercookie open source?
158 | 	Yes, evercookie is open source. The code is in readable format without
159 | 	any obfuscation. Additionally, the PHP files are open source as is the
160 | 	FLA (Flash) code used to generate the SWF Flash object. You can compile
161 | 	the Flash object yourself or use the pre-compiled version (evercookie.swf).
162 | 
163 | 	How does the PNG caching work?
164 | 	When evercookie sets a cookie, it accesses evercookie_png.php with a special
165 | 	HTTP cookie, different than the one used for standard session data. This
166 | 	special cookie is read by the PHP file, and if found, generates a PNG file
167 | 	where all the RGB values are set to the equivalent of the session data to
168 | 	be stored. Additionally, the PNG is sent back to the client browser with
169 | 	the request to cache the file for 20 years.
170 | 
171 | 	When evercookie retrieves this data, it deletes the special HTTP cookie,
172 | 	then makes the same request to the same file without any user information.
173 | 	When the PHP script sees it has no information to generate a PNG with, it
174 | 	returns a forged HTTP response of "304 Not Modified" which forces the web
175 | 	browser to access its local cache. The browser then produces the cached
176 | 	image and then applies it to an HTML5 Canvas tag. Once applied, evercookie
177 | 	reads each pixel of the Canvas tag, extracting the RGB values, and thus
178 | 	producing the initial cookie data that was stored.
179 | 
180 | 	How does the Web History storage work
181 | 	When evercookie sets a cookie, assuming the Web History caching is enabled,
182 | 	it Base64 encodes the data to be stored. Let's assume this data is "bcde"
183 | 	in Base64. Evercookie then accesses the following URLs in the background:
184 | 		google.com/evercookie/cache/b
185 | 		google.com/evercookie/cache/bc
186 | 		google.com/evercookie/cache/bcd
187 | 		google.com/evercookie/cache/bcde
188 | 		google.com/evercookie/cache/bcde-
189 | 	These URLs are now stored in history.
190 | 
191 | 	When checking for a cookie, evercookie loops through all the possible Base64
192 | 	characters on google.com/evercookie/cache/, starting with "a" and moving up,
193 | 	but only for a single character. Once it sees a URL that was accessed, it
194 | 	attempts to brute force the next letter. This is actually extremely fast
195 | 	because no requests are made to theserver. The history lookups are simply
196 | 	locally in JavaScript using the CSS History Knocker. Evercookie knows it has
197 | 	reached the end of the string as soon as it finds a URL that ends in "-".
198 | 
199 |

USAGE

200 |     <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
201 |     <script type="text/javascript" src="swfobject-2.2.min.js"></script>
202 |     <script type="text/javascript" src="evercookie.js"></script>
203 | 
204 |     <script>
205 |     var ec = new evercookie();
206 |     
207 |     // set a cookie "id" to "12345"
208 |     // usage: ec.set(key, value)
209 |     ec.set("id", "12345");
210 |     
211 |     // retrieve a cookie called "id" (simply)
212 |     ec.get("id", function(value) { alert("Cookie value is " + value) });
213 | 
214 |     // or use a more advanced callback function for getting our cookie
215 |     // the cookie value is the first param
216 |     // an object containing the different storage methods
217 |     // and returned cookie values is the second parameter
218 |     function getCookie(best_candidate, all_candidates)
219 |     {
220 |         alert("The retrieved cookie is: " + best_candidate + "\n" +
221 |         	"You can see what each storage mechanism returned " +
222 |     		"by looping through the all_candidates object.");
223 | 
224 |     	for (var item in all_candidates)
225 |     		document.write("Storage mechanism " + item +
226 |     			" returned: " + all_candidates[item] + "<br>");
227 |     }
228 |     ec.get("id", getCookie);
229 |     
230 |     // we look for "candidates" based off the number of "cookies" that
231 |     // come back matching since it's possible for mismatching cookies.
232 |     // the best candidate is most likely the correct one
233 |     </script>
234 | 
235 | 
236 |

SEE ALSO

237 |     csshack, best website ever
238 | 
239 | 
240 |

BUGS

241 |     See CONTACT.
242 | 
243 | 
244 |

CONTACT

245 |     Questions or comments, email me: code@samy.pl.
246 | 
247 |     Visit http://samy.pl for more awesome stuff.
248 | 
249 | 
250 |

evercookie, by Samy Kamkar, 09/20/2010

251 |
252 |
253 | 257 | 262 | 263 | 264 | 265 | -------------------------------------------------------------------------------- /evercookie.js: -------------------------------------------------------------------------------- 1 | /*jslint browser: true, nomen: false, plusplus: false, bitwise: false, maxerr: 50, indent: 2 */ 2 | /** 3 | * @depends jquery-1.4.2.min.js 4 | * @depends swfobject-2.2.min.js 5 | * 6 | * evercookie 0.4 (10/13/2010) -- extremely persistent cookies 7 | * 8 | * by samy kamkar : code@samy.pl : http://samy.pl 9 | * 10 | * this api attempts to produce several types of persistent data 11 | * to essentially make a cookie virtually irrevocable from a system 12 | * 13 | * specifically it uses: 14 | * - standard http cookies 15 | * - flash cookies (local shared objects) 16 | * - silverlight isolated storage 17 | * - png generation w/forced cache and html5 canvas pixel reading 18 | * - http etags 19 | * - http cache 20 | * - window.name 21 | * - IE userData 22 | * - html5 session cookies 23 | * - html5 local storage 24 | * - html5 global storage 25 | * - html5 database storage via sqlite 26 | * - css history scanning 27 | * 28 | * if any cookie is found, it's then reset to all the other locations 29 | * for example, if someone deletes all but one type of cookie, once 30 | * that cookie is re-discovered, all of the other cookie types get reset 31 | * 32 | * !!! SOME OF THESE ARE CROSS-DOMAIN COOKIES, THIS MEANS 33 | * OTHER SITES WILL BE ABLE TO READ SOME OF THESE COOKIES !!! 34 | * 35 | * USAGE: 36 | 37 | var ec = new evercookie(); 38 | 39 | // set a cookie "id" to "12345" 40 | // usage: ec.set(key, value) 41 | ec.set("id", "12345"); 42 | 43 | // retrieve a cookie called "id" (simply) 44 | ec.get("id", function(value) { alert("Cookie value is " + value) }); 45 | 46 | // or use a more advanced callback function for getting our cookie 47 | // the cookie value is the first param 48 | // an object containing the different storage methods 49 | // and returned cookie values is the second parameter 50 | function getCookie(best_candidate, all_candidates) 51 | { 52 | alert("The retrieved cookie is: " + best_candidate + "\n" + 53 | "You can see what each storage mechanism returned " + 54 | "by looping through the all_candidates object."); 55 | 56 | for (var item in all_candidates) 57 | document.write("Storage mechanism " + item + 58 | " returned " + all_candidates[item] + " votes
"); 59 | } 60 | ec.get("id", getCookie); 61 | 62 | // we look for "candidates" based off the number of "cookies" that 63 | // come back matching since it's possible for mismatching cookies. 64 | // the best candidate is very-very-likely the correct one 65 | 66 | */ 67 | 68 | function _ec_dump(arr, level) { 69 | if (!level) { 70 | level = 0; 71 | } 72 | var dumped_text = "", 73 | //The padding given at the beginning of the line. 74 | level_padding = "", 75 | j, item, value; 76 | for (j = 0; j < level + 1; j += 1) { 77 | level_padding += " "; 78 | } 79 | 80 | if (typeof(arr) === "object") { //Array/Objects/NULL 81 | for (item in arr) { 82 | value = arr[item]; 83 | if (typeof(value) === "object") { //If it is an Array/Objects/NULL 84 | dumped_text += level_padding + "'" + item + "' ...\n"; 85 | dumped_text += _ec_dump(value, level + 1); 86 | } else { 87 | dumped_text += level_padding + "'" + item + "' => \"" + value + "\"\n"; 88 | } 89 | } 90 | } else { //Stings/Chars/Numbers etc. 91 | dumped_text = "===>" + arr + "<===(" + typeof(arr) + ")"; 92 | } 93 | return dumped_text; 94 | } 95 | 96 | function _ec_replace(str, key, value) { 97 | if (str.indexOf("&" + key + "=") > -1 || str.indexOf(key + "=") === 0) { 98 | // find start 99 | var idx = str.indexOf("&" + key + "="), 100 | end, newstr; 101 | if (idx === -1) { 102 | idx = str.indexOf(key + "="); 103 | } 104 | // find end 105 | end = str.indexOf("&", idx + 1); 106 | if (end !== -1) { 107 | newstr = str.substr(0, idx) + str.substr(end + (idx ? 0 : 1)) + "&" + key + "=" + value; 108 | } else { 109 | newstr = str.substr(0, idx) + "&" + key + "=" + value; 110 | } 111 | return newstr; 112 | } else { 113 | return str + "&" + key + "=" + value; 114 | } 115 | } 116 | 117 | /* to turn off CSS history knocking, set _ec_history to 0 */ 118 | var _ec_history = 1, // CSS history knocking or not .. can be network intensive 119 | _ec_tests = 10, //1000 120 | evercookie = (function (window, undefined) { 121 | var document = window.document, 122 | Image = window.Image, 123 | localStorage = window.localStorage, 124 | sessionStorage = window.sessionStorage, 125 | globalStorage = window.globalStorage, 126 | $ = window.jQuery, 127 | swfobject = window.swfobject; 128 | 129 | this._class = function () { 130 | // private property 131 | var self = this, 132 | _baseKeyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", 133 | no_color = -1; 134 | this._ec = {}; 135 | 136 | this.get = function (name, cb, dont_reset) { 137 | $(function () { 138 | self._evercookie(name, cb, undefined, undefined, dont_reset); 139 | }); 140 | }; 141 | 142 | this.set = function (name, value) { 143 | $(function () { 144 | self._evercookie(name, function () {}, value); 145 | }); 146 | }; 147 | 148 | this._evercookie = function (name, cb, value, i, dont_reset) { 149 | if (self._evercookie === undefined) { 150 | self = this; 151 | } 152 | if (i === undefined) { 153 | i = 0; 154 | } 155 | // first run 156 | if (i === 0) { 157 | self.evercookie_database_storage(name, value); 158 | self.evercookie_png(name, value); 159 | self.evercookie_etag(name, value); 160 | self.evercookie_cache(name, value); 161 | self.evercookie_lso(name, value); 162 | self.evercookie_silverlight(name, value); 163 | 164 | self._ec.userData = self.evercookie_userdata(name, value); 165 | self._ec.cookieData = self.evercookie_cookie(name, value); 166 | self._ec.localData = self.evercookie_local_storage(name, value); 167 | self._ec.globalData = self.evercookie_global_storage(name, value); 168 | self._ec.sessionData = self.evercookie_session_storage(name, value); 169 | self._ec.windowData = self.evercookie_window(name, value); 170 | 171 | if (_ec_history) { 172 | self._ec.historyData = self.evercookie_history(name, value); 173 | } 174 | } 175 | 176 | // when writing data, we need to make sure lso and silverlight object is there 177 | if (value !== undefined) { 178 | if ((evercookie._global_lso === undefined || 179 | evercookie._global_isolated === undefined) && 180 | i++ < _ec_tests) { 181 | setTimeout(function () { 182 | self._evercookie(name, cb, value, i, dont_reset); 183 | }, 300); 184 | } 185 | } 186 | 187 | // when reading data, we need to wait for swf, db, silverlight and png 188 | else 189 | { 190 | if ( 191 | ( 192 | // we support local db and haven't read data in yet 193 | (window.openDatabase && self._ec.dbData === undefined) || 194 | (evercookie._global_lso === undefined) || 195 | (self._ec.etagData === undefined) || 196 | (self._ec.cacheData === undefined) || 197 | (document.createElement("canvas").getContext && (typeof self._ec.pngData === "undefined" || self._ec.pngData === "")) || 198 | (evercookie._global_isolated === undefined) 199 | ) && 200 | i++ < _ec_tests 201 | ) 202 | { 203 | setTimeout(function () { 204 | self._evercookie(name, cb, value, i, dont_reset); 205 | }, 300); 206 | } 207 | 208 | // we hit our max wait time or got all our data 209 | else 210 | { 211 | // get just the piece of data we need from swf 212 | self._ec.lsoData = self.getFromStr(name, evercookie._global_lso); 213 | evercookie._global_lso = undefined; 214 | 215 | // get just the piece of data we need from silverlight 216 | self._ec.slData = self.getFromStr(name, evercookie._global_isolated); 217 | evercookie._global_isolated = undefined; 218 | 219 | var tmpec = self._ec, 220 | candidates = [], 221 | bestnum = 0, 222 | candidate, 223 | item; 224 | self._ec = {}; 225 | 226 | // figure out which is the best candidate 227 | for (item in tmpec) { 228 | if (tmpec[item] && tmpec[item] !== "null" && tmpec[item] !== "undefined") { 229 | candidates[tmpec[item]] = candidates[tmpec[item]] === undefined ? 1 : candidates[tmpec[item]] + 1; 230 | } 231 | } 232 | 233 | for (item in candidates) { 234 | if (candidates[item] > bestnum) { 235 | bestnum = candidates[item]; 236 | candidate = item; 237 | } 238 | } 239 | 240 | // reset cookie everywhere 241 | if (dont_reset === undefined || dont_reset !== 1) { 242 | self.set(name, candidate); 243 | } 244 | if (typeof cb === "function") { 245 | cb(candidate, tmpec); 246 | } 247 | } 248 | } 249 | }; 250 | 251 | this.evercookie_window = function (name, value) { 252 | try { 253 | if (value !== undefined) { 254 | window.name = _ec_replace(window.name, name, value); 255 | } else { 256 | return this.getFromStr(name, window.name); 257 | } 258 | } catch (e) { } 259 | }; 260 | 261 | this.evercookie_userdata = function (name, value) { 262 | try { 263 | var elm = this.createElem("div", "userdata_el", 1); 264 | elm.style.behavior = "url(#default#userData)"; 265 | 266 | if (value !== undefined) { 267 | elm.setAttribute(name, value); 268 | elm.save(name); 269 | } else { 270 | elm.load(name); 271 | return elm.getAttribute(name); 272 | } 273 | } catch (e) {} 274 | }; 275 | 276 | function newImage(src) { 277 | var img = new Image(); 278 | img.style.visibility = "hidden"; 279 | img.style.position = "absolute"; 280 | img.src = src; 281 | } 282 | 283 | this.evercookie_cache = function (name, value) { 284 | if (value !== undefined) { 285 | // make sure we have evercookie session defined first 286 | document.cookie = "evercookie_cache=" + value; 287 | // evercookie_cache.php handles caching 288 | newImage("evercookie_cache.php?name=" + name); 289 | } else { 290 | // interestingly enough, we want to erase our evercookie 291 | // http cookie so the php will force a cached response 292 | var origvalue = this.getFromStr("evercookie_cache", document.cookie); 293 | self._ec.cacheData = undefined; 294 | document.cookie = "evercookie_cache=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/"; 295 | 296 | $.ajax({ 297 | url: "evercookie_cache.php?name=" + name, 298 | success: function (data) { 299 | // put our cookie back 300 | document.cookie = "evercookie_cache=" + origvalue + "; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/"; 301 | 302 | self._ec.cacheData = data; 303 | } 304 | }); 305 | } 306 | }; 307 | 308 | this.evercookie_etag = function (name, value) { 309 | if (value !== undefined) { 310 | // make sure we have evercookie session defined first 311 | document.cookie = "evercookie_etag=" + value; 312 | // evercookie_etag.php handles etagging 313 | newImage("evercookie_etag.php?name=" + name); 314 | } else { 315 | // interestingly enough, we want to erase our evercookie 316 | // http cookie so the php will force a cached response 317 | var origvalue = this.getFromStr("evercookie_etag", document.cookie); 318 | self._ec.etagData = undefined; 319 | document.cookie = "evercookie_etag=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/"; 320 | 321 | $.ajax({ 322 | url: "evercookie_etag.php?name=" + name, 323 | success: function (data) { 324 | // put our cookie back 325 | document.cookie = "evercookie_etag=" + origvalue + "; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/"; 326 | 327 | self._ec.etagData = data; 328 | } 329 | }); 330 | } 331 | }; 332 | 333 | this.evercookie_lso = function (name, value) { 334 | var div = document.getElementById("swfcontainer"), 335 | flashvars = {}, 336 | params = {}, 337 | attributes = {}; 338 | if (!div) { 339 | div = document.createElement("div"); 340 | div.setAttribute("id", "swfcontainer"); 341 | document.body.appendChild(div); 342 | } 343 | 344 | if (value !== undefined) { 345 | flashvars.everdata = name + "=" + value; 346 | } 347 | params.swliveconnect = "true"; 348 | attributes.id = "myswf"; 349 | attributes.name = "myswf"; 350 | swfobject.embedSWF("evercookie.swf", "swfcontainer", "1", "1", "9.0.0", false, flashvars, params, attributes); 351 | }; 352 | 353 | this.evercookie_png = function (name, value) { 354 | var canvas = document.createElement("canvas"), 355 | img, ctx, origvalue; 356 | canvas.style.visibility = "hidden"; 357 | canvas.style.position = "absolute"; 358 | canvas.width = 200; 359 | canvas.height = 1; 360 | if (canvas && canvas.getContext) { 361 | // evercookie_png.php handles the hard part of generating the image 362 | // based off of the http cookie and returning it cached 363 | img = new Image(); 364 | img.style.visibility = "hidden"; 365 | img.style.position = "absolute"; 366 | if (value !== undefined) { 367 | // make sure we have evercookie session defined first 368 | document.cookie = "evercookie_png=" + value; 369 | } else { 370 | self._ec.pngData = undefined; 371 | ctx = canvas.getContext("2d"); 372 | 373 | // interestingly enough, we want to erase our evercookie 374 | // http cookie so the php will force a cached response 375 | origvalue = this.getFromStr("evercookie_png", document.cookie); 376 | document.cookie = "evercookie_png=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/"; 377 | 378 | img.onload = function () { 379 | // put our cookie back 380 | document.cookie = "evercookie_png=" + origvalue + "; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/"; 381 | 382 | self._ec.pngData = ""; 383 | ctx.drawImage(img, 0, 0); 384 | 385 | // get CanvasPixelArray from given coordinates and dimensions 386 | var imgd = ctx.getImageData(0, 0, 200, 1), 387 | pix = imgd.data, i, n; 388 | 389 | // loop over each pixel to get the "RGB" values (ignore alpha) 390 | for (i = 0, n = pix.length; i < n; i += 4) { 391 | if (pix[i] === 0) { 392 | break; 393 | } 394 | self._ec.pngData += String.fromCharCode(pix[i]); 395 | if (pix[i + 1] === 0) { 396 | break; 397 | } 398 | self._ec.pngData += String.fromCharCode(pix[i + 1]); 399 | if (pix[i + 2] === 0) { 400 | break; 401 | } 402 | self._ec.pngData += String.fromCharCode(pix[i + 2]); 403 | } 404 | }; 405 | } 406 | img.src = "evercookie_png.php?name=" + name; 407 | } 408 | }; 409 | 410 | this.evercookie_local_storage = function (name, value) { 411 | try { 412 | if (localStorage) { 413 | if (value !== undefined) { 414 | localStorage.setItem(name, value); 415 | } else { 416 | return localStorage.getItem(name); 417 | } 418 | } 419 | } catch (e) { } 420 | }; 421 | 422 | this.evercookie_database_storage = function (name, value) { 423 | try { 424 | if (window.openDatabase) { 425 | var database = window.openDatabase("sqlite_evercookie", "", "evercookie", 1024 * 1024); 426 | 427 | if (value !== undefined) { 428 | database.transaction(function (tx) { 429 | tx.executeSql("CREATE TABLE IF NOT EXISTS cache(" + 430 | "id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, " + 431 | "name TEXT NOT NULL, " + 432 | "value TEXT NOT NULL, " + 433 | "UNIQUE (name)" + 434 | ")", [], function (tx, rs) {}, function (tx, err) {}); 435 | tx.executeSql("INSERT OR REPLACE INTO cache(name, value) " + 436 | "VALUES(?, ?)", 437 | [name, value], function (tx, rs) {}, function (tx, err) {}); 438 | }); 439 | } else { 440 | database.transaction(function (tx) { 441 | tx.executeSql("SELECT value FROM cache WHERE name=?", [name], 442 | function (tx, result1) { 443 | if (result1.rows.length >= 1) { 444 | self._ec.dbData = result1.rows.item(0).value; 445 | } else { 446 | self._ec.dbData = ""; 447 | } 448 | }, function (tx, err) {}); 449 | }); 450 | } 451 | } 452 | } catch (e) { } 453 | }; 454 | 455 | this.evercookie_session_storage = function (name, value) { 456 | try { 457 | if (sessionStorage) { 458 | if (value !== undefined) { 459 | sessionStorage.setItem(name, value); 460 | } else { 461 | return sessionStorage.getItem(name); 462 | } 463 | } 464 | } catch (e) { } 465 | }; 466 | 467 | this.evercookie_global_storage = function (name, value) { 468 | if (globalStorage) { 469 | var host = this.getHost(); 470 | try { 471 | if (value !== undefined) { 472 | globalStorage[host][name] = value; 473 | } else { 474 | return globalStorage[host][name]; 475 | } 476 | } catch (e) { } 477 | } 478 | }; 479 | 480 | this.evercookie_silverlight = function (name, value) { 481 | /* 482 | * Create silverlight embed 483 | * 484 | * Ok. so, I tried doing this the proper dom way, but IE chokes on appending anything in object tags (including params), so this 485 | * is the best method I found. Someone really needs to find a less hack-ish way. I hate the look of this shit. 486 | */ 487 | var source = "evercookie.xap", 488 | minver = "4.0.50401.0", 489 | initParam = "", 490 | html; 491 | if (value !== undefined) { 492 | initParam = ''; 493 | } 494 | 495 | html = 496 | '' + 497 | initParam + 498 | '' + 499 | '' + 500 | '' + 501 | '' + 502 | '' + 503 | '' + 504 | '' + 505 | '' + 506 | 'Get Microsoft Silverlight' + 507 | '' + 508 | ''; 509 | document.body.innerHTML += html; 510 | }; 511 | 512 | // public method for encoding 513 | this.encode = function (input) { 514 | var output = "", 515 | chr1, chr2, chr3, enc1, enc2, enc3, enc4, 516 | i = 0; 517 | 518 | input = this._utf8_encode(input); 519 | 520 | while (i < input.length) { 521 | 522 | chr1 = input.charCodeAt(i++); 523 | chr2 = input.charCodeAt(i++); 524 | chr3 = input.charCodeAt(i++); 525 | 526 | enc1 = chr1 >> 2; 527 | enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); 528 | enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); 529 | enc4 = chr3 & 63; 530 | 531 | if (isNaN(chr2)) { 532 | enc3 = enc4 = 64; 533 | } else if (isNaN(chr3)) { 534 | enc4 = 64; 535 | } 536 | 537 | output = output + 538 | _baseKeyStr.charAt(enc1) + _baseKeyStr.charAt(enc2) + 539 | _baseKeyStr.charAt(enc3) + _baseKeyStr.charAt(enc4); 540 | 541 | } 542 | 543 | return output; 544 | }; 545 | 546 | // public method for decoding 547 | this.decode = function (input) { 548 | var output = "", 549 | chr1, chr2, chr3, 550 | enc1, enc2, enc3, enc4, 551 | i = 0; 552 | 553 | input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); 554 | 555 | while (i < input.length) { 556 | enc1 = _baseKeyStr.indexOf(input.charAt(i++)); 557 | enc2 = _baseKeyStr.indexOf(input.charAt(i++)); 558 | enc3 = _baseKeyStr.indexOf(input.charAt(i++)); 559 | enc4 = _baseKeyStr.indexOf(input.charAt(i++)); 560 | 561 | chr1 = (enc1 << 2) | (enc2 >> 4); 562 | chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); 563 | chr3 = ((enc3 & 3) << 6) | enc4; 564 | 565 | output = output + String.fromCharCode(chr1); 566 | 567 | if (enc3 !== 64) { 568 | output = output + String.fromCharCode(chr2); 569 | } 570 | if (enc4 !== 64) { 571 | output = output + String.fromCharCode(chr3); 572 | } 573 | } 574 | output = this._utf8_decode(output); 575 | return output; 576 | }; 577 | 578 | // private method for UTF-8 encoding 579 | this._utf8_encode = function (str) { 580 | str = str.replace(/\r\n/g, "\n"); 581 | var utftext = "", i = 0, n = str.length, c; 582 | for (; i < n; i++) { 583 | c = str.charCodeAt(i); 584 | if (c < 128) { 585 | utftext += String.fromCharCode(c); 586 | } else if ((c > 127) && (c < 2048)) { 587 | utftext += String.fromCharCode((c >> 6) | 192); 588 | utftext += String.fromCharCode((c & 63) | 128); 589 | } else { 590 | utftext += String.fromCharCode((c >> 12) | 224); 591 | utftext += String.fromCharCode(((c >> 6) & 63) | 128); 592 | utftext += String.fromCharCode((c & 63) | 128); 593 | } 594 | } 595 | return utftext; 596 | }; 597 | 598 | // private method for UTF-8 decoding 599 | this._utf8_decode = function (utftext) { 600 | var str = "", 601 | i = 0, n = utftext.length, 602 | c = 0, c1 = 0, c2 = 0, c3 = 0; 603 | while (i < n) { 604 | c = utftext.charCodeAt(i); 605 | if (c < 128) { 606 | str += String.fromCharCode(c); 607 | i += 1; 608 | } else if ((c > 191) && (c < 224)) { 609 | c2 = utftext.charCodeAt(i + 1); 610 | str += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); 611 | i += 2; 612 | } else { 613 | c2 = utftext.charCodeAt(i + 1); 614 | c3 = utftext.charCodeAt(i + 2); 615 | str += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); 616 | i += 3; 617 | } 618 | } 619 | return str; 620 | }; 621 | 622 | // this is crazy but it's 4am in dublin and i thought this would be hilarious 623 | // blame the guinness 624 | this.evercookie_history = function (name, value) { 625 | // - is special 626 | var baseElems = (_baseKeyStr + "-").split(""), 627 | // sorry google. 628 | url = "http://www.google.com/evercookie/cache/" + this.getHost() + "/" + name, 629 | i, base, 630 | letter = "", 631 | val = "", 632 | found = 1; 633 | 634 | if (value !== undefined) { 635 | // don't reset this if we already have it set once 636 | // too much data and you can't clear previous values 637 | if (this.hasVisited(url)) { 638 | return; 639 | } 640 | 641 | this.createIframe(url, "if"); 642 | url = url + "/"; 643 | 644 | base = this.encode(value).split(""); 645 | for (i = 0; i < base.length; i++) { 646 | url = url + base[i]; 647 | this.createIframe(url, "if" + i); 648 | } 649 | 650 | // - signifies the end of our data 651 | url = url + "-"; 652 | this.createIframe(url, "if_"); 653 | } else { 654 | // omg you got csspwn3d 655 | if (this.hasVisited(url)) { 656 | url = url + "/"; 657 | 658 | while (letter !== "-" && found === 1) { 659 | found = 0; 660 | for (i = 0; i < baseElems.length; i++) { 661 | if (this.hasVisited(url + baseElems[i])) { 662 | letter = baseElems[i]; 663 | if (letter !== "-") { 664 | val = val + letter; 665 | } 666 | url = url + letter; 667 | found = 1; 668 | break; 669 | } 670 | } 671 | } 672 | 673 | // lolz 674 | return this.decode(val); 675 | } 676 | } 677 | }; 678 | 679 | this.createElem = function (type, name, append) { 680 | var el; 681 | if (name !== undefined && document.getElementById(name)) { 682 | el = document.getElementById(name); 683 | } else { 684 | el = document.createElement(type); 685 | } 686 | el.style.visibility = "hidden"; 687 | el.style.position = "absolute"; 688 | 689 | if (name) { 690 | el.setAttribute("id", name); 691 | } 692 | 693 | if (append) { 694 | document.body.appendChild(el); 695 | } 696 | return el; 697 | }; 698 | 699 | this.createIframe = function (url, name) { 700 | var el = this.createElem("iframe", name, 1); 701 | el.setAttribute("src", url); 702 | return el; 703 | }; 704 | 705 | // wait for our swfobject to appear (swfobject.js to load) 706 | var waitForSwf = this.waitForSwf = function (i) { 707 | if (i === undefined) { 708 | i = 0; 709 | } else { 710 | i++; 711 | } 712 | 713 | // wait for ~2 seconds for swfobject to appear 714 | if (i < _ec_tests && typeof swfobject === "undefined") { 715 | setTimeout(function () { 716 | waitForSwf(i); 717 | }, 300); 718 | } 719 | }; 720 | 721 | this.evercookie_cookie = function (name, value) { 722 | if (value !== undefined) { 723 | // expire the cookie first 724 | document.cookie = name + "=; expires=Mon, 20 Sep 2010 00:00:00 UTC; path=/"; 725 | document.cookie = name + "=" + value + "; expires=Tue, 31 Dec 2030 00:00:00 UTC; path=/"; 726 | } else { 727 | return this.getFromStr(name, document.cookie); 728 | } 729 | }; 730 | 731 | // get value from param-like string (eg, "x=y&name=VALUE") 732 | this.getFromStr = function (name, text) { 733 | if (typeof text !== "string") { 734 | return; 735 | } 736 | var nameEQ = name + "=", 737 | ca = text.split(/[;&]/), 738 | i, c; 739 | for (i = 0; i < ca.length; i++) { 740 | c = ca[i]; 741 | while (c.charAt(0) === " ") { 742 | c = c.substring(1, c.length); 743 | } 744 | if (c.indexOf(nameEQ) === 0) { 745 | return c.substring(nameEQ.length, c.length); 746 | } 747 | } 748 | }; 749 | 750 | this.getHost = function () { 751 | return window.location.host.replace("www.", ""); 752 | }; 753 | 754 | this.toHex = function (str) { 755 | var r = "", 756 | e = str.length, 757 | c = 0, 758 | h; 759 | while (c < e) { 760 | h = str.charCodeAt(c++).toString(16); 761 | while (h.length < 2) { 762 | h = "0" + h; 763 | } 764 | r += h; 765 | } 766 | return r; 767 | }; 768 | 769 | this.fromHex = function (str) { 770 | var r = "", 771 | e = str.length, 772 | s; 773 | while (e >= 0) { 774 | s = e - 2; 775 | r = String.fromCharCode("0x" + str.substring(s, e)) + r; 776 | e = s; 777 | } 778 | return r; 779 | }; 780 | 781 | /** 782 | * css history knocker (determine what sites your visitors have been to) 783 | * 784 | * originally by Jeremiah Grossman 785 | * http://jeremiahgrossman.blogspot.com/2006/08/i-know-where-youve-been.html 786 | * 787 | * ported to additional browsers by Samy Kamkar 788 | * 789 | * compatible with ie6, ie7, ie8, ff1.5, ff2, ff3, opera, safari, chrome, flock 790 | * 791 | * - code@samy.pl 792 | */ 793 | this.hasVisited = function (url) { 794 | if (this.no_color === -1) { 795 | var no_style = this._getRGB("http://samy-was-here-this-should-never-be-visited.com", -1); 796 | if (no_style === -1) { 797 | this.no_color = this._getRGB("http://samy-was-here-" + Math.floor(Math.random() * 9999999) + "rand.com"); 798 | } 799 | } 800 | 801 | // did we give full url? 802 | if (url.indexOf("https:") === 0 || url.indexOf("http:") === 0) { 803 | return this._testURL(url, this.no_color); 804 | } 805 | 806 | // if not, just test a few diff types if (exact) 807 | return this._testURL("http://" + url, this.no_color) || 808 | this._testURL("https://" + url, this.no_color) || 809 | this._testURL("http://www." + url, this.no_color) || 810 | this._testURL("https://www." + url, this.no_color); 811 | }; 812 | 813 | /* create our anchor tag */ 814 | var _link = this.createElem("a", "_ec_rgb_link"), 815 | /* for monitoring */ 816 | created_style, 817 | /* create a custom style tag for the specific link. Set the CSS visited selector to a known value */ 818 | _cssText = "#_ec_rgb_link:visited{display:none;color:#FF0000}", 819 | style; 820 | 821 | /* Methods for IE6, IE7, FF, Opera, and Safari */ 822 | try { 823 | created_style = 1; 824 | style = document.createElement("style"); 825 | if (style.styleSheet) { 826 | style.styleSheet.innerHTML = _cssText; 827 | } else if (style.innerHTML) { 828 | style.innerHTML = _cssText; 829 | } else { 830 | style.appendChild(document.createTextNode(_cssText)); 831 | } 832 | } catch (e) { 833 | created_style = 0; 834 | } 835 | 836 | /* if test_color, return -1 if we can't set a style */ 837 | this._getRGB = function (u, test_color) { 838 | if (test_color && created_style === 0) { 839 | return -1; 840 | } 841 | 842 | /* create the new anchor tag with the appropriate URL information */ 843 | _link.href = u; 844 | _link.innerHTML = u; 845 | // not sure why, but the next two appendChilds always have to happen vs just once 846 | document.body.appendChild(style); 847 | document.body.appendChild(_link); 848 | 849 | /* add the link to the DOM and save the visible computed color */ 850 | var color; 851 | if (document.defaultView) { 852 | color = document.defaultView.getComputedStyle(_link, null).getPropertyValue("color"); 853 | } else { 854 | color = _link.currentStyle.color; 855 | } 856 | return color; 857 | }; 858 | 859 | this._testURL = function (url, no_color) { 860 | var color = this._getRGB(url); 861 | 862 | /* check to see if the link has been visited if the computed color is red */ 863 | if (color === "rgb(255, 0, 0)" || color === "#ff0000") { 864 | return 1; 865 | } else if (no_color && color !== no_color) { 866 | /* if our style trick didn't work, just compare default style colors */ 867 | return 1; 868 | } 869 | /* not found */ 870 | return 0; 871 | }; 872 | 873 | }; 874 | return this._class; 875 | }(window)); 876 | 877 | function _evercookie_flash_var(cookie) { 878 | evercookie._global_lso = cookie; 879 | // remove the flash object now 880 | var swf = $("#myswf"); //document.getElementById("myswf"); 881 | if (swf && swf.parentNode) { 882 | swf.parentNode.removeChild(swf); 883 | } 884 | } 885 | 886 | function onSilverlightLoad(sender, args) { 887 | evercookie._global_isolated = sender.getHost().Content.App.getIsolatedStorage(); 888 | } 889 | 890 | function onSilverlightError(sender, args) { 891 | evercookie._global_isolated = ""; 892 | } -------------------------------------------------------------------------------- /jquery-1.4.2.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * jQuery JavaScript Library v1.4.2 3 | * http://jquery.com/ 4 | * 5 | * Copyright 2010, John Resig 6 | * Dual licensed under the MIT or GPL Version 2 licenses. 7 | * http://jquery.org/license 8 | * 9 | * Includes Sizzle.js 10 | * http://sizzlejs.com/ 11 | * Copyright 2010, The Dojo Foundation 12 | * Released under the MIT, BSD, and GPL Licenses. 13 | * 14 | * Date: Sat Feb 13 22:33:48 2010 -0500 15 | */ 16 | (function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, 21 | Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& 22 | (d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, 23 | a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== 24 | "find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, 25 | function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
a"; 34 | var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, 35 | parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= 36 | false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= 37 | s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, 38 | applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; 39 | else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, 40 | a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== 41 | w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, 42 | cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= 47 | c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); 48 | a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, 49 | function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); 50 | k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), 51 | C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= 53 | e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& 54 | f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; 55 | if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", 63 | e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, 64 | "_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, 65 | d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, 71 | e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); 72 | t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| 73 | g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, 80 | CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, 81 | g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, 82 | text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, 83 | setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= 84 | h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== 86 | "="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, 87 | h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& 90 | q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; 91 | if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); 92 | (function(){var g=s.createElement("div");g.innerHTML="
";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: 93 | function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= 96 | {},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== 97 | "string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", 98 | d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? 99 | a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== 100 | 1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
","
"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= 102 | c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, 103 | wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, 104 | prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, 105 | this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); 106 | return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, 107 | ""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); 111 | return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", 112 | ""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= 113 | c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? 114 | c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= 115 | function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= 116 | Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, 117 | "border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= 118 | a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= 119 | a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== 120 | "string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, 121 | serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), 122 | function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, 123 | global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& 124 | e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? 125 | "&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== 126 | false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= 127 | false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", 128 | c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| 129 | d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); 130 | g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== 131 | 1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== 132 | "json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; 133 | if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== 139 | "number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| 140 | c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; 141 | this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= 142 | this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, 143 | e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
"; 149 | a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); 150 | c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, 151 | d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- 152 | f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": 153 | "pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in 154 | e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); 155 | --------------------------------------------------------------------------------