PageSourceSearch

https://lyceedeck.fr/ADI/scripts/zice.js

js lyceedeck.fr collected 2026-10-08 22:49:47 UTC 40,157 bytes, 1,366 lines download raw bytes

1$.fn.imgdata = function(key){
2	return this.find('.dataImg li:eq('+key+')').text();
3}
4$.fn.hdata = function(key){
5	return this.find('.dataSet li:eq('+key+')').text();
6}
7var buttonActions = {
8	  'close_windows':function(){
9		  $.fancybox.close(); 
10		  ResetForm();
11	}	
12}
13
14
15
16$(document).ready(function(){	
17	// NewsUpdate
18	$('#news_update').vTicker({ 
19		speed: 500,
20		pause: 3000,
21		animation: 'fade',
22		mousePause: true,
23		showItems: 2
24	});
25	  
26	// Tabs
27	$("ul.tabs li").fadeIn(400); 
28	$("ul.tabs li:first").addClass("active").fadeIn(400); 
29	$(".tab_content:first").fadeIn(); 
30	$("ul.tabs li").live('click',function() {
31		  $("ul.tabs li").removeClass("active");						   
32		  $(this).addClass("active");  
33		  var activeTab = $(this).find("a").attr("href"); 
34		  $('.tab_content').fadeOut();		
35		  $(activeTab).delay(400).fadeIn();		
36		  ResetForm();
37		  return false;
38	});
39
40	
41	//DataTable
42	$('.data_table').dataTable({
43		"sDom": 'f<"clear">rt<"clear">',
44		"aaSorting": [],
45		"aoColumns": [ { "bSortable": false },{ "bSortable": false } ]
46	});
47	$('.data_table_com').dataTable({
48		"sDom": 'f<"clear">rt<"clear">',
49		"aaSorting": [],
50		"aoColumns": [ { "bSortable": false },{ "bSortable": false },{ "bSortable": false },{ "bSortable": false } ]
51	});
52	$('.data_messages').dataTable({
53	"sDom": 'fCl<"clear">rtip',
54		"aaSorting": [],
55		"aoColumns": [ { "bSortable": false },null,{ "bSortable": false },{ "bSortable": false } ]
56	});
57	
58	$('.static').dataTable({
59		"sDom": '',
60		"aaSorting": [],
61	  "aoColumns": [
62					{ "bSortable": false },{ "bSortable": false },{ "bSortable": false },{ "bSortable": false },{ "bSortable": false }
63	  ]
64	});
65	$('.data_table2').dataTable({
66	"sDom": 'fCl<"clear">rtip',
67	"sPaginationType": "full_numbers" ,
68	"aaSorting": [],
69	 "aoColumns": [
70					{ "bSortable": false },null,null,null,{ "bSortable": false }
71	  ]
72	});
73	$('.data_table3').dataTable({
74	"sDom": 'fCl<"clear">rtip',
75	"sPaginationType": "full_numbers" ,
76	 "aaSorting": [],
77	  "aoColumns": [
78					{ "bSortable": false },null,null,null,{ "bSortable": false },{ "bSortable": false }
79	  ]
80	});
81	$('.data_table4').dataTable({
82	"sDom": 'fCl<"clear">rtip',
83	"sPaginationType": "full_numbers" ,
84	 "aaSorting": [],
85	  "aoColumns": [
86					{ "bSortable": false },null,null,null,null,null
87	  ]
88	});
89	$('.data_table5').dataTable({
90	"sDom": 'fCl<"clear">rtip',
91	"sPaginationType": "full_numbers" ,
92	 "aaSorting": [],
93	  "aoColumns": [
94					{ "bSortable": false },null,null,null,null,null,null,null
95	  ]
96	});
97	$('.data_table6').dataTable({
98	"sDom": 'fCl<"clear">rtip',
99	"sPaginationType": "full_numbers" ,
100	 "aaSorting": [],
101	  "aoColumns": [
102					{ "bSortable": false },null,null,null,null,null,null
103	  ]
104	});
105	
106	// WYSIWYG Editor
107	$("#editor,#editor2").cleditor();	
108	
109	// Form validationEngine
110	$('form#validation').validationEngine();		
111	$('form#validation_demo').validationEngine();	
112	
113	// Input filter
114	$('.numericonly input').autotab_magic().autotab_filter('numeric');
115	$('.textonly input').autotab_magic().autotab_filter('text');
116	$('.alphaonly input').autotab_magic().autotab_filter('alpha');
117	$('.regexonly input').autotab_magic().autotab_filter({ format: 'custom', pattern: '[^0-9\.]' });
118	$('.alluppercase input').autotab_magic().autotab_filter({ format: 'alphanumeric', uppercase: true });
119	
120});	
121
122
123$(function() {		
124	LResize();	
125	$(window).resize(function(){LResize(); Processgraph(); });
126    $(window).scroll(function (){ scrollmenu(); });
127		
128	  //Close_windows
129	  $('.butAcc').live('click',function(e){				   
130			  if(buttonActions[this.id]){
131				  buttonActions[this.id].call(this);
132			  }
133			  e.preventDefault();
134	  });
135	  
136	 //exam ui slider element
137	  $( "#slider-range-min" ).slider({
138			range: "min",
139			value: 50,
140			min: 1,
141			max: 100,
142			slide: function( event, ui ) {
143				$( "#amount" ).text( ui.value );
144				verif();
145			}
146		});
147		$( "#amount" ).text( $("#slider-range-min" ).slider( "value" ) );
148		
149		$( "#slider-range" ).slider({
150			range: true,
151			min: 0,
152			max: 500,
153			values: [ 75, 300 ],
154			slide: function( event, ui ) {
155				$( "#amount2" ).text( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] );
156			}
157		});
158		$( "#amount2" ).text( "$" + $( "#slider-range" ).slider( "values", 0 ) + " - $" + $( "#slider-range" ).slider( "values", 1 ) );
159		
160		$( "#slider" ).slider({
161			value:100,
162			min: 0,
163			max: 500,
164			step: 50,
165			slide: function( event, ui ) {
166				$( "#amount3" ).text( "$" + ui.value );
167			}
168		});
169	$( "#amount3" ).text( "$" + $( "#slider" ).slider( "value" ) );
170	$( "#eq > span" ).each(function() {
171		// read initial values from markup and remove that
172		var value = parseInt( $( this ).text(), 10 );
173		$( this ).empty().slider({
174			value: value,
175			range: "min",
176			animate: true,
177			orientation: "vertical"
178		});
179	});
180	$( "#red, #green, #blue" ).slider({
181		orientation: "horizontal",
182		range: "min",
183		max: 255,
184		value: 127,
185		slide: refreshSwatch,
186		change: refreshSwatch
187	});
188	$( "#red" ).slider( "value", 190 );
189	$( "#green" ).slider( "value", 221 );
190	$( "#blue" ).slider( "value", 23 );
191	  
192	  
193	 //autocomplete
194		var availableTags = [
195			"ActionScript",
196			"AppleScript",
197			"Asp",
198			"BASIC",
199			"C",
200			"C++",
201			"Clojure",
202			"COBOL",
203			"ColdFusion",
204			"Erlang",
205			"Fortran",
206			"Groovy",
207			"Haskell",
208			"Java",
209			"JavaScript",
210			"Lisp",
211			"Perl",
212			"PHP",
213			"Python",
214			"Ruby",
215			"Scala",
216			"Scheme"
217		];
218		$( "#sAtcom" ).autocomplete({
219			source: availableTags
220		});
221	  
222  	//datepicker
223	
224
225	$("input.datepicker").datepicker({ 
226		autoSize: true,
227		// appendText: '(dd-mm-yyyy)',
228		dateFormat: 'dd-mm-yy'
229	});
230	$( "div.datepickerInline" ).datepicker({ 
231		dateFormat: 'dd-mm-yy',
232		numberOfMonths: 1
233	});	
234	$( "input.birthday" ).datepicker({
235		changeMonth: true,
236		changeYear: true,
237		dateFormat:'yy-mm-dd'
238    });
239	
240
241	//datetimepicker
242   $("#datetimepicker").datetimepicker();
243   $('#timepicker').timepicker({});
244   
245   	//Color picker 
246	$('#colorPicker').ColorPicker({
247		color: '#a4d143',
248		onShow: function (colpkr) {
249			$(colpkr).fadeIn(500);
250			return false;
251		},
252		onHide: function (colpkr) {
253			$(colpkr).fadeOut(500);
254			return false;
255		},
256		onChange: function (hsb, hex, rgb) {
257			$('#colorPicker div').css('backgroundColor', '#' + hex);
258		}
259	});
260	$('#colorPickerFlat').ColorPicker({flat: true,color: '#a4d143'});
261	$('#colorpickerField,#bgColor').ColorPicker({
262		onSubmit: function(hsb, hex, rgb, el) {
263			$(el).val('#'+hex);
264			$(el).ColorPickerHide();
265			$('#colorpickerField,#bgColor').css('backgroundColor', '#' + hex);
266		},
267		onHide: function (colpkr) {
268				$(colpkr).fadeOut(500);
269				return false;
270			},
271			onChange: function (hsb, hex, rgb,el) {
272				$('#colorpickerField,#bgColor').val('#'+hex);
273				$('#colorpickerField,#bgColor').css('backgroundColor', '#' + hex);
274			},
275		onBeforeShow: function () {
276			$(this).ColorPickerSetColor(this.value);
277		}
278	}).bind('keyup', function(){
279		$(this).ColorPickerSetColor(this.value);
280	});
281	
282		$('#color').ColorPicker({
283		onSubmit: function(hsb, hex, rgb, el) {
284			$(el).val('#'+hex);
285			$(el).ColorPickerHide();
286			$('#color').css('backgroundColor', '#' + hex);
287		},
288		onHide: function (colpkr) {
289				$(colpkr).fadeOut(500);
290				return false;
291			},
292			onChange: function (hsb, hex, rgb,el) {
293				$('#color').val('#'+hex);
294				$('#color').css('backgroundColor', '#' + hex);
295			},
296		onBeforeShow: function () {
297			$(this).ColorPickerSetColor(this.value);
298		}
299	}).bind('keyup', function(){
300		$(this).ColorPickerSetColor(this.value);
301	});
302
303
304	//Button Click  Ajax Loading
305	$('.loading').live('click',function() { 
306		  var str=$(this).attr('title'); 
307		  var overlay=$(this).attr('rel'); 
308		  loading(str,overlay);
309		  setTimeout("unloading()",1500); 
310	  });
311	$('#preloader').live('click',function(){
312			unloading();
313	 });
314	
315
316$('.searchAutocomplete').click(function() {
317 $('.searchText').toggle('slow', function() {
318    // Animation complete.
319  });
320});
321	// Submit Form 
322	$('a.submit_form').live('click',function(){
323		  var form_id=$(this).parents('form').attr('id');
324		  $("#"+form_id).submit();
325	})	
326
327	// Logout Click  
328	$('.logout').live('click',function() { 
329		  var str="Au revoir"; 
330		  var overlay="1"; 
331		  loading(str,overlay);
332		  setTimeout("unloading()",3000);
333		  setTimeout( "window.location.href='inc/session_close_inc.php'", 2500 );
334	  });
335		
336	// Wizard Steps 
337	 $('#wizard').smartWizard();
338	 // $('#wizardvalidate').smartWizard();
339	 
340	 
341	// Tipsy Tootip
342	$('.tip a ').tipsy({gravity: 's',live: true});	
343	$('.ntip a ').tipsy({gravity: 'n',live: true});	
344	$('.wtip a ').tipsy({gravity: 'w',live: true});	
345	$('.etip a,.Base').tipsy({gravity: 'e',live: true});	
346	$('.netip a ').tipsy({gravity: 'ne',live: true});	
347	$('.nwtip a  ').tipsy({gravity: 'nw',live: true});	
348	$('.swtip a,.iconmenu li a ').tipsy({gravity: 'sw',live: true});	
349	$('.setip a ').tipsy({gravity: 'se',live: true});	
350	$('.wtip input').tipsy({ trigger: 'focus', gravity: 'w',live: true });
351	$('.etip input').tipsy({ trigger: 'focus', gravity: 'e',live: true });
352	$('.iconBox, div.logout').tipsy({gravity: 'ne',live: true });	
353
354	// Maskedinput 
355        $.mask.definitions['~'] = "[+-]";
356        $("#date").mask("99/99/9999",{completed:function(){ alert("completed!");}});
357		$("#dateMasked").mask("99/99/9999",{completed:function(){ alert("completed!");}});
358		$("#datepicker").datepicker().mask("99-99-9999");
359        $("#phone").mask(" 99.99.99.99.99");
360        $("#phoneExt").mask("(999) 999-9999? x99999");
361        $("#iphone").mask(" 99.99.99.99.99");
362        $("#tin").mask("99-9999999");
363        $("#ssn").mask("999-99-9999");
364        $("#product").mask("a*-999-a999", { placeholder: " " });
365        $("#eyescript").mask("~9.99 ~9.99 999");
366        $("#po").mask("PO: aaa-999-***");
367		$("#pct").mask("99%",{completed:function(){ Processgraph();  }});
368	// Maskedinput
369 function Processgraph(){
370	var 	bar = $('.bar'), bw = bar.width(), percent = bar.find('.percent'), circle = bar.find('.circle'), ps =  percent.find('span'),
371		cs = circle.find('span'), name = 'rotate';
372			var t = $('#pct'), val = t.val();
373			if(val){ 
374				val = t.val().replace("%", "");
375
376			if (val >=0 && val <= 100){
377				var w = 100-val, pw = (bw*w)/100,
378					pa = {  	width: w+'%' },
379					cw = (bw-pw), ca = {	"left": cw }
380				ps.animate(pa);
381				cs.text(val+'%');
382				circle.animate(ca, function(){
383					circle.removeClass(name)
384				}).addClass(name);	
385			} else {
386				alert('range: 0 - 100');
387				t.val('');
388			}
389		}
390	}
391	
392		
393	// Fancybox 
394	$(".pop_box").fancybox({ 'showCloseButton': true, 'hideOnOverlayClick'	:	false });	
395	$(".pop_img").fancybox({  'showCloseButton': true,'centerOnScroll' : true, 'overlayOpacity' : 0.8,'padding' : 0 });
396	$('.albumImage').dblclick(function(){
397		  $("a[rel=glr]").fancybox({  'showCloseButton': true,'centerOnScroll' : true, 'overlayOpacity' : 0.8,'padding' : 0 });
398		  $(this).find('a').trigger('click');
399	})
400		function test(value){
401                alert("This rating's value is "+value);
402     }
403	
404	// rating_star
405	$("#rating_star").rating_star({
406						rating_star_length: '10',
407						rating_initial_value: '3'
408	 });
409
410	  // Profile webcam 
411	  var camera = $('#camera'),screen =  $('#screen');	
412	  webcam.set_api_url('upload.php');	
413	  screen.html(
414		  webcam.get_html(screen.width(), screen.height())
415	  );
416	  var shootEnabled = false;
417	  $(".takeWebcam").click(function(){
418		  $(".webcam").show('blind');
419		  return false;
420	  });
421	  $("#closeButton").click(function(){
422		  $(".webcam").hide('blind');
423		  return false;
424	  });
425	  $('#takeButton').click(function(){
426		  if(!shootEnabled){
427			  return false;
428		  }
429		  webcam.freeze();
430		  togglePane()
431		  return false;
432	  });
433	  $('#retakeButton').click(function(){
434		  webcam.reset();
435		  togglePane()
436		  return false;
437	  });	
438	  $('#uploadAvatar').click(function(){
439		  webcam.upload();
440		  togglePane()
441		  webcam.reset();
442		  return false;
443	  });
444	  webcam.set_hook('onLoad',function(){
445		  shootEnabled = true;
446	  });
447	  webcam.set_hook('onError',function(e){
448		  screen.html(e);
449	  });
450	  function togglePane(){
451		  var visible = $(' .buttonPane:visible:first');
452		  var hidden = $(' .buttonPane:hidden:first');	
453		  visible.fadeOut('fast',function(){
454			  hidden.show();
455		  });
456	  }
457	  
458	  	// images  editor tranfer
459		$('#reflect').click(function() {
460						$('.animate').animate({"reflect": true});	 
461		});
462		$('#reflectX').click(function() {
463						$('.animate').animate({"reflectX": true});	 
464		});
465		$('#reflectY').click(function() {
466						$('.animate').animate({"reflectY": true});	 
467		});
468		$('#reflectXY').click(function() {
469						$('.animate').animate({"reflectXY": true});	 
470		});
471		$('#reflectYX').click(function() {
472						$('.animate').animate({"reflectYX": true});	 
473		});
474	    ///////////////////////////////////////////////////////////////////////////		
475		
476		// images  editor crop			
477	  $('#target').Jcrop({
478			bgFade:     true,
479			bgOpacity: .7,
480			onChange: updateCoords,
481			onSelect: updateCoords,
482			aspectRatio: 4/3		   
483					},function(){
484        var bounds = this.getBounds();
485        boundx = bounds[0];
486        boundy = bounds[1];
487        jcrop_api = this;
488			var  x1=(boundx -240)/2;
489			var  y1=(boundy -180)/2;
490			var  x2=(x1 +240);
491			var  y2=(y1 +180);
492		jcrop_api.animateTo([x1,y1,x2,y2]);
493      });
494	  function updateCoords(c)
495	  {
496		  $('#x').val(c.x);
497		  $('#y').val(c.y);
498		  $('#w').val(c.w);
499		  $('#h').val(c.h);
500	  };
501	 ///////////////////////////////////////////////////////////////////////////
502	
503	// spinner options 
504	var itemListspinner = [
505		{url: "http://ejohn.org", title: "John Resig"},
506		{url: "http://bassistance.de/", title: "J&ouml;rn Zaefferer"},
507		{url: "http://snook.ca/jonathan/", title: "Jonathan Snook"},
508		{url: "http://rdworth.org/", title: "Richard Worth"},
509		{url: "http://www.paulbakaus.com/", title: "Paul Bakaus"},
510		{url: "http://www.yehudakatz.com/", title: "Yehuda Katz"},
511		{url: "http://www.azarask.in/", title: "Aza Raskin"},
512		{url: "http://www.karlswedberg.com/", title: "Karl Swedberg"},
513		{url: "http://scottjehl.com/", title: "Scott Jehl"},
514		{url: "http://jdsharp.us/", title: "Jonathan Sharp"},
515		{url: "http://www.kevinhoyt.org/", title: "Kevin Hoyt"},
516		{url: "http://www.codylindley.com/", title: "Cody Lindley"},
517		{url: "http://malsup.com/jquery/", title: "Mike Alsup"}
518	];
519	
520	var optionspinner = {
521		'sDec': {decimals:2},
522		'sMinMax':{min: -100, max: 100 },
523		'sStep': {stepping: 0.25},
524		'sCur': {currency: '$'},
525		'sInline': {},
526		'sLink': {
527			init: function(e, ui) {
528				for (var i=0; i<itemListspinner.length; i++) {
529					ui.add('<a href="'+ itemListspinner[i].url +'" target="_blank">'+ itemListspinner[i].title +'</a>');
530				}
531			},
532			format: '<a href="%(url)" target="_blank">%(title)</a>',
533			items: itemListspinner
534		}
535	};	
536	for (var n in optionspinner){
537		$("#"+n).spinner(optionspinner[n]);
538	}
539
540	// uploadButton  ( Add file )
541		$('#uploadButton').hover(function(){
542			$('#upload_b').addClass('hover');
543		},function(){
544			$('#upload_b').removeClass('hover');
545		});		
546	
547	// upload
548	   $("input.fileupload").filestyle();
549	// mutiupload
550	  $('.uploadFile').live('click',function(){
551		  $('#uploadify').uploadifyUpload(); 	
552		   showSuccess('Uploading...');
553	  })		
554	  $('#uploadify').uploadify({
555	  'uploader'  : 'components/uploadify/uploadify.swf',
556	  'script'    : 'components/uploadify/uploadify.php',
557	  'cancelImg' : 'components/uploadify/cancel.png',
558	  'folder'    : 'uploads',
559	  'method'	: 'GET',
560	  'multi': true, 'auto': false,'fileExt': '*.jpg;*.gif;*.png','fileDesc': 'Image Files (.JPG, .GIF, .PNG)',
561	  'queueID'        : 'custom-queue',
562	  'wmode'		: 'transparent',
563	  'hideButton': true,
564	  'width': 92,'height': 26,
565	  'sizeLimit'	: parseInt($('#maxUploadFileSize').text()),
566		  'onClearQueue' : function(event) {
567			  $('#upload_c').removeClass('special').addClass('disable');
568			  $('#uploadFile').removeClass('uploadFile confirm ').addClass('disable');	 
569			  $('#status-message').html(' ');
570			},
571		'onSelectOnce'   : function(event,data) {
572			  $('#upload_c').removeClass('disable').addClass('special');
573			  $('#uploadButtondisable').css({'display':'none'});
574			  $('#uploadFile').removeClass('disable').addClass('uploadFile confirm ');	 
575			  $('#status-message').html('Ready');
576			},
577		  'onAllComplete'  : function(event,data) {
578		  if(data.errors){
579						$('#status-message').html('Complete '+ data.filesUploaded + ' file , <font color=red>and ' + data.errors + ' file donot Complete </font>.');
580						showError('uploadComplete'+ data.filesUploaded + 'file , <font color=red>and ' + data.errors + ' file donot Complete </font>.',7000);
581						
582				  }else{
583						  $('#status-message').html('Complete '+ data.filesUploaded + ' file');
584						  showSuccess('uploadComplete '+ data.filesUploaded  +' File',7000);
585						  setTimeout('$.fancybox.close()',1500);  // uploadmodal with close  ;
586				 }
587			}
588		});	
589	
590	
591	// Sortable
592	$("#picThumb").sortable({
593		opacity: 0.6,handle : '.move', connectWith: '.picThumbUpload', items: '.picThumbUpload'
594	});
595	$("#main_menu").sortable({
596		opacity: 0.6,connectWith: '.limenu',items: '.limenu'		
597	});
598	$( "#sortable" ).sortable({
599		opacity: 0.6,revert: true,cursor: "move", zIndex:9000
600	});
601	
602
603    // Effect 
604	$('.SEclick, .SEmousedown, .SEclicktime,.SEremote,.SEremote2,.SEremote3,.SEremote4').jrumble();
605	$('.SE').jrumble({
606		x: 2,
607		y: 2,
608		rotation: 1
609	});
610	
611	$('.alertMessage.error ').jrumble({
612		x: 10,
613		y: 10,
614		rotation: 4
615	});
616	
617	$('.alertMessage.success').jrumble({
618		x: 4,
619		y: 0,
620		rotation: 0
621	});
622	
623	$('.alertMessage.warning').jrumble({
624		x: 0,
625		y: 0,
626		rotation: 5
627	});
628
629	$('.SE').hover(function(){
630		$(this).trigger('startRumble');
631	}, function(){
632		$(this).trigger('stopRumble');
633	});
634
635	$('.SEclick').toggle(function(){
636		$(this).trigger('startRumble');
637	}, function(){
638		$(this).trigger('stopRumble');
639	});
640	
641	$('.SEmousedown').bind({
642		'mousedown': function(){
643			$(this).trigger('startRumble');
644		},
645		'mouseup': function(){
646			$(this).trigger('stopRumble');
647		}
648	});
649	
650	$('.SEclicktime').click(function(){
651		var demoTimeout;
652		$this = $(this);
653		clearTimeout(demoTimeout);
654		$this.trigger('startRumble');
655		demoTimeout = setTimeout(function(){$this.trigger('stopRumble');}, 1500)
656	});
657	$('.SEremote').hover(function(){
658		$('.SEremote2').trigger('startRumble');
659	}, function(){
660		$('.SEremote2').trigger('stopRumble');
661	});
662	
663	$('.SEremote2').hover(function(){
664		$('.SEremote').trigger('startRumble');
665	}, function(){
666		$('.SEremote').trigger('stopRumble');
667	})
668
669	$('.SEremote3').hover(function(){
670		$('.alertMessage').trigger('startRumble');
671	}, function(){
672		$('.alertMessage').trigger('stopRumble');
673	})
674
675	$('.SEremote4').hover(function(){
676		$('.alertMessage.error').trigger('startRumble');
677	}, function(){
678		$('.alertMessage.error').trigger('stopRumble');
679	})
680
681
682	// Dual select boxes
683	$.configureBoxes();
684	
685	// Textareaelastic
686	$('#Textareaelastic').elastic();
687	
688	// Textarea limit
689	 $('#Textarealimit').limit('140','.limitchars');
690	
691	// placeholder text 
692	$('input[placeholder], textarea[placeholder]').placeholder();
693	
694	// Checkbox 
695	$('.ck').customInput();	
696	
697	// Checkbox Limit
698	$('.limit3m').limitInput({max:3,disablelabels:true});
699	
700	// Select boxes
701	$("select").not("select.chzn-select,select[multiple],select#box1Storage,select#box2Storage,select#maker,select#model,select#feature").selectBox();
702
703
704	// Select boxes in Data table
705	$(".dataTables_wrapper .dataTables_length select").addClass("small");
706	$("table tbody tr td:first-child .custom-checkbox:first-child").css("margin: 0px 3px 3px 3px");
707	
708	 // Mutiselection
709	$(".chzn-select").chosen(); 
710	
711	// Checkbox iphoneStyle
712	$(".on_off_checkbox").iphoneStyle();  // Label On / Off
713	
714	$(".show_email").iphoneStyle({  //  Custom Label 
715		  checkedLabel: "show Email",
716		  uncheckedLabel: "Don't show ",
717		  labelWidth:'85px'
718	}); 
719	$(".preOrder").iphoneStyle({  //  Custom Label 
720		  checkedLabel: "in stocks",
721		  uncheckedLabel: "out stocks",
722		  labelWidth:'76px'
723	}); 
724	$(".online").iphoneStyle({  //  Custom Label 
725		  checkedLabel: "online",
726		  uncheckedLabel: "offline ",
727		  labelWidth:'55px'
728	}); 
729	$(".show_conmap").iphoneStyle({ //  Custom Label  With  onChange function
730		  checkedLabel: "show map",
731		  uncheckedLabel: "Don't show ",
732		  labelWidth:'85px',
733		  onChange: function() {
734				var chek=$(".show_conmap").attr('checked');
735					  if(chek){
736						  $(".disabled_map").fadeOut();
737					  }else{
738						 $(".disabled_map").fadeIn();
739					  }
740		}
741	});
742
743
744	 // Checkbox  All in Data Table
745	$(".checkAll").live('click',function(){
746		  var table=$(this).parents('table').attr('id');
747		  var checkedStatus = this.checked;
748		  var id= this.id;
749		 $( "table#"+table+" tbody tr td:first-child input:checkbox").each(function() {
750			this.checked = checkedStatus;
751			 var id= this.id;
752				if (this.checked) {
753					$(this).attr('checked', $('#' + id).is(':checked'));
754				}else{
755					$(this).attr('checked', $('#' + id).is(''));
756					}
757		});	 
758	});		
759	
760	
761	// ShowCode 
762	$('.showCode').sourcerer('js html css php'); 
763	$('.showCodeJS').sourcerer('js'); 
764	$('.showCodeHTML').sourcerer('html'); 
765	$('.showCodePHP').sourcerer('php'); 
766	$('.showCodeCSS').sourcerer('css'); 
767	
768	// icon  gray Hover
769	$('.iconBox.gray').hover(function(){
770		  var name=$(this).find('img').attr('alt');
771		  $(this).find('img').animate({ opacity: 0.5 }, 0, function(){
772			    $(this).attr('src','images/icon/color_18/'+name+'.png').animate({ opacity: 1 }, 700);									 
773		 });
774	},function(){
775		  var name=$(this).find('img').attr('alt');
776		  $(this).find('img').attr('src','images/icon/gray_18/'+name+'.png');
777	 })
778	
779	// Animation icon  Logout 
780	$('div.logout').hover(function(){
781		  var name=$(this).find('img').attr('alt');
782		  $(this).find('img').animate({ opacity: 0.4 }, 200, function(){
783			    $(this).attr('src','images/'+name+'.png').animate({ opacity: 1 }, 500);									 
784		 });
785	},function(){
786		  var name=$(this).find('img').attr('name');
787		  $(this).find('img').animate({ opacity: 0.5 }, 200, function(){
788			    $(this).attr('src','images/'+name+'.png').animate({ opacity: 1 }, 500);									 
789		 });
790	 })
791	
792	// Animation icon  setting 
793	$('div.setting').hover(function(){
794		$(this).find('img').addClass('gearhover');
795	},function(){
796		$(this).find('img').removeClass('gearhover');
797	 })
798	
799	// shoutcutBox   Hover
800	$('.shoutcutBox').hover(function(){
801		  $(this).animate({ left: '+=15'}, 200);
802	},function(){
803		$(this).animate({ left: '0'}, 200);
804	 })
805	
806	// shoutcutBox   Hover
807	$("#shortcut li").hover(function() {
808		  var e = this;
809		$(e).find("a").stop().animate({ marginTop: "-7px" }, 200, function() {
810		  $(e).find("a").animate({ marginTop: "-5px" }, 200);
811		});
812	  },function(){
813		  var e = this;
814		$(e).find("a").stop().animate({ marginTop: "2px" }, 200, function() {
815			  $(e).find("a").animate({ marginTop: "0px" }, 200);
816		});
817	  });
818	
819	
820
821	// hide notify  Message with click
822	$('#alertMessage').live('click',function(){
823	  $(this).stop(true,true).animate({ opacity: 0,right: '-20'}, 500,function(){ $(this).hide(); });						 
824	});
825	
826	// jScrollPane  Overflow
827	$('#albumsList,.albumpics,.overflow,.todate').jScrollPane({ autoReinitialise: true });
828
829	// images hover
830	$('.picHolder,.SEdemo').hover(
831		  function() {
832			  $(this).find('.picTitle').fadeTo(200, 1);
833		  },function() {
834			  $(this).find('.picTitle').fadeTo(200, 0);
835		  }
836	  )	
837		  
838				  
839	
840	// Conversation box tool
841	$('.msg').live({
842        mouseenter: function(){
843			$(this).find('.toolMsg').show();
844           },mouseleave: function(){
845			$(this).find('.toolMsg').hide();
846           }
847       }
848    );
849	
850
851	// filemanager. 
852	// onload
853	$('#finder').elfinder({
854		url : 'components/elfinder/connectors/php/connector-fileimport.php',
855		docked : true,dialog : { title : 'Biblioth&egrave;ques',modal : true,width : 700 }
856	})
857	// on click
858	$('#filemanager').click(function(){	
859		  var callback=$(this).attr('id');
860		  var type=$(this).attr('title');
861		  fileDialog(callback,type);					   
862	});
863	// on click callback
864	$('#open_icon,#open_icon2,#open_icon3').click(function(){	
865		  var callback=$(this).attr('id');
866		  var type=$(this).attr('title');
867		   var input=$(this).attr('rel');
868		  fileDialogCallback(callback,type,input);					   
869	});
870	// on focus  callback
871	$('.fileDialog').live('focus',function(){
872		  var callback,input =$(this).attr('id');
873		  var type=$(this).attr('title');
874		  fileDialogCallback(callback,type,input);										
875	})
876
877
878	// Confirm Delete.
879	$(".Delete").live('click',function() { 
880		  var row=$(this).parents('tr');
881		  var dataSet=$(this).parents('form');
882		  var id = $(this).attr("id");
883		  var name = $(this).attr("name");
884		  var data ='id='+id;
885		  Delete(data,name,row,0,dataSet);
886	});
887	$(".DeleteAll").live('click',function() {			
888		  var rel=$(this).attr('rel');	
889		  var row=$(this).parents('.tab_content').attr('id');	
890		  var row=row+' .load_page ';
891		  if(!rel) { 
892			  var rel=0;
893			  var row=$('#load_data').attr('id');	 
894		  }  
895		  var dataSet=$('form:eq('+rel+')');					   
896		  var	data=$('form:eq('+rel+')').serialize();
897		  var name = 'All File Select';
898		 Delete(data,name,row,2,dataSet);
899	});
900	 // Drag & Drop  Delete images 
901	$('.deletezone').droppable({
902		hoverClass: 'deletezoneover',
903		activeClass: 'deletezonedragging',
904		drop:function(event,ui){	
905
906		   var datavalue='id='+ ui.draggable.imgdata(0)+'&albumid='+ ui.draggable.imgdata(2); 
907		   var name =ui.draggable.imgdata(1); 
908
909		$.confirm({
910		'title': 'DELETE DIALOG BOX','message': "<strong>YOU WANT TO DELETE </strong><br /><font color=red>' "+ name +" ' </font> ",'buttons': {'Yes': {'class': 'special',
911		'action': function(data){
912					loading('Deleting',1);
913					setTimeout("unloading();",900); 
914			}},'No'	: {'class'	: ''}}});
915		},
916		tolerance:'pointer'
917	});
918	
919	
920	// Overlay form
921	$(".on_load").live('click',function(){	
922		$('body').append('<div id="overlay"></div>');
923		$('#overlay').css('opacity',0.4).fadeIn(400);
924		var activeLoad = $(this).attr("name");		
925		var titleTabs = $(this).attr("title");		
926		$("ul.tabs li").hide();		
927				$('ul.tabs li').each(function(index) {
928						var activeTab = $('ul.tabs li:eq('+index+')').find("a").attr("href")			
929						if(activeTab==activeLoad){
930							$("ul.tabs ").append('<li class=active><a    href="'+activeLoad+'" class=" prev on_prev "  id="on_prev_pro" name="'+activeLoad+'" >'+titleTabs+'</a></li>');
931							$("ul.tabs li:last").fadeIn();	
932							}
933				});
934		$('.widget .content').css({'position':'relative','z-index':'1001'});
935		$(".load_page").hide();
936		$('.show_add').show();
937	 });
938	$(".on_prev").live('click',function(){	 
939		  $("ul.tabs li:last").remove();					 
940		  $("ul.tabs li").fadeIn();
941		  var pageLoad = $(this).attr("rel");	
942		  var activeLoad = $(this).attr("name");		
943			$(".show_add, .show_edit").hide();		
944			$(".show_edit").html('').hide();		
945				$(activeLoad).fadeIn();	
946						$(' .load_page').fadeIn(400,function(){   
947							   $('#overlay').fadeOut(function(){
948										 $('.widget .content').delay(500).css({'z-index':'','box-shadow':'','-moz-box-shadow':'','-webkit-box-shadow':''});
949								}); 
950					}); 
951		  ResetForm();
952		 });	
953	
954	// Calendar 
955		var date = new Date();
956		var d = date.getDate();
957		var m = date.getMonth();
958		var y = date.getFullYear();		
959		$('#calendar_google').fullCalendar({
960			header: {
961				left: 'title',
962				center: 'prev,next  ',
963				right: 'today month,basicWeek,agendaDay'
964			},
965		  buttonText: {
966				prev: 'Previous',
967				next: 'Next '
968			},
969			editable: true,
970			refetchEvents :'refetchEvents',
971			selectable: true,
972			selectHelper: true,
973			dayClick: function(date, allDay, jsEvent, view) {
974			var nDate=$.fullCalendar.formatDate( date, 'd' );
975			var dDate=$.fullCalendar.formatDate( date, 'dddd ' );
976			var fullDate=$.fullCalendar.formatDate( date, ' MMMM , yyyy' );
977			$('#calendar .fc-header-title h2').html('<div class="dateBox"><div class="nD">'+nDate+'</div><div class="dD">
977'+dDate+'<div class="fullD">'+fullDate+'</div><div></div><div class="clear"></div>');
978			},
979			events: '',		
980			eventClick: function(event) {
981				// opens events in a popup window
982				window.open(event.url, 'gcalevent', 'width=700,height=600');
983				return false;
984			},
985			loading: function(bool) {
986				if (bool) {
987					loading('loading');
988				}else{
989					unloading();
990				}
991			}
992		});
993              
994         
995	
996	// CHARTS        
997    $("table.chart").each(function() {
998        var colors = [];
999		var height=$(this).height();
1000        $("table.chart thead th:not(:first)").each(function() {
1001            colors.push($(this).css("color"));
1002        });
1003		
1004        $(this).graphTable({
1005            series: 'columns',
1006            position: 'replace',
1007			width: '96%',
1008            height: '423px',
1009            colors: colors
1010        }, { xaxis: {   tickSize: 1 },
1011			yaxis: {
1012				 max: 1000,
1013				min:0,
1014            },	series: {
1015				points: {show: true },
1016                lines: { show: true, fill: true, steps: false },
1017			}
1018        });
1019    });
1020    $("table.chart2").each(function() {
1021        var colors = [];
1022        $("table.chart thead th:not(:first)").each(function() {
1023            colors.push($(this).css("color"));
1024        });
1025        $(this).graphTable({
1026            series: 'columns',  position: 'replace',width: '100%', height: '300px', colors: colors
1027        }, {  xaxis: {  tickSize: 1,  },
1028			yaxis: {
1029				 max: 1000,
1030				min:200,
1031            }	,	series: {
1032				points: {show: true },
1033                lines: { show: true, fill: true, steps: false },
1034			}
1035        });
1036    });
1037	$("table.chart-pie").each(function() {
1038        var colors = [];
1039        $("table.chart-pie thead th:not(:first)").each(function() {
1040            colors.push($(this).css("color"));
1041        });
1042        $(this).graphTable({
1043            series: 'columns',
1044            position: 'replace',
1045			width : '100%',
1046            height: '300px',
1047            colors: colors
1048        }, {
1049		series: {
1050            pie: { 
1051                show: true,
1052				innerRadius: 0.5,
1053                radius: 1,
1054				tilt: 1,
1055                label: {
1056                    show: true,
1057                    radius: 1,
1058                    formatter: function(label, series){
1059                        return '<div id="tooltipPie"><b>'+label+'</b> : '+Math.round(series.percent)+'%</div>';
1060                    },
1061                    background: { opacity: 0 }
1062                }
1063            }
1064        },
1065        legend: {
1066            show: false
1067        },
1068			grid: {
1069				hoverable: false,
1070				autoHighlight: true
1071			}
1072        });
1073    });
1074	
1075
1076	$("table.chart-line").each(function() {
1077        var colors = [];
1078        $("table.chart-line thead th:not(:first)").each(function() {
1079            colors.push($(this).css("color"));
1080        });
1081        $(this).graphTable({
1082            series: 'columns', position: 'replace',width : '99%',height: '350px', colors: colors
1083        }, { xaxis: {  tickSize: 3 },
1084		series: {
1085				points: {show: true },
1086                lines: { show: true, fill: false, steps: false },
1087                bars: { show: false, barWidth: 0.6 },
1088			},
1089			yaxis: {
1090				 max: 1000,
1091				min:0,
1092            }
1093        });
1094    });
1095	$("table.chart-bar").each(function() {
1096        var colors = [];
1097        $("table.chart-bars thead th:not(:first)").each(function() {
1098            colors.push($(this).css("color"));
1099        });
1100        $(this).graphTable({
1101            series: 'columns',
1102            position: 'replace',
1103			width : '100%',
1104            height: '350px',
1105            colors: colors
1106        }, {
1107			xaxis: {
1108                tickSize: 1
1109            },
1110			series: {
1111				bars: {
1112					show: true,
1113					lineWidth: 1,
1114					barWidth: 0.7,
1115					fill: true,
1116					fillColor: null,
1117					align: "center",
1118					horizontal: false
1119				},
1120				lines: {
1121					show: false
1122				},
1123				points: {
1124					show: false
1125				}
1126			},
1127			yaxis: {
1128				max: null,
1129				autoscaleMargin: 0.02
1130            }
1131        });
1132    });
1133
1134
1135    function showTooltip(x, y, contents) {
1136        $('<div id="tooltip" >' + contents + '</div>').css({
1137            position: 'absolute',
1138            display: 'none',
1139            top: y -13,
1140            left: x + 10
1141        }).appendTo("body").show();
1142    }
1143
1144    var previousPoint = null;
1145    $(".chart_flot").bind("plothover", function(event, pos, item) {
1146												
1147        $("#x").text(pos.x);
1148        $("#y").text(pos.y);
1149
1150        if (item) {
1151            if (previousPoint != item.dataIndex) {
1152                previousPoint = item.dataIndex;
1153
1154			$(this).attr('title',item.series.label);
1155			$(this).trigger('click');
1156                $("#tooltip").remove();
1157                var x = item.datapoint[0],
1158                    y = item.datapoint[1];
1159
1160                showTooltip(item.pageX, item.pageY, "<b>" + item.series.label + "</b> : " + y);
1161            }
1162        }  else {
1163            $("#tooltip").remove();
1164            previousPoint = null;
1165        }
1166    });
1167	
1168	
1169	});		
1170
1171
1172	// Check browser fixbug
1173	var mybrowser=navigator.userAgent;
1174	if(mybrowser.indexOf('MSIE')>0){$(function() {	
1175			   $('.formEl_b fieldset').css('padding-top', '0');
1176				$('div.section label small').css('font-size', '10px');
1177				$('div.section  div .select_box').css({'margin-left':'-5px'});
1178				$('.iPhoneCheckContainer label').css({'padding-top':'6px'});
1179				$('.uibutton').css({'padding-top':'6px'});
1180				$('.uibutton.icon:before').css({'top':'1px'});
1181				$('.dataTables_wrapper .dataTables_length ').css({'margin-bottom':'10px'});
1182		});
1183	}
1184	if(mybrowser.indexOf('Firefox')>0){ $(function() {	
1185			   $('.formEl_b fieldset  legend').css('margin-bottom', '0px');	
1186			   $('table .custom-checkbox label').css('left', '3px');
1187		  });
1188	}	
1189	if(mybrowser.indexOf('Presto')>0){
1190		$('select').css('padding-top', '8px');
1191	}
1192	if(mybrowser.indexOf('Chrome')>0){$(function() {	
1193				 $('div.tab_content  ul.uibutton-group').css('margin-top', '-40px');
1194				  $('div.section  div .select_box').css({'margin-top':'0px','margin-left':'-2px'});
1195				  $('select').css('padding', '6px');
1196				  $('table .custom-checkbox label').css('left', '3px');
1197		});
1198	}		
1199	if(mybrowser.indexOf('Safari')>0){}		
1200
1201	  
1202	  function fileDialogCallback(callback,type,input){
1203			$('<div id="finder_'+callback+'"/>').elfinder({
1204				 url : 'components/elfinder/connectors/php/connector-'+type+'.php', editorCallback : function(url) { $('#'+input).val(url);
1205				},closeOnEditorCallback : true, dialog : { title : 'Biblioth&egrave;que',modal : true,width : 700 }
1206			})							   
1207	  }
1208	  function fileDialog(callback,type){
1209			$('<div id="finder_'+callback+'"/>').elfinder({
1210				  url : 'components/elfinder/connectors/php/connector-'+type+'.php',dialog : { title : 'Biblioth&egrave;que',modal : true,width : 700 }
1211			})							   
1212	  }
1213		  
1214		  
1215		function Delete(data,name,row,type,dataSet){
1216				var loadpage = dataSet.hdata(0);
1217				var url = dataSet.hdata(1);
1218				var table = dataSet.hdata(2);
1219				var data = data+"&tabel="+table;
1220		$.confirm({
1221		'title': '_DELETE DIALOG BOX','message': " <strong>YOU WANT TO DELETE </strong><br /><font color=red>' "+ name +" ' </font> ",'buttons': {'Yes': {'class': 'special',
1222		'action': function(){
1223					loading('Checking');
1224									 $('#preloader').html('Deleting...');
1225									 if(type==0){ row.slideUp(function(){   showSuccess('Success',5000); unloading(); }); return false;}
1226									  if(type==1){ row.slideUp(function(){   showSuccess('Success',5000); unloading(); }); return false;}
1227										setTimeout("unloading();",900); 		 
1228						 }},'No'	: {'class'	: ''}}});}
1229	  
1230	  
1231	  function ResetForm(){
1232		  $('form').each(function(index) {	  
1233			var form_id=$('form:eq('+index+')').attr('id');
1234				  if(form_id){ 
1235					  $('#'+form_id).get(0).reset(); 
1236					  $('#'+form_id).validationEngine('hideAll');
1237							  var editor=$('#'+form_id).find('#editor').attr('id');
1238							  if(editor){
1239								   $('#editor').cleditor()[0].clear();
1240							  }
1241				  } 
1242		  });	
1243	  }
1244
1245
1246	function hexFromRGB(r, g, b) {
1247		var hex = [
1248			r.toString( 16 ),
1249			g.toString( 16 ),
1250			b.toString( 16 )
1251		];
1252		$.each( hex, function( nr, val ) {
1253			if ( val.length === 1 ) {
1254				hex[ nr ] = "0" + val;
1255			}
1256		});
1257		return hex.join( "" ).toUpperCase();
1258	}
1259	function refreshSwatch() {
1260		var red = $( "#red" ).slider( "value" ),
1261			green = $( "#green" ).slider( "value" ),
1262			blue = $( "#blue" ).slider( "value" ),
1263			hex = hexFromRGB( red, green, blue );
1264		$( "#swatch" ).css( "background-color", "#" + hex );
1265	}
1266	
1267	  function showError(str,delay){	
1268		  if(delay){
1269			  $('#alertMessage').removeClass('success info warning').addClass('error').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500,function(){
1270					  $(this).delay(delay).animate({ opacity: 0,right: '-20'}, 500,function(){ $(this).hide(); });																														   																											
1271				});
1272			  return false;
1273		  }
1274			  	$('#alertMessage').addClass('error').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500);	
1275	  }
1276	  function showSuccess(str,delay){
1277		  if(delay){
1278			  $('#alertMessage').removeClass('error info warning').addClass('success').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500,function(){
1279					  $(this).delay(delay).animate({ opacity: 0,right: '-20'}, 500,function(){ $(this).hide(); });																														   																											
1280				});
1281			  return false;
1282		  }
1283			  $('#alertMessage').addClass('success').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500);	
1284	  }
1285	  function showWarning(str,delay){
1286		  if(delay){
1287			  $('#alertMessage').removeClass('error success  info').addClass('warning').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500,function(){
1288					  $(this).delay(delay).animate({ opacity: 0,right: '-20'}, 500,function(){ $(this).hide(); });																														   																											
1289				});
1290			  return false;
1291		  }
1292			  $('#alertMessage').addClass('warning').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500);	
1293	  }
1294	  function showInfo(str,delay){
1295		  if(delay){
1296			  $('#alertMessage').removeClass('error success  warning').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500,function(){
1297					  $(this).delay(delay).animate({ opacity: 0,right: '-20'}, 500,function(){ $(this).hide(); });																														   																											
1298				});
1299			  return false;
1300		  }
1301			  $('#alertMessage').addClass('info').html(str).stop(true,true).show().animate({ opacity: 1,right: '10'}, 500);	
1302	  }
1303	  
1304	  function loading(name,overlay) { 
1305			$('body').append('<div id="overlay"></div><div id="preloader">'+name+'..</div>');
1306					if(overlay==1){
1307					  $('#overlay').css('opacity',0.4).fadeIn(400,function(){  $('#preloader').fadeIn(400);	});
1308					  return  false;
1309			   }
1310			$('#preloader').fadeIn();	  
1311	   }
1312	   
1313	  function unloading() { 
1314			$('#preloader').fadeOut(400,function(){ $('#overlay').fadeOut(); $.fancybox.close(); }).remove();
1315	   }
1316	
1317	   function imgRow(){	
1318			  var maxrow=$('.albumpics').width();
1319			  if(maxrow){
1320					  maxItem= Math.floor(maxrow/160);
1321					  maxW=maxItem*160;
1322					  mL=(maxrow-maxW)/2;
1323					  $('.albumpics ul').css({
1324							  'width'	:	maxW	,
1325							  'marginLeft':mL
1326			   })
1327		  }}	
1328		  
1329		  function scrollmenu(){	
1330				  if($(window).scrollTop()>=1){			   
1331					$("#header ").css("z-index", "50"); 
1332				}else{
1333					$("#header ").css("z-index", "47"); 
1334			   }
1335		  }
1336
1337 function LResize(){	
1338  imgRow(); 
1339  scrollmenu();
1340	$("#shadowhead").show();
1341		if($(window).width()<=480) {
1342					$(' .albumImagePreview').show();
1343					$('.screen-msg').hide();
1344					$('.albumsList').hide();
1345		}
1346		if($(window).width()<=768){
1347			$('body').addClass('nobg');
1348			$('#content').css({ marginLeft: "70px" });	
1349			$('#main_menu').removeClass('main_menu').addClass('iconmenu');
1350					$('#main_menu li').each(function() {	  
1351							var title=$(this).find('b').text();
1352							$(this).find('a').attr('title',title);		
1353					});
1354					$('#main_menu li a').find('b').hide();	
1355					$('#main_menu li ').find('ul').hide();
1356		}else{
1357			$('body').removeClass('nobg').addClass('dashborad');
1358			$('#content').css({ marginLeft: "240px" });	
1359			$('#main_menu').removeClass('iconmenu ').addClass('main_menu');
1360			$('#main_menu li a').find('b').show();	
1361			}
1362		if($(window).width()>1024) {
1363				//	$('#main_menu').removeClass('iconmenu ').addClass('main_menu');
1364				//	$('#main_menu li a').find('b').show();	
1365		}
1366}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.