1var url = ""; 2var strRtn = ""; 3function getUrlParam(name) { 4 var name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]"); 5 var regexS = "[\\?&]"+name+"=([^&#]*)"; 6 var regex = new RegExp(regexS); 7 var results = regex.exec(window.location.href); 8 if (results == null) 9 return ""; 10 else 11 return results[1]; 12} 13function setSearchString(searchstring,deg,deg2){ 14 var deger=""; 15 var basla=searchstring.indexOf(deg,-1); 16 var son=-1; 17 if(basla>-1){ 18 son=searchstring.indexOf("&",basla); 19 if(son>-1){deger=searchstring.substring(basla+deg.length,son);}else{deger=searchstring.substring(basla+deg.length,searchstring.length);} 20 searchstring=searchstring.replace(deg+deger,deg+"="+deg2); 21 }else{ 22 if((searchstring!="")||searchstring.indexOf("?",0)==-1){searchstring=searchstring+"&"}else{searchstring="?"} 23 searchstring=searchstring+deg+"="+deg2; 24 } 25 return searchstring; 26} 27function urlencode( str ) { 28 var ret = str; 29 ret = ret.toString(); 30 ret = encodeURIComponent(ret); 31 ret = ret.replace(/%20/g, '+'); 32 return ret; 33} 34function PopWindow(popname){ 35 var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 36 var TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 37 window.open("http://"+this.strDomainName+this.strVirtualPath+"popup.htm",popname,"toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=1,height=1,left = "+LeftPosition+",top = "+TopPosition); 38} 39function NewWindow(url,wx,hx){ 40 var LeftPosition = (screen.width) ? (screen.width-wx)/2 : 0; 41 var TopPosition = (screen.height) ? (screen.height-hx)/2 : 0; 42 window.open(url,"new","toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+wx+",height="+hx+",left = "+LeftPosition+",top = "+TopPosition); 43} 44 45function addToCart(product_vrid, field_id,server_back,server_referer){ 46 var quant; 47 if(document.getElementById("products_to_alter_" + field_id)){ 48 quant = document.getElementById("products_to_alter_" + field_id).value; 49 }else{ 50 quant = 1; 51 } 52 if(quant!=0){ 53 document.location = this.strHomePage+"?mod=cart&action=add&referer="+urlencode(server_back)+"&product_vrid=" + product_vrid + "&quant=" + quant; 54 } 55} 56function addVariantToCart(server_back,server_referer) { 57 58} 59function UpdateCart(product_vrid, field_id){ 60 var quant = document.getElementById("products_to_alter_" + field_id).value; 61 if(quant!=0){ 62 document.location = this.strHomePage+"?mod=cart&action=update&product_vrid=" + product_vrid + "&quant="+quant; 63 } 64} 65function deleteFromCart(product_vrid, field_id){ 66 var quant = document.getElementById("products_to_alter_" + field_id).value; 67 if(quant!=0){ 68 document.location = this.strHomePage+"?mod=cart&action=delete&product_vrid=" + product_vrid + "&quant=" + quant; 69 } 70} 71 72function emptyChart(){return true;} 73 74jQuery(document).ready(function() { 75 jQuery('#chaptaimg').click(function(){� var now = new Date(),imgsrc=jQuery(this).attr('src'); � jQuery(this).attr('src',imgsrc.split('?')[0]+'?x='+now.toUTCString());� }); 76 jQuery('.datepicker').datepicker({ 77 showOtherMonths: false, 78 selectOtherMonths: true, 79 changeMonth: true, 80 changeYear: true, 81 regional:'tr', 82 altFormat:'dd/mm/yyyy', 83 gotoCurrent:true, 84 yearRange:"1940" 85 }); 86 jQuery('.datepicker').mask("99/99/9999"); 87 jQuery('.mobilephone').mask("09999999999"); 88 $(".thickbox").colorbox(); 89 90 /* Search */ 91 $('#frmMiniSearch > input[name=\'q\']').bind('keydown', function(e) { 92 if (e.keyCode==13) { 93 if($(this).val()==''){return false;} 94 $('#frmMiniSearch').submit(); 95 } 96 }); 97 $('.button-search').bind('click', function() { 98 if($('#frmMiniSearch > input[name=\'q\']').val()!=''){ 99 $('#frmMiniSearch').submit(); 100 } 101 }); 102 103 104 /* Ajax Cart */ 105 $('#cart > .heading a').live('click', function() { 106 $('#cart').addClass('active'); 107 108 $('#cart').live('mouseleave', function() { 109 $(this).removeClass('active'); 110 }); 111 }); 112 113 /* Mega Menu */ 114 $('#menu ul > li > a + div').each(function(index, element) { 115 // IE6 & IE7 Fixes 116 if ($.browser.msie && ($.browser.version == 7 || $.browser.version == 6)) { 117 var category = $(element).find('a'); 118 var columns = $(element).find('ul').length; 119 120 $(element).css('width', (columns * 143) + 'px'); 121 $(element).find('ul').css('float', 'left'); 122 } 123 124 var menu = $('#menu').offset(); 125 var dropdown = $(this).parent().offset(); 126 127 i = (dropdown.left + $(this).outerWidth()) - (menu.left + $('#menu').outerWidth()); 128 129 if (i > 0) { 130 $(this).css('margin-left', '-' + (i + 5) + 'px'); 131 } 132 }); 133 134 // IE6 & IE7 Fixes 135 if ($.browser.msie) { 136 if ($.browser.version <= 6) { 137 $('#column-left + #column-right + #content, #column-left + #content').css('margin-left', '195px'); 138 139 $('#column-right + #content').css('margin-right', '195px'); 140 141 $('.box-category ul li a.active + ul').css('display', 'block'); 142 } 143 144 if ($.browser.version <= 7) { 145 $('#menu > ul > li').bind('mouseover', function() { 146 $(this).addClass('active'); 147 }); 148 149 $('#menu > ul > li').bind('mouseout', function() { 150 $(this).removeClass('active'); 151 }); 152 } 153 } 154 155 $('.success img, .warning img, .attention img, .information img').live('click', function() { 156 $(this).parent().fadeOut('slow', function() { 157 $(this).remove(); 158 }); 159 }); 160 161 //oceana 162 163 $('.ab').hover(function(){ 164 $(this).prev('a').toggleClass('active'); 165 }); 166 $('.menuarrow').click(function () { 167 $('.menu-mobile').slideToggle('slow'); 168 }); 169 $('.mobile-fpart .column h3').click(function () { 170 $(this).next('.mobile-fpart .column ul').slideToggle('slow'); 171 }); 172 173 if (!$.browser.opera) { 174 $('select.select').each(function(){ 175 var title = $(this).attr('title'); 176 if( $('option:selected', this).val() != '' ) title = $('option:selected',this).text(); 177 $(this) 178 .css({'z-index':10,'opacity':0,'-khtml-appearance':'none'}) 179 .after('<span class="select">' + title + '</span>') 180 .change(function(){ 181 val = $('option:selected',this).text(); 182 $(this).next().text(val); 183 }) 184 }); 185 };�� /* Dropdowns for language and currency */ 186 $('.dropd').click(function() { 187 $(this).find('.options').slideDown('fast'); 188 $(this).addClass('active'); 189 190 $(this).bind('mouseleave', function() {
191 $(this).find('.options').slideUp('fast'); 192 $(this).removeClass('active'); 193 }); 194 }); 195 196 /*`Scroll to top */ 197 $(window).scroll(function () { 198 if ($(this).scrollTop() > 100) { 199 $('#back-top').fadeIn(); 200 } else { 201 $('#back-top').fadeOut(); 202 } 203 });� $('.backtotop').bind('click', function() { 204 $('html, body').animate({scrollTop:0}, 'slow'); 205 }); 206 /*Menu for mobile devices*/ 207 208 /*Top Menu*/ 209 $('h3.menuarrow').click(function () { 210 $(this).toggleClass("active"); 211 $('ul.menumob').slideToggle('medium'); 212 }); 213 214 /*Footer Menu*/ 215 $(".column .header").click(function () { 216 $(this).toggleClass("active"); 217 $(this).parent().find(".content").slideToggle('medium'); 218 });� $('#tabsa a').tabsa();� if(strRtn!=''){ 219 jQuery.msgBox({ 220 title:document.title, 221 content:strRtn, 222 type:'info', 223 autoClose:true, 224 timeOut:10000 225 }); � }� jQuery('#search input').autocomplete({ 226 //source: "ajax.asp?action=products", 227 source: function( request, response ) { 228 var responsedata = $.ajax({ 229 type: "POST", 230 url: "ajax.asp?action=products", 231 dataType: "json", 232 contentType: "application/x-www-form-urlencoded; charset=utf-8", 233 data: { 234 term: request.term 235 } 236 }); 237 responsedata.fail(function( jqXHR, textStatus ) { 238 if (jqXHR.responseCode) 239 if(console) { 240 console.log( jqXHR.responseCode ); 241 } 242 }); 243 responsedata.done(function( data ) { 244 response(data); 245 }); 246 responsedata.always(function(data) { 247 //response(data); 248 }); 249 }, 250 minLength: 0, 251 max: 10, 252 scroll: true, 253 highlight: true, 254 cacheLength:0, 255 select: function( event, ui ) { 256 window.location.href='index.asp?mod=product&cat_id=' + ui.item.cat_id+'&product_id='+ui.item.product_id; 257 return true; 258 } 259 });�});
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.