1var httpobject = []; 2var requestcount = 0; 3 4var numRows = 0; 5var maxRows = 4; 6 7var rowheights = []; 8 9function newHttpReq() 10{ 11 var newRequest = null; 12 13 try 14 { 15 newRequest = new XMLHttpRequest(); 16 } 17 catch(trymicrosoft) 18 { 19 try 20 { 21 newRequest = new ActiveXObject("Msxml2.XMLHTTP"); 22 } 23 catch(othermicrosoft) 24 { 25 try 26 { 27 newRequest = new ActiveXObject("Microsoft.XMLHTTP"); 28 } 29 catch(failed) 30 { 31 newRequest = null; 32 } 33 } 34 } 35 36 return newRequest; 37 38} 39 40httpobject[-1] = newHttpReq(); 41 42if(!httpobject[-1]) 43{ 44 alert("Error Initializing XMLHttpRequest!"); 45} 46 47function showname(id) 48{ 49 document.getElementById('link' + id).style.height = '102px'; 50 document.getElementById('box' + id).style.visibility = 'visible'; 51} 52 53function hidename(id) 54{ 55 document.getElementById('link' + id).style.height = '100%'; 56 document.getElementById('box' + id).style.visibility = 'hidden'; 57} 58 59image1 = new Image(); 60image1.src = '/assets/images/Searching.gif'; 61 62 63var currentindex = 0; 64var targetindex = 0; 65var slidedirection = ''; 66var currentx1 = 0; 67var targetx1 = 0; 68var currentx2 = 0; 69var targetx2 = 0; 70var slideshowcontainer; 71var position = []; 72var link = []; 73var slideincrement; 74var slidecounter; 75var timerautomatic; 76var timerslide; 77 78function manualStartSlide(index) 79{ 80 slidetoposition(index); 81} 82 83function slidetoposition(index) 84{ 85 clearTimeout(timerautomatic); 86 87 targetindex = index; 88 89 if(targetindex == currentindex) 90 { 91 return; 92 } 93 94 if(targetindex > currentindex) 95 { 96 slidedirection = 'righttoleft'; 97 } 98 else 99 { 100 slidedirection = 'lefttoright'; 101 } 102 103 if(targetindex == -1) 104 { 105 targetindex = numslides - 1; 106 } 107 108 if(targetindex == numslides) 109 { 110 targetindex = 0; 111 } 112 113 for(var i = 0; i < numslides; i++) 114 { 115 if(document.getElementById('slideshow' + i)) 116 { 117 if(i != targetindex && i != currentindex) 118 { 119 document.getElementById('slideshow' + i).style.zIndex = 0; 120 document.getElementById('slideshow' + i).tabIndex = -1; 121 } 122 else 123 { 124 if(i == currentindex) 125 { 126 document.getElementById('slideshow' + i).style.zIndex = 1; 127 document.getElementById('slideshow' + i).tabIndex = -1; 128 } 129 130 if(i == targetindex) 131 { 132 if(slidedirection == 'righttoleft') 133 { 134 document.getElementById('slideshow' + i).style.left = '100%'; 135 136 targetx1 = 0; 137 targetx2 = -100; 138 slideincrement = -5; 139 140 } 141 142 if(slidedirection == 'lefttoright') 143 { 144 document.getElementById('slideshow' + i).style.left = '-100%'; 145 146 targetx1 = 0; 147 targetx2 = 100; 148 slideincrement = 5; 149 150 } 151 152 document.getElementById('slideshow' + i).style.zIndex = 2; 153 document.getElementById('slideshow' + i).tabIndex = 0; 154 } 155 156 } 157 } 158 159 if(document.getElementById('squareDiv[' + i + ']')) 160 { 161 if(i === targetindex) 162 { 163 document.getElementById('squareDiv[' + i + ']').className = 'slideSquare slideSquareSelected'; 164 } 165 else 166 { 167 document.getElementById('squareDiv[' + i + ']').className = 'slideSquare'; 168 } 169 } 170 } 171 172 slidecounter = 0; 173 slide(); 174} 175 176function slide() 177{ 178 currentx1 = document.getElementById('slideshow' + targetindex).style.left; 179 currentx1 = parseInt(currentx1.replace('%','')); 180 181 currentx2 = document.getElementById('slideshow' + currentindex).style.left; 182 currentx2 = parseInt(currentx2.replace('%','')); 183 184 if(slidecounter == 0) 185 { 186 //alert(currentx1); 187 } 188 189 if((currentx1 != targetx1)) 190 { 191 var newx1 = currentx1 + slideincrement; 192 var newx2 = currentx2 + slideincrement; 193 194 if(Math.abs(newx1 - targetx1) <= Math.abs(slideincrement)) 195 { 196 newx1 = targetx1; 197 } 198 199 if(Math.abs(newx2 - targetx2) <= Math.abs(slideincrement)) 200 { 201 newx2 = targetx2; 202 } 203 204 } 205 else 206 { 207 var previousindex = parseInt(targetindex) - 1; 208 var nextindex = parseInt(targetindex) + 1; 209 210 currentindex = targetindex; 211 212 document.getElementById('slideshowArrowLeftLink').setAttribute("href","javascript: manualStartSlide(" + previousindex + ");"); 213 document.getElementById('slideshowArrowRightLink').setAttribute("href","javascript: manualStartSlide("+ nextindex + ");"); 214 215 return; 216 } 217 218 //alert('currentx = ' + currentx + ' targetx = ' + targetx + ' newx = ' + newx); 219 220 document.getElementById('slideshow' + currentindex).style.left = newx2 + '%'; 221 document.getElementById('slideshow' + targetindex).style.left = newx1 + '%'; 222 223 slidecounter++; 224 225 timerslide = setTimeout('slide()',10); 226 227} 228 229function slideautomatic() 230{ 231 slidetoposition(parseInt(targetindex) + 1); 232 clearTimeout(timerautomatic); 233 timerautomatic = setTimeout('slideautomatic()',8000); 234} 235 236var flagemailcleared = 0; 237 238function clearemail() 239{ 240 if(flagemailcleared == 0) 241 { 242 document.getElementById('promotionemail').value = ''; 243 flagemailcleared = 1; 244 } 245} 246 247function registeremail() 248{ 249 250 var localvalue = requestcount; 251 var email = document.getElementById('promotionemail').value; 252 253 if(email.length < 5 || email == 'Enter E-Mail Address') 254 { 255 alert('You must enter an e-mail address.'); 256 return; 257 } 258 259 var poststring = "email=" + email + '&sourcepage=FAA+Home+Page'; 260 261 document.getElementById('promotionemaildiv').innerHTML = "<img src='/assets/images/Searching.gif'>"; 262 263 httpobject[localvalue] = newHttpReq(); 264 httpobject[localvalue].onreadystatechange = function(){ 265 266 try 267 { 268 if(httpobject[localvalue].readyState == 4) 269 { 270 } 271 272 if(httpobject[localvalue].status == 200) 273 { 274 } 275 } 276 catch (e) 277 { 278 return; 279 } 280 281 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 282 { 283 document.getElementById('promotionemaildiv').innerHTML = httpobject[localvalue].responseText; 284 } 285 286 287 }; 288 289 var url = 'queries/querysubscribeemaillist.php'; 290 291 httpobject[localvalue].open('post',url,true); 292 httpobject[localvalue].setRequestHeader('content-type', 'application/x-www-form-urlencoded'); 293 httpobject[localvalue].send(poststring); 294 295 requestcount += 1; 296 297} 298 299function showemailform() 300{ 301 302 if(!document.getElementById('foregrounddiv') || !document.getElementById('backgrounddiv')) 303 { 304 var newdiv; 305 var cssstyle; 306
307 // Background Div 308 if(!document.getElementById('backgrounddiv')) 309 { 310 newdiv = document.createElement('div'); 311 cssstyle = 'position: fixed; z-index: 5000; left: 0px; top: 0px; width: 10px; height: 10px; background-color: #000000; visibility: hidden; opacity: 0.50; filter: alpha(opacity=50);'; 312 newdiv.id = 'backgrounddiv'; 313 newdiv.setAttribute('style',cssstyle); 314 newdiv.style.cssText = cssstyle; 315 document.body.appendChild(newdiv); 316 } 317 318 // Foreground Div 319 if(!document.getElementById('foregrounddiv')) 320 { 321 newdiv = document.createElement('div'); 322 cssstyle = 'position: fixed; z-index: 5001; left: 0px; top: 0px; width: 700px; min-height: 50px; padding: 40px; overflow: auto; border: 15px solid #666666; background-color: #FFFFFF; visibility: hidden; box-shadow: 0px 0px 50px #000000;'; 323 newdiv.id = 'foregrounddiv'; 324 newdiv.setAttribute('style',cssstyle); 325 newdiv.style.cssText = cssstyle; 326 document.body.appendChild(newdiv); 327 } 328 } 329 330 var backgroundobject = document.getElementById('backgrounddiv'); 331 backgroundobject.style.width = '100%'; 332 backgroundobject.style.height = '100%'; 333 backgroundobject.style.visibility = 'visible'; 334 335 var widthclient = parseInt(document.documentElement.clientWidth); 336 var heightclient = parseInt(document.documentElement.clientHeight); 337 338 //alert(widthclient); 339 340 var widthtarget = parseInt(widthclient*0.80); 341 var heighttarget = parseInt(heightclient*0.60); 342 343 if((widthtarget + 110) > widthclient) 344 { 345 widthtarget = widthclient - 50 - 110; 346 } 347 348 if((heighttarget + 110) > heightclient) 349 { 350 heighttarget = heightclient - 50 - 110; 351 } 352 353 if(widthtarget > 800) 354 { 355 widthtarget = 800; 356 } 357 358 if(heighttarget > 600) 359 { 360 heighttarget = 600; 361 } 362 363 var offsetleft = 0; 364 var offsettop = 0; 365 366 var offsetx = 0; 367 var offsety = 0; 368 369 if(document.documentElement.scrollTop && !document.body.scrollTop) 370 { 371 //offsetleft = document.documentElement.scrollLeft; 372 //offsettop = document.documentElement.scrollTop; 373 } 374 else 375 { 376 //offsetleft = document.body.scrollLeft; 377 //offsettop = document.body.scrollTop; 378 } 379 380 var logindiv = document.getElementById('foregrounddiv'); 381 logindiv.style.width = widthtarget + 'px'; 382 logindiv.style.height = heighttarget + 'px'; 383 logindiv.style.visibility = 'visible'; 384 logindiv.innerHTML = "<img src='/assets/images/Searching.gif' style='float: left;'>"; 385 386 logindiv.style.left = (offsetx + offsetleft + parseInt((widthclient - (widthtarget + 110)) / 2)) + 'px'; 387 logindiv.style.top = (offsety + offsettop + parseInt((heightclient - (heighttarget + 110)) / 2)) + 'px'; 388 389 var localvalue = requestcount; 390 391 httpobject[localvalue] = newHttpReq(); 392 httpobject[localvalue].onreadystatechange = function(){ 393 394 try 395 { 396 if(httpobject[localvalue].readyState == 4) 397 { 398 } 399 400 if(httpobject[localvalue].status == 200) 401 { 402 } 403 } 404 catch (e) 405 { 406 return; 407 } 408 409 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 410 { 411 document.getElementById('foregrounddiv').innerHTML = httpobject[localvalue].responseText; 412 } 413 414 415 }; 416 417 var url = 'queries/queryemailsubscriptionforeground.php'; 418 var poststring = 'action=refresh'; 419 420 httpobject[localvalue].open('post',url,true); 421 httpobject[localvalue].setRequestHeader('content-type', 'application/x-www-form-urlencoded'); 422 httpobject[localvalue].send(poststring); 423 424 requestcount += 1; 425 426 return; 427} 428 429function submitsubscriptionemail() 430{ 431 432 var localvalue = requestcount; 433 var email = document.getElementById('subscriptionemail').value; 434 435 if(email == '' || email == 'E-Mail Address') 436 { 437 alert('You must enter an e-mail address.'); 438 return; 439 } 440 441 document.getElementById('submitsubscriptiondiv').innerHTML = "<img src='/assets/images/Searching.gif' style='float: left; padding-top: 5px;'>"; 442 443 httpobject[localvalue] = newHttpReq(); 444 httpobject[localvalue].onreadystatechange = function(){ 445 446 try 447 { 448 if(httpobject[localvalue].readyState == 4) 449 { 450 } 451 452 if(httpobject[localvalue].status == 200) 453 { 454 } 455 } 456 catch (e) 457 { 458 return; 459 } 460 461 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 462 { 463 var response = httpobject[localvalue].responseText.split("<EXTRAINSTRUCTIONS>"); 464 465 document.getElementById('foregrounddiv').innerHTML = response[0]; 466 467 if(response[1]) 468 { 469 eval(response[1]); 470 } 471 472 } 473 474 475 }; 476 477 var url = 'queries/queryemailsubscriptionforeground.php'; 478 var poststring = 'action=submit&sourcepage=FAA+Home+Page+Popup&email=' + email; 479 480 httpobject[localvalue].open('post',url,true); 481 httpobject[localvalue].setRequestHeader('content-type', 'application/x-www-form-urlencoded'); 482 httpobject[localvalue].send(poststring); 483 484 requestcount += 1; 485 486 return; 487 488} 489 490 491function hideforegrounddiv() 492{ 493 if(document.getElementById('backgrounddiv')) 494 { 495 document.getElementById('backgrounddiv').style.visibility = 'hidden'; 496 } 497 498 if(document.getElementById('foregrounddiv')) 499 { 500 document.getElementById('foregrounddiv').style.visibility = 'hidden'; 501 document.getElementById('foregrounddiv').innerHTML = ' '; 502 } 503} 504 505function checkforentersubscriptionemail(theEvent) 506{ 507 if (theEvent == null) 508 { 509 theEvent = window.event; 510 } 511 512 if (theEvent.target) 513 { 514 theTarget = theEvent.target; 515 } 516 else 517 {
518 theTarget = theEvent.srcElement; 519 } 520 521 if (theEvent.keyCode == 13) 522 { 523 submitsubscriptionemail(); 524 } 525} 526 527function checkkeyup() 528{ 529 if (event.keyCode == 27) 530 { 531 hideforegrounddiv(); 532 } 533 534} 535 536function facebookpopup(url) 537{ 538 var width = 680; 539 var height = 400; 540 541 var leftposition = Number((screen.width/2)-(width/2)); 542 var topposition = Number((screen.height/2)-(height/2)); 543 544 window.open(url,'facebookwindow','width=' + width + ',height=' + height + ',resizable=1,toolbar=0,menubar=0,status=0,location=0,left=' + leftposition + ',top=' + topposition); 545} 546 547function googlepluspopup(url) 548{ 549 var width = 720; 550 var height = 500; 551 552 var leftposition = Number((screen.width/2)-(width/2)); 553 var topposition = Number((screen.height/2)-(height/2)); 554 555 window.open(url,'googlepluswindow','width=' + width + ',height=' + height + ',resizable=1,toolbar=0,menubar=0,status=0,location=0,left=' + leftposition + ',top=' + topposition); 556} 557 558function twitterpopup(url) 559{ 560 var width = 600; 561 var height = 400; 562 563 var leftposition = Number((screen.width/2)-(width/2)); 564 var topposition = Number((screen.height/2)-(height/2)); 565 566 window.open(url,'twitterwindow','width=' + width + ',height=' + height + ',resizable=1,toolbar=0,menubar=0,status=0,location=0,left=' + leftposition + ',top=' + topposition); 567} 568 569 570function checkfacebookcount(sourceurl) 571{ 572 $.get('https://graph.facebook.com/' + sourceurl + '', function(data) { 573 574 var fbshares = 0; 575 var fblikes = 0; 576 var fbtotal = 0; 577 578 if ((data.shares != 0) && (data.shares != undefined) && (data.shares != null)) 579 { 580 fbshares = data.shares; 581 } 582 583 if ((data.likes != 0) && (data.likes != undefined) && (data.likes != null)) 584 { 585 fblikes = data.likes; 586 } 587 588 fbtotal = fbshares + fblikes; 589 590 if(true || fbtotal > 0) 591 { 592 if(fbtotal >= 1000) 593 { 594 if(fbtotal >= 10000) 595 { 596 fbtotal = fbtotal / 1000; 597 fbtotal = fbtotal.toFixed(0) + 'K'; 598 } 599 else 600 { 601 fbtotal = fbtotal.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); 602 } 603 } 604 605 document.getElementById('facebookcountdiv').style.display = 'inline-block'; 606 document.getElementById('facebookcount').innerHTML = fbtotal; 607 } 608 609 },'jsonp'); 610 611} 612 613function checkgooglepluscount(sourceurl) 614{ 615 616 $.get('/queries/querysocialapis.php?target=googleplus&url=' + sourceurl, function(data) { 617 618 if ((data != 0) && (data != undefined) && (data != null)) 619 { 620 if(data >= 1000) 621 { 622 if(data >= 10000) 623 { 624 data = data / 1000; 625 data = data.toFixed(0) + 'K'; 626 } 627 else 628 { 629 data = data.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); 630 } 631 } 632 633 document.getElementById('googlepluscountdiv').style.display = 'inline-block'; 634 document.getElementById('googlepluscount').innerHTML = data; 635 } 636 },'html'); 637 638} 639 640function checktwittercount(sourceurl) 641{ 642 643 $.get('http://urls.api.twitter.com/1/urls/count.json?url=' + sourceurl, function(data) { 644 645 if ((data.count != 0) && (data.count != undefined) && (data.count != null)) 646 { 647 if(data.count >= 1000) 648 { 649 if(data.count >= 10000) 650 { 651 data.count = data.count / 1000; 652 data.count = data.count.toFixed(0) + 'K'; 653 } 654 else 655 { 656 data.count = data.count.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); 657 } 658 } 659 660 document.getElementById('twittercountdiv').style.display = 'inline-block'; 661 document.getElementById('twittercount').innerHTML = data.count; 662 } 663 },'jsonp'); 664 665} 666 667function mouseoverfacebook() 668{ 669 var targetobject = document.getElementById('facebookimage'); 670 targetobject.src = 'https://fineartamerica.com/assets/images/IconFacebookSmall.png'; 671} 672 673function mouseoutfacebook() 674{ 675 var targetobject = document.getElementById('facebookimage'); 676 targetobject.src = 'https://fineartamerica.com/assets/images/IconFacebookSmallGrayscale.png'; 677} 678 679function mouseovergoogleplus() 680{ 681 var googlePlusImage = document.getElementById('googleplusimage'); 682 googlePlusImage.src = 'https://fineartamerica.com/assets/images/IconGooglePlusSmall.png'; 683} 684 685function mouseoutgoogleplus() 686{ 687 var googlePlusImage = document.getElementById('googleplusimage'); 688 googlePlusImage.src = 'https://fineartamerica.com/assets/images/IconGooglePlusSmallGrayscale.png'; 689} 690 691function expandgallerydiv() 692{ 693 var galleryDiv = document.getElementById("gallerydiv"); 694 galleryDiv.style.height = ""; 695 galleryDiv.style.overflow = "visible"; 696} 697 698function collapsegallerydiv() 699{ 700 var galleryDiv = document.getElementById("gallerydiv"); 701 galleryDiv.style.overflow = "hidden"; 702} 703 704function expandartistdiv() 705{ 706 var artistDiv = document.getElementById("artistdiv"); 707 artistDiv.style.height = ""; 708 artistDiv.style.overflow = "visible"; 709} 710 711function collapseartistdiv() 712{ 713 var artistDiv = document.getElementById("artistdiv"); 714 artistDiv.style.overflow = "hidden"; 715} 716 717function showHomepageCollections(action, memberIdType, memberId, page) 718{ 719 var localvalue = requestcount; 720 var targetDivId = 'collectionsContainerDiv'; 721 722 var postString = 'action=' + action + '&memberIdType=' + memberIdType + '&memberId=' + memberId + '&page=' + page; 723 724 document.getElementById(targetDivId).innerHTML = "<img src='/assets/images/Searching.gif' style='display: inline-block; padding-top: 25px; padding-bottom: 25px;'>"; 725 726 if(action === 'showPage') 727 { 728 document.getElementById('sectionDivCollections').scrollIntoView(true); 729 } 730 731 httpobject[localvalue] = newHttpReq(); 732 httpobject[localvalue].onreadystatechange = function(){ 733 734 try 735 { 736 if(httpobject[localvalue].readyState == 4) 737 { 738 } 739 740 if(httpobject[localvalue].status == 200) 741 { 742 } 743 } 744 catch (e) 745 { 746 return; 747 } 748 749 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 750 { 751 document.getElementById(targetDivId).innerHTML = httpobject[localvalue].responseText; 752 //resizeAndDisplayFlowImages(250); 753 } 754 755 756 }; 757 758 var url = '/queries/queryWhiteLabelWebsiteHomepageCollections.php'; 759 760 httpobject[localvalue].open('post',url,true); 761 httpobject[localvalue].setRequestHeader("content-type", "application/x-www-form-urlencoded"); 762 httpobject[localvalue].send(postString); 763 764 requestcount += 1; 765} 766 767 768function showHomepageCollectionsGrid(action, memberIdType, memberId, page) 769{ 770 var localvalue = requestcount; 771 var targetDivId = 'collectionsContainerDiv'; 772 773 if(typeof productType === undefined) 774 { 775 productType = ''; 776 } 777 778 var postString = 'action=' + action + '&memberIdType=' + memberIdType + '&memberId=' + memberId + '&page=' + page; 779 780 //alert(postString); 781 //return; 782 783 document.getElementById(targetDivId).innerHTML = "<img src='/assets/images/Searching.gif' style='display: inline-block; padding-top: 25px; padding-bottom: 25px;'>"; 784 785 if(action === 'showPage') 786 { 787 document.getElementById('sectionDivCollections').scrollIntoView(true); 788 } 789 790 httpobject[localvalue] = newHttpReq(); 791 httpobject[localvalue].onreadystatechange = function(){ 792 793 try 794 { 795 if(httpobject[localvalue].readyState == 4) 796 { 797 } 798 799 if(httpobject[localvalue].status == 200) 800 { 801 } 802 } 803 catch (e) 804 { 805 return; 806 } 807 808 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 809 { 810 document.getElementById(targetDivId).innerHTML = httpobject[localvalue].responseText; 811 } 812 813 814 }; 815 816 var url = '/queries/queryWhiteLabelWebsiteHomepageCollectionsGrid.php'; 817 818 httpobject[localvalue].open('post',url,true); 819 httpobject[localvalue].setRequestHeader("content-type", "application/x-www-form-urlencoded"); 820 httpobject[localvalue].send(postString); 821 822 requestcount += 1; 823} 824 825 826function showHomepageSubjectsGrid(page) 827{ 828 var action = 'showPage'; 829 var localvalue = requestcount; 830 var targetDivId = 'subjectsContainerDiv'; 831 832 if(typeof productType === undefined) 833 { 834 productType = ''; 835 } 836 837 var postString = 'action=' + action + '&page=' + page; 838 839 //alert(postString); 840 //return; 841 842 document.getElementById(targetDivId).innerHTML = "<img src='/assets/images/Searching.gif' style='display: inline-block; padding-top: 25px; padding-bottom: 25px;'>"; 843 844 if(action === 'showPage') 845 { 846 document.getElementById('sectionDivSubjects').scrollIntoView(true); 847 } 848 849 httpobject[localvalue] = newHttpReq(); 850 httpobject[localvalue].onreadystatechange = function(){ 851 852 try 853 { 854 if(httpobject[localvalue].readyState == 4) 855 { 856 } 857 858 if(httpobject[localvalue].status == 200) 859 { 860 } 861 } 862 catch (e) 863 { 864 return; 865 } 866 867 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 868 { 869 document.getElementById(targetDivId).innerHTML = httpobject[localvalue].responseText; 870 } 871 872 873 }; 874 875 var url = '/queries/queryWhiteLabelWebsiteHomepageSubjectsGrid.php'; 876 877 httpobject[localvalue].open('post',url,true); 878 httpobject[localvalue].setRequestHeader("content-type", "application/x-www-form-urlencoded"); 879 httpobject[localvalue].send(postString); 880 881 requestcount += 1; 882} 883 884 885function showHomepageArtworkImages(action, memberIdType, memberId, page) 886{ 887 var localvalue = requestcount; 888 var targetDivId = 'artworkContainerDiv'; 889 890 var postString = 'action=' + action + '&memberIdType=' + memberIdType + '&memberId=' + memberId + '&page=' + page; 891 892 document.getElementById(targetDivId).innerHTML = "<img src='/assets/images/Searching.gif' style='display: inline-block; padding-top: 25px; padding-bottom: 25px;'>"; 893 894 if(action === 'showPage') 895 { 896 document.getElementById('sectionDivArtwork').scrollIntoView(); 897 } 898 899 httpobject[localvalue] = newHttpReq(); 900 httpobject[localvalue].onreadystatechange = function(){ 901 902 try 903 { 904 if(httpobject[localvalue].readyState == 4) 905 { 906 } 907 908 if(httpobject[localvalue].status == 200) 909 { 910 } 911 } 912 catch (e) 913 { 914 return; 915 } 916 917 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 918 { 919 document.getElementById(targetDivId).innerHTML = httpobject[localvalue].responseText; 920 //resizeAndDisplayFlowImages(250); 921 922 if(action === 'showPage') 923 { 924 document.getElementById('sectionDivArtwork').scrollIntoView(); 925 } 926 927 } 928 929 930 }; 931 932 var url = '/queries/queryWhiteLabelWebsiteHomepageArtworkImageFlow.php'; 933 934 httpobject[localvalue].open('post',url,true); 935 httpobject[localvalue].setRequestHeader("content-type", "application/x-www-form-urlencoded"); 936 httpobject[localvalue].send(postString); 937 938 requestcount += 1; 939} 940 941function changeImageFlow(imageCollectionType, imageCollectionId) 942{ 943 var localvalue = requestcount; 944 945 var availableTabs = document.getElementsByClassName('imageFlowTab'); 946 947 for (i = 0; i < availableTabs.length; i++) 948 { 949 if(availableTabs[i].id == 'imageFlowTab[' + imageCollectionType + '-' + imageCollectionId + ']') 950 { 951 availableTabs[i].className = 'imageFlowTab imageFlowTabSelected'; 952 } 953 else 954 { 955 availableTabs[i].className = 'imageFlowTab'; 956 } 957 } 958
959 var currentHeight = $('#imageFlowContainerDiv').height(); 960 961 document.getElementById('imageFlowContainerDiv').innerHTML = "<div style='display: inline-block; width: 100%; height: " + currentHeight + "px; text-align: center;'><img src='/assets/images/Searching.gif' style='display: inline-block;'></div>\n"; 962 963 httpobject[localvalue] = newHttpReq(); 964 httpobject[localvalue].onreadystatechange = function(){ 965 966 try 967 { 968 if(httpobject[localvalue].readyState == 4) 969 { 970 } 971 972 if(httpobject[localvalue].status == 200) 973 { 974 } 975 } 976 catch (e) 977 { 978 return; 979 } 980 981 if(httpobject[localvalue].readyState == 4 && httpobject[localvalue].status == 200) 982 { 983 if(document.getElementById('imageFlowContainerDiv')) 984 { 985 document.getElementById('imageFlowContainerDiv').innerHTML = httpobject[localvalue].responseText; 986 //resizeAndDisplayFlowImages(250); 987 } 988 } 989 990 }; 991 992 var postString = ''; 993 994 if(imageCollectionType == 'collections') 995 { 996 postString += 'searchCollectionId=' + imageCollectionId; 997 } 998 999 if(imageCollectionType == 'favorites') 1000 { 1001 postString += 'favoriteFolderId=' + imageCollectionId; 1002 } 1003 1004 var url = '../queries/queryWallArtImageFlow.php'; 1005 1006 //alert(postString); 1007 //return; 1008 1009 httpobject[localvalue].open('post',url,true); 1010 httpobject[localvalue].setRequestHeader('content-type', 'application/x-www-form-urlencoded'); 1011 httpobject[localvalue].send(postString); 1012 1013 requestcount++; 1014 1015}
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.