1/* ---------------------------------------------------------- 2 3 Project : TOBB BEM | www.tobb.org.tr | Oskon Abdraimov 4 5 Edit : 25.02.2011 6 7 ---------------------------------------------------------- */ 8 9$(function(){ 10 $('#navigation-container .navigation li').dropdown(); 11 $('a.colorbox').colorbox({innerWidth:"75%"}); 12 13 $('.datepicker').datepicker(); 14 15 if($('#s4-ribbonrow').hasClass('s4-ribbonhidetitle')){$(this).css('height','25px');} 16 17 /* LANGUAGE & LOGO BIND */ 18 var substrURL = window.location.pathname.split('/'), 19 sc = substrURL.length; 20 $('#header-container h1').attr('class','tr'); 21 for(i=0;i<=sc-1;i++){ 22 if(substrURL[i] == "Eng"){ 23 $('#wrapper').addClass('eng'); 24 $('#header-container h1').attr('class','eng'); 25 $('#footer-bottom .right').html('All rights reserved.© 2010 - 2022 The Union of Chambers and Commodity Exchanges of Türkiye<br>Dumlupınar Bulvarı No:252 (Eskiþehir Yolu 9.Km) 06530 / Ankara / Türkiye <br>Phone:+90(312) 218 20 00 (PBX) Fax: +90(312) 219 40 90-93<br/>'); 26 $('#search-container b').html('SEARCH'); 27 $('#header-container .horizontal-menu a').each(function(){ 28 var lc = $(this).html(); 29 if(lc == 'ANA SAYFA'){$(this).text('MAIN PAGE');$(this).attr('href','/Sayfalar/Eng/AnaSayfa.php');} 30 if($(this).attr('href') == '/Sayfalar/Iletisim.aspx'){$(this).text('CONTACT');$(this).attr('href','/Sayfalar/Eng/Iletisim.aspx');} 31 }); 32 33 var sH = $('.eng #subpage-header h2'), 34 mH = $('.eng .subpage-menu h3'), 35 nH = ''; 36 switch(substrURL[1]){ 37 case 'Baskanimiz': 38 nH = 'President'; 39 break; 40 case 'ABDID': 41 nH = 'Department of European Union and Foregin Relations'; 42 break; 43 case 'HukukMusavirligi': 44 nH = 'Office of Legal Counsellor'; 45 break; 46 case 'BasinMusavirligi': 47 nH = 'Press Office'; 48 break; 49 case 'YayinMudurlugu': 50 nH = 'Publications Division'; 51 break; 52 case 'KobiArastirma': 53 nH = 'Division of SME Research and Consultancy Center'; 54 break; 55 case 'SanayiMudurlugu': 56 nH = 'Industry Division'; 57 break; 58 case 'EgitimveKaliteMudurlugu': 59 nH = 'Education and Quality Division'; 60 break; 61 case 'KamuPolitikalariMudurlugu': 62 nH = 'Public Policies Division'; 63 break; 64 case 'MaliveSosyalPolitikalar': 65 nH = 'Fiscal and Social Policies Division'; 66 break; 67 case 'TurkiyeSektorMeclisleri': 68 nH = 'The Division of Industry Council of Türkiye'; 69 break; 70 case 'FuarlarMudurlugu': 71 nH = 'Fairs Division'; 72 break; 73 case 'SigortacilikMudurlugu': 74 nH = 'Insurance Division'; 75 break; 76 case 'Girisimcilik': 77 nH = 'Entrepreneurship Division'; 78 break; 79 case 'OdalarBorsalarDairesi': 80 nH = 'Chambers and Commodity Exchanges Department'; 81 break; 82 case 'OdalarMudurlugu': 83 nH = 'Chambers Division'; 84 break; 85 case 'BorsalarMudurlugu': 86 nH = 'Commodity Exchanges Division'; 87 break; 88 case 'TicaretTirDairesi': 89 nH = 'Trade and TIR Department'; 90 break; 91 case 'TIRveATAKarnesi': 92 nH = 'TIR and ATA Carnets Division'; 93 break; 94 case 'BilgiHizmetleri': 95 nH = 'Information Services Department'; 96 break; 97 case 'BilgiIslemMudurlugu': 98 nH = 'IT Division'; 99 break; 100 case 'BilgiErisimMudurlugu': 101 nH = 'Information Retrieval Division'; 102 break; 103 case 'YazilimMudurlugu': 104 nH = 'Software Division'; 105 break; 106 case 'TurkiyeTicaretSicilGazetesi': 107 nH = 'Turkish Trade Registry Gazette'; 108 break; 109 case 'DEID': 110 nH = 'Foreign Economic Relations Department'; 111 break; 112 case 'UluslararasiIlýskiler': 113 nH = 'International Relations Division'; 114 break; 115 case 'DisTicaretMudurlugu': 116 nH = 'Foreign Trade Division'; 117 break; 118 case 'AvrupaBirligiDairesi': 119 nH = 'European Union Department'; 120 break; 121 case 'SatinAlmaveLevazim': 122 nH = 'Purchase and Supplies Division'; 123 break; 124 case 'IcHizmetlerMudurlugu': 125 nH = 'Internal Services Division'; 126 break; 127 case 'InsaatveEmlakIsleri': 128 nH = 'Construction and Property Affairs Division'; 129 break; 130 case 'MuhasebeMudurlugu': 131 nH = 'Accounting Division'; 132 break; 133 case 'FinansmanMudurlugu': 134 nH = 'Finance Division'; 135 break; 136 case 'PersonelMudurlugu': 137 nH = 'Personnel Division'; 138 break; 139 case 'TOBBKadinGirisimcilerKurulu': 140 nH = 'Woman Entrepreneurs'; 141 break; 142 case 'TOBBGencGirisimcilerKurulu': 143 nH = 'Young Entrepreneurs'; 144 break; 145 case 'ProtokolveOrganizasyon': 146 nH = 'Protocol and Organization Division'; 147 break; 148 case 'GlobalStandartlar': 149 nH = 'Global Standards Division'; 150 break; 151 case 'UluslararasiIliskiler': 152 nH = 'International Relationships Division'; 153 break; 154 case 'GatewayToTurkey': 155 nH = 'Gateway To Türkiye'; 156 break; 157 case 'IstiraklerMudurlugu': 158 nH = 'Affiliates Division'; 159 break; 160 case 'YonetimKurulu': 161 nH = 'Board of TOBB'; 162 break; 163 } 164 sH.html(nH); 165 mH.html(nH); 166 } 167 } 168 169 /* Logo Click Control */ 170 $('#header-container h1').bind('click',function(){$('#wrapper').hasClass('eng') ? window.location = '/Sayfalar/Eng/AnaSayfa.php' : window.location = '../index.php';}); 171 172 /* SubPage Control */ 173 if(substrURL[1] != 'Sayfalar'){$('#subpage-header').removeClass('hidden');} 174 175 /* Language Control */ 176 $('.lang-container input').bind('click',function(){ 177 if( $(this).val() == 'ENGLISH' ){OnSelectionChange(1033);} 178 else if( $(this).val() == 'TÃRKÃE' ){OnSelectionChange(1055);} 179 }); 180 181 /* NEWS TABLE */ 182 $('.news-table tr:odd').addClass('grid-row'); 183 184 /* FLASH NEWS */ 185 if($('#flash-news-container').length == 0){$('#content-links-container').removeClass('hidden');} 186 var newsInterval = 5000; 187 $('.fn-photo a:first').show(); 188 $('.fn-content > div:first').show(); 189 $('.fn-thumbs a').removeAttr('class'); 190 $('.fn-thumbs a:first').addClass('current'); 191 $('.fn-thumbs a:last').css('margin-right','0px'); 192 $('.fn-thumbs a').each(function(){ 193 $(this).bind('click',function(){ 194 var index = $(this).prevAll().length; 195 $('.fn-thumbs a').removeAttr('class'); 196 $('.fn-content > div').hide(); 197 $('.fn-photo a').hide(); 198 $(this).addClass('current'); 199 $('.fn-content > div:eq('+index+')').fadeIn(); 200 $('.fn-photo a:eq('+index+')').fadeIn(); 201 return false; 202 }); 203 }); 204 205 function slideNews(e){
206 var currentIndex = $('.fn-thumbs a.current').prevAll().length; 207 currentIndex++; 208 if(currentIndex == 1 && e == 0){currentIndex = 2;} 209 slide = setInterval(function(){ 210 if(e == 1){currentIndex++;e=0;} 211 if(currentIndex == $('.fn-photo a').length + 1 ){currentIndex = 1;} 212 $('.fn-thumbs a').removeAttr('class'); 213 $('.fn-content > div').hide(); 214 $('.fn-photo a').hide(); 215 $('.fn-thumbs a:nth-child('+currentIndex+')').attr('class','current'); 216 $('.fn-content > div:nth-child('+currentIndex+')').fadeIn(); 217 $('.fn-photo a:nth-child('+currentIndex+')').fadeIn(); 218 currentIndex++; 219 },newsInterval); 220 } 221 222 $('.flash-news').mouseenter(function(){ 223 clearInterval(slide); 224 }).mouseleave(function(){ 225 clearInterval(slide); 226 currentIndex=0; 227 slideNews(1); 228 }); 229 slideNews(0); 230 231 /* ACCORDION */ 232 $('.accordion-nav > li').each(function(){ 233 $(' > a', this).bind('click',function(){ 234 if( $(this).attr('href') == '#'){ 235 if($(this).attr('class') == 'current') 236 { 237 $(this).parent().find('ul').slideUp(500); 238 $(this).removeAttr('class'); 239 } 240 else 241 { 242 $('.accordion-nav ul').slideUp(); 243 $('.accordion-nav a').removeAttr('class'); 244 $(this).addClass('current'); 245 $(this).parent().find('ul').slideDown(500); 246 } 247 return false; 248 } 249 }); 250 }); 251 252 /* CAROUSEL */ 253 $('.carousel-contents img').removeAttr('style'); 254 var contentCount = $('.carousel-contents > div').size(); 255 var newWidth = contentCount * 142; 256 var newXPos = 0; 257 var position = 0; /* $('.carousel-contents').position().left */ 258 $('.carousel-contents').css('width',newWidth); 259 if(contentCount <= 1){ 260 $('.carousel .left a').addClass('passive'); 261 $('.carousel .right a').addClass('passive'); 262 } 263 else 264 { 265 $('.carousel .left a').addClass('passive'); 266 } 267 268 $('.carousel-nav a').bind('click',function(){ 269 var direction = $(this).attr('rel'); 270 271 if(direction == 'right') 272 { 273 if(newXPos != -(newWidth - 142)) 274 { 275 newXPos = newXPos - 142; 276 $('.carousel-contents').animate({left:''+newXPos+'px'},500); 277 $('.carousel .left a').removeAttr('class'); 278 if(newXPos == -(newWidth - 142)) 279 { 280 $(this).addClass('passive'); 281 return false; 282 } 283 } 284 } 285 else 286 { 287 if(newXPos != 0) 288 { 289 newXPos = newXPos + 142; 290 $('.carousel-contents').animate({left:''+newXPos+'px'},500); 291 $('.carousel .right a').removeAttr('class'); 292 if(newXPos == 0) 293 { 294 $(this).addClass('passive'); 295 return false; 296 } 297 } 298 } 299 return false; 300 }); 301 302 /* TAB */ 303 $('.announcement-table img').removeAttr('style'); 304 var tabCount = $('.tab-nav a').size(); 305 $('.tab-nav a:first').addClass('current'); 306 $('.content-container div div:first').show(); 307 $('.tab-nav a').bind('click',function(){ 308 var no = $(this).attr('id').slice(3,4); 309 $('.content-container div div').hide(); 310 $('.tab-nav a').removeClass('current'); 311 $(this).addClass('current'); 312 $('.content-container div#tc-'+no+'').fadeIn(); 313 $('.content-container div#tc-'+no+' div').show(); 314 return false; 315 }); 316 317 /* BANNERS */ 318 $('.banner-container').each(function(){$('div:first',this).addClass('active');}); 319 320 function bannerSwitch(){ 321 bannerInterval = setInterval(function(){ 322 $('.banner-container').each(function(){ 323 if($('img',this).length > 1){ 324 var $active = $('div.active',this); 325 if ( $active.length == 0 ){ $active = $('div:last',this);} 326 var $next = $active.next().length ? $active.next() : $('div:first',this); 327 $active.addClass('last-active'); 328 $next.css({opacity: 0.0}).addClass('active').animate({opacity: 1.0}, 1000, function(){ 329 $active.removeClass('active last-active'); 330 }); 331 } 332 else{return false;} 333 }); 334 },5000); 335 } 336 337 if($('.banner-container div').length > 1){bannerSwitch();} 338 339 /* HEADER */ 340 if($('#header img').length){$('#header').removeAttr('class');} 341 342 /* LITTLE BANNERS */ 343 var bannerInterval = 6000; 344 $('.banner-box div:first').addClass('current'); 345 function autoBannerSlide(){ 346 bannerSlide = setInterval(function(){ 347 $thechosenone = $('.banner-box .current'); 348 $thechosenone.next().css('left','282px'); 349 $thechosenone.next().animate({left:'0px'},500); 350 $thechosenone.animate({left:'-282px'},500); 351 $thechosenone.removeClass('current'); 352 $thechosenone.addClass('last-current'); 353 $('.banner-box .last-current').next().addClass('current'); 354 $('.banner-box .last-current').removeClass('last-current'); 355 $('.banner-box div:first').insertAfter('.banner-box div:last'); 356 }, bannerInterval); 357 } 358 $('.banners-container').mouseenter(function(){ 359 clearInterval(bannerSlide); 360 }).mouseleave(function(){ 361 clearInterval(bannerSlide); 362 autoBannerSlide(); 363 }); 364 365 if($('.banners-container .banner-box div').length > 1){ 366 autoBannerSlide(); 367 $('.banners-container .nav a').each(function(){ 368 $(this).bind('click',function(){ 369 $thechosenone = $('.banner-box .current'); 370 if($(this).attr('class') == 'prev'){ 371 $thechosenone.next().css('left','282px'); 372 $thechosenone.next().animate({left:'0px'},500); 373 $thechosenone.animate({left:'-282px'},500); 374 $thechosenone.removeClass('current'); 375 $thechosenone.addClass('last-current'); 376 $('.banner-box .last-current').next().addClass('current'); 377 $('.banner-box .last-current').removeClass('last-current'); 378 $('.banner-box div:first').insertAfter('.banner-box div:last'); 379 }else{ 380 $('.banner-box div:last').insertBefore('.banner-box div:first'); 381 $thechosenone.prev().css('left','-282px'); 382 $thechosenone.prev().animate({left:'0px'},500); 383 $thechosenone.animate({left:'282px'},500); 384 $thechosenone.removeClass('current'); 385 $thechosenone.addClass('last-current'); 386 $('.banner-box .last-current').prev().addClass('current'); 387 $('.banner-box .last-current').removeClass('last-current'); 388 } 389 return false; 390 }); 391 }); 392 }else{$('.banners-container .nav').hide();} 393 394 /* PRINT VIEW */ 395 function cl(i){ 396 if (i<10){ 397 i="0"+i; 398 } 399 return i; 400 } 401 402 var weekday=new Array(7); 403 weekday[0]="Pazar"; 404 weekday[1]="Pazartesi"; 405 weekday[2]="Salý"; 406 weekday[3]="Ãarþamba"; 407 weekday[4]="Perþembe"; 408 weekday[5]="Cuma"; 409 weekday[6]="Cumartesi"; 410 411 $(".print").bind('click',function(){ 412 var pathname = window.location; 413 if($('.thumbnails-container').length){ 414 var tc = $('.thumbnails-container').html(); 415 } 416 else { tc = ' '; } 417 418 if($('.attachments-container').length){ 419 var ac = $('.attachments-container').html(); 420 } 421 else { ac = ' '; } 422 423 var thumbnails = '<div>'+ tc +'</div>'; 424 var attachments = '<div>'+ ac +'</div>'; 425 var myDate = new Date(); 426 var date = cl(myDate.getDate())+ '.' + cl(myDate.getMonth()+1) + '.' + myDate.getFullYear() +' '+ weekday[myDate.getDay()] + ' - '+ cl(myDate.getHours()) +':'+ cl(myDate.getMinutes()) +':'+ cl(myDate.getSeconds()); 427 var contact = 'Dumlupýnar Bulvarý No:252 (Eskiþehir Yolu 9.Km) 06530 /ANKARA <br/>Tel : +90(312) 218 20 00 (PBX) <br/>Faks : +90(312) 219 40 90-93 <br/> E-posta : [email protected]'; 428 var winObj = window.open('','RecipeWindow','width=685,height=600,scrollbars=yes,toolbar=yes'); 429 var html = '<html><head><title>TOBB ::: Türkiye Odalar ve Borsalar Birliği</title><link href="/Style Library/style/tobb_print.css" rel="stylesheet" type="text/css" /></head><body><div class="content-container"><p align="center"><img src="../Style%20Library/images/tobb_logo.jpg"/></p><br/><div>' + $('#left-column').html() + '</div><br/><br/>'+ thumbnails +'<br/>'+ attachments +'<br/>'+ date +'<p class="page-url"><b>URL : </b> '+pathname+' </p><p class="page-url">'+contact+'</p></div></body></html>'; 430 winObj.document.open(); 431 winObj.document.write(html); 432 winObj.document.close(); 433 return false; 434 }); 435 436 /* SEARCH FIX */ 437 $('.srch-gosearchimg').attr('src','/Style%20Library/images/blank.gif'); 438 $('.srch-gosearchimg').removeAttr('onmouseout'); 439 $('.srch-gosearchimg').removeAttr('onmouseover'); 440 441 /* LIVE FEED FIX */ 442 var liveFeedInterval = 5000; 443 var liveFeedContent = $('#live-feed-container div > div').html(); 444 $('#live-feed-container').html(liveFeedContent); 445 $('#live-feed .right > div').hide('fast'); 446 $('#live-feed .right >
446 div:first').fadeIn(); 447 $('#live-feed .right > div:first').addClass('current'); 448 function autoLiveFeed(){ 449 liveFeedSlide = setInterval(function(){ 450 $thechosenone = $('#live-feed .right > div.current'); 451 $thechosenone.hide(); 452 $thechosenone.next().fadeIn(); 453 $thechosenone.removeClass('current'); 454 $thechosenone.addClass('last-current'); 455 $('#live-feed .right > div.last-current').next().addClass('current'); 456 $('#live-feed .right > div.last-current').removeClass('last-current'); 457 $('#live-feed .right > div:first').insertAfter('#live-feed .right > div:last'); 458 }, liveFeedInterval); 459 } 460 461 if($('#live-feed .right > div').length > 1){autoLiveFeed();} 462 463 /* TITLE NAV */ 464 $('#footer-top .navigation').each(function(){ 465 var h = $(this).height(); 466 if(h > 211) 467 { 468 var p = Math.ceil(h/211); 469 $(this).menuSlice(p,h,211); 470 } 471 }); 472 473 474 /* MEETING NAV */ 475 var pI = 1; 476 var count = $('#meeting-box .meeting-container div').size(); 477 if(count > 1){ 478 $('.meeting-container div:first').addClass('current'); 479 $('#meeting-box .title').append('<a href="#" class="down"></a><a href="#" class="up"></a><span class="right"><span class="pI">1</span> / '+ count +'</span>'); 480 $('.meeting-container div:not(.current)').hide(); 481 } 482 483 function rotateSwitch(){ 484 meetingInterval = setInterval(function(){ 485 meetingSlide('up'); 486 },4000); 487 } 488 489 $('#meeting-box').hover(function(){clearInterval(meetingInterval);},function(){rotateSwitch();}); 490 $('#meeting-box .title a').each(function(){ 491 $(this).bind('click',function(){ 492 clearInterval(meetingInterval); 493 pos = $(this).attr('class'); 494 meetingSlide(pos); 495 return false; 496 }); 497 }); 498 499 function meetingSlide(pos){ 500 if(pos == 'down') 501 { 502 pI--; 503 if(pI <= 0) pI = count; 504 $('.meeting-container div.current').hide().removeClass('current'); 505 $('.meeting-container div:nth-child('+pI+')').addClass('current').fadeIn(); 506 $('#meeting-box .title .pI').html(pI); 507 } 508 else 509 { 510 pI++; 511 if(pI > count) pI = 1; 512 $('.meeting-container div.current').hide().removeClass('current'); 513 $('.meeting-container div:nth-child('+pI+')').addClass('current').fadeIn(); 514 $('#meeting-box .title .pI').html(pI); 515 } 516 } 517 if($('.meeting-container div').length > 1){ rotateSwitch(); } 518 519 /* MEETING SEARCH */ 520 $('.treeview-container .sectorname').live('click',function(){ 521 $(this).parent().find('.meeting-container').slideToggle(); 522 return false; 523 }); 524 525 /* SELECT ALL */ 526 $('.check-master input').bind('click',function(){ 527 var checked_status = this.checked; 528 $(".check-cell input").each(function(){this.checked = checked_status;}); 529 }); 530 531 /* e-SERVICES */ 532 $('#e-services h3').html('<span>'+ $('#e-services h3').text() +'</span>'); 533 $('#e-services h3 span').bind('click',function(){ 534 window.location='/Sayfalar/Hizmetler.php'; 535 }); 536 537 if($('.pt-container').length){ 538 var newPageTitle = $('.pt-container input').val(); 539 if(newPageTitle == ""){$('.subpage-content h3.title').html('Ãye Arama');}else{$('.subpage-content h3.title').html(newPageTitle);} 540 } 541 542 /* USER NAME */ 543 var nameStr = $('#RibbonContainer-TabRowRight .s4-trc-container-menu a span').text().split('|'); 544 if(nameStr.length > 1){ 545 $('#RibbonContainer-TabRowRight .s4-trc-container-menu a span').text('TOBB | '+ nameStr[2] ); 546 } 547 548 /* PAGE TOP */ 549 $('#left-column .box .link').bind('click',function(){ 550 $( 'html, body' ).animate( { scrollTop: 0 }, 0 ); 551 }); 552 553 /* SHARE */ 554 $('#content-links-container a').each(function(){ 555 $(this).bind('click',function(){ 556 var u = window.location; 557 var y = $('.title').html(); 558 var t = $('title').text(); 559 if (t == undefined) { 560 var t = 'TOBB'; 561 } 562 if (y == t) { 563 var y = ' '; 564 } 565 var d = $('#detay').val(); 566 if (d == undefined) { 567 var d = 'Türkiye Odalar ve Borsalar BirliÄi (www.tobb.org.tr)'; 568 } 569 var f = $('#fbres').val(); 570 if (f == undefined) { 571 var f = 'http://www.tobb.org.tr/Resimler/fbnull.jpg'; 572 } 573 574 var s = $(this).attr('class'); 575 576 if(s == "facebook"){ 577 window.open('http://www.facebook.com/sharer.php?s=100&p[url]='+encodeURIComponent(u)+'&p[title]='+encodeURIComponent(t)+'&p[summary]='+encodeURIComponent(d)+'&p[images][0]='+f,'sharer','toolbar=1,status=1,scroll=1,width=980,height=480' 578 579 580 581 ); 582 return false; 583 } 584 else if(s == "twitter"){ 585 window.open('http://www.addtoany.com/add_to/twitter?linkurl='+encodeURIComponent(u)+'&linkname='+encodeURIComponent(t),'sharer','toolbar=1,status=1,scroll=1,width=980,height=480'); 586 return false; 587 } 588 }); 589 }); 590 591 /* RIBBON CONTROL */ 592 $('#s4-ribbonrow #RibbonContainer').length ? $('#s4-ribbonrow').show() : $('#s4-ribbonrow').hide(); 593 594 595 var substrURL2 = window.location.pathname.split('../index.html'); 596 var sc2 = substrURL2.length; 597 $('#header-container h1').attr('class','tr'); 598 for(i=0;i<=sc2-1;i++){ 599 if(substrURL2[i] == "Admin.aspx"){ 600 $('.s4-trc-container-menu').show(); 601 } 602 else 603 { 604 $('.s4-trc-container-menu').hide(); 605 } 606 } 607 608 if( $('.ms-siteactionsmenu span').length > 0){$('.s4-trc-container-menu').show();} 609 610 /*$('.s4-trc-container-menu').show();*/ 611}); 612 613$.fn.menuSlice = function(p,h, mh){ 614 var menuPos = 0; 615 var newPos = 0; 616 var menuH = mh; 617 618 $(this).parent().parent().prev('.title').append('<a href="#" class="down"></a><a href="#" class="up"></a>'); 619 620 $('.down').bind('click',function(){ 621 var currentPos = $(this).parent().next().find('.navigation').position().top; 622 $listMenu = $(this).parent().next().find('.navigation'); 623 currentPos = currentPos - menuH; 624 if(currentPos >= -h){ 625 $listMenu.animate({top: currentPos},500); 626 } 627 return false; 628 }); 629 630 $('.up').bind('click',function(){ 631 var currentPos = $(this).parent().next().find('.navigation').position().top; 632 $listMenu = $(this).parent().next().find('.navigation'); 633 currentPos = currentPos + menuH; 634 if(currentPos <= 0){ 635 $listMenu.animate({top: currentPos},500); 636 } 637 return false; 638 }); 639}; 640 641$.fn.dropdown = function() { 642 $(this).hover(function(){ 643 $(this).addClass("hover"); 644 $('> .dir',this).addClass("open"); 645 $('ul:first',this).css('visibility', 'visible'); 646 647 },function(){ 648 $(this).removeClass("hover"); 649 $('.open',this).removeClass("open"); 650 $('ul:first',this).css('visibility', 'hidden'); 651 }); 652}; 653 654 655function OpenMapDialog(itemId) 656{ 657 var options = SP.UI.$create_DialogOptions(); 658 options.url = "/SitePages/ZiyaretGoruntuleri.aspx?rid=" + itemId.toString(); 659 options.width = 1000; 660 options.height = 650; 661 SP.UI.ModalDialog.showModalDialog(options); 662} 663 664 $.datepicker.regional['tr'] = { 665 closeText: 'kapat', 666 prevText: '<geri', 667 nextText: 'ileri>', 668 currentText: 'bugün', 669 monthNames: ['Ocak','Åubat','Mart','Nisan','Mayıs','Haziran', 670 'Temmuz','AÄustos','Eylül','Ekim','Kasım','Aralık'], 671 monthNamesShort: ['Oca','Åub','Mar','Nis','May','Haz', 672 'Tem','AÄu','Eyl','Eki','Kas','Ara'], 673 dayNames: ['Pazar','Pazartesi','Salı','ÃarÅamba','PerÅembe','Cuma','Cumartesi'], 674 dayNamesShort: ['Pz','Pt','Sa','Ãa','Pe','Cu','Ct'], 675 dayNamesMin: ['Pz','Pt','Sa','Ãa','Pe','Cu','Ct'], 676 weekHeader: 'Hf', 677 dateFormat: 'dd.mm.yy', 678 firstDay: 1, 679 isRTL: false, 680 showMonthAfterYear: false, 681 yearSuffix: ''}; 682 $.datepicker.setDefaults($.datepicker.regional['tr']);
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.