Skip Global Navigation to Main Content
Skip Breadcrumb Navigation
Frequently Asked Questions
  • What is Agricultural Biotechnology?

    What is Agricultural Biotechnology?

    • Agricultural biotechnology is a range of tools, including traditional breeding techniques, that alter living organisms, or parts of organisms, to make or modify products; improve plants or animals; or develop microorganisms for specific agricultural uses. Modern biotechnology today includes the tools of genetic engineering.
  • How is Agricultural Biotechnology being used?

    How is Agricultural Biotechnology being used?

    • Biotechnology provides farmers with tools that can make production cheaper and more manageable. For example, some biotechnology crops can be engineered to tolerate specific herbicides, which makes weed control simpler and more efficient. Other crops have been engineered to be resistant to specific plant diseases and insect pests, which can make pest control more reliable and effective, and/or can decrease the use of synthetic pesticides. These crop production options can help countries keep pace with demands for food while reducing production costs. A number of biotechnology-derived crops that have been deregulated by the USDA and reviewed for food safety by the Food and Drug Administration (FDA) and/or the Environmental Protection Agency (EPA) have been adopted by growers.

      Many other types of crops are now in the research and development stages. While it is not possible to know exactly which will come to fruition, certainly biotechnology will have highly varied uses for agriculture in the future. Advances in biotechnology may provide consumers with foods that are nutritionally-enriched or longer-lasting, or that contain lower levels of certain naturally occurring toxicants present in some food plants. Developers are using biotechnology to try to reduce saturated fats in cooking oils, reduce allergens in foods, and increase disease-fighting nutrients in foods. They are also researching ways to use genetically engineered crops in the production of new medicines, which may lead to a new plant-made pharmaceutical industry that could reduce the costs of production using a sustainable resource.

      Genetically engineered plants are also being developed for a purpose known as phytoremediation in which the plants detoxify pollutants in the soil or absorb and accumulate polluting substances out of the soil so that the plants may be harvested and disposed of safely. In either case the result is improved soil quality at a polluted site. Biotechnology may also be used to conserve natural resources, enable animals to more effectively use nutrients present in feed, decrease nutrient runoff into rivers and bays, and help meet the increasing world food and land demands. Researchers are at work to produce hardier crops that will flourish in even the harshest environments and that will require less fuel, labor, fertilizer, and water, helping to decrease the pressures on land and wildlife habitats.

      In addition to genetically engineered crops, biotechnology has helped make other improvements in agriculture not involving plants. Examples of such advances include making antibiotic production more efficient through microbial fermentation and producing new animal vaccines through genetic engineering for diseases such as foot and mouth disease and rabies.
  • What are the benefits of Agricultural Biotechnology?

    What are the benefits of Agricultural Biotechnology?

    • The application of biotechnology in agriculture has resulted in benefits to farmers, producers, and consumers. Biotechnology has helped to make both insect pest control and weed management safer and easier while safeguarding crops against disease.

      For example, genetically engineered insect-resistant cotton has allowed for a significant reduction in the use of persistent, synthetic pesticides that may contaminate groundwater and the environment

      In terms of improved weed control, herbicide-tolerant soybeans, cotton, and corn enable the use of reduced-risk herbicides that break down more quickly in soil and are non-toxic to wildlife and humans. Herbicide-tolerant crops are particularly compatible with no-till or reduced tillage agriculture systems that help preserve topsoil from erosion.

      Agricultural biotechnology has been used to protect crops from devastating diseases. The papaya ringspot virus threatened to derail the Hawaiian papaya industry until papayas resistant to the disease were developed through genetic engineering. This saved the U.S. papaya industry. Research on potatoes, squash, tomatoes, and other crops continues in a similar manner to provide resistance to viral diseases that otherwise are very difficult to control.

      Biotech crops can make farming more profitable by increasing crop quality and may in some cases increase yields. The use of some of these crops can simplify work and improve safety for farmers. This allows farmers to spend less of their time managing their crops and more time on other profitable activities.

      Biotech crops may provide enhanced quality traits such as increased levels of beta-carotene in rice to aid in reducing vitamin A deficiencies and improved oil compositions in canola, soybean, and corn. Crops with the ability to grow in salty soils or better withstand drought conditions are also in the works.

      The tools of agricultural biotechnology have been invaluable for researchers in helping to understand the basic biology of living organisms. For example, scientists recently identified the complete genetic structure of several strains of Listeria and Campylobacter, the bacteria often responsible for major outbreaks of food-borne illness in people. This genetic information is providing a wealth of opportunities that help researchers improve the safety of our food supply. The tools of biotechnology have "unlocked doors" and are also helping in the development of improved animal and plant varieties, both those produced by conventional means as well as those produced through genetic engineering.
  • What are the safety considerations with Agricultural Biotechnology?

    What are the safety considerations with Agricultural Biotechnology?

    • Breeders have been evaluating new products developed through agricultural biotechnology for centuries. In addition to these efforts, the United States Department of Agriculture (USDA), the Environmental Protection Agency (EPA), and the Food and Drug Administration (FDA) work to ensure that crops produced through genetic engineering for commercial use are properly tested and studied to make sure they pose no significant risk to consumers or the environment.

      Crops produced through genetic engineering are the only ones formally reviewed to assess the potential for transfer of novel traits to wild relatives. When new traits are genetically engineered into a crop, the new plants are evaluated to ensure that they do not have characteristics of weeds. Where biotech crops are grown in proximity to related plants, the potential for the two plants to exchange traits via pollen must be evaluated before release. Crop plants of all kinds can exchange traits with their close wild relatives (which may be weeds or wildflowers) when they are in proximity. In the case of biotech-derived crops, the EPA and USDA perform risk assessments to evaluate this possibility and minimize potential harmful consequences, if any.

      Other potential risks considered in the assessment of genetically engineered organisms include any environmental effects on birds, mammals, insects, worms, and other organisms, especially in the case of insect or disease resistance traits. This is why the USDA's Animal and Plant Health Inspection Service (APHIS) and the EPA review any environmental impacts of such pest-resistant biotechnology derived crops prior to approval of field-testing and commercial release. Testing on many types of organisms such as honeybees, other beneficial insects, earthworms, and fish is performed to ensure that there are no unintended consequences associated with these crops.

      With respect to food safety, when new traits introduced to biotech-derived plants are examined by the EPA and the FDA, the proteins produced by these traits are studied for their potential toxicity and potential to cause an allergic response. Tests designed to examine the heat and digestive stability of these proteins, as well as their similarity to known allergenic proteins, are completed prior to entry into the food or feed supply.

      To put these considerations in perspective, it is useful to note that while the particular biotech traits being used are often new to crops in that they often do not come from plants (many are from bacteria and viruses), the same basic types of traits often can be found naturally in most plants. These basic traits, like insect and disease resistance, have allowed plants to survive and evolve over time.
  • How widely are biotechnology crops used?

    How widely are biotechnology crops used?

    • According to the USDA's National Agricultural Statistics Service (NASS), biotechnology plantings as a percentage of total crop plantings in the United States in 2004 were about 46 percent for corn, 76 percent for cotton, and 85 percent for soybeans. NASS conducts an agricultural survey in all states in June of each year. The report issued from the survey contains a section specific to the major biotechnology derived field crops and provides additional detail on biotechnology plantings. The most recent report may be viewed at the following website: http://usda.mannlib.cornell.edu.

      For a summary of these data, see the USDA Economic Research Service data feature at: http://www.ers.usda.gov/Data/BiotechCrops/

      The USDA does not maintain data on international usage of genetically engineered crops. The independent International Service for the Acquisition of Agri-biotech Applications (ISAAA), a not-for-profit organization, estimates that the global area of biotech crops for 2004 was 81.0 million hectares, grown by 8.25 million farmers in 17 countries - a significant increase over 2003 when 67.7 million hectares were grown by 7.0 million farmers in 18 countries. The 2004 increase of 13.3 million hectares is the second highest annual increase of biotech crops on record. ISAAA reports various statistics on the global adoption and plantings of biotechnology derived crops. The ISAAA website is http://www.isaaa.org.
  • What are the roles of government in agricultural biotechnology?

    What are the roles of government in agricultural biotechnology?

    • Please note: These descriptions are not a complete or thorough review of all the activities of these agencies with respect to agricultural biotechnology and are intended as general introductory materials only. For additional information please see the relevant agency websites.

      Regulatory

      The Federal Government developed a Coordinated Framework for the Regulation of Biotechnology in 1986 to provide for the regulatory oversight of organisms derived through genetic engineering. The three principal agencies that have provided primary guidance to the experimental testing, approval, and eventual commercial release of these organisms to date are the USDA's Animal and Plant Health Inspection Service (APHIS), the Environmental Protection Agency (EPA), and the Department of Health and Human Services' Food and Drug Administration (FDA). The approach taken in the Coordinated Framework is grounded in the judgment of the National Academy of Sciences that the potential risks associated with these organisms fall into the same general categories as those created by traditionally bred organisms.

      Products are regulated according to their intended use, with some products being regulated under more than one agency. All government regulatory agencies have a responsibility to ensure that the implementation of regulatory decisions, including approval of field tests and eventual deregulation of approved biotech crops, does not adversely impact human health or the environment.

      The Animal and Plant Health Inspection Service (APHIS) is responsible for protecting U.S. agriculture from pests and diseases. APHIS regulations provide procedures for obtaining a permit or for providing notification prior to "introducing" (the act of introducing includes any movement into or through the U.S., or release into the environment outside an area of physical confinement) a regulated article in the U.S. Regulated articles are organisms and products altered or produced through genetic engineering that are plant pests or for which there is reason to believe are plant pests.

      The regulations also provide for a petition process for the determination of non-regulated status. Once a determination of non-regulated status has been made, the organism (and its offspring) no longer requires APHIS review for movement or release in the U.S.

      For more information on the regulatory responsibilities of the EPA and the FDA please see:

      http://www.fda.gov

      http://www.epa.gov

      Market Facilitation

      The USDA also helps industry respond to consumer demands in the United States and overseas by supporting the marketing of a wide range of agricultural products produced through conventional, organic, and genetically engineered means.

      The Agricultural Marketing Service (AMS
      ) and the Grain Inspection, Packers, and Stockyards Administration (GIPSA) have developed a number of services to facilitate the strategic marketing of conventional and genetically engineered foods, fibers, grains, and oilseeds in both domestic and international markets. GIPSA provides these services for the bulk grain and oilseed markets while AMS provides the services for food commodities such as fruits and vegetables, as well as for fiber commodities.

      These services include:

      1. Evaluation of Test Kits: AMS and GIPSA evaluate commercially available test kits designed to detect the presence of specific proteins in genetically engineered agricultural commodities. The agencies confirm whether the tests operate in accordance with manufacturers' claims and, if the kits operate as stated, the results are made available to the public on their respective websites.

      GIPSA Link: http://www.gipsa.usda.gov/fgis/insp_weigh/raptestkit.html

      AMS Link: http://www.ams.usda.gov/science/TSB/Biotechnology.htm

      2. Proficiency Program: GIPSA evaluates the performance of laboratories conducting DNA-based tests to detect genetically engineered grains and oilseeds, provides participants with their individual results, and posts a summary report on the GIPSA website. AMS is developing a similar program that can evaluate and verify the capabilities of independent laboratories to screen other products for the presence of genetically engineered material.

      3. Identity Preservation/Process Verification Services: AMS and GIPSAoffer auditing services to certify the use of written quality practices and/or production processes by producers who differentiate their commodities using identity preservation, testing, and product branding.

      GIPSA Link: http://www.gipsa.usda.gov/fgis/insp_weigh/verfsvc.html

      AMS Link: http://www.ams.usda.gov/fv/ipbv.htm

      Additional AMS Services: AMS provides fee-based DNA and protein testing services for food and fiber products, and its Plant Variety Protection Office offers intellectual property rights protection for new genetically engineered seed varieties through the issuance of Certificates of Protection.

      Additional GIPSA Services: GIPSA provides marketing documents pertaining to whether there are genetically engineered varieties of certain bulk commodities in commercial production in the United States.

      USDA also works to improve and expand market access for U.S. agricultural products, including those produced through genetic engineering. The Foreign Agricultural Service (FAS) supports or administers numerous education, outreach, and exchange programs designed to improve the understanding and acceptance of genetically engineered agricultural products worldwide.

      1. Market Access Program and Foreign Market Development Program: Supports U.S. farm producer groups (called "Cooperators") to market agricultural products overseas, including those produced using genetic engineering.

      2. Emerging Markets Program: Supports technical assistance activities to promote exports of U.S. agricultural commodities and products to emerging markets, including those produced using genetic engineering. Activities to support science-based decision-making are also undertaken. Such activities have included food safety training in Mexico, a biotechnology course for emerging market participants at Michigan State University, farmer-to-farmer workshops in the Philippines and Honduras, high-level policy discussions within the Asia-Pacific Economic Cooperation group, as well as numerous study tours and workshops involving journalists, regulators, and policy-makers.

      3. Cochran Fellowship Program: Supports short-term training in biotechnology and genetic engineering. Over the past several years, the program has provided education and training to over 200 international participants, primarily regulators, policy makers, and scientists.

      4. Technical Assistance for Specialty Crops (TASC): Supports technical assistance activities that address sanitary, phytosanitary, and technical barriers that prohibit or threaten the export of U.S. specialty crops. This program has supported activities on biotech papaya.

      Research

      USDA researchers seek to solve major agricultural problems and to better understand the basic biology of agriculture. Researchers may use biotechnology to conduct research more efficiently and to discover things that may not be possible by more conventional means. This includes introducing new or improved traits in plants, animals, and microorganisms and creating new biotechnology-based products such as more effective diagnostic tests, improved vaccines, and better antibiotics. Any USDA research involving the development of new biotechnology products includes biosafety analysis.

      USDA scientists are also improving biotechnology tools for ever safer, more effective use of biotechnology by all researchers. For example, better models are being developed to evaluate genetically engineered organisms and to reduce allergens in foods.

      USDA researchers monitor for potential environmental problems such as insect pests becoming resistant to Bt, a substance that certain crops, such as corn and cotton, have been genetically engineered to produce to protect against insect damage. In addition, in partnership with the Agricultural Research Service (ARS) and the Forest Service, the Cooperative States Research, Education, and Extension Service (CSREES) administers the Biotechnology Risk Assessment Research Grants Program (BRAG) which develops science-based information regarding the safety of introducing genetically engineered plants, animals, and microorganisms. Lists of biotechnology research projects can be found at http://ars.usda.gov/research/projects.htm for ARS and at http://www.nifa.usda.gov/funding/brag/brag.html for CSREES.

      USDA also develops and supports centralized websites that provide access to genetic resources and genomic information about agricultural species. Making these databases easily accessible is crucial for researchers around the world.

      USDA'S Cooperative State Research, Education and Extension Service (CSREES) provides funding and program leadership for extramural research, higher education, and extension activities in food and agricultural biotechnology. CSREES administers and manages funds for biotechnology through a variety of competitive and cooperative grants programs. The National Research Initiative (NRI) Competitive Grants Program, the largest CSREES competitive program, supports basic and applied research projects and integrated research, education, and/or extension projects, many of which use or develop biotechnology tools, approaches, and products. The Small Business Innovation Research Program (SBIR) funds competitive grants to support research by qualified small businesses on advanced concepts related to scientific problems and opportunities in agriculture, including development of biotechnology-derived products. CSREES also supports research involving biotechnology and biotechnology-derived products through cooperative funding programs in conjunction with state agricultural experiment stations at land-grant universities. CSREES partners with other federal agencies through interagency competitive grant programs to fund agricultural and food research that uses or develops biotechnology and biotechnology tools such as metabolic engineering, microbial genome sequencing, and maize genome sequencing.

      USDA's Economic Research Service (ERS) conducts research on the economic aspects of the use of genetically engineered organisms, including the rate of and reasons for adoption of biotechnology by farmers. ERS also addresses economic issues related to the marketing, labeling, and trading of biotechnology-derived products.
  • How can I find U.S. suppliers of a certain food or Ag product?

    How can I find U.S. suppliers of a certain food or Ag product?

    • You can request suppliers lists through our online system. Here is a link to it: TLS link: http://turkey.agexportservices.org/Apps/rfps/enter100.asp

      After you fill in the form, your request is sent to relative suppliers and we send you a complete list of all suppliers and among them a list of interested suppliers including their comments.
  • What is a GSM Credit and how do I benefit from it?

    What is a GSM Credit and how do I benefit from it?

    • The U.S. Department of Agriculture (USDA) administers export credit guarantee programs for commercial financing of U.S. agricultural exports. These USDA Commodity Credit Corporation (CCC) programs encourage exports to foreign buyers. Export Credit Guarantee Program (GSM-102) provides credit guarantees to encourage financing of commercial exports of U.S. agricultural products, while providing competitive credit terms to buyers. Please find more information on GSM credit amounts and terms on: http://www.fas.usda.gov/excredits/ecgp.asp
  • How can I look up a report on a commodity?

    How can I look up a report on a commodity?

  • Do we have to pay to get services from Foreign Agricultural Service offices?

    Do we have to pay to get services from Foreign Agricultural Service offices?

    • No, United States Department of Agriculture Foreign Agricultural Service (FAS) is an agency which is part of the mission and there is no fee charged. You can find the international FAS offices at: http://www.fas.usda.gov/contactus.asp
  • I'm interested in developing business opportunities with small size American companies. Where can I find such information?

    I'm interested in developing business opportunities with small size American companies. Where can I find such information?

  • I am a Turkish firm and would like to export to the U.S. Can you provide assistance?

    I am a Turkish firm and would like to export to the U.S. Can you provide assistance?

    • The U.S. Foreign Commercial Service's mission is to promote export from the United States, assist American importers as well as Turkish companies who would like to import from America. If you would like to export to the U.S., you may contact the offices listed below for assistance:

      Turkish Prime Ministry for Foreign Trade (IGEME)
      Mithatpasa Caddesi, No: 60
      Yenisehir 06420
      Ankara
      Tel: (0312) 417-2223
      Fax: (0312) 417-2233
      Email: igeme@igeme.org.tr
      Website: http://www.igeme.org.tr

      Turkish-American Chamber of Commerce and Industry
      Website: http://www.turkishuschamber.org
      E-mail: info@turkishuschamber.org

      Turkish Consulate General Office of the Commercial Attaché
      821 United Nations Plaza, 4th Floor
      New York, N.Y. 10017
      U.S.A.
      Tel: (0212) 687-1530
      Fax: (0212) 687-2078
      Email: dtnew@turkishtrade.org

      Turkish Embassy Office of the Commercial Counselor
      2525 Massachusetts Avenue N.W.
      Washington, D.C. 20008
      U.S.A.
      Tel : +1 (202) 612-6780
      Fax : +1 (202) 238-0629
      Email: dtwas@erols.com
  • I am an American company and want to export to Turkey. Where do I start?

    I am an American company and want to export to Turkey. Where do I start?

    • A trade specialist located at the nearest Export Assistant Center can assist you in obtaining market information and applying for Commerce's export promotion programs and services.

  • Where can I find out information about travel warnings?

    Where can I find out information about travel warnings?

    • The Department of State International Travel  homepage has information regarding Travel Warnings as well as the services provided by the American Citizen Services (ACS) at overseas embassies and consulates.

  • How do I find information on patent and trademark information for U.S. products?

    How do I find information on patent and trademark information for U.S. products?

    • The United States Trademark and Patent Office provides a wide range of information on patents and trademarks; including how to apply for a Trademark or Patent; what a Patent or Trademark does; international guarantees on patents and trademarks and much more.
  • I am interested in promoting a product / establishing a business in the United States. Is there anyway to locate regional representation in various states?

    I am interested in promoting a product / establishing a business in the United States. Is there anyway to locate regional representation in various states?

    • The Chambers of Commerce in the United States have established a website that links to almost every local chamber of commerce in the United States. These provide incredible amounts of detailed information and contacts for precise areas.
  • I plan to visit the United States in upcoming months; do I need a visa? If so, what type of visa of I need?

    I plan to visit the United States in upcoming months; do I need a visa? If so, what type of visa of I need?

  • I am planning to travel to the U.S. where can I find tourist information and maps?

    I am planning to travel to the U.S. where can I find tourist information and maps?

  • How can I identify a prospective Turkish buyer or sales agent?

    How can I identify a prospective Turkish buyer or sales agent?

    • The U.S. Commercial Service provides a service that can help new to market companies identify a prospective Turkish buyer or sales agent. Learn more about the International Partner Search service.
  • How can I check the background of a Turkish company?

    How can I check the background of a Turkish company?

    • Undertaking a due diligence investigation prior to engaging in a trade transaction can minimize risk of encountering commercial disputes. The U.S. Commercial Service provides a service to conduct a preliminary background check and refers your company to other service providers in Turkey. Learn more about the International Company Profile service.
  • How can the U.S. Government help me resolve a commercial dispute?

    How can the U.S. Government help me resolve a commercial dispute?

    • The role of the U.S. government in resolving commercial disputes is to assist companies navigate the Turkish legal system, provide a list of local attorneys, and share basic information on potentially applicable trade agreements and Turkish business practices. The U.S. government is not authorized to provide legal advice. American companies that have disputes with private Turkish firms often request U.S. Government intervention with Turkish all remedies under Turkey's legal system.
  • How do I set up a representative office in Turkey?

    How do I set up a representative office in Turkey?

    • A representative office may act as a liaison with Turkish contacts, implement contracts signed outside Turkey by the home office, and undertake market research. Such offices may not engage in trade, receive fees for service, sign contracts or directly generate income. Identify a Commercial Service office in Turkey to learn about the registration process.
  • How can I get U.S. government assistance in resolving trade barriers or unfair trade practices I've encountered in Turkey?

    How can I get U.S. government assistance in resolving trade barriers or unfair trade practices I've encountered in Turkey?

    • The Trade Compliance Center is the U.S. Government's focal point for monitoring foreign compliance with trade agreements to see that U.S. firms and workers get the maximum benefits from these agreements. The TCC is your one-stop shop for getting U.S. government assistance in resolving the trade barriers or unfair trade practices you encounter in foreign markets.
  • Where can I find market information on a specific industry?

    Where can I find market information on a specific industry?

  • Where can I find U.S. customs information for shipping goods to the U.S.?

    Where can I find U.S. customs information for shipping goods to the U.S.?

  • How can I find a Turkish agent or distributor for my product?

    How can I find a Turkish agent or distributor for my product?

  • How can I get assistance exporting agricultural products, processed foods and wood products to Turkey?

    How can I get assistance exporting agricultural products, processed foods and wood products to Turkey?

    • The U.S. Department of Agriculture, Foreign Agricultural Trade Office at the Embassy assists U.S. exporters of agricultural products. Please visit their webpage or contact:

      Office of the Agricultural Counselor
      Foreign Agriculture Service
      110 Atatürk Bulvarı
      Kavaklıdere 06100
      Ankara, TURKEY
      Tel: (90-312) 455 5555 ext. 2406
      Fax: (90-312) 467-0056
      Email: agankara@fas.usda.gov
  • How to establish a new company in the U.S.?

    How to establish a new company in the U.S.?

    • Please note that each state has its own sets of law and regulations in terms of setting up a new office, it will be best for you to visit the web pages of each respective States: http://www.state.XX.us (XX stands for States abbreviation, e.g. California is CA, New York is NY etc.)

foresee

  • closebtn.gif
    closebtn.gif
  • loading.gif
    loading.gif
  • sitelogo.gif
    sitelogo.gif
  • fsrlogo.gif
    fsrlogo.gif
  • shim.gif
    shim.gif
  • cancel.html
    Foresee Survey
    Site Logo
    Site Logo
    You will not receive the survey. Thank you for your willingness to help.

    Please visit again soon!
  • decoder.html
    URL Decoder/Encoder

    URL Decoder/Encoder

    • Input a string of text and encode or decode it as you like.
    • Handy for turning encoded JavaScript URLs from complete gibberish into readable gibberish.
    • If you'd like to have the URL Decoder/Encoder for offline use, just view source and save to your hard drive.
  • foresee-admin.js
    var FSR = { 'version': '6.6.0', 'date': '06/10/2011', 'enabled': true, 'auto': true, 'encode': true, 'files': '/foresee/', 'id': '0SVzV++SsD2LrribNwgfmw==', 'sites': [{ name: 'Nairobi', path: 'nairobi.usembassy.gov' }, { name: 'SouthAfrica', path: 'southafrica.usembassy.gov' }, { name: 'SouthKorea_Seoul', path: 'seoul.usembassy.gov' }, { name: 'Jakarta', path: 'jakarta.usembassy.gov' }, { name: 'Russia_Moscow', path: 'moscow.usembassy.gov' }, { name: 'Russia_Moscow_Russian', path: 'russian.moscow.usembassy.gov' }, { name: 'Germany', path: 'germany.usembassy.gov' }, { name: 'Argentina', path: 'argentina.usembassy.gov' }, { name: 'India_NewDelhi', path: 'newdelhi.usembassy.gov' }, { name: 'Afghanistan_Kabul', path: 'kabul.usembassy.gov' }, { name: 'Pakistan_Islamabad', path: 'islamabad.usembassy.gov' }, { name: 'Turkey', path: 'turkey.usembassy.gov' }, { name: 'Morocco_Rabat', path: 'morocco.usembassy.gov' }, { name: 'Beijing', path: 'usembassy-china.org.cn' }, { name: 'Beijing_Chinese', path: 'chinese.usembassy-china.org.cn' }, { name: 'Brazil', path: 'brazil.usembassy.gov' }, { name: 'Brazil_Portuguese', path: 'portuguese.brazil.usembassy.gov' }, { name: 'Mexico', path: 'mexico.usembassy.gov' }, { name: 'Iraq', path: 'iraq.usembassy.gov' }, { name: 'Egypt', path: 'egypt.usembassy.gov' }, { name: 'Tunisia', path: 'tunisia.usembassy.gov' }, { name: 'Nigeria', path: 'nigeria.usembassy.gov' }, { name: 'Ethiopia', path: 'ethiopia.usembassy.gov' }, { name: 'Japan', path: 'japan.usembassy.gov' }, { name: 'Riyadh', path: 'riyadh.usembassy.gov' }, { name: 'Riyadh_Arabic', path: 'arabic.riyadh.usembassy.gov' }, { name: 'Poland', path: 'poland.usembassy.gov' }, { name: 'Sample', path: 'sample.usembassy.gov' }, { name: 'Sample_CMS', path: 'cms.getusinfo.com' }] }; /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/ fsr$dbug={log:function(){}};FSR.Native=function(J){J=J||{};var F=J.afterImplement||function(){};var G=J.generics; G=(G!==false);var H=J.legacy;var E=J.initialize;var B=J.protect;var A=J.name;var C=E||H;C.xconstructor=FSR.Native; C.fsr$family={name:"native"};if(H&&E){C.prototype=H.prototype}C.prototype.xconstructor=C;if(A){var D=A.toLowerCase(); C.prototype.fsr$family={name:D}}var I=function(M,K,N,L){if(!B||L||!M.prototype[K]){M.prototype[K]=N }if(G){FSR.Native.genericize(M,K,B)}F.call(M,K,N);return M};C.fsr$implement=function(L,K,N){if(typeof L=="string"){return I(this,L,K,N) }for(var M in L){I(this,M,L[M],K)}return this};C.fsr$alias=function(M,K,N){if(typeof M=="string"){M=this.prototype[M]; if(M){I(this,K,M,N)}}else{for(var L in M){this.fsr$alias(L,M[L],K)}}return this};return C};FSR.Native.fsr$implement=function(D,C){for(var B=0,A=D.length; B-1:this.indexOf(A)>-1},fsr$trim:function(){return this.replace(/^\s+|\s+$/g,"") },fsr$clean:function(){return this.replace(/\s+/g," ").fsr$trim()},fsr$camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase() })},fsr$hyphenate:function(){return this.replace(/[A-Z]/g,function(A){return("-"+A.charAt(0).toLowerCase()) })},fsr$capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase()}) },fsr$escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},fsr$toInt:function(A){return parseInt(this,A||10) },fsr$stripScripts:function(B){var A="";var C=this.replace(/]*>([\s\S]*?)<\/script>/gi,function(){A+=arguments[1]+"\n"; return""});if(B===true){FSR.$exec(A)}else{if(FSR.$type(B)=="function"){B(A,C)}}return C},fsr$substitute:function(A,B){return this.replace(B||(/\\?\{([^}]+)\}/g),function(D,C){if(D.charAt(0)=="\\"){return D.slice(1) }return(A[C]!=undefined)?A[C]:""})}});FSR.Hash.fsr$implement({has:Object.prototype.hasOwnProperty,keyOf:function(B){for(var A in this){if(this.hasOwnProperty(A)&&this[A]===B){return A }}return null},extend:function(A){FSR.Hash.each(A,function(C,B){FSR.Hash.set(this,B,C)},this);return this },combine:function(A){FSR.Hash.each(A,function(C,B){FSR.Hash.include(this,B,C)},this);return this },erase:function(A){if(this.hasOwnProperty(A)){delete this[A]}return this},get:function(A){return(this.hasOwnProperty(A))?this[A]:null },set:function(A,B){if(!this[A]||this.hasOwnProperty(A)){this[A]=B}return this},include:function(B,C){var A=this[B]; if(A==undefined){this[B]=C}return this},toQueryString:function(A){var B=[];FSR.Hash.each(this,function(F,E){if(A){E=A+"["+E+"]" }var D;switch(FSR.$type(F)){case"object":D=FSR.Hash.toQueryString(F,E);break;case"array":var C={}; FSR.Array.each(F,function(H,G){C[G]=H});D=FSR.Hash.toQueryString(C,E);break;default:D=E+"="+encodeURIComponent(F) }if(F!=undefined){B.push(D)}});return B.join("&")}});FSR.Hash.fsr$alias({keyOf:"indexOf",hasValue:"contains"}); FSR.Event=new FSR.Native({name:"Event",initialize:function(A,F){F=F||window;var K=F.document;A=A||F.event; if(A.fsr$extended){return A}this.fsr$extended=true;var J=A.type;var G=A.target||A.srcElement;while(G&&G.nodeType==3){G=G.parentNode }if(J.fsr$test(/key/)){var B=A.which||A.keyCode;var M=FSR.Event.Keys.keyOf(B);if(J=="keydown"){var D=B-111; if(D>0&&D<13){M="f"+D}}M=M||String.fromCharCode(B).toLowerCase()}else{if(J.match(/(click|mouse|menu)/i)){K=(!K.compatMode||K.compatMode=="CSS1Compat")?K.getElementsByTagName("html")[0]:K.body; var I={x:A.pageX||A.clientX+K.scrollLeft,y:A.pageY||A.clientY+K.scrollTop};var C={x:(A.pageX)?A.pageX-F.pageXOffset:A.clientX,y:(A.pageY)?A.pageY-F.pageYOffset:A.clientY}; if(J.match(/DOMMouseScroll|mousewheel/)){var H=(A.wheelDelta)?A.wheelDelta/120:-(A.detail||0)/3}var E=(A.which==3)||(A.button==2); var L=null;if(J.match(/over|out/)){switch(J){case"mouseover":L=A.relatedTarget||A.fromElement;break; case"mouseout":L=A.relatedTarget||A.toElement}if(!(function(){while(L&&L.nodeType==3){L=L.parentNode }return true}).fsr$create({attempt:FSR.Browser.Engine.gecko})()){L=false}}}}return FSR.$extend(this,{event:A,type:J,page:I,client:C,rightClick:E,wheel:H,relatedTarget:L,target:G,code:B,key:M,shift:A.shiftKey,control:A.ctrlKey,alt:A.altKey,meta:A.metaKey}) }});FSR.Event.Keys=new FSR.Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46}); FSR.Class=new FSR.Native({name:"Class",initialize:function(B){B=B||{};var A=function(E){for(var D in this){this[D]=FSR.$unlink(this[D]) }for(var F in FSR.Class.Mutators){if(F=="extend"){continue}if(!this[F]){continue}FSR.Class.Mutators[F](this,this[F]); delete this[F]}this.constructor=A;if(E===FSR.$empty){return this}var C=(this.initialize)?this.initialize.apply(this,arguments):this; if(this.options&&this.options.initialize){this.options.initialize.call(this)}return C};FSR.$extend(A,this); A.constructor=FSR.Class;A.prototype=B;return A}});FSR.Class.fsr$implement({fsr$implement:function(){FSR.Class.Mutators.Implements(this.prototype,FSR.Array.slice(arguments)); return this}});FSR.Class.Mutators={Implements:function(A,B){FSR.Array.each(FSR.$splat(B),function(C){FSR.$extend(A,(FSR.$type(C)=="class")?new C(FSR.$empty):C) })},Extends:function(self,klass){var instance=new klass(FSR.$empty);delete instance.parent;delete instance.parentOf; for(var key in instance){var current=self[key],previous=instance[key];if(current==undefined){self[key]=previous; continue}var ctype=FSR.$type(current),ptype=FSR.$type(previous);if(ctype!=ptype){continue}switch(ctype){case"function":if(!arguments.callee.caller){self[key]=FSR.eval("("+String(current).replace(/\bthis\.parent\(\s*(\))?/g,function(full,close){return"arguments.callee._parent_.call(this"+(close||", ") })+")")}self[key]._parent_=previous;break;case"object":self[key]=FSR.$merge(previous,current)}}self.parent=function(){return arguments.callee.caller._parent_.apply(this,arguments) };self.parentOf=function(descendant){return descendant._parent_.apply(this,FSR.Array.slice(arguments,1)) }}};FSR.Events=new FSR.Class({fsr$addEvent:function(C,B,A){C=FSR.Events.removeOn(C);if(B!=FSR.$empty){this.$events=this.$events||{}; this.$events[C]=this.$events[C]||[];FSR.Array.include(this.$events[C],B);if(A){B.internal=true}}return this },fsr$addEvents:function(A){for(var B in A){this.fsr$addEvent(B,A[B])}return this},fsr$fireEvent:function(C,B,A){C=FSR.Events.removeOn(C); if(!this.$events||!this.$events[C]){return this}FSR.Array.each(this.$events[C],function(D){D.fsr$create({bind:this,delay:A,"arguments":B})() },this);return this},fsr$removeEvent:function(B,A){B=FSR.Events.removeOn(B);if(!this.$events||!this.$events[B]){return this }if(!A.internal){this.$events[B].erase(A)}return this},fsr$removeEvents:function(C){for(var D in this.$events){if(C&&C!=D){continue }var B=this.$events[D];for(var A=B.length;A--;A){this.fsr$removeEvent(D,B[A])}}return this}});FSR.Events.removeOn=function(A){return A.replace(/^on([A-Z])/,function(B,C){return C.toLowerCase() })};FSR.Options=new FSR.Class({setOptions:function(){this.options=FSR.$merge.fsr$run(FSR.Array.extend([this.options],arguments)); if(!this.fsr$addEvent){return this}for(var A in this.options){if(FSR.$type(this.options[A])!="function"||!(/^on[A-Z]/).test(A)){continue }this.fsr$addEvent(A,this.options[A]);delete this.options[A]}return this}});(function(){var D;try{var A=document.createElement(""); D=(A.name=="x")}catch(B){}var C=function(E){return(""+E).replace(/&/g,"&").replace(/"/g,""") };FSR.Document.fsr$implement({fsr$newElement:function(E,F){if(F&&F.checked!=null){F.defaultChecked=F.checked }if(D&&F){E="<"+E;if(F.name){E+=' name="'+C(F.name)+'"'}if(F.type){E+=' type="'+C(F.type)+'"'}E+=">"; delete F.name;delete F.type}return $fsr.element(this.createElement(E)).fsr$set(F)},fsr$newTextNode:function(E){return this.createTextNode(E) },fsr$getDocument:function(){return this},fsr$getWindow:function(){return this.defaultView||this.parentWindow },fsr$purge:function(){var G=this.getElementsByTagName("*");for(var F=0,E=G.length;F1);FSR.Array.each(A,function(E){var F=this.getElementsByTagName(E.fsr$trim()); (B)?FSR.Array.extend(C,F):C=F},this);return new FSR.Elements(C,{ddup:B,cash:!D})}});FSR.Element.Storage={get:function(A){return(this[A]||(this[A]={})) }};FSR.Element.Inserters=new FSR.Hash({after:function(B,A){if(!A.parentNode){return }var C=A.nextSibling; (C)?A.parentNode.insertBefore(B,C):A.parentNode.appendChild(B)},bottom:function(B,A){A.appendChild(B) },top:function(B,A){var C=A.firstChild;(C)?A.insertBefore(B,C):A.appendChild(B)}});FSR.Element.Inserters.inside=FSR.Element.Inserters.bottom; FSR.Element.fsr$implement({fsr$getDocument:function(){return this.ownerDocument},fsr$getWindow:function(){return this.ownerDocument.fsr$getWindow() },fsr$set:function(D,B){switch(FSR.$type(D)){case"object":for(var C in D){this.fsr$set(C,D[C])}break; case"string":var A=FSR.Element.Properties.get(D);if(A&&A.set){A.set.apply(this,FSR.Array.slice(arguments,1)) }else{this.fsr$setProperty(D,B)}}return this},fsr$inject:function(B,A){FSR.Element.Inserters.get(A||"bottom")(this,$fsr(B,true)); return this},fsr$dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this },fsr$setProperty:function(D,E){var C=FSR.Element.Attributes,B=C.Props[D],A=FSR.$defined(E);if(B&&C.Bools[D]){E=(E||!A)?true:false }else{if(!A){return this.removeProperty(D)}}(B)?this[B]=E:this.setAttribute(D,E);return this},fsr$setProperties:function(A){for(var B in A){this.fsr$setProperty(B,A[B]) }return this}});FSR.Element.Properties=new FSR.Hash;FSR.Element.Properties.html={set:function(){return this.innerHTML=FSR.Array.flatten(arguments).join("") }};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addListener:function(B,A){if(this.addEventListener){this.addEventListener(B,A,false) }else{this.attachEvent("on"+B,A)}return this},fsr$removeListener:function(B,A){if(this.removeEventListener){this.removeEventListener(B,A,false) }else{this.detachEvent("on"+B,A)}return this},fsr$retrieve:function(B,A){var D=FSR.Element.Storage.get(this.fsr$uid); var C=D[B];if(FSR.$defined(A)&&!FSR.$defined(C)){C=D[B]=A}return FSR.$pick(C)},fsr$store:function(B,A){var C=FSR.Element.Storage.get(this.fsr$uid); C[B]=A;return this},fsr$eliminate:function(A){var B=FSR.Element.Storage.get(this.fsr$uid);delete B[A]; return this}});FSR.Element.Attributes=new FSR.Hash({Props:{html:"innerHTML","class":"className","for":"htmlFor",text:(FSR.Browser.Engine.trident)?"innerText":"textContent"},Bools:["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"],Camels:["value","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]}); FSR.Browser.freeMem=function(A){if(!A){return }if(FSR.Browser.Engine.trident&&(/object/i).test(A.tagName)){for(var B in A){if(typeof A[B]=="function"){A[B]=FSR.$empty }}FSR.Element.fsr$dispose(A)}if(A.fsr$uid&&A.fsr$removeEvents){A.fsr$removeEvents()}if(A.fsr$uid){A.fsr$uid=null }};(function(A){var C=A.Bools,B=A.Camels;A.Bools=C=FSR.Array.associate(C,C);FSR.Hash.extend(FSR.Hash.combine(A.Props,C),FSR.Array.associate(B,FSR.Array.map(B,function(D){return D.toLowerCase() })));A.erase("Camels")})(FSR.Element.Attributes);window.fsr$addListener("unload",function(){window.fsr$removeListener("unload",arguments.callee); window.fsr$fireEvent("unload");document.fsr$purge();if(window.CollectGarbage){CollectGarbage()}}); FSR.Element.Properties.events={set:function(A){this.fsr$addEvents(A)}};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addEvent:function(E,G){var H=this.fsr$retrieve("events",{}); H[E]=H[E]||{keys:[],values:[]};if(FSR.Array.contains(H[E].keys,G)){return this}H[E].keys.push(G); var F=E,A=FSR.Element.Events.get(E),C=G,I=this;if(A){if(A.onAdd){A.onAdd.call(this,G)}if(A.condition){C=function(J){if(A.condition.call(this,J)){return G.call(this,J) }return false}}F=A.base||F}var D=function(){return G.call(I)};var B=FSR.Element.NativeEvents[F]||0; if(B){if(B==2){D=function(J){J=new FSR.Event(J,I.fsr$getWindow());if(C.call(I,J)===false){J.stop() }}}if(F!="unload"){this.fsr$addListener(F,D)}}H[E].values.push(D);return this},fsr$removeEvent:function(D,C){var B=this.fsr$retrieve("events"); if(!B||!B[D]){return this}var G=FSR.Array.indexOf(B[D].keys,C);if(G==-1){return this}var A=B[D].keys.splice(G,1)[0]; var F=B[D].values.splice(G,1)[0];var E=FSR.Element.Events.get(D);if(E){if(E.onRemove){E.onRemove.call(this,C) }D=E.base||D}return(FSR.Element.NativeEvents[D])?this.fsr$removeListener(D,F):this},fsr$addEvents:function(A){for(var B in A){if(A.hasOwnProperty(B)){this.fsr$addEvent(B,A[B]) }}return this},fsr$removeEvents:function(B){var A=this.fsr$retrieve("events");if(!A){return this}if(!B){for(var C in A){if(A.hasOwnProperty(C)){this.fsr$removeEvents(C) }}A=null}else{if(A[B]){while(A[B].keys[0]){this.fsr$removeEvent(B,A[B].keys[0])}A[B]=null}}return this },fsr$fireEvent:function(D,B,A){var C=this.fsr$retrieve("events");if(!C||!C[D]){return this}FSR.Array.each(C[D].keys,function(E){E.fsr$create({bind:this,delay:A,"arguments":B})() },this);return this}});FSR.Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; (function(){FSR.$check=function(A){var B=A.relatedTarget;if(B==undefined){return true}if(B===false){return false }return(FSR.$type(this)!="document"&&B!=this&&B.prefix!="xul"&&!this.fsr$hasChild(B))};FSR.Element.Events=new FSR.Hash({mouseenter:{base:"mouseover",condition:FSR.$check},mouseleave:{base:"mouseout",condition:FSR.$check},mousewheel:{base:(FSR.Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}}) })();FSR.Element.fsr$implement({fsr$hasChild:function(A){A=$fsr(A,true);return(!!A&&FSR.Array.contains(FSR.$A(this.getElementsByTagName(A.tagName)),A)) }});(function(){FSR.Native.fsr$implement([FSR.Document,FSR.Window],{fsr$getSize:function(){var C=this.fsr$getWindow(); if(FSR.Browser.Engine.presto||FSR.Browser.Engine.webkit){return{x:C.innerWidth,y:C.innerHeight}}var B=A(this); return{x:B.clientWidth,y:B.clientHeight}},fsr$getScroll:function(){var C=this.fsr$getWindow();var B=A(this); return{x:C.pageXOffset||B.scrollLeft,y:C.pageYOffset||B.scrollTop}},fsr$getScrollSize:function(){var C=A(this); var B=this.fsr$getSize();return{x:Math.max(C.scrollWidth,B.x),y:Math.max(C.scrollHeight,B.y)}}}); function A(B){var C=B.fsr$getDocument();return(!C.compatMode||C.compatMode=="CSS1Compat")?C.getElementsByTagName("html")[0]:C.body }})();FSR.Element.Events.domready={onAdd:function(A){if(FSR.Browser.loaded){A.call(this)}}};(function(){var A=function(){if(FSR.Browser.loaded){return }FSR.Browser.loaded=true;window.fsr$fireEvent("domready");document.fsr$fireEvent("domready")};switch(FSR.Browser.Engine.name){case"webkit":(function(){(FSR.Array.contains(["loaded","complete"],document.readyState))?A():arguments.callee.fsr$delay(50) })();break;case"trident":var B=document.createElement("div");(function(){(FSR.$try(function(){B.doScroll("left"); return $fsr(B).fsr$inject(document.body).fsr$set("html","temp").fsr$dispose()}))?A():arguments.callee.fsr$delay(50) })();break;default:window.fsr$addEvent("load",A);document.fsr$addEvent("DOMContentLoaded",A)}})(); FSR.JSON=new FSR.Hash({encode:function(B){switch(FSR.$type(B)){case"string":return'"'+B.replace(/[\x00-\x1f\\"\\;]/g,FSR.JSON.$replaceChars)+'"'; case"array":return"["+String(FSR.Array.map(B,FSR.JSON.encode).fsr$filter(FSR.$defined))+"]";case"object":case"hash":var A=[]; FSR.Hash.each(B,function(E,D){var C=FSR.JSON.encode(E);if(C){A.push(FSR.JSON.encode(D)+":"+C)}}); return"{"+A+"}";case"number":case"boolean":return String(B);case false:return"null"}return null},$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(A){return FSR.JSON.$specialChars[A]||"\\u00"+Math.floor(A.charCodeAt()/16).toString(16)+(A.charCodeAt()%16).toString(16) },decode:function(string,secure){if(FSR.$type(string)!="string"||!string.length){return null}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null }return eval("("+string+")")}});FSR.Native.fsr$implement([FSR.Hash,Number],{fsr$toJSON:function(){return FSR.JSON.encode(this) }});FSR.Cookie=new FSR.Class({Implements:FSR.Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(B,A){this.key=B; this.setOptions(A)},write:function(B){if(FSR.encode){B=encodeURIComponent(B)}if(this.options.domain){B+="; domain="+this.options.domain }if(this.options.path){B+="; path="+this.options.path}if(this.options.duration){var A=new Date(); A.setTime(A.getTime()+this.options.duration*24*60*60*1000);B+="; expires="+A.toGMTString()}if(this.options.secure){B+="; secure" }this.options.document.cookie=this.key+"="+B;return this},read:function(){var A=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.fsr$escapeRegExp()+"=([^;]*)"); var B=(A)?A[1]:null;if(FSR.encode){B=(B)?decodeURIComponent(B):null}return B},dispose:function(){new FSR.Cookie(this.key,FSR.$merge(this.options,{duration:-1})).write(""); return this}});FSR.Cookie.write=function(B,C,A){return new FSR.Cookie(B,A).write(C)};FSR.Cookie.read=function(A){return new FSR.Cookie(A).read() };FSR.Cookie.dispose=function(B,A){return new FSR.Cookie(B,A).dispose()};FSR.Hash.Cookie=new FSR.Class({Extends:FSR.Cookie,options:{autoSave:true},initialize:function(B,A){this.parent(B,A); this.load()},save:function(){var A=FSR.JSON.encode(this.hash);if(!A||A.length>4096){return false}if(A=="{}"){this.dispose() }else{this.write(A)}return true},load:function(){this.hash=new FSR.Hash(FSR.JSON.decode(this.read(),true)); return this}});FSR.Hash.Cookie.fsr$implement({get:function(A){return this.hash.get(A)},set:function(A,B){this.hash.set(A,B); this.save();return this},erase:function(A){this.hash.erase(A);this.save();return this},empty:function(){this.hash.empty(); this.save();return this}});FSR.Asset=new FSR.Hash({src:function(A){var B=A;if(A.substring(0,2)=="//"){B=document.location.protocol+B }return B},javascript:function(F,D){D=FSR.$extend({onload:FSR.$empty,document:document,check:FSR.$lambda(true)},D); var B=new FSR.Element("script",{src:FSR.Asset.src(F),type:"text/javascript"});var E=D.onload.fsr$bind(B),A=D.check,G=D.document; delete D.onload;delete D.check;delete D.document;B.fsr$addEvents({load:function(){if(this.loaded){return }this.loaded=1;E()},readystatechange:function(){if(FSR.Browser.Engine.trident&&FSR.Array.contains(["loaded","complete"],this.readyState)){if(this.loaded){return }this.loaded=1;E()}}}).fsr$setProperties(D);if(FSR.Browser.Engine.webkit419){var C=(function(){if(!FSR.$try(A)){return }FSR.$clear(C);E()}).fsr$periodical(50)}return B.fsr$inject(document.getElementsByTagName("head")[0]) },image:function(C,B){B=FSR.$merge({onload:FSR.$empty,onabort:FSR.$empty,onerror:FSR.$empty},B);var D=new Image(); var A=$fsr(D)||new FSR.Element("img");FSR.Array.each(["load","abort","error"],function(E){var F="on"+E; var G=B[F];delete B[F];D[F]=function(){if(!D){return }if(!A.parentNode){A.width=D.width;A.height=D.height }D=D.onload=D.onabort=D.onerror=null;G.fsr$delay(1,A,A);A.fsr$fireEvent(E,A,1)}});D.src=FSR.Asset.src(C); if(A.src!=D.src){A.src=D.src}if(D&&D.complete){D.onload.fsr$delay(1)}return A.fsr$setProperties(B) },css:function(B,A){return new FSR.Element("link",FSR.$merge({rel:"stylesheet",media:"screen",type:"text/css",href:FSR.Asset.src(B)},A)).fsr$inject(document.getElementsByTagName("head")[0]) }});FSR.Browser.set("Popup",new FSR.Class({Implements:[FSR.Options,FSR.Events],options:{width:500,height:300,x:50,y:50,toolbar:0,location:0,directories:0,status:0,scrollbars:"auto",resizable:1,name:"popup",blur:false,menubar:1},initialize:function(B,A){this.url=B||false; this.setOptions(A);if(this.url){this.openWin()}},openWin:function(B){B=B||this.url;var A="toolbar="+this.options.toolbar+",location="+this.options.location+",directories="+this.options.directories+",status="+this.options.status+",scrollbars="+this.options.scrollbars+",resizable="+this.options.resizable+",width="+this.options.width+",height="+this.options.height+",top="+this.options.y+",left="+this.options.x+",menubar="+this.options.menubar; this.window=window.open(B,this.options.name,A);if(!this.window){this.window=window.open("",this.options.name,A); this.window.location.href=B}if(!this.options.blur){this.focus.fsr$delay(100,this)}else{this.window.blur() }return this},focus:function(){if(this.window){this.window.focus()}else{if(this.focusTries<10){this.focus.delay(100,this) }else{this.blocked=true;this.fsr$fireEvent("onBlock")}}return this},focusTries:0,blocked:null,close:function(){this.window.close(); return this}}));FSR.RemoteEvent=new FSR.Class({Implements:[FSR.Events,FSR.Options],options:{host:"",path:"",url:""},initialize:function(B,A){this.setOptions(A); this.event=B;this.ver=0},onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0; FSR.$try(function(){this.status=A}.fsr$bind(this));if(this.isSuccess()){this.success()}else{this.failure() }},isSuccess:function(){return(this.status==1)},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("success") },failure:function(){this.onFailure()},onFailure:function(){if(this.ver<3){this._send()}else{this.fsr$fireEvent("failure") }},send:function(A){this.values=A;this._send()},_send:function(){this.running=true;this.ver=this.ver+1; var A=this;var C=FSR.Hash.toQueryString(this.values);var B=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?event="+this.event+"&"+C+"&uid="+FSR.$time()+"&ver="+this.ver; new FSR.Asset.image(B,{onload:function(D){A.onStateChange(1)},onerror:function(){A.onStateChange(0) },onabort:function(){A.onStateChange(0)}});return this}});FSR.CPPS=new FSR.Hash({set:function(B,C,D){var D=(D||FSR.c()); var A=D.get("cp")||{};A[B]=C;D.set("cp",A)},get:function(B,C){var C=(C||FSR.c());var A=C.get("cp")||{}; return A[B]},erase:function(B,C){var C=(C||FSR.c());var A=C.get("cp")||{};delete A[B];C.set("cp",A) },append:function(B,C,D){var D=(D||FSR.c());var A=D.get("cp")||{};A[B]=A[B]?A[B]+","+C:C;D.set("cp",A) },toQueryString:function(M){var M=(M||FSR.c());var K=M.get("sd");var J=FSR.$defined(K)?FSR.surveydefs[K]:FSR.sd; var F=M.get("browser");var A={browser:FSR.Browser.Type.name+" "+FSR.Browser.Type.version,os:FSR.Browser.Platform.os,pv:M.get("pv"),url:M.get("c")||"",ref_url:M.get("ru")||"",locale:M.get("l")||"",site:FSR.site.name||"",section:J.section||"",referrer:M.get("r")||"",terms:M.get("st")||"",sessionid:M.get("rid")||"",replay_id:M.get("mid")||"",flash:FSR.Browser.Plugins.Flash.version}; if(FSR.$P().analytics.google){var H=FSR.Cookie.read("__utma",{path:"/",domain:FSR.site.domain||false}); var E=FSR.Cookie.read("__utmz",{path:"/",domain:FSR.site.domain||false});if(H&&H!=""){var C=H.split("."); A.first=C[2];A.last=C[3];A.current=C[4];A.visits=C[5]}if(E&&E!=""){var B;if(B=E.match(/utmgclid=([^\|]*)/)){A.source="Google"; A.campaign="Google Adwords";A.medium="cpc"}else{if(B=E.match(/utmcsr=([^\|]*)/)){A.source=B[1]}if(B=E.match(/utmccn=([^\|]*)/)){A.campaign=B[1] }if(B=E.match(/utmcmd=([^\|]*)/)){A.medium=B[1]}}if(B=E.match(/utmctr=([^\|]*)/)){A.keyword=B[1]}}}var G=M.get("cp")||{}; var D=new FSR.Hash(G);var I=A||{};for(k in I){D.set(k,I[k])}var L=D.toQueryString("cpp");return L }});FSR.Service=new FSR.Class({Implements:[FSR.Events,FSR.Options],options:{},initialize:function(A){this.setOptions(A) },onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0;FSR.$try(function(){this.status=A }.fsr$bind(this));if(this.status==1){this.success()}else{if(this.status==0){this.failure()}else{if(this.status==-1){this.error() }}}},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("complete").fsr$fireEvent("success") },failure:function(){this.onFailure()},onFailure:function(){this.fsr$fireEvent("complete").fsr$fireEvent("failure") },error:function(){this.onError()},onError:function(){this.fsr$fireEvent("complete").fsr$fireEvent("error") },ping:function(){this.running=true;var B=this;var D=this.options.params||{};D.protocol=document.location.protocol; D.uid=FSR.$time();var A=FSR.Hash.toQueryString(D);var C=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?"+A; new FSR.Asset.image(C,{onload:function(E){if(E.width==B.options.success){B.onStateChange(1)}else{B.onStateChange(0) }},onerror:function(){B.onStateChange(-1)},onabort:function(){B.onStateChange(0)}});return this},cancel:function(){if(!this.running){return this }this.running=false;this.fsr$fireEvent("cancel");return this}});FSR.RR=new FSR.Hash({hasRR:function(){if(typeof robotreplay!="undefined"){return true }return false},setOKTransmit:function(){if(this.hasRR()){var A=robotreplay.Session.rr_group_session_id; robotreplay.Log.setOKTransmit();FSR.c().set("mid",A)}},recordEvent:function(A,B){if(this.hasRR()){robotreplay.Log.push(A,B) }},cancelRecord:function(){if(this.hasRR()){robotreplay.Log.cancelRecord()}},getPosition:function(A){if(this.hasRR()){return robotreplay.Dom.getAbsoluteCoords(document.getElementById(A)) }else{return{position:false}}}});FSR.Element.fsr$implement({fsr$getScrolls:function(){var B=this,A={x:0,y:0}; while(B&&!FSR.isBody(B)){A.x+=B.scrollLeft;A.y+=B.scrollTop;B=B.parentNode}return A},fsr$getOffsets:function(){var B=this,A={x:0,y:0}; if(FSR.isBody(this)){return A}while(B&&!FSR.isBody(B)){A.x+=B.offsetLeft;A.y+=B.offsetTop;if(FSR.Browser.Engine.gecko){if(!FSR.borderBox(B)){A.x+=FSR.leftBorder(B); A.y+=FSR.topBorder(B)}var C=B.parentNode;if(C&&FSR.styleString(C,"overflow")!="visible"){A.x+=FSR.leftBorder(C); A.y+=FSR.topBorder(C)}}else{if(B!=this&&(FSR.Browser.Engine.trident||FSR.Browser.Engine.webkit)){A.x+=FSR.leftBorder(B); A.y+=FSR.topBorder(B)}}B=B.offsetParent;if(FSR.Browser.Engine.trident){while(B&&!B.currentStyle.hasLayout){B=B.offsetParent }}}if(FSR.Browser.Engine.gecko&&!FSR.borderBox(this)){A.x-=FSR.leftBorder(this);A.y-=FSR.topBorder(this) }return A},fsr$getOffsetParent:function(){var A=this;if(FSR.isBody(A)){return null}if(!FSR.Browser.Engine.trident){return A.offsetParent }while((A=A.parentNode)&&!FSR.isBody(A)){if(FSR.styleString(A,"position")!="static"){return A}}return null },fsr$getSize:function(){if(FSR.isBody(this)){return this.fsr$getWindow().fsr$getSize()}return{x:this.offsetWidth,y:this.offsetHeight} },fsr$expose:function(){if(this.fsr$getStyle("display")!="none"){return FSR.$empty}var B={};var A={visibility:"hidden",display:"block",position:"absolute"}; FSR.$each(A,function(D,C){B[C]=this.style[C]||""},this);this.fsr$setStyles(A);return(function(){this.fsr$setStyles(B) }).fsr$bind(this)},fsr$getDimensions:function(A){A=FSR.$merge({computeSize:true},A);var E={};function D(G,F){return G.fsr$getSize() }if(this.fsr$getStyle("display")=="none"){var B=this.fsr$expose();E=D(this,A);B()}else{try{E=D(this,A) }catch(C){}}return FSR.$chk(E.x)?FSR.$extend(E,{width:E.x,height:E.y}):FSR.$extend(E,{x:E.width,y:E.height}) },fsr$grab:function(B,A){FSR.Element.Inserters.get(A||"bottom")($fsr(B,true),this);return this},fsr$appendText:function(B,A){return this.fsr$grab(this.fsr$getDocument().fsr$newTextNode(B),A) },fsr$adopt:function(){FSR.Array.each(FSR.Array.flatten(arguments),function(A){A=$fsr(A,true);if(A){this.appendChild(A) }},this);return this},fsr$hasClass:function(A){return this.className.fsr$contains(A," ")},fsr$addClass:function(A){if(!this.fsr$hasClass(A)){this.className=(this.className+" "+A).fsr$clean() }return this},fsr$getComputedStyle:function(B){if(this.currentStyle){return this.currentStyle[B.fsr$camelCase()] }var A=this.fsr$getWindow().getComputedStyle(this,null);return(A)?A.getPropertyValue([B.fsr$hyphenate()]):null },fsr$toggleClass:function(A){return this.fsr$hasClass(A)?this.removeClass(A):this.fsr$addClass(A) }});FSR.Element.fsr$implement({fsr$setOpacity:function(A){return this.fsr$set("opacity",A,true)},fsr$getOpacity:function(){return this.get("opacity") },fsr$setStyle:function(B,A){switch(B){case"opacity":return this.fsr$set("opacity",parseFloat(A)); case"float":B=(FSR.Browser.Engine.trident)?"styleFloat":"cssFloat"}B=B.fsr$camelCase();if(FSR.$type(A)!="string"){var C=(FSR.Element.Styles.get(B)||"@").split(" "); A=FSR.Array.map(FSR.$splat(A),function(E,D){if(!C[D]){return""}return(FSR.$type(E)=="number")?C[D].replace("@",Math.round(E)):E }).join(" ")}else{if(A==String(Number(A))){A=Math.round(A)}}this.style[B]=A;return this},fsr$getStyle:function(G){switch(G){case"opacity":return this.get("opacity"); case"float":G=(FSR.Browser.Engine.trident)?"styleFloat":"cssFloat"}G=G.fsr$camelCase();var A=this.style[G]; if(!FSR.$chk(A)){A=[];for(var F in FSR.Element.ShortStyles){if(G!=F){continue}for(var E in FSR.Element.ShortStyles[F]){A.push(this.fsr$getStyle(E)) }return A.join(" ")}A=this.fsr$getComputedStyle(G)}if(A){A=String(A);var C=A.match(/rgba?\([\d\s,]+\)/); if(C){A=A.replace(C[0],C[0].fsr$rgbToHex())}}if(FSR.Browser.Engine.presto||(FSR.Browser.Engine.trident&&!FSR.$chk(parseInt(A)))){if(G.fsr$test(/^(height|width)$/)){var B=(G=="width")?["left","right"]:["top","bottom"],D=0; FSR.Array.each(B,function(H){D+=this.fsr$getStyle("border-"+H+"-width").fsr$toInt()+this.fsr$getStyle("padding-"+H).fsr$toInt() },this);return this["offset"+G.fsr$capitalize()]-D+"px"}if(FSR.Browser.Engine.presto&&String(A).fsr$test("px")){return A }if(G.fsr$test(/(border(.+)Width|margin|padding)/)){return"0px"}}return A},fsr$setStyles:function(B){for(var A in B){if(typeof B[A]!="function"){this.fsr$setStyle(A,B[A]) }}return this},fsr$getStyles:function(){var A={};FSR.Array.each(arguments,function(B){A[B]=this.fsr$getStyle(B) },this);return A}});FSR.isBody=function(A){return(/^(?:body|html)$/i).test(A.tagName)};FSR.styleString=FSR.Element.fsr$getComputedStyle; FSR.styleNumber=function(A,B){return FSR.styleString(A,B).fsr$toInt()||0};FSR.borderBox=function(A){return FSR.styleString(A,"-moz-box-sizing")=="border-box" };FSR.topBorder=function(A){return FSR.styleNumber(A,"border-top-width")};FSR.leftBorder=function(A){return FSR.styleNumber(A,"border-left-width") };FSR.Element.fsr$implement({fsr$getPosition:function(D){if(FSR.isBody(this)){return{x:0,y:0}}var E=this.fsr$getOffsets(),B=this.fsr$getScrolls(); var A={x:E.x-B.x,y:E.y-B.y};var C=(D&&(D=$(D)))?D.fsr$getPosition():{x:0,y:0};return{x:A.x-C.x,y:A.y-C.y} },fsr$setPosition:function(M){FSR.$each(M||{},function(O,N){if(!FSR.$defined(O)){delete M[N]}});M=FSR.$merge({relativeTo:document.body,position:{x:"center",y:"center"},edge:false,offset:{x:0,y:0},returnPos:false,relFixedPosition:false,ignoreMargins:false},M); function L(N){if(FSR.$type(N)!="string"){return N}N=N.toLowerCase();var O={};if(N.fsr$test("left")){O.x="left" }else{if(N.fsr$test("right")){O.x="right"}else{O.x="center"}}if(N.fsr$test("upper")||N.fsr$test("top")){O.y="top" }else{if(N.fsr$test("bottom")){O.y="bottom"}else{O.y="center"}}return O}M.edge=L(M.edge);M.position=L(M.position); if(!M.edge){if(M.position.x=="center"&&M.position.y=="center"){M.edge={x:"center",y:"center"}}else{M.edge={x:"left",y:"top"} }}this.fsr$setStyle("position","absolute");var J=$fsr(M.relativeTo)||document.body;var E;if(J==document.body){E=window.fsr$getScroll() }else{E=J.fsr$getPosition()}var I=E.y;var C=E.x;if(I<0){I=0}if(C<0){C=0}var D=this.fsr$getDimensions({computeSize:false,styles:["padding","border","margin"]}); if(M.ignoreMargins){M.offset.x=M.offset.x-D["margin-left"];M.offset.y=M.offset.y-D["margin-top"]}var H={}; var A=M.offset.y.fsr$toInt();var B=M.offset.x.fsr$toInt();var K=window.fsr$getSize();switch(M.position.x){case"left":H.x=C+B; break;case"right":H.x=C+B+J.offsetWidth;break;default:H.x=C+(((J==document.body)?K.x:J.offsetWidth)/2)+B; break}switch(M.position.y){case"top":H.y=I+A;break;case"bottom":H.y=I+A+J.offsetHeight;break;default:H.y=I+(((J==document.body)?K.y:J.offsetHeight)/2)+A; break}if(M.edge){var G={};switch(M.edge.x){case"left":G.x=0;break;case"right":G.x=-D.x-D.computedRight-D.computedLeft; break;default:G.x=-(D.x/2);break}switch(M.edge.y){case"top":G.y=0;break;case"bottom":G.y=-D.y-D.computedTop-D.computedBottom; break;default:G.y=-(D.y/2);break}H.x=H.x+G.x;H.y=H.y+G.y}H={left:((H.x>=0)?H.x:0).fsr$toInt(),top:((H.y>=0)?H.y:0).fsr$toInt()}; if(J.fsr$getStyle("position")=="fixed"||M.relFixedPosition){var F=window.fsr$getScroll();H.top=H.top.fsr$toInt()+F.y; H.left=H.left.fsr$toInt()+F.x}if(M.returnPos){return H}else{this.fsr$setStyles(H)}return this}}); FSR.Element.Properties.styles={set:function(A){this.fsr$setStyles(A)}};FSR.Element.Properties.opacity={set:function(A,B){if(!B){if(A==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden" }}else{if(this.style.visibility!="visible"){this.style.visibility="visible"}}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1 }if(FSR.Browser.Engine.trident){this.style.filter=(A==1)?"":"alpha(opacity="+A*100+")"}this.style.opacity=A; this.fsr$store("opacity",A)},get:function(){return this.fsr$retrieve("opacity",1)}};FSR.Element.Styles=new FSR.Hash({left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"}); FSR.Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}}; FSR.Array.each(["Top","Right","Bottom","Left"],function(G){var F=FSR.Element.ShortStyles;var B=FSR.Element.Styles; FSR.Array.each(["margin","padding"],function(H){var I=H+G;F[H][I]=B[I]="@px"});var E="border"+G;F.border[E]=B[E]="@px @ rgb(@, @, @)"; var D=E+"Width",A=E+"Style",C=E+"Color";F[E]={};F.borderWidth[D]=F[E][D]=B[D]="@px";F.borderStyle[A]=F[E][A]=B[A]="@"; F.borderColor[C]=F[E][C]=B[C]="rgb(@, @, @)"});FSR.services={survey:{host:"survey.foreseeresults.com",path:"/survey",url:"/display"},check:{host:"controller2.foreseeresults.com",path:"/fsrSurvey",url:"/OTCImg",success:3},event:{host:"events.foreseeresults.com",path:"/rec",url:"/process"},domain:{host:"survey.foreseeresults.com",path:"/survey",url:"/FSRImg",success:3}}; FSR.UnsupportedBrowsers={Explorer:5.5,Safari:2,Firefox:1.4};FSR.SupportedPlatforms={win32:true,mac:true,linux:true,iphone:false,blackberry:false,wince:false,other:false}; FSR.$P=function(){return FSR.properties};FSR.c=function(){return new FSR.Hash.Cookie(FSR.cookieName("fsr.s"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false}) };FSR.cookieName=function(A){return A+(FSR.site.cookie?"."+FSR.site.cookie:"")};FSR.log=function(D,C){if(!FSR.$P().events.enabled){return }var E=FSR.c();var A=E.get("sd");var B=FSR.$defined(A)?FSR.surveydefs[A]:FSR.sd;new FSR.RemoteEvent("logit",{host:FSR.services.event.host,path:FSR.services.event.path,url:FSR.services.event.url}).send({cid:FSR.id,rid:E.get("rid")||"",cat:B.name,sec:B.section||"",type:E.get("q")||"",site:FSR.site.name||"",lang:E.get("l")||FSR.$S.locale||"",msg:D,param:C,tms:new Date().getTime(),tmz:new Date().getTimezoneOffset()*60000}) };FSR.popNow=function(A){FSR.pop(A,"now")};FSR.popLater=function(A){FSR.pop(A,"later")};FSR.popImmediate=function(){FSR.pop(100,"now") };FSR.popFeedback=function(){FSR.controller.execute(FSR.controller.popFeedback)};FSR.run=function(){FSR.controller.execute(FSR.controller.run) };FSR.pop=function(C,A,B){FSR.controller.execute(FSR.controller.popAttach,{sp:C,when:A,qualifier:B,invite:false}) };FSR.invite=function(C,A,B){FSR.controller.execute(FSR.controller.popAttach,{sp:C,when:A,qualifier:B,invite:true}) };FSR.close=function(){FSR.controller.cancelTracker()};var ForeSee={CPPS:{fsr$set:function(A,B){FSR.CPPS.set(A,B) }}};FSR.generateid=function(){var A="";A=((new Date())-0)+"_"+Math.round(Math.random()*1000000);return A };(function(){function G(K){if(typeof K=="object"){var J=K.constructor.toString().match(/array/i); return(J!=null)}return false}var I=FSR.sites;for(var F=0,D=I.length;F
  • foresee-alive.js
    var FSR = { 'version': '6.6.0', 'date': '06/10/2011', 'enabled': true, 'auto': true, 'encode': true, 'files': '/foresee/', 'id': '0SVzV++SsD2LrribNwgfmw==', 'sites': [{ name: 'Nairobi', path: 'nairobi.usembassy.gov' }, { name: 'SouthAfrica', path: 'southafrica.usembassy.gov' }, { name: 'SouthKorea_Seoul', path: 'seoul.usembassy.gov' }, { name: 'Jakarta', path: 'jakarta.usembassy.gov' }, { name: 'Russia_Moscow', path: 'moscow.usembassy.gov' }, { name: 'Russia_Moscow_Russian', path: 'russian.moscow.usembassy.gov' }, { name: 'Germany', path: 'germany.usembassy.gov' }, { name: 'Argentina', path: 'argentina.usembassy.gov' }, { name: 'India_NewDelhi', path: 'newdelhi.usembassy.gov' }, { name: 'Afghanistan_Kabul', path: 'kabul.usembassy.gov' }, { name: 'Pakistan_Islamabad', path: 'islamabad.usembassy.gov' }, { name: 'Turkey', path: 'turkey.usembassy.gov' }, { name: 'Morocco_Rabat', path: 'morocco.usembassy.gov' }, { name: 'Beijing', path: 'usembassy-china.org.cn' }, { name: 'Beijing_Chinese', path: 'chinese.usembassy-china.org.cn' }, { name: 'Brazil', path: 'brazil.usembassy.gov' }, { name: 'Brazil_Portuguese', path: 'portuguese.brazil.usembassy.gov' }, { name: 'Mexico', path: 'mexico.usembassy.gov' }, { name: 'Iraq', path: 'iraq.usembassy.gov' }, { name: 'Egypt', path: 'egypt.usembassy.gov' }, { name: 'Tunisia', path: 'tunisia.usembassy.gov' }, { name: 'Nigeria', path: 'nigeria.usembassy.gov' }, { name: 'Ethiopia', path: 'ethiopia.usembassy.gov' }, { name: 'Japan', path: 'japan.usembassy.gov' }, { name: 'Riyadh', path: 'riyadh.usembassy.gov' }, { name: 'Riyadh_Arabic', path: 'arabic.riyadh.usembassy.gov' }, { name: 'Poland', path: 'poland.usembassy.gov' }, { name: 'Sample', path: 'sample.usembassy.gov' }, { name: 'Sample_CMS', path: 'cms.getusinfo.com' }] }; /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/ function fsr$setAlive(){var A=new Date().getTime();document.cookie="fsr.a"+(FSR.site.cookie?"."+FSR.site.cookie:"")+"="+A+";path=/"+((FSR.site.domain)?";domain="+FSR.site.domain+";":";")+(FSR.site.secure?"secure":"") }(function(){if(window!=window.top){return }function G(K){if(typeof K=="object"){var J=K.constructor.toString().match(/array/i); return(J!=null)}return false}var I=FSR.sites;for(var F=0,D=I.length;F
  • foresee-dhtml-popup.js
    /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/ FSR.Element.fsr$implement({fsr$getScrolls:function(){var B=this,A={x:0,y:0};while(B&&!FSR.isBody(B)){A.x+=B.scrollLeft; A.y+=B.scrollTop;B=B.parentNode}return A},fsr$getOffsets:function(){var B=this,A={x:0,y:0};if(FSR.isBody(this)){return A }while(B&&!FSR.isBody(B)){A.x+=B.offsetLeft;A.y+=B.offsetTop;if(FSR.Browser.Engine.gecko){if(!FSR.borderBox(B)){A.x+=FSR.leftBorder(B); A.y+=FSR.topBorder(B)}var C=B.parentNode;if(C&&FSR.styleString(C,"overflow")!="visible"){A.x+=FSR.leftBorder(C); A.y+=FSR.topBorder(C)}}else{if(B!=this&&(FSR.Browser.Engine.trident||FSR.Browser.Engine.webkit)){A.x+=FSR.leftBorder(B); A.y+=FSR.topBorder(B)}}B=B.offsetParent;if(FSR.Browser.Engine.trident){while(B&&!B.currentStyle.hasLayout){B=B.offsetParent }}}if(FSR.Browser.Engine.gecko&&!FSR.borderBox(this)){A.x-=FSR.leftBorder(this);A.y-=FSR.topBorder(this) }return A},fsr$getOffsetParent:function(){var A=this;if(FSR.isBody(A)){return null}if(!FSR.Browser.Engine.trident){return A.offsetParent }while((A=A.parentNode)&&!FSR.isBody(A)){if(FSR.styleString(A,"position")!="static"){return A}}return null },fsr$getSize:function(){if(FSR.isBody(this)){return this.fsr$getWindow().fsr$getSize()}return{x:this.offsetWidth,y:this.offsetHeight} },fsr$expose:function(){if(this.fsr$getStyle("display")!="none"){return FSR.$empty}var B={};var A={visibility:"hidden",display:"block",position:"absolute"}; FSR.$each(A,function(D,C){B[C]=this.style[C]||""},this);this.fsr$setStyles(A);return(function(){this.fsr$setStyles(B) }).fsr$bind(this)},fsr$getDimensions:function(A){A=FSR.$merge({computeSize:true},A);var E={};function D(G,F){return G.fsr$getSize() }if(this.fsr$getStyle("display")=="none"){var B=this.fsr$expose();E=D(this,A);B()}else{try{E=D(this,A) }catch(C){}}return FSR.$chk(E.x)?FSR.$extend(E,{width:E.x,height:E.y}):FSR.$extend(E,{x:E.width,y:E.height}) },fsr$grab:function(B,A){FSR.Element.Inserters.get(A||"bottom")($fsr(B,true),this);return this},fsr$appendText:function(B,A){return this.fsr$grab(this.fsr$getDocument().fsr$newTextNode(B),A) },fsr$adopt:function(){FSR.Array.each(FSR.Array.flatten(arguments),function(A){A=$fsr(A,true);if(A){this.appendChild(A) }},this);return this},fsr$hasClass:function(A){return this.className.fsr$contains(A," ")},fsr$addClass:function(A){if(!this.fsr$hasClass(A)){this.className=(this.className+" "+A).fsr$clean() }return this},fsr$getComputedStyle:function(B){if(this.currentStyle){return this.currentStyle[B.fsr$camelCase()] }var A=this.fsr$getWindow().getComputedStyle(this,null);return(A)?A.getPropertyValue([B.fsr$hyphenate()]):null },fsr$toggleClass:function(A){return this.fsr$hasClass(A)?this.removeClass(A):this.fsr$addClass(A) }});FSR.Element.fsr$implement({fsr$setOpacity:function(A){return this.fsr$set("opacity",A,true)},fsr$getOpacity:function(){return this.get("opacity") },fsr$setStyle:function(B,A){switch(B){case"opacity":return this.fsr$set("opacity",parseFloat(A)); case"float":B=(FSR.Browser.Engine.trident)?"styleFloat":"cssFloat"}B=B.fsr$camelCase();if(FSR.$type(A)!="string"){var C=(FSR.Element.Styles.get(B)||"@").split(" "); A=FSR.Array.map(FSR.$splat(A),function(E,D){if(!C[D]){return""}return(FSR.$type(E)=="number")?C[D].replace("@",Math.round(E)):E }).join(" ")}else{if(A==String(Number(A))){A=Math.round(A)}}this.style[B]=A;return this},fsr$getStyle:function(G){switch(G){case"opacity":return this.get("opacity"); case"float":G=(FSR.Browser.Engine.trident)?"styleFloat":"cssFloat"}G=G.fsr$camelCase();var A=this.style[G]; if(!FSR.$chk(A)){A=[];for(var F in FSR.Element.ShortStyles){if(G!=F){continue}for(var E in FSR.Element.ShortStyles[F]){A.push(this.fsr$getStyle(E)) }return A.join(" ")}A=this.fsr$getComputedStyle(G)}if(A){A=String(A);var C=A.match(/rgba?\([\d\s,]+\)/); if(C){A=A.replace(C[0],C[0].fsr$rgbToHex())}}if(FSR.Browser.Engine.presto||(FSR.Browser.Engine.trident&&!FSR.$chk(parseInt(A)))){if(G.fsr$test(/^(height|width)$/)){var B=(G=="width")?["left","right"]:["top","bottom"],D=0; FSR.Array.each(B,function(H){D+=this.fsr$getStyle("border-"+H+"-width").fsr$toInt()+this.fsr$getStyle("padding-"+H).fsr$toInt() },this);return this["offset"+G.fsr$capitalize()]-D+"px"}if(FSR.Browser.Engine.presto&&String(A).fsr$test("px")){return A }if(G.fsr$test(/(border(.+)Width|margin|padding)/)){return"0px"}}return A},fsr$setStyles:function(B){for(var A in B){if(typeof B[A]!="function"){this.fsr$setStyle(A,B[A]) }}return this},fsr$getStyles:function(){var A={};FSR.Array.each(arguments,function(B){A[B]=this.fsr$getStyle(B) },this);return A}});FSR.isBody=function(A){return(/^(?:body|html)$/i).test(A.tagName)};FSR.styleString=FSR.Element.fsr$getComputedStyle; FSR.styleNumber=function(A,B){return FSR.styleString(A,B).fsr$toInt()||0};FSR.borderBox=function(A){return FSR.styleString(A,"-moz-box-sizing")=="border-box" };FSR.topBorder=function(A){return FSR.styleNumber(A,"border-top-width")};FSR.leftBorder=function(A){return FSR.styleNumber(A,"border-left-width") };FSR.Element.fsr$implement({fsr$getPosition:function(D){if(FSR.isBody(this)){return{x:0,y:0}}var E=this.fsr$getOffsets(),B=this.fsr$getScrolls(); var A={x:E.x-B.x,y:E.y-B.y};var C=(D&&(D=$(D)))?D.fsr$getPosition():{x:0,y:0};return{x:A.x-C.x,y:A.y-C.y} },fsr$setPosition:function(M){FSR.$each(M||{},function(O,N){if(!FSR.$defined(O)){delete M[N]}});M=FSR.$merge({relativeTo:document.body,position:{x:"center",y:"center"},edge:false,offset:{x:0,y:0},returnPos:false,relFixedPosition:false,ignoreMargins:false},M); function L(N){if(FSR.$type(N)!="string"){return N}N=N.toLowerCase();var O={};if(N.fsr$test("left")){O.x="left" }else{if(N.fsr$test("right")){O.x="right"}else{O.x="center"}}if(N.fsr$test("upper")||N.fsr$test("top")){O.y="top" }else{if(N.fsr$test("bottom")){O.y="bottom"}else{O.y="center"}}return O}M.edge=L(M.edge);M.position=L(M.position); if(!M.edge){if(M.position.x=="center"&&M.position.y=="center"){M.edge={x:"center",y:"center"}}else{M.edge={x:"left",y:"top"} }}this.fsr$setStyle("position","absolute");var J=$fsr(M.relativeTo)||document.body;var E;if(J==document.body){E=window.fsr$getScroll() }else{E=J.fsr$getPosition()}var I=E.y;var C=E.x;if(I<0){I=0}if(C<0){C=0}var D=this.fsr$getDimensions({computeSize:false,styles:["padding","border","margin"]}); if(M.ignoreMargins){M.offset.x=M.offset.x-D["margin-left"];M.offset.y=M.offset.y-D["margin-top"]}var H={}; var A=M.offset.y.fsr$toInt();var B=M.offset.x.fsr$toInt();var K=window.fsr$getSize();switch(M.position.x){case"left":H.x=C+B; break;case"right":H.x=C+B+J.offsetWidth;break;default:H.x=C+(((J==document.body)?K.x:J.offsetWidth)/2)+B; break}switch(M.position.y){case"top":H.y=I+A;break;case"bottom":H.y=I+A+J.offsetHeight;break;default:H.y=I+(((J==document.body)?K.y:J.offsetHeight)/2)+A; break}if(M.edge){var G={};switch(M.edge.x){case"left":G.x=0;break;case"right":G.x=-D.x-D.computedRight-D.computedLeft; break;default:G.x=-(D.x/2);break}switch(M.edge.y){case"top":G.y=0;break;case"bottom":G.y=-D.y-D.computedTop-D.computedBottom; break;default:G.y=-(D.y/2);break}H.x=H.x+G.x;H.y=H.y+G.y}H={left:((H.x>=0)?H.x:0).fsr$toInt(),top:((H.y>=0)?H.y:0).fsr$toInt()}; if(J.fsr$getStyle("position")=="fixed"||M.relFixedPosition){var F=window.fsr$getScroll();H.top=H.top.fsr$toInt()+F.y; H.left=H.left.fsr$toInt()+F.x}if(M.returnPos){return H}else{this.fsr$setStyles(H)}return this}}); FSR.Element.Properties.styles={set:function(A){this.fsr$setStyles(A)}};FSR.Element.Properties.opacity={set:function(A,B){if(!B){if(A==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden" }}else{if(this.style.visibility!="visible"){this.style.visibility="visible"}}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1 }if(FSR.Browser.Engine.trident){this.style.filter=(A==1)?"":"alpha(opacity="+A*100+")"}this.style.opacity=A; this.fsr$store("opacity",A)},get:function(){return this.fsr$retrieve("opacity",1)}};FSR.Element.Styles=new FSR.Hash({left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"}); FSR.Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}}; FSR.Array.each(["Top","Right","Bottom","Left"],function(G){var F=FSR.Element.ShortStyles;var B=FSR.Element.Styles; FSR.Array.each(["margin","padding"],function(H){var I=H+G;F[H][I]=B[I]="@px"});var E="border"+G;F.border[E]=B[E]="@px @ rgb(@, @, @)"; var D=E+"Width",A=E+"Style",C=E+"Color";F[E]={};F.borderWidth[D]=F[E][D]=B[D]="@px";F.borderStyle[A]=F[E][A]=B[A]="@"; F.borderColor[C]=F[E][C]=B[C]="rgb(@, @, @)"});FSR.Modalizer=new FSR.Class({defaultModalStyle:{display:"block",position:"fixed",top:0,left:0,"z-index":9000,"background-color":"#333",opacity:0.8},setModalOptions:function(B){var A=window.fsr$getScrollSize(); this.modalOptions=FSR.$merge({width:(A.x+300+"px"),height:(A.y+300+"px"),elementsToHide:"select",onModalHide:FSR.$empty,onModalShow:FSR.$empty,hideOnClick:true,modalStyle:{},updateOnResize:true},this.modalOptions,B); return this},toElement:function(){return $fsr("fsr_modalOverlay")},resize:function(){if($fsr("fsr_modalOverlay")){var A=window.fsr$getScrollSize(); $fsr("fsr_modalOverlay").fsr$setStyles({width:(A.x+300+"px"),height:(A.y+300+"px")})}},setModalStyle:function(A){this.modalOptions.modalStyle=A; this.modalStyle=FSR.$merge(this.defaultModalStyle,{width:this.modalOptions.width,height:this.modalOptions.height},A); if($fsr("fsr_modalOverlay")){$fsr("fsr_modalOverlay").fsr$setStyles(this.modalStyle)}return(this.modalStyle) },modalShow:function(B){this.setModalOptions(B);var A=null;if($fsr("fsr_modalOverlay")){A=$fsr("fsr_modalOverlay") }if(!A){A=new FSR.Element("div",{id:"fsr_modalOverlay"}).fsr$inject(document.body)}A.fsr$setStyles(this.setModalStyle(this.modalOptions.modalStyle)); if(!FSR.Browser.supportsPositionFixed){A.fsr$setStyle("position","absolute")}$fsr("fsr_modalOverlay").fsr$removeEvents("click").fsr$addEvent("click",function(){this.modalHide(this.modalOptions.hideOnClick) }.fsr$bind(this));this.bound=this.bound||{};if(!this.bound.resize&&this.modalOptions.updateOnResize){this.bound.resize=this.resize.fsr$bind(this); window.fsr$addEvent("resize",this.bound.resize)}if(FSR.$type(this.modalOptions.onModalShow)=="function"){this.modalOptions.onModalShow() }this.togglePopThroughElements(0);A.fsr$setStyle("display","block");return this},modalHide:function(A){if(A===false){return false }this.togglePopThroughElements(1);if(FSR.$type(this.modalOptions.onModalHide)=="function"){this.modalOptions.onModalHide() }if($fsr("fsr_modalOverlay")){$fsr("fsr_modalOverlay").fsr$setStyle("display","none")}if(this.modalOptions.updateOnResize){this.bound=this.bound||{}; if(!this.bound.resize){this.bound.resize=this.resize.fsr$bind(this)}window.fsr$removeEvent("resize",this.bound.resize) }return this},togglePopThroughElements:function(A){if(FSR.Browser.Engine.trident4||(FSR.Browser.Engine.gecko&&FSR.Browser.Platform.mac)){FSR.Array.each($$fsr(this.modalOptions.elementsToHide),function(B){B.fsr$setStyle("opacity",A) })}}});FSR.StyleWriter=new FSR.Class({createStyle:function(A,B){window.fsr$addEvent("domready",function(){try{if($fsr(B)&&B){return }var C=new FSR.Element("style",{id:B||""}).fsr$inject($$fsr("head")[0]);if(FSR.Browser.Engine.trident){C.styleSheet.cssText=A }else{C.fsr$set("text",A)}}catch(D){dbug.log("error: %s",D)}}.fsr$bind(this))}});FSR.StickyWin=new FSR.Class({Implements:[FSR.Options,FSR.Events,FSR.StyleWriter],options:{closeClassName:"closeSticky",pinClassName:"pinSticky",content:"",zIndex:10000,className:"",width:false,height:false,timeout:-1,allowMultipleByClass:false,allowMultiple:true,showNow:false,wrapWithUi:false,caption:"",uiOptions:{},useIframeShim:true,iframeShimSelector:""},css:'.SWclearfix:after {content: "."; display: block; height: 0; clear: both; visibility: hidden;}.SWclearfix {display: inline-table;}* html .SWclearfix {height: 1%;}.SWclearfix {display: block;}',initialize:function(A){this.setOptions(A); this.id=this.options.id||"fsr_StickyWin";this.makeWindow();if(this.options.content){this.setContent(this.options.content) }if(this.options.showNow){this.show()}this.createStyle(this.css,"StickyWinClearFix")},makeWindow:function(){this.destroyOthers(); if(!$fsr(this.id)){this.win=new FSR.Element("div",{id:this.id}).fsr$addClass(this.options.className).fsr$addClass("StickyWinInstance").fsr$addClass("SWclearfix").fsr$setStyles({display:"none",position:"absolute",zIndex:this.options.zIndex}).fsr$inject(document.body,"top").fsr$setProperty("alt","Survey Invitation").fsr$store("StickyWin",this) }else{this.win=$fsr(this.id)}if(this.options.width&&FSR.$type(this.options.width.fsr$toInt())=="number"){this.win.fsr$setStyle("width",this.options.width.fsr$toInt()) }if(this.options.height&&FSR.$type(this.options.height.fsr$toInt())=="number"){this.win.fsr$setStyle("height",this.options.height.fsr$toInt()) }return this},show:function(){this.fsr$fireEvent("onDisplay");if(!this.positioned){this.position() }this.showWin();if(this.options.useIframeShim){this.showIframeShim()}FSR.RR.recordEvent("di",FSR.RR.getPosition("fsr_StickyWin")); this.visible=true;return this},showWin:function(){this.win.fsr$setStyle("display","block")},hide:function(){FSR.RR.recordEvent("di","0"); if(FSR.RR.hasRR()){robotreplay.Capture.setPageFocusStatus(false,true)}this.fsr$fireEvent("onClose"); this.hideWin();if(this.options.useIframeShim){this.hideIframeShim()}this.visible=false;return this },hideWin:function(){this.win.fsr$setStyle("display","none")},destroyOthers:function(){if(!this.options.allowMultipleByClass||!this.options.allowMultiple){FSR.Array.each($$fsr("div.StickyWinInstance"),function(A){if(!this.options.allowMultiple||(!this.options.allowMultipleByClass&&A.fsr$hasClass(this.options.className))){A.dispose() }},this)}},setContent:function(A){if(this.options.wrapWithUi){A=FSR.StickyWin.ui(this.options.caption,A,this.options.uiOptions) }if(FSR.$type(A)=="string"){this.win.fsr$set("html",A)}else{if($fsr(A)){this.win.fsr$adopt(A)}}FSR.Array.each([$fsr("close"),$fsr("accept"),$fsr("decline")],function(B){if(!B){return }B.fsr$addEvent("click",this.hide.fsr$bind(this))},this);return this},position:function(){this.positioned=true; this.win.fsr$setPosition({relativeTo:this.options.relativeTo,position:this.options.position,offset:this.options.offset,edge:this.options.edge}); if(this.shim){this.shim.position()}return this},makeIframeShim:function(){if(!this.shim){var A=(this.options.iframeShimSelector)?this.win.getElement(this.options.iframeShimSelector):this.win; this.shim=new FSR.IframeShim(A,{display:false,name:"StickyWinShim",baseHref:this.options.uiOptions.baseHref}) }},showIframeShim:function(){if(this.options.useIframeShim){this.makeIframeShim();this.shim.show() }},hideIframeShim:function(){if(this.shim){this.shim.hide()}},destroy:function(){if(this.win){this.win.dispose() }if(this.options.useIframeShim){this.shim.dispose()}if($fsr("fsr_modalOverlay")){$fsr("fsr_modalOverlay").dispose() }}});FSR.StickyWinModal,FSR.StickyWinFxModal;(function(){var A=function(B){return{Extends:B,initialize:function(C){C=C||{}; this.setModalOptions(FSR.$merge(C.modalOptions||{},{onModalHide:function(){this.hide(false)}.fsr$bind(this)})); this.parent(C)},show:function(C){if(FSR.$pick(C,true)){this.modalShow()}this.parent()},hide:function(C){if(FSR.$pick(C,true)){this.modalHide() }else{this.parent()}}}};FSR.StickyWinModal=new FSR.Class(A(FSR.StickyWin));FSR.StickyWinModal.fsr$implement(new FSR.Modalizer) })();(function(){var A=function(B){return{Extends:B,options:{url:"",showNow:false,requestOptions:{method:"get"},handleResponse:function(C){var D; this.Request.response.text.fsr$stripScripts(function(E){D=E});this.setContent(C);this.show();if(this.evalScripts){FSR.$exec(D) }}},initialize:function(C){this.parent(C);this.evalScripts=this.options.requestOptions.evalScripts; this.options.requestOptions.evalScripts=false;this.createRequest()},createRequest:function(){this.Request=new FSR.Request(this.options.requestOptions).fsr$addEvent("onSuccess",this.options.handleResponse.fsr$bind(this)) },update:function(C){this.Request.send({url:C||this.options.url});return this}}}})();FSR.StickyWin.ui=function(C,A,D){if($fsr("fsrwin")){return $fsr("fsrwin") }D=FSR.$extend({width:300,cornerHandle:false,cssClass:"",baseHref:"",buttons:[],css:""},D);C=FSR.$pick(C,"%caption%"); A=FSR.$pick(A,"%body%");A=A.replace(/{%baseHref%}/g,D.baseHref);var B=new FSR.Element("div",{id:"fsrwin"}).fsr$setStyle("width",D.width).fsr$addClass("fsrwin"); if(D.cssClass){B.fsr$addClass(D.cssClass)}var G=new FSR.Element("h1").fsr$addClass("fsr_caption").fsr$setStyle("width",(D.width.fsr$toInt()-(D.cornerHandle?70:60))); if($fsr(C)){G.fsr$adopt(C)}else{G.fsr$set("html",C)}var E=new FSR.Element("div").fsr$addClass("fsr_body"); if($fsr(A)){E.fsr$adopt(A)}else{E.fsr$set("html",A)}var H=new FSR.Element("div").fsr$addClass("fsr_top_ur").fsr$adopt(new FSR.Element("div",{id:"close"}).fsr$addClass("fsr_closeButton").fsr$addClass("fsr_closeSticky").fsr$addEvent("click",D.close)).fsr$adopt(G); if(D.cornerHandle){new FSR.Element("div").fsr$addClass("fsr_dragHandle").fsr$inject(H,"top")}else{G.fsr$addClass("fsr_dragHandle") }B.fsr$adopt(new FSR.Element("div").fsr$addClass("fsr_top").fsr$adopt(new FSR.Element("div").fsr$addClass("fsr_top_ul")).fsr$adopt(H)); B.fsr$adopt(new FSR.Element("div").fsr$addClass("fsr_middle").fsr$adopt(E));if(D.buttons&&D.buttons.length>0){var F=new FSR.Element("div").fsr$addClass("fsr_closeButtons"); FSR.Array.each(D.buttons,function(J){if(J.properties&&J.properties.className){J.properties["class"]=J.properties.className; delete J.properties.className}var I=FSR.$merge({"class":"fsr_closeSticky"},J.properties);new FSR.Element("button").fsr$addEvent("click",J.onClick||FSR.$empty).fsr$addEvent("mouseover",J.onMouseover||FSR.$empty).fsr$addEvent("mouseout",J.onMouseout||FSR.$empty).fsr$appendText(J.text).fsr$inject(F).fsr$setProperties(I).fsr$addClass(J.style) });B.fsr$adopt(new FSR.Element("div").fsr$addClass("fsr_closeBody").fsr$adopt(F))}B.fsr$adopt(new FSR.Element("div").fsr$addClass("fsr_bottom").fsr$adopt(new FSR.Element("div").fsr$addClass("fsr_bottom_ll")).fsr$adopt(new FSR.Element("div").fsr$addClass("fsr_bottom_lr"))); return B};FSR.IframeShim=new FSR.Class({Implements:[FSR.Options,FSR.Events],options:{name:"",className:"iframeShim",display:false,zindex:null,margin:0,offset:{x:0,y:0},browsers:(FSR.Browser.Engine.trident||(FSR.Browser.Engine.gecko&&FSR.Browser.Platform.mac))},initialize:function(B,A){this.setOptions(A); if(this.options.offset&&this.options.offset.top){this.options.offset.y=this.options.offset.top}if(this.options.offset&&this.options.offset.left){this.options.offset.x=this.options.offset.left }this.element=$fsr(B);this.makeShim();return },makeShim:function(){this.shim=new FSR.Element("iframe"); this.id=this.options.name||new Date().getTime()+"_shim";this.src=this.options.baseHref+"shim.gif"; if(this.element.fsr$getStyle("z-Index").fsr$toInt()<1||isNaN(this.element.fsr$getStyle("z-Index").fsr$toInt())){this.element.fsr$setStyle("z-Index",5) }var B=this.element.fsr$getStyle("z-Index")-1;if(FSR.$chk(this.options.zindex)&&this.element.fsr$getStyle("z-Index").fsr$toInt()>this.options.zindex){B=this.options.zindex }this.shim.fsr$setStyles({position:"absolute",zIndex:B,border:"none",filter:"progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)"}).fsr$setProperties({src:this.src,frameborder:"0",scrolling:"no",id:this.id,alt:"Survey Invitation Helper Window - Please Ignore"}).fsr$addClass(this.options.className); this.element.fsr$store("shim",this);var A=function(){this.shim.fsr$inject(this.element,"after");if(this.options.display){this.show() }else{this.hide()}this.fsr$fireEvent("onInject")};if(this.options.browsers){if(FSR.Browser.Engine.trident&&!FSR.IframeShim.ready){window.fsr$addEvent("load",A.fsr$bind(this)) }else{A.fsr$run(null,this)}}},position:function(C){if(!this.options.browsers||!FSR.IframeShim.ready){return this }var B=this.element.fsr$getStyles("display","visibility","position");this.element.fsr$setStyles({display:"block",position:"absolute",visibility:"hidden"}); var A=this.element.fsr$getSize();this.element.fsr$setStyles(B);if(FSR.$type(this.options.margin)){A.x=A.x-(this.options.margin*2); A.y=A.y-(this.options.margin*2);this.options.offset.x+=this.options.margin;this.options.offset.y+=this.options.margin }this.shim.fsr$setStyles({width:A.x,height:A.y}).fsr$setPosition({relativeTo:this.element,offset:this.options.offset}); return this},hide:function(){if(this.options.browsers){this.shim.fsr$setStyle("display","none")}return this },show:function(){if(!this.options.browsers){return this}this.shim.fsr$setStyle("display","block"); return this.position()},dispose:function(){if(this.options.browsers){this.shim.dispose()}return this }});(function(){FSR.IframeShim.ready=true;var B=new FSR.Element("div").fsr$setStyles({position:"fixed",top:0,right:0}).fsr$inject(document.body); var A=(B.offsetTop===0);B.fsr$dispose();FSR.Browser.supportsPositionFixed=A})();
  • foresee-qualifier.js
    var FSR = { 'version': '6.6.0', 'date': '06/10/2011', 'enabled': true, 'auto': true, 'encode': true, 'files': '/foresee/', 'id': '0SVzV++SsD2LrribNwgfmw==', 'sites': [{ name: 'Nairobi', path: 'nairobi.usembassy.gov' }, { name: 'SouthAfrica', path: 'southafrica.usembassy.gov' }, { name: 'SouthKorea_Seoul', path: 'seoul.usembassy.gov' }, { name: 'Jakarta', path: 'jakarta.usembassy.gov' }, { name: 'Russia_Moscow', path: 'moscow.usembassy.gov' }, { name: 'Russia_Moscow_Russian', path: 'russian.moscow.usembassy.gov' }, { name: 'Germany', path: 'germany.usembassy.gov' }, { name: 'Argentina', path: 'argentina.usembassy.gov' }, { name: 'India_NewDelhi', path: 'newdelhi.usembassy.gov' }, { name: 'Afghanistan_Kabul', path: 'kabul.usembassy.gov' }, { name: 'Pakistan_Islamabad', path: 'islamabad.usembassy.gov' }, { name: 'Turkey', path: 'turkey.usembassy.gov' }, { name: 'Morocco_Rabat', path: 'morocco.usembassy.gov' }, { name: 'Beijing', path: 'usembassy-china.org.cn' }, { name: 'Beijing_Chinese', path: 'chinese.usembassy-china.org.cn' }, { name: 'Brazil', path: 'brazil.usembassy.gov' }, { name: 'Brazil_Portuguese', path: 'portuguese.brazil.usembassy.gov' }, { name: 'Mexico', path: 'mexico.usembassy.gov' }, { name: 'Iraq', path: 'iraq.usembassy.gov' }, { name: 'Egypt', path: 'egypt.usembassy.gov' }, { name: 'Tunisia', path: 'tunisia.usembassy.gov' }, { name: 'Nigeria', path: 'nigeria.usembassy.gov' }, { name: 'Ethiopia', path: 'ethiopia.usembassy.gov' }, { name: 'Japan', path: 'japan.usembassy.gov' }, { name: 'Riyadh', path: 'riyadh.usembassy.gov' }, { name: 'Riyadh_Arabic', path: 'arabic.riyadh.usembassy.gov' }, { name: 'Poland', path: 'poland.usembassy.gov' }, { name: 'Sample', path: 'sample.usembassy.gov' }, { name: 'Sample_CMS', path: 'cms.getusinfo.com' }] }; /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/ fsr$dbug={log:function(){}};FSR.Native=function(J){J=J||{};var F=J.afterImplement||function(){};var G=J.generics; G=(G!==false);var H=J.legacy;var E=J.initialize;var B=J.protect;var A=J.name;var C=E||H;C.xconstructor=FSR.Native; C.fsr$family={name:"native"};if(H&&E){C.prototype=H.prototype}C.prototype.xconstructor=C;if(A){var D=A.toLowerCase(); C.prototype.fsr$family={name:D}}var I=function(M,K,N,L){if(!B||L||!M.prototype[K]){M.prototype[K]=N }if(G){FSR.Native.genericize(M,K,B)}F.call(M,K,N);return M};C.fsr$implement=function(L,K,N){if(typeof L=="string"){return I(this,L,K,N) }for(var M in L){I(this,M,L[M],K)}return this};C.fsr$alias=function(M,K,N){if(typeof M=="string"){M=this.prototype[M]; if(M){I(this,K,M,N)}}else{for(var L in M){this.fsr$alias(L,M[L],K)}}return this};return C};FSR.Native.fsr$implement=function(D,C){for(var B=0,A=D.length; B-1:this.indexOf(A)>-1},fsr$trim:function(){return this.replace(/^\s+|\s+$/g,"") },fsr$clean:function(){return this.replace(/\s+/g," ").fsr$trim()},fsr$camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase() })},fsr$hyphenate:function(){return this.replace(/[A-Z]/g,function(A){return("-"+A.charAt(0).toLowerCase()) })},fsr$capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase()}) },fsr$escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},fsr$toInt:function(A){return parseInt(this,A||10) },fsr$stripScripts:function(B){var A="";var C=this.replace(/]*>([\s\S]*?)<\/script>/gi,function(){A+=arguments[1]+"\n"; return""});if(B===true){FSR.$exec(A)}else{if(FSR.$type(B)=="function"){B(A,C)}}return C},fsr$substitute:function(A,B){return this.replace(B||(/\\?\{([^}]+)\}/g),function(D,C){if(D.charAt(0)=="\\"){return D.slice(1) }return(A[C]!=undefined)?A[C]:""})}});FSR.Hash.fsr$implement({has:Object.prototype.hasOwnProperty,keyOf:function(B){for(var A in this){if(this.hasOwnProperty(A)&&this[A]===B){return A }}return null},extend:function(A){FSR.Hash.each(A,function(C,B){FSR.Hash.set(this,B,C)},this);return this },combine:function(A){FSR.Hash.each(A,function(C,B){FSR.Hash.include(this,B,C)},this);return this },erase:function(A){if(this.hasOwnProperty(A)){delete this[A]}return this},get:function(A){return(this.hasOwnProperty(A))?this[A]:null },set:function(A,B){if(!this[A]||this.hasOwnProperty(A)){this[A]=B}return this},include:function(B,C){var A=this[B]; if(A==undefined){this[B]=C}return this},toQueryString:function(A){var B=[];FSR.Hash.each(this,function(F,E){if(A){E=A+"["+E+"]" }var D;switch(FSR.$type(F)){case"object":D=FSR.Hash.toQueryString(F,E);break;case"array":var C={}; FSR.Array.each(F,function(H,G){C[G]=H});D=FSR.Hash.toQueryString(C,E);break;default:D=E+"="+encodeURIComponent(F) }if(F!=undefined){B.push(D)}});return B.join("&")}});FSR.Hash.fsr$alias({keyOf:"indexOf",hasValue:"contains"}); FSR.Event=new FSR.Native({name:"Event",initialize:function(A,F){F=F||window;var K=F.document;A=A||F.event; if(A.fsr$extended){return A}this.fsr$extended=true;var J=A.type;var G=A.target||A.srcElement;while(G&&G.nodeType==3){G=G.parentNode }if(J.fsr$test(/key/)){var B=A.which||A.keyCode;var M=FSR.Event.Keys.keyOf(B);if(J=="keydown"){var D=B-111; if(D>0&&D<13){M="f"+D}}M=M||String.fromCharCode(B).toLowerCase()}else{if(J.match(/(click|mouse|menu)/i)){K=(!K.compatMode||K.compatMode=="CSS1Compat")?K.getElementsByTagName("html")[0]:K.body; var I={x:A.pageX||A.clientX+K.scrollLeft,y:A.pageY||A.clientY+K.scrollTop};var C={x:(A.pageX)?A.pageX-F.pageXOffset:A.clientX,y:(A.pageY)?A.pageY-F.pageYOffset:A.clientY}; if(J.match(/DOMMouseScroll|mousewheel/)){var H=(A.wheelDelta)?A.wheelDelta/120:-(A.detail||0)/3}var E=(A.which==3)||(A.button==2); var L=null;if(J.match(/over|out/)){switch(J){case"mouseover":L=A.relatedTarget||A.fromElement;break; case"mouseout":L=A.relatedTarget||A.toElement}if(!(function(){while(L&&L.nodeType==3){L=L.parentNode }return true}).fsr$create({attempt:FSR.Browser.Engine.gecko})()){L=false}}}}return FSR.$extend(this,{event:A,type:J,page:I,client:C,rightClick:E,wheel:H,relatedTarget:L,target:G,code:B,key:M,shift:A.shiftKey,control:A.ctrlKey,alt:A.altKey,meta:A.metaKey}) }});FSR.Event.Keys=new FSR.Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46}); FSR.Class=new FSR.Native({name:"Class",initialize:function(B){B=B||{};var A=function(E){for(var D in this){this[D]=FSR.$unlink(this[D]) }for(var F in FSR.Class.Mutators){if(F=="extend"){continue}if(!this[F]){continue}FSR.Class.Mutators[F](this,this[F]); delete this[F]}this.constructor=A;if(E===FSR.$empty){return this}var C=(this.initialize)?this.initialize.apply(this,arguments):this; if(this.options&&this.options.initialize){this.options.initialize.call(this)}return C};FSR.$extend(A,this); A.constructor=FSR.Class;A.prototype=B;return A}});FSR.Class.fsr$implement({fsr$implement:function(){FSR.Class.Mutators.Implements(this.prototype,FSR.Array.slice(arguments)); return this}});FSR.Class.Mutators={Implements:function(A,B){FSR.Array.each(FSR.$splat(B),function(C){FSR.$extend(A,(FSR.$type(C)=="class")?new C(FSR.$empty):C) })},Extends:function(self,klass){var instance=new klass(FSR.$empty);delete instance.parent;delete instance.parentOf; for(var key in instance){var current=self[key],previous=instance[key];if(current==undefined){self[key]=previous; continue}var ctype=FSR.$type(current),ptype=FSR.$type(previous);if(ctype!=ptype){continue}switch(ctype){case"function":if(!arguments.callee.caller){self[key]=FSR.eval("("+String(current).replace(/\bthis\.parent\(\s*(\))?/g,function(full,close){return"arguments.callee._parent_.call(this"+(close||", ") })+")")}self[key]._parent_=previous;break;case"object":self[key]=FSR.$merge(previous,current)}}self.parent=function(){return arguments.callee.caller._parent_.apply(this,arguments) };self.parentOf=function(descendant){return descendant._parent_.apply(this,FSR.Array.slice(arguments,1)) }}};FSR.Events=new FSR.Class({fsr$addEvent:function(C,B,A){C=FSR.Events.removeOn(C);if(B!=FSR.$empty){this.$events=this.$events||{}; this.$events[C]=this.$events[C]||[];FSR.Array.include(this.$events[C],B);if(A){B.internal=true}}return this },fsr$addEvents:function(A){for(var B in A){this.fsr$addEvent(B,A[B])}return this},fsr$fireEvent:function(C,B,A){C=FSR.Events.removeOn(C); if(!this.$events||!this.$events[C]){return this}FSR.Array.each(this.$events[C],function(D){D.fsr$create({bind:this,delay:A,"arguments":B})() },this);return this},fsr$removeEvent:function(B,A){B=FSR.Events.removeOn(B);if(!this.$events||!this.$events[B]){return this }if(!A.internal){this.$events[B].erase(A)}return this},fsr$removeEvents:function(C){for(var D in this.$events){if(C&&C!=D){continue }var B=this.$events[D];for(var A=B.length;A--;A){this.fsr$removeEvent(D,B[A])}}return this}});FSR.Events.removeOn=function(A){return A.replace(/^on([A-Z])/,function(B,C){return C.toLowerCase() })};FSR.Options=new FSR.Class({setOptions:function(){this.options=FSR.$merge.fsr$run(FSR.Array.extend([this.options],arguments)); if(!this.fsr$addEvent){return this}for(var A in this.options){if(FSR.$type(this.options[A])!="function"||!(/^on[A-Z]/).test(A)){continue }this.fsr$addEvent(A,this.options[A]);delete this.options[A]}return this}});(function(){var D;try{var A=document.createElement(""); D=(A.name=="x")}catch(B){}var C=function(E){return(""+E).replace(/&/g,"&").replace(/"/g,""") };FSR.Document.fsr$implement({fsr$newElement:function(E,F){if(F&&F.checked!=null){F.defaultChecked=F.checked }if(D&&F){E="<"+E;if(F.name){E+=' name="'+C(F.name)+'"'}if(F.type){E+=' type="'+C(F.type)+'"'}E+=">"; delete F.name;delete F.type}return $fsr.element(this.createElement(E)).fsr$set(F)},fsr$newTextNode:function(E){return this.createTextNode(E) },fsr$getDocument:function(){return this},fsr$getWindow:function(){return this.defaultView||this.parentWindow },fsr$purge:function(){var G=this.getElementsByTagName("*");for(var F=0,E=G.length;F1);FSR.Array.each(A,function(E){var F=this.getElementsByTagName(E.fsr$trim()); (B)?FSR.Array.extend(C,F):C=F},this);return new FSR.Elements(C,{ddup:B,cash:!D})}});FSR.Element.Storage={get:function(A){return(this[A]||(this[A]={})) }};FSR.Element.Inserters=new FSR.Hash({after:function(B,A){if(!A.parentNode){return }var C=A.nextSibling; (C)?A.parentNode.insertBefore(B,C):A.parentNode.appendChild(B)},bottom:function(B,A){A.appendChild(B) },top:function(B,A){var C=A.firstChild;(C)?A.insertBefore(B,C):A.appendChild(B)}});FSR.Element.Inserters.inside=FSR.Element.Inserters.bottom; FSR.Element.fsr$implement({fsr$getDocument:function(){return this.ownerDocument},fsr$getWindow:function(){return this.ownerDocument.fsr$getWindow() },fsr$set:function(D,B){switch(FSR.$type(D)){case"object":for(var C in D){this.fsr$set(C,D[C])}break; case"string":var A=FSR.Element.Properties.get(D);if(A&&A.set){A.set.apply(this,FSR.Array.slice(arguments,1)) }else{this.fsr$setProperty(D,B)}}return this},fsr$inject:function(B,A){FSR.Element.Inserters.get(A||"bottom")(this,$fsr(B,true)); return this},fsr$dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this },fsr$setProperty:function(D,E){var C=FSR.Element.Attributes,B=C.Props[D],A=FSR.$defined(E);if(B&&C.Bools[D]){E=(E||!A)?true:false }else{if(!A){return this.removeProperty(D)}}(B)?this[B]=E:this.setAttribute(D,E);return this},fsr$setProperties:function(A){for(var B in A){this.fsr$setProperty(B,A[B]) }return this}});FSR.Element.Properties=new FSR.Hash;FSR.Element.Properties.html={set:function(){return this.innerHTML=FSR.Array.flatten(arguments).join("") }};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addListener:function(B,A){if(this.addEventListener){this.addEventListener(B,A,false) }else{this.attachEvent("on"+B,A)}return this},fsr$removeListener:function(B,A){if(this.removeEventListener){this.removeEventListener(B,A,false) }else{this.detachEvent("on"+B,A)}return this},fsr$retrieve:function(B,A){var D=FSR.Element.Storage.get(this.fsr$uid); var C=D[B];if(FSR.$defined(A)&&!FSR.$defined(C)){C=D[B]=A}return FSR.$pick(C)},fsr$store:function(B,A){var C=FSR.Element.Storage.get(this.fsr$uid); C[B]=A;return this},fsr$eliminate:function(A){var B=FSR.Element.Storage.get(this.fsr$uid);delete B[A]; return this}});FSR.Element.Attributes=new FSR.Hash({Props:{html:"innerHTML","class":"className","for":"htmlFor",text:(FSR.Browser.Engine.trident)?"innerText":"textContent"},Bools:["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"],Camels:["value","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]}); FSR.Browser.freeMem=function(A){if(!A){return }if(FSR.Browser.Engine.trident&&(/object/i).test(A.tagName)){for(var B in A){if(typeof A[B]=="function"){A[B]=FSR.$empty }}FSR.Element.fsr$dispose(A)}if(A.fsr$uid&&A.fsr$removeEvents){A.fsr$removeEvents()}if(A.fsr$uid){A.fsr$uid=null }};(function(A){var C=A.Bools,B=A.Camels;A.Bools=C=FSR.Array.associate(C,C);FSR.Hash.extend(FSR.Hash.combine(A.Props,C),FSR.Array.associate(B,FSR.Array.map(B,function(D){return D.toLowerCase() })));A.erase("Camels")})(FSR.Element.Attributes);window.fsr$addListener("unload",function(){window.fsr$removeListener("unload",arguments.callee); window.fsr$fireEvent("unload");document.fsr$purge();if(window.CollectGarbage){CollectGarbage()}}); FSR.Element.Properties.events={set:function(A){this.fsr$addEvents(A)}};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addEvent:function(E,G){var H=this.fsr$retrieve("events",{}); H[E]=H[E]||{keys:[],values:[]};if(FSR.Array.contains(H[E].keys,G)){return this}H[E].keys.push(G); var F=E,A=FSR.Element.Events.get(E),C=G,I=this;if(A){if(A.onAdd){A.onAdd.call(this,G)}if(A.condition){C=function(J){if(A.condition.call(this,J)){return G.call(this,J) }return false}}F=A.base||F}var D=function(){return G.call(I)};var B=FSR.Element.NativeEvents[F]||0; if(B){if(B==2){D=function(J){J=new FSR.Event(J,I.fsr$getWindow());if(C.call(I,J)===false){J.stop() }}}if(F!="unload"){this.fsr$addListener(F,D)}}H[E].values.push(D);return this},fsr$removeEvent:function(D,C){var B=this.fsr$retrieve("events"); if(!B||!B[D]){return this}var G=FSR.Array.indexOf(B[D].keys,C);if(G==-1){return this}var A=B[D].keys.splice(G,1)[0]; var F=B[D].values.splice(G,1)[0];var E=FSR.Element.Events.get(D);if(E){if(E.onRemove){E.onRemove.call(this,C) }D=E.base||D}return(FSR.Element.NativeEvents[D])?this.fsr$removeListener(D,F):this},fsr$addEvents:function(A){for(var B in A){if(A.hasOwnProperty(B)){this.fsr$addEvent(B,A[B]) }}return this},fsr$removeEvents:function(B){var A=this.fsr$retrieve("events");if(!A){return this}if(!B){for(var C in A){if(A.hasOwnProperty(C)){this.fsr$removeEvents(C) }}A=null}else{if(A[B]){while(A[B].keys[0]){this.fsr$removeEvent(B,A[B].keys[0])}A[B]=null}}return this },fsr$fireEvent:function(D,B,A){var C=this.fsr$retrieve("events");if(!C||!C[D]){return this}FSR.Array.each(C[D].keys,function(E){E.fsr$create({bind:this,delay:A,"arguments":B})() },this);return this}});FSR.Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; (function(){FSR.$check=function(A){var B=A.relatedTarget;if(B==undefined){return true}if(B===false){return false }return(FSR.$type(this)!="document"&&B!=this&&B.prefix!="xul"&&!this.fsr$hasChild(B))};FSR.Element.Events=new FSR.Hash({mouseenter:{base:"mouseover",condition:FSR.$check},mouseleave:{base:"mouseout",condition:FSR.$check},mousewheel:{base:(FSR.Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}}) })();FSR.Element.fsr$implement({fsr$hasChild:function(A){A=$fsr(A,true);return(!!A&&FSR.Array.contains(FSR.$A(this.getElementsByTagName(A.tagName)),A)) }});(function(){FSR.Native.fsr$implement([FSR.Document,FSR.Window],{fsr$getSize:function(){var C=this.fsr$getWindow(); if(FSR.Browser.Engine.presto||FSR.Browser.Engine.webkit){return{x:C.innerWidth,y:C.innerHeight}}var B=A(this); return{x:B.clientWidth,y:B.clientHeight}},fsr$getScroll:function(){var C=this.fsr$getWindow();var B=A(this); return{x:C.pageXOffset||B.scrollLeft,y:C.pageYOffset||B.scrollTop}},fsr$getScrollSize:function(){var C=A(this); var B=this.fsr$getSize();return{x:Math.max(C.scrollWidth,B.x),y:Math.max(C.scrollHeight,B.y)}}}); function A(B){var C=B.fsr$getDocument();return(!C.compatMode||C.compatMode=="CSS1Compat")?C.getElementsByTagName("html")[0]:C.body }})();FSR.Element.Events.domready={onAdd:function(A){if(FSR.Browser.loaded){A.call(this)}}};(function(){var A=function(){if(FSR.Browser.loaded){return }FSR.Browser.loaded=true;window.fsr$fireEvent("domready");document.fsr$fireEvent("domready")};switch(FSR.Browser.Engine.name){case"webkit":(function(){(FSR.Array.contains(["loaded","complete"],document.readyState))?A():arguments.callee.fsr$delay(50) })();break;case"trident":var B=document.createElement("div");(function(){(FSR.$try(function(){B.doScroll("left"); return $fsr(B).fsr$inject(document.body).fsr$set("html","temp").fsr$dispose()}))?A():arguments.callee.fsr$delay(50) })();break;default:window.fsr$addEvent("load",A);document.fsr$addEvent("DOMContentLoaded",A)}})(); FSR.JSON=new FSR.Hash({encode:function(B){switch(FSR.$type(B)){case"string":return'"'+B.replace(/[\x00-\x1f\\"\\;]/g,FSR.JSON.$replaceChars)+'"'; case"array":return"["+String(FSR.Array.map(B,FSR.JSON.encode).fsr$filter(FSR.$defined))+"]";case"object":case"hash":var A=[]; FSR.Hash.each(B,function(E,D){var C=FSR.JSON.encode(E);if(C){A.push(FSR.JSON.encode(D)+":"+C)}}); return"{"+A+"}";case"number":case"boolean":return String(B);case false:return"null"}return null},$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(A){return FSR.JSON.$specialChars[A]||"\\u00"+Math.floor(A.charCodeAt()/16).toString(16)+(A.charCodeAt()%16).toString(16) },decode:function(string,secure){if(FSR.$type(string)!="string"||!string.length){return null}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null }return eval("("+string+")")}});FSR.Native.fsr$implement([FSR.Hash,Number],{fsr$toJSON:function(){return FSR.JSON.encode(this) }});FSR.Cookie=new FSR.Class({Implements:FSR.Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(B,A){this.key=B; this.setOptions(A)},write:function(B){if(FSR.encode){B=encodeURIComponent(B)}if(this.options.domain){B+="; domain="+this.options.domain }if(this.options.path){B+="; path="+this.options.path}if(this.options.duration){var A=new Date(); A.setTime(A.getTime()+this.options.duration*24*60*60*1000);B+="; expires="+A.toGMTString()}if(this.options.secure){B+="; secure" }this.options.document.cookie=this.key+"="+B;return this},read:function(){var A=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.fsr$escapeRegExp()+"=([^;]*)"); var B=(A)?A[1]:null;if(FSR.encode){B=(B)?decodeURIComponent(B):null}return B},dispose:function(){new FSR.Cookie(this.key,FSR.$merge(this.options,{duration:-1})).write(""); return this}});FSR.Cookie.write=function(B,C,A){return new FSR.Cookie(B,A).write(C)};FSR.Cookie.read=function(A){return new FSR.Cookie(A).read() };FSR.Cookie.dispose=function(B,A){return new FSR.Cookie(B,A).dispose()};FSR.Hash.Cookie=new FSR.Class({Extends:FSR.Cookie,options:{autoSave:true},initialize:function(B,A){this.parent(B,A); this.load()},save:function(){var A=FSR.JSON.encode(this.hash);if(!A||A.length>4096){return false}if(A=="{}"){this.dispose() }else{this.write(A)}return true},load:function(){this.hash=new FSR.Hash(FSR.JSON.decode(this.read(),true)); return this}});FSR.Hash.Cookie.fsr$implement({get:function(A){return this.hash.get(A)},set:function(A,B){this.hash.set(A,B); this.save();return this},erase:function(A){this.hash.erase(A);this.save();return this},empty:function(){this.hash.empty(); this.save();return this}});FSR.Asset=new FSR.Hash({src:function(A){var B=A;if(A.substring(0,2)=="//"){B=document.location.protocol+B }return B},javascript:function(F,D){D=FSR.$extend({onload:FSR.$empty,document:document,check:FSR.$lambda(true)},D); var B=new FSR.Element("script",{src:FSR.Asset.src(F),type:"text/javascript"});var E=D.onload.fsr$bind(B),A=D.check,G=D.document; delete D.onload;delete D.check;delete D.document;B.fsr$addEvents({load:function(){if(this.loaded){return }this.loaded=1;E()},readystatechange:function(){if(FSR.Browser.Engine.trident&&FSR.Array.contains(["loaded","complete"],this.readyState)){if(this.loaded){return }this.loaded=1;E()}}}).fsr$setProperties(D);if(FSR.Browser.Engine.webkit419){var C=(function(){if(!FSR.$try(A)){return }FSR.$clear(C);E()}).fsr$periodical(50)}return B.fsr$inject(document.getElementsByTagName("head")[0]) },image:function(C,B){B=FSR.$merge({onload:FSR.$empty,onabort:FSR.$empty,onerror:FSR.$empty},B);var D=new Image(); var A=$fsr(D)||new FSR.Element("img");FSR.Array.each(["load","abort","error"],function(E){var F="on"+E; var G=B[F];delete B[F];D[F]=function(){if(!D){return }if(!A.parentNode){A.width=D.width;A.height=D.height }D=D.onload=D.onabort=D.onerror=null;G.fsr$delay(1,A,A);A.fsr$fireEvent(E,A,1)}});D.src=FSR.Asset.src(C); if(A.src!=D.src){A.src=D.src}if(D&&D.complete){D.onload.fsr$delay(1)}return A.fsr$setProperties(B) },css:function(B,A){return new FSR.Element("link",FSR.$merge({rel:"stylesheet",media:"screen",type:"text/css",href:FSR.Asset.src(B)},A)).fsr$inject(document.getElementsByTagName("head")[0]) }});FSR.Browser.set("Popup",new FSR.Class({Implements:[FSR.Options,FSR.Events],options:{width:500,height:300,x:50,y:50,toolbar:0,location:0,directories:0,status:0,scrollbars:"auto",resizable:1,name:"popup",blur:false,menubar:1},initialize:function(B,A){this.url=B||false; this.setOptions(A);if(this.url){this.openWin()}},openWin:function(B){B=B||this.url;var A="toolbar="+this.options.toolbar+",location="+this.options.location+",directories="+this.options.directories+",status="+this.options.status+",scrollbars="+this.options.scrollbars+",resizable="+this.options.resizable+",width="+this.options.width+",height="+this.options.height+",top="+this.options.y+",left="+this.options.x+",menubar="+this.options.menubar; this.window=window.open(B,this.options.name,A);if(!this.window){this.window=window.open("",this.options.name,A); this.window.location.href=B}if(!this.options.blur){this.focus.fsr$delay(100,this)}else{this.window.blur() }return this},focus:function(){if(this.window){this.window.focus()}else{if(this.focusTries<10){this.focus.delay(100,this) }else{this.blocked=true;this.fsr$fireEvent("onBlock")}}return this},focusTries:0,blocked:null,close:function(){this.window.close(); return this}}));FSR.RemoteEvent=new FSR.Class({Implements:[FSR.Events,FSR.Options],options:{host:"",path:"",url:""},initialize:function(B,A){this.setOptions(A); this.event=B;this.ver=0},onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0; FSR.$try(function(){this.status=A}.fsr$bind(this));if(this.isSuccess()){this.success()}else{this.failure() }},isSuccess:function(){return(this.status==1)},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("success") },failure:function(){this.onFailure()},onFailure:function(){if(this.ver<3){this._send()}else{this.fsr$fireEvent("failure") }},send:function(A){this.values=A;this._send()},_send:function(){this.running=true;this.ver=this.ver+1; var A=this;var C=FSR.Hash.toQueryString(this.values);var B=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?event="+this.event+"&"+C+"&uid="+FSR.$time()+"&ver="+this.ver; new FSR.Asset.image(B,{onload:function(D){A.onStateChange(1)},onerror:function(){A.onStateChange(0) },onabort:function(){A.onStateChange(0)}});return this}});FSR.CPPS=new FSR.Hash({set:function(B,C,D){var D=(D||FSR.c()); var A=D.get("cp")||{};A[B]=C;D.set("cp",A)},get:function(B,C){var C=(C||FSR.c());var A=C.get("cp")||{}; return A[B]},erase:function(B,C){var C=(C||FSR.c());var A=C.get("cp")||{};delete A[B];C.set("cp",A) },append:function(B,C,D){var D=(D||FSR.c());var A=D.get("cp")||{};A[B]=A[B]?A[B]+","+C:C;D.set("cp",A) },toQueryString:function(M){var M=(M||FSR.c());var K=M.get("sd");var J=FSR.$defined(K)?FSR.surveydefs[K]:FSR.sd; var F=M.get("browser");var A={browser:FSR.Browser.Type.name+" "+FSR.Browser.Type.version,os:FSR.Browser.Platform.os,pv:M.get("pv"),url:M.get("c")||"",ref_url:M.get("ru")||"",locale:M.get("l")||"",site:FSR.site.name||"",section:J.section||"",referrer:M.get("r")||"",terms:M.get("st")||"",sessionid:M.get("rid")||"",replay_id:M.get("mid")||"",flash:FSR.Browser.Plugins.Flash.version}; if(FSR.$P().analytics.google){var H=FSR.Cookie.read("__utma",{path:"/",domain:FSR.site.domain||false}); var E=FSR.Cookie.read("__utmz",{path:"/",domain:FSR.site.domain||false});if(H&&H!=""){var C=H.split("."); A.first=C[2];A.last=C[3];A.current=C[4];A.visits=C[5]}if(E&&E!=""){var B;if(B=E.match(/utmgclid=([^\|]*)/)){A.source="Google"; A.campaign="Google Adwords";A.medium="cpc"}else{if(B=E.match(/utmcsr=([^\|]*)/)){A.source=B[1]}if(B=E.match(/utmccn=([^\|]*)/)){A.campaign=B[1] }if(B=E.match(/utmcmd=([^\|]*)/)){A.medium=B[1]}}if(B=E.match(/utmctr=([^\|]*)/)){A.keyword=B[1]}}}var G=M.get("cp")||{}; var D=new FSR.Hash(G);var I=A||{};for(k in I){D.set(k,I[k])}var L=D.toQueryString("cpp");return L }});FSR.Service=new FSR.Class({Implements:[FSR.Events,FSR.Options],options:{},initialize:function(A){this.setOptions(A) },onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0;FSR.$try(function(){this.status=A }.fsr$bind(this));if(this.status==1){this.success()}else{if(this.status==0){this.failure()}else{if(this.status==-1){this.error() }}}},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("complete").fsr$fireEvent("success") },failure:function(){this.onFailure()},onFailure:function(){this.fsr$fireEvent("complete").fsr$fireEvent("failure") },error:function(){this.onError()},onError:function(){this.fsr$fireEvent("complete").fsr$fireEvent("error") },ping:function(){this.running=true;var B=this;var D=this.options.params||{};D.protocol=document.location.protocol; D.uid=FSR.$time();var A=FSR.Hash.toQueryString(D);var C=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?"+A; new FSR.Asset.image(C,{onload:function(E){if(E.width==B.options.success){B.onStateChange(1)}else{B.onStateChange(0) }},onerror:function(){B.onStateChange(-1)},onabort:function(){B.onStateChange(0)}});return this},cancel:function(){if(!this.running){return this }this.running=false;this.fsr$fireEvent("cancel");return this}});FSR.RR=new FSR.Hash({hasRR:function(){if(typeof robotreplay!="undefined"){return true }return false},setOKTransmit:function(){if(this.hasRR()){var A=robotreplay.Session.rr_group_session_id; robotreplay.Log.setOKTransmit();FSR.c().set("mid",A)}},recordEvent:function(A,B){if(this.hasRR()){robotreplay.Log.push(A,B) }},cancelRecord:function(){if(this.hasRR()){robotreplay.Log.cancelRecord()}},getPosition:function(A){if(this.hasRR()){return robotreplay.Dom.getAbsoluteCoords(document.getElementById(A)) }else{return{position:false}}}});FSR.services={survey:{host:"survey.foreseeresults.com",path:"/survey",url:"/display"},check:{host:"controller2.foreseeresults.com",path:"/fsrSurvey",url:"/OTCImg",success:3},event:{host:"events.foreseeresults.com",path:"/rec",url:"/process"},domain:{host:"survey.foreseeresults.com",path:"/survey",url:"/FSRImg",success:3}}; FSR.UnsupportedBrowsers={Explorer:5.5,Safari:2,Firefox:1.4};FSR.SupportedPlatforms={win32:true,mac:true,linux:true,iphone:false,blackberry:false,wince:false,other:false}; FSR.$P=function(){return FSR.properties};FSR.c=function(){return new FSR.Hash.Cookie(FSR.cookieName("fsr.s"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false}) };FSR.cookieName=function(A){return A+(FSR.site.cookie?"."+FSR.site.cookie:"")};FSR.log=function(D,C){if(!FSR.$P().events.enabled){return }var E=FSR.c();var A=E.get("sd");var B=FSR.$defined(A)?FSR.surveydefs[A]:FSR.sd;new FSR.RemoteEvent("logit",{host:FSR.services.event.host,path:FSR.services.event.path,url:FSR.services.event.url}).send({cid:FSR.id,rid:E.get("rid")||"",cat:B.name,sec:B.section||"",type:E.get("q")||"",site:FSR.site.name||"",lang:E.get("l")||FSR.$S.locale||"",msg:D,param:C,tms:new Date().getTime(),tmz:new Date().getTimezoneOffset()*60000}) };FSR.popNow=function(A){FSR.pop(A,"now")};FSR.popLater=function(A){FSR.pop(A,"later")};FSR.popImmediate=function(){FSR.pop(100,"now") };FSR.popFeedback=function(){FSR.controller.execute(FSR.controller.popFeedback)};FSR.run=function(){FSR.controller.execute(FSR.controller.run) };FSR.pop=function(C,A,B){FSR.controller.execute(FSR.controller.popAttach,{sp:C,when:A,qualifier:B,invite:false}) };FSR.invite=function(C,A,B){FSR.controller.execute(FSR.controller.popAttach,{sp:C,when:A,qualifier:B,invite:true}) };FSR.close=function(){FSR.controller.cancelTracker()};var ForeSee={CPPS:{fsr$set:function(A,B){FSR.CPPS.set(A,B) }}};FSR.generateid=function(){var A="";A=((new Date())-0)+"_"+Math.round(Math.random()*1000000);return A };FSR.getParameter=function(B){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var A="[\\?&]"+B+"=([^&#]*)"; var D=new RegExp(A);var C=D.exec(window.location.href);if(C==null){return""}else{return C[1]}};(function(){FSR.siteid=FSR.getParameter("siteid"); FSR.site=FSR.sites[FSR.siteid];if(!FSR.site.name){FSR.site.name=FSR.getParameter("name")}if(!FSR.site.domain){FSR.site.domain=FSR.getParameter("domain") }if(FSR.site.domain=="default"){FSR.site.domain=false}var C=["files","js_files","image_files","html_files","css_files"]; for(var B=0,A=C.length;B1){window.moveTo(E,D); window.resizeTo(C,A)}window.focus();document.location.href=B}).fsr$delay(0)},sid:function(){var G=FSR.c(); var B=this.sd.name;var C=this.sd.site;if(C){B=B+"-"+C}var E=this.sd.section;if(E){B=B+"-"+E}var A=FSR.getParameter("when"); if(A){B=B+"-"+A}var D=G.get("q");if(D){B=B+"-"+D}var F=G.get("l");if(F){B=B+"-"+F}return B},page:function(E){var B=FSR.c().get("l"); if(!B){return }var D=E.locales||[];for(var C=0,A=D.length;C
  • foresee-surveydef.js
    FSR.surveydefs = [{ name: 'browse', section: 'us_embassy2', invite: { when: 'onentry', locales: [{ locale: 'ar', content: 'Foresee Invite
    \"Site
    \"Site
    \ نريد الحصول على رأيك.\

    لقد تّم اختيارك بصورة عشوائية للمشاركة في هذا الاستبيان. سوف تساعدنا المعلومات المستقاة من هذا الاستبيان في تحسين موقع الانترنت للسفارة الأميركية. وسيظهر الاستبيان في نهاية زيارتك.\

    تجري هذا الاستبيان شركة مستقلة هي شركة فورسي ريزالتس. إننا لا نجمع أي معلومات شخصية في هذا الاستبيان.\

    شكرا لك لموافقتك على تبادل الآراء معنا.
    ', buttons: { accept: "نعم، سوف أعطي رأيي.", decline: 'كلا شكرا.' } }, { locale: 'cn', content: 'Foresee Invite
    \"Site
    \"Site
    \ 我们希望得到您的反馈。\

    您被随机抽样邀请参加一项用户反馈调查。这些意见将有助于我们改进美国大使馆的网页。我们将在您结束使用本网站时征求您的意见。\

    此项调查由独立的ForeSee Results公司主持。我们不在调查中收集任何关于具体个人的资料。\

    谢谢您的合作。
    ', buttons: { accept: "我同意提供反馈", decline: '不参加' } }, { locale: 'br', content: 'Foresee Invite
    \"Site
    \"Site
    \ Gostaríamos da sua opinião.\

    Você foi aleatoriamente selecionado para participar desta pesquisa. As informações obtidas através desta pesquisa nos ajudarão a melhorar o site da Embaixada dos EUA. A pesquisa aparecerá no final da sua visita.\

    Esta pesquisa é conduzida por uma empresa independente, ForeSee Results. Não coletamos qualquer informação identificável nesta pesquisa.\

    Obrigado por concordar em compartilhar suas opiniões conosco.
    ', buttons: { accept: "Sim, darei minha opinião.", decline: 'Não, obrigado.' } }, { locale: 'ru', content: 'Foresee Invite
    \"Site
    \"Site
    \ Нас интересует ваше мнение. \

    Вы произвольно отобраны для участия в опросе. Информация, полученная в результате данного опроса, поможет нам усовершенствовать сайт посольства США. Опросник появится в конце вашего посещения.\

    Опрос проводится независимой компанией ForeSee Results и не предназначен для сбора информации личного характера.\

    Благодарим вас за готовность поделиться своим мнением.
    ', buttons: { accept: "Да, я выскажу свое мнение", decline: 'Нет, спасибо' } }] }, pop: { when: 'later' }, criteria: { sp: 25, lf: 1 }, include: { urls: ['.'] } }]; FSR.properties = { repeatdays: 0, repeatoverride: false, altcookie: {}, language: { locale: 'en', src: 'location', locales: [{ match: 'egypt.usembassy.gov/ar/', locale: 'ar' }, { match: 'arabic.riyadh.usembassy.gov', locale: 'ar' }, { match: 'chinese.usembassy-china.org.cn', locale: 'cn' }, { match: 'portuguese.brazil.usembassy.gov', locale: 'br' }, { match: 'russian.moscow.usembassy.gov', locale: 'ru' }] }, exclude: { urls: ['cms.getusinfo.com'] }, ipexclude: 'fsr$ip', invite: { content: 'Foresee Invite
    \"Site
    \"Site
    \ We\'d like your opinion.\

    You have been randomly selected to take part in a survey. The information obtained from this survey will help us enhance the U.S. Embassy\'s site. The survey will appear at the end of your visit.\

    This survey is conducted by an independent company, ForeSee Results. We do not collect any personally identifiable information within this survey.\

    Thank you for agreeing to share your opinions with us.
    ', exclude: { local: [], referrer: [] }, include: { local: ['.'] }, width: '500', bgcolor: '#333', opacity: 0.7, x: 'center', y: 'center', delay: 0, timeout: 0, buttons: { accept: "Yes, I'll give my opinion", decline: 'No thanks' }, hideOnClick: false, css: 'foresee-dhtml.css', hide: [] }, tracker: { width: '500', height: '350', timeout: 3, adjust: true, alert: { enabled: false, message: 'The survey is now available.' }, url: 'tracker.html', locales: [{ locale: 'ar', url: 'foresee/tracker_ar.html' }, { locale: 'cn', url: 'foresee/tracker_cn.html' }, { locale: 'br', url: 'foresee/tracker_br.html' }, { locale: 'ru', url: 'foresee/tracker_ru.html' }] }, survey: { width: 550, height: 600 }, qualifier: { width: '625', height: '500', bgcolor: '#333', opacity: 0.7, x: 'center', y: 'center', delay: 0, buttons: { accept: 'Continue' }, hideOnClick: false, css: false, url: 'qualifying.html' }, cancel: { url: 'cancel.html', width: '500', height: '300' }, pop: { what: 'survey', after: 'leaving-site', pu: false, tracker: true }, meta: { referrer: true, terms: true, ref_url: true, url: true, url_params: false }, events: { enabled: true, id: true, codes: { purchase: 800, items: 801, dollars: 802, followup: 803, information: 804, content: 805 }, pd: 7, custom: {} }, pool: 100, previous: false, analytics: { google: false }, mode: 'first-party' };
  • foresee-tracker.js
    var FSR = { 'version': '6.6.0', 'date': '06/10/2011', 'enabled': true, 'auto': true, 'encode': true, 'files': '/foresee/', 'id': '0SVzV++SsD2LrribNwgfmw==', 'sites': [{ name: 'Nairobi', path: 'nairobi.usembassy.gov' }, { name: 'SouthAfrica', path: 'southafrica.usembassy.gov' }, { name: 'SouthKorea_Seoul', path: 'seoul.usembassy.gov' }, { name: 'Jakarta', path: 'jakarta.usembassy.gov' }, { name: 'Russia_Moscow', path: 'moscow.usembassy.gov' }, { name: 'Russia_Moscow_Russian', path: 'russian.moscow.usembassy.gov' }, { name: 'Germany', path: 'germany.usembassy.gov' }, { name: 'Argentina', path: 'argentina.usembassy.gov' }, { name: 'India_NewDelhi', path: 'newdelhi.usembassy.gov' }, { name: 'Afghanistan_Kabul', path: 'kabul.usembassy.gov' }, { name: 'Pakistan_Islamabad', path: 'islamabad.usembassy.gov' }, { name: 'Turkey', path: 'turkey.usembassy.gov' }, { name: 'Morocco_Rabat', path: 'morocco.usembassy.gov' }, { name: 'Beijing', path: 'usembassy-china.org.cn' }, { name: 'Beijing_Chinese', path: 'chinese.usembassy-china.org.cn' }, { name: 'Brazil', path: 'brazil.usembassy.gov' }, { name: 'Brazil_Portuguese', path: 'portuguese.brazil.usembassy.gov' }, { name: 'Mexico', path: 'mexico.usembassy.gov' }, { name: 'Iraq', path: 'iraq.usembassy.gov' }, { name: 'Egypt', path: 'egypt.usembassy.gov' }, { name: 'Tunisia', path: 'tunisia.usembassy.gov' }, { name: 'Nigeria', path: 'nigeria.usembassy.gov' }, { name: 'Ethiopia', path: 'ethiopia.usembassy.gov' }, { name: 'Japan', path: 'japan.usembassy.gov' }, { name: 'Riyadh', path: 'riyadh.usembassy.gov' }, { name: 'Riyadh_Arabic', path: 'arabic.riyadh.usembassy.gov' }, { name: 'Poland', path: 'poland.usembassy.gov' }, { name: 'Sample', path: 'sample.usembassy.gov' }, { name: 'Sample_CMS', path: 'cms.getusinfo.com' }] }; /************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/ fsr$dbug={log:function(){}};FSR.Native=function(J){J=J||{};var F=J.afterImplement||function(){};var G=J.generics; G=(G!==false);var H=J.legacy;var E=J.initialize;var B=J.protect;var A=J.name;var C=E||H;C.xconstructor=FSR.Native; C.fsr$family={name:"native"};if(H&&E){C.prototype=H.prototype}C.prototype.xconstructor=C;if(A){var D=A.toLowerCase(); C.prototype.fsr$family={name:D}}var I=function(M,K,N,L){if(!B||L||!M.prototype[K]){M.prototype[K]=N }if(G){FSR.Native.genericize(M,K,B)}F.call(M,K,N);return M};C.fsr$implement=function(L,K,N){if(typeof L=="string"){return I(this,L,K,N) }for(var M in L){I(this,M,L[M],K)}return this};C.fsr$alias=function(M,K,N){if(typeof M=="string"){M=this.prototype[M]; if(M){I(this,K,M,N)}}else{for(var L in M){this.fsr$alias(L,M[L],K)}}return this};return C};FSR.Native.fsr$implement=function(D,C){for(var B=0,A=D.length; B-1:this.indexOf(A)>-1},fsr$trim:function(){return this.replace(/^\s+|\s+$/g,"") },fsr$clean:function(){return this.replace(/\s+/g," ").fsr$trim()},fsr$camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase() })},fsr$hyphenate:function(){return this.replace(/[A-Z]/g,function(A){return("-"+A.charAt(0).toLowerCase()) })},fsr$capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase()}) },fsr$escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1")},fsr$toInt:function(A){return parseInt(this,A||10) },fsr$stripScripts:function(B){var A="";var C=this.replace(/]*>([\s\S]*?)<\/script>/gi,function(){A+=arguments[1]+"\n"; return""});if(B===true){FSR.$exec(A)}else{if(FSR.$type(B)=="function"){B(A,C)}}return C},fsr$substitute:function(A,B){return this.replace(B||(/\\?\{([^}]+)\}/g),function(D,C){if(D.charAt(0)=="\\"){return D.slice(1) }return(A[C]!=undefined)?A[C]:""})}});FSR.Hash.fsr$implement({has:Object.prototype.hasOwnProperty,keyOf:function(B){for(var A in this){if(this.hasOwnProperty(A)&&this[A]===B){return A }}return null},extend:function(A){FSR.Hash.each(A,function(C,B){FSR.Hash.set(this,B,C)},this);return this },combine:function(A){FSR.Hash.each(A,function(C,B){FSR.Hash.include(this,B,C)},this);return this },erase:function(A){if(this.hasOwnProperty(A)){delete this[A]}return this},get:function(A){return(this.hasOwnProperty(A))?this[A]:null },set:function(A,B){if(!this[A]||this.hasOwnProperty(A)){this[A]=B}return this},include:function(B,C){var A=this[B]; if(A==undefined){this[B]=C}return this},toQueryString:function(A){var B=[];FSR.Hash.each(this,function(F,E){if(A){E=A+"["+E+"]" }var D;switch(FSR.$type(F)){case"object":D=FSR.Hash.toQueryString(F,E);break;case"array":var C={}; FSR.Array.each(F,function(H,G){C[G]=H});D=FSR.Hash.toQueryString(C,E);break;default:D=E+"="+encodeURIComponent(F) }if(F!=undefined){B.push(D)}});return B.join("&")}});FSR.Hash.fsr$alias({keyOf:"indexOf",hasValue:"contains"}); FSR.Event=new FSR.Native({name:"Event",initialize:function(A,F){F=F||window;var K=F.document;A=A||F.event; if(A.fsr$extended){return A}this.fsr$extended=true;var J=A.type;var G=A.target||A.srcElement;while(G&&G.nodeType==3){G=G.parentNode }if(J.fsr$test(/key/)){var B=A.which||A.keyCode;var M=FSR.Event.Keys.keyOf(B);if(J=="keydown"){var D=B-111; if(D>0&&D<13){M="f"+D}}M=M||String.fromCharCode(B).toLowerCase()}else{if(J.match(/(click|mouse|menu)/i)){K=(!K.compatMode||K.compatMode=="CSS1Compat")?K.getElementsByTagName("html")[0]:K.body; var I={x:A.pageX||A.clientX+K.scrollLeft,y:A.pageY||A.clientY+K.scrollTop};var C={x:(A.pageX)?A.pageX-F.pageXOffset:A.clientX,y:(A.pageY)?A.pageY-F.pageYOffset:A.clientY}; if(J.match(/DOMMouseScroll|mousewheel/)){var H=(A.wheelDelta)?A.wheelDelta/120:-(A.detail||0)/3}var E=(A.which==3)||(A.button==2); var L=null;if(J.match(/over|out/)){switch(J){case"mouseover":L=A.relatedTarget||A.fromElement;break; case"mouseout":L=A.relatedTarget||A.toElement}if(!(function(){while(L&&L.nodeType==3){L=L.parentNode }return true}).fsr$create({attempt:FSR.Browser.Engine.gecko})()){L=false}}}}return FSR.$extend(this,{event:A,type:J,page:I,client:C,rightClick:E,wheel:H,relatedTarget:L,target:G,code:B,key:M,shift:A.shiftKey,control:A.ctrlKey,alt:A.altKey,meta:A.metaKey}) }});FSR.Event.Keys=new FSR.Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46}); FSR.Class=new FSR.Native({name:"Class",initialize:function(B){B=B||{};var A=function(E){for(var D in this){this[D]=FSR.$unlink(this[D]) }for(var F in FSR.Class.Mutators){if(F=="extend"){continue}if(!this[F]){continue}FSR.Class.Mutators[F](this,this[F]); delete this[F]}this.constructor=A;if(E===FSR.$empty){return this}var C=(this.initialize)?this.initialize.apply(this,arguments):this; if(this.options&&this.options.initialize){this.options.initialize.call(this)}return C};FSR.$extend(A,this); A.constructor=FSR.Class;A.prototype=B;return A}});FSR.Class.fsr$implement({fsr$implement:function(){FSR.Class.Mutators.Implements(this.prototype,FSR.Array.slice(arguments)); return this}});FSR.Class.Mutators={Implements:function(A,B){FSR.Array.each(FSR.$splat(B),function(C){FSR.$extend(A,(FSR.$type(C)=="class")?new C(FSR.$empty):C) })},Extends:function(self,klass){var instance=new klass(FSR.$empty);delete instance.parent;delete instance.parentOf; for(var key in instance){var current=self[key],previous=instance[key];if(current==undefined){self[key]=previous; continue}var ctype=FSR.$type(current),ptype=FSR.$type(previous);if(ctype!=ptype){continue}switch(ctype){case"function":if(!arguments.callee.caller){self[key]=FSR.eval("("+String(current).replace(/\bthis\.parent\(\s*(\))?/g,function(full,close){return"arguments.callee._parent_.call(this"+(close||", ") })+")")}self[key]._parent_=previous;break;case"object":self[key]=FSR.$merge(previous,current)}}self.parent=function(){return arguments.callee.caller._parent_.apply(this,arguments) };self.parentOf=function(descendant){return descendant._parent_.apply(this,FSR.Array.slice(arguments,1)) }}};FSR.Events=new FSR.Class({fsr$addEvent:function(C,B,A){C=FSR.Events.removeOn(C);if(B!=FSR.$empty){this.$events=this.$events||{}; this.$events[C]=this.$events[C]||[];FSR.Array.include(this.$events[C],B);if(A){B.internal=true}}return this },fsr$addEvents:function(A){for(var B in A){this.fsr$addEvent(B,A[B])}return this},fsr$fireEvent:function(C,B,A){C=FSR.Events.removeOn(C); if(!this.$events||!this.$events[C]){return this}FSR.Array.each(this.$events[C],function(D){D.fsr$create({bind:this,delay:A,"arguments":B})() },this);return this},fsr$removeEvent:function(B,A){B=FSR.Events.removeOn(B);if(!this.$events||!this.$events[B]){return this }if(!A.internal){this.$events[B].erase(A)}return this},fsr$removeEvents:function(C){for(var D in this.$events){if(C&&C!=D){continue }var B=this.$events[D];for(var A=B.length;A--;A){this.fsr$removeEvent(D,B[A])}}return this}});FSR.Events.removeOn=function(A){return A.replace(/^on([A-Z])/,function(B,C){return C.toLowerCase() })};FSR.Options=new FSR.Class({setOptions:function(){this.options=FSR.$merge.fsr$run(FSR.Array.extend([this.options],arguments)); if(!this.fsr$addEvent){return this}for(var A in this.options){if(FSR.$type(this.options[A])!="function"||!(/^on[A-Z]/).test(A)){continue }this.fsr$addEvent(A,this.options[A]);delete this.options[A]}return this}});(function(){var D;try{var A=document.createElement(""); D=(A.name=="x")}catch(B){}var C=function(E){return(""+E).replace(/&/g,"&").replace(/"/g,""") };FSR.Document.fsr$implement({fsr$newElement:function(E,F){if(F&&F.checked!=null){F.defaultChecked=F.checked }if(D&&F){E="<"+E;if(F.name){E+=' name="'+C(F.name)+'"'}if(F.type){E+=' type="'+C(F.type)+'"'}E+=">"; delete F.name;delete F.type}return $fsr.element(this.createElement(E)).fsr$set(F)},fsr$newTextNode:function(E){return this.createTextNode(E) },fsr$getDocument:function(){return this},fsr$getWindow:function(){return this.defaultView||this.parentWindow },fsr$purge:function(){var G=this.getElementsByTagName("*");for(var F=0,E=G.length;F1);FSR.Array.each(A,function(E){var F=this.getElementsByTagName(E.fsr$trim()); (B)?FSR.Array.extend(C,F):C=F},this);return new FSR.Elements(C,{ddup:B,cash:!D})}});FSR.Element.Storage={get:function(A){return(this[A]||(this[A]={})) }};FSR.Element.Inserters=new FSR.Hash({after:function(B,A){if(!A.parentNode){return }var C=A.nextSibling; (C)?A.parentNode.insertBefore(B,C):A.parentNode.appendChild(B)},bottom:function(B,A){A.appendChild(B) },top:function(B,A){var C=A.firstChild;(C)?A.insertBefore(B,C):A.appendChild(B)}});FSR.Element.Inserters.inside=FSR.Element.Inserters.bottom; FSR.Element.fsr$implement({fsr$getDocument:function(){return this.ownerDocument},fsr$getWindow:function(){return this.ownerDocument.fsr$getWindow() },fsr$set:function(D,B){switch(FSR.$type(D)){case"object":for(var C in D){this.fsr$set(C,D[C])}break; case"string":var A=FSR.Element.Properties.get(D);if(A&&A.set){A.set.apply(this,FSR.Array.slice(arguments,1)) }else{this.fsr$setProperty(D,B)}}return this},fsr$inject:function(B,A){FSR.Element.Inserters.get(A||"bottom")(this,$fsr(B,true)); return this},fsr$dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this },fsr$setProperty:function(D,E){var C=FSR.Element.Attributes,B=C.Props[D],A=FSR.$defined(E);if(B&&C.Bools[D]){E=(E||!A)?true:false }else{if(!A){return this.removeProperty(D)}}(B)?this[B]=E:this.setAttribute(D,E);return this},fsr$setProperties:function(A){for(var B in A){this.fsr$setProperty(B,A[B]) }return this}});FSR.Element.Properties=new FSR.Hash;FSR.Element.Properties.html={set:function(){return this.innerHTML=FSR.Array.flatten(arguments).join("") }};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addListener:function(B,A){if(this.addEventListener){this.addEventListener(B,A,false) }else{this.attachEvent("on"+B,A)}return this},fsr$removeListener:function(B,A){if(this.removeEventListener){this.removeEventListener(B,A,false) }else{this.detachEvent("on"+B,A)}return this},fsr$retrieve:function(B,A){var D=FSR.Element.Storage.get(this.fsr$uid); var C=D[B];if(FSR.$defined(A)&&!FSR.$defined(C)){C=D[B]=A}return FSR.$pick(C)},fsr$store:function(B,A){var C=FSR.Element.Storage.get(this.fsr$uid); C[B]=A;return this},fsr$eliminate:function(A){var B=FSR.Element.Storage.get(this.fsr$uid);delete B[A]; return this}});FSR.Element.Attributes=new FSR.Hash({Props:{html:"innerHTML","class":"className","for":"htmlFor",text:(FSR.Browser.Engine.trident)?"innerText":"textContent"},Bools:["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"],Camels:["value","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]}); FSR.Browser.freeMem=function(A){if(!A){return }if(FSR.Browser.Engine.trident&&(/object/i).test(A.tagName)){for(var B in A){if(typeof A[B]=="function"){A[B]=FSR.$empty }}FSR.Element.fsr$dispose(A)}if(A.fsr$uid&&A.fsr$removeEvents){A.fsr$removeEvents()}if(A.fsr$uid){A.fsr$uid=null }};(function(A){var C=A.Bools,B=A.Camels;A.Bools=C=FSR.Array.associate(C,C);FSR.Hash.extend(FSR.Hash.combine(A.Props,C),FSR.Array.associate(B,FSR.Array.map(B,function(D){return D.toLowerCase() })));A.erase("Camels")})(FSR.Element.Attributes);window.fsr$addListener("unload",function(){window.fsr$removeListener("unload",arguments.callee); window.fsr$fireEvent("unload");document.fsr$purge();if(window.CollectGarbage){CollectGarbage()}}); FSR.Element.Properties.events={set:function(A){this.fsr$addEvents(A)}};FSR.Native.fsr$implement([FSR.Element,FSR.Window,FSR.Document],{fsr$addEvent:function(E,G){var H=this.fsr$retrieve("events",{}); H[E]=H[E]||{keys:[],values:[]};if(FSR.Array.contains(H[E].keys,G)){return this}H[E].keys.push(G); var F=E,A=FSR.Element.Events.get(E),C=G,I=this;if(A){if(A.onAdd){A.onAdd.call(this,G)}if(A.condition){C=function(J){if(A.condition.call(this,J)){return G.call(this,J) }return false}}F=A.base||F}var D=function(){return G.call(I)};var B=FSR.Element.NativeEvents[F]||0; if(B){if(B==2){D=function(J){J=new FSR.Event(J,I.fsr$getWindow());if(C.call(I,J)===false){J.stop() }}}if(F!="unload"){this.fsr$addListener(F,D)}}H[E].values.push(D);return this},fsr$removeEvent:function(D,C){var B=this.fsr$retrieve("events"); if(!B||!B[D]){return this}var G=FSR.Array.indexOf(B[D].keys,C);if(G==-1){return this}var A=B[D].keys.splice(G,1)[0]; var F=B[D].values.splice(G,1)[0];var E=FSR.Element.Events.get(D);if(E){if(E.onRemove){E.onRemove.call(this,C) }D=E.base||D}return(FSR.Element.NativeEvents[D])?this.fsr$removeListener(D,F):this},fsr$addEvents:function(A){for(var B in A){if(A.hasOwnProperty(B)){this.fsr$addEvent(B,A[B]) }}return this},fsr$removeEvents:function(B){var A=this.fsr$retrieve("events");if(!A){return this}if(!B){for(var C in A){if(A.hasOwnProperty(C)){this.fsr$removeEvents(C) }}A=null}else{if(A[B]){while(A[B].keys[0]){this.fsr$removeEvent(B,A[B].keys[0])}A[B]=null}}return this },fsr$fireEvent:function(D,B,A){var C=this.fsr$retrieve("events");if(!C||!C[D]){return this}FSR.Array.each(C[D].keys,function(E){E.fsr$create({bind:this,delay:A,"arguments":B})() },this);return this}});FSR.Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1}; (function(){FSR.$check=function(A){var B=A.relatedTarget;if(B==undefined){return true}if(B===false){return false }return(FSR.$type(this)!="document"&&B!=this&&B.prefix!="xul"&&!this.fsr$hasChild(B))};FSR.Element.Events=new FSR.Hash({mouseenter:{base:"mouseover",condition:FSR.$check},mouseleave:{base:"mouseout",condition:FSR.$check},mousewheel:{base:(FSR.Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}}) })();FSR.Element.fsr$implement({fsr$hasChild:function(A){A=$fsr(A,true);return(!!A&&FSR.Array.contains(FSR.$A(this.getElementsByTagName(A.tagName)),A)) }});(function(){FSR.Native.fsr$implement([FSR.Document,FSR.Window],{fsr$getSize:function(){var C=this.fsr$getWindow(); if(FSR.Browser.Engine.presto||FSR.Browser.Engine.webkit){return{x:C.innerWidth,y:C.innerHeight}}var B=A(this); return{x:B.clientWidth,y:B.clientHeight}},fsr$getScroll:function(){var C=this.fsr$getWindow();var B=A(this); return{x:C.pageXOffset||B.scrollLeft,y:C.pageYOffset||B.scrollTop}},fsr$getScrollSize:function(){var C=A(this); var B=this.fsr$getSize();return{x:Math.max(C.scrollWidth,B.x),y:Math.max(C.scrollHeight,B.y)}}}); function A(B){var C=B.fsr$getDocument();return(!C.compatMode||C.compatMode=="CSS1Compat")?C.getElementsByTagName("html")[0]:C.body }})();FSR.Element.Events.domready={onAdd:function(A){if(FSR.Browser.loaded){A.call(this)}}};(function(){var A=function(){if(FSR.Browser.loaded){return }FSR.Browser.loaded=true;window.fsr$fireEvent("domready");document.fsr$fireEvent("domready")};switch(FSR.Browser.Engine.name){case"webkit":(function(){(FSR.Array.contains(["loaded","complete"],document.readyState))?A():arguments.callee.fsr$delay(50) })();break;case"trident":var B=document.createElement("div");(function(){(FSR.$try(function(){B.doScroll("left"); return $fsr(B).fsr$inject(document.body).fsr$set("html","temp").fsr$dispose()}))?A():arguments.callee.fsr$delay(50) })();break;default:window.fsr$addEvent("load",A);document.fsr$addEvent("DOMContentLoaded",A)}})(); FSR.JSON=new FSR.Hash({encode:function(B){switch(FSR.$type(B)){case"string":return'"'+B.replace(/[\x00-\x1f\\"\\;]/g,FSR.JSON.$replaceChars)+'"'; case"array":return"["+String(FSR.Array.map(B,FSR.JSON.encode).fsr$filter(FSR.$defined))+"]";case"object":case"hash":var A=[]; FSR.Hash.each(B,function(E,D){var C=FSR.JSON.encode(E);if(C){A.push(FSR.JSON.encode(D)+":"+C)}}); return"{"+A+"}";case"number":case"boolean":return String(B);case false:return"null"}return null},$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(A){return FSR.JSON.$specialChars[A]||"\\u00"+Math.floor(A.charCodeAt()/16).toString(16)+(A.charCodeAt()%16).toString(16) },decode:function(string,secure){if(FSR.$type(string)!="string"||!string.length){return null}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null }return eval("("+string+")")}});FSR.Native.fsr$implement([FSR.Hash,Number],{fsr$toJSON:function(){return FSR.JSON.encode(this) }});FSR.Cookie=new FSR.Class({Implements:FSR.Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(B,A){this.key=B; this.setOptions(A)},write:function(B){if(FSR.encode){B=encodeURIComponent(B)}if(this.options.domain){B+="; domain="+this.options.domain }if(this.options.path){B+="; path="+this.options.path}if(this.options.duration){var A=new Date(); A.setTime(A.getTime()+this.options.duration*24*60*60*1000);B+="; expires="+A.toGMTString()}if(this.options.secure){B+="; secure" }this.options.document.cookie=this.key+"="+B;return this},read:function(){var A=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.fsr$escapeRegExp()+"=([^;]*)"); var B=(A)?A[1]:null;if(FSR.encode){B=(B)?decodeURIComponent(B):null}return B},dispose:function(){new FSR.Cookie(this.key,FSR.$merge(this.options,{duration:-1})).write(""); return this}});FSR.Cookie.write=function(B,C,A){return new FSR.Cookie(B,A).write(C)};FSR.Cookie.read=function(A){return new FSR.Cookie(A).read() };FSR.Cookie.dispose=function(B,A){return new FSR.Cookie(B,A).dispose()};FSR.Hash.Cookie=new FSR.Class({Extends:FSR.Cookie,options:{autoSave:true},initialize:function(B,A){this.parent(B,A); this.load()},save:function(){var A=FSR.JSON.encode(this.hash);if(!A||A.length>4096){return false}if(A=="{}"){this.dispose() }else{this.write(A)}return true},load:function(){this.hash=new FSR.Hash(FSR.JSON.decode(this.read(),true)); return this}});FSR.Hash.Cookie.fsr$implement({get:function(A){return this.hash.get(A)},set:function(A,B){this.hash.set(A,B); this.save();return this},erase:function(A){this.hash.erase(A);this.save();return this},empty:function(){this.hash.empty(); this.save();return this}});FSR.Asset=new FSR.Hash({src:function(A){var B=A;if(A.substring(0,2)=="//"){B=document.location.protocol+B }return B},javascript:function(F,D){D=FSR.$extend({onload:FSR.$empty,document:document,check:FSR.$lambda(true)},D); var B=new FSR.Element("script",{src:FSR.Asset.src(F),type:"text/javascript"});var E=D.onload.fsr$bind(B),A=D.check,G=D.document; delete D.onload;delete D.check;delete D.document;B.fsr$addEvents({load:function(){if(this.loaded){return }this.loaded=1;E()},readystatechange:function(){if(FSR.Browser.Engine.trident&&FSR.Array.contains(["loaded","complete"],this.readyState)){if(this.loaded){return }this.loaded=1;E()}}}).fsr$setProperties(D);if(FSR.Browser.Engine.webkit419){var C=(function(){if(!FSR.$try(A)){return }FSR.$clear(C);E()}).fsr$periodical(50)}return B.fsr$inject(document.getElementsByTagName("head")[0]) },image:function(C,B){B=FSR.$merge({onload:FSR.$empty,onabort:FSR.$empty,onerror:FSR.$empty},B);var D=new Image(); var A=$fsr(D)||new FSR.Element("img");FSR.Array.each(["load","abort","error"],function(E){var F="on"+E; var G=B[F];delete B[F];D[F]=function(){if(!D){return }if(!A.parentNode){A.width=D.width;A.height=D.height }D=D.onload=D.onabort=D.onerror=null;G.fsr$delay(1,A,A);A.fsr$fireEvent(E,A,1)}});D.src=FSR.Asset.src(C); if(A.src!=D.src){A.src=D.src}if(D&&D.complete){D.onload.fsr$delay(1)}return A.fsr$setProperties(B) },css:function(B,A){return new FSR.Element("link",FSR.$merge({rel:"stylesheet",media:"screen",type:"text/css",href:FSR.Asset.src(B)},A)).fsr$inject(document.getElementsByTagName("head")[0]) }});FSR.Browser.set("Popup",new FSR.Class({Implements:[FSR.Options,FSR.Events],options:{width:500,height:300,x:50,y:50,toolbar:0,location:0,directories:0,status:0,scrollbars:"auto",resizable:1,name:"popup",blur:false,menubar:1},initialize:function(B,A){this.url=B||false; this.setOptions(A);if(this.url){this.openWin()}},openWin:function(B){B=B||this.url;var A="toolbar="+this.options.toolbar+",location="+this.options.location+",directories="+this.options.directories+",status="+this.options.status+",scrollbars="+this.options.scrollbars+",resizable="+this.options.resizable+",width="+this.options.width+",height="+this.options.height+",top="+this.options.y+",left="+this.options.x+",menubar="+this.options.menubar; this.window=window.open(B,this.options.name,A);if(!this.window){this.window=window.open("",this.options.name,A); this.window.location.href=B}if(!this.options.blur){this.focus.fsr$delay(100,this)}else{this.window.blur() }return this},focus:function(){if(this.window){this.window.focus()}else{if(this.focusTries<10){this.focus.delay(100,this) }else{this.blocked=true;this.fsr$fireEvent("onBlock")}}return this},focusTries:0,blocked:null,close:function(){this.window.close(); return this}}));FSR.RemoteEvent=new FSR.Class({Implements:[FSR.Events,FSR.Options],options:{host:"",path:"",url:""},initialize:function(B,A){this.setOptions(A); this.event=B;this.ver=0},onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0; FSR.$try(function(){this.status=A}.fsr$bind(this));if(this.isSuccess()){this.success()}else{this.failure() }},isSuccess:function(){return(this.status==1)},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("success") },failure:function(){this.onFailure()},onFailure:function(){if(this.ver<3){this._send()}else{this.fsr$fireEvent("failure") }},send:function(A){this.values=A;this._send()},_send:function(){this.running=true;this.ver=this.ver+1; var A=this;var C=FSR.Hash.toQueryString(this.values);var B=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?event="+this.event+"&"+C+"&uid="+FSR.$time()+"&ver="+this.ver; new FSR.Asset.image(B,{onload:function(D){A.onStateChange(1)},onerror:function(){A.onStateChange(0) },onabort:function(){A.onStateChange(0)}});return this}});FSR.CPPS=new FSR.Hash({set:function(B,C,D){var D=(D||FSR.c()); var A=D.get("cp")||{};A[B]=C;D.set("cp",A)},get:function(B,C){var C=(C||FSR.c());var A=C.get("cp")||{}; return A[B]},erase:function(B,C){var C=(C||FSR.c());var A=C.get("cp")||{};delete A[B];C.set("cp",A) },append:function(B,C,D){var D=(D||FSR.c());var A=D.get("cp")||{};A[B]=A[B]?A[B]+","+C:C;D.set("cp",A) },toQueryString:function(M){var M=(M||FSR.c());var K=M.get("sd");var J=FSR.$defined(K)?FSR.surveydefs[K]:FSR.sd; var F=M.get("browser");var A={browser:FSR.Browser.Type.name+" "+FSR.Browser.Type.version,os:FSR.Browser.Platform.os,pv:M.get("pv"),url:M.get("c")||"",ref_url:M.get("ru")||"",locale:M.get("l")||"",site:FSR.site.name||"",section:J.section||"",referrer:M.get("r")||"",terms:M.get("st")||"",sessionid:M.get("rid")||"",replay_id:M.get("mid")||"",flash:FSR.Browser.Plugins.Flash.version}; if(FSR.$P().analytics.google){var H=FSR.Cookie.read("__utma",{path:"/",domain:FSR.site.domain||false}); var E=FSR.Cookie.read("__utmz",{path:"/",domain:FSR.site.domain||false});if(H&&H!=""){var C=H.split("."); A.first=C[2];A.last=C[3];A.current=C[4];A.visits=C[5]}if(E&&E!=""){var B;if(B=E.match(/utmgclid=([^\|]*)/)){A.source="Google"; A.campaign="Google Adwords";A.medium="cpc"}else{if(B=E.match(/utmcsr=([^\|]*)/)){A.source=B[1]}if(B=E.match(/utmccn=([^\|]*)/)){A.campaign=B[1] }if(B=E.match(/utmcmd=([^\|]*)/)){A.medium=B[1]}}if(B=E.match(/utmctr=([^\|]*)/)){A.keyword=B[1]}}}var G=M.get("cp")||{}; var D=new FSR.Hash(G);var I=A||{};for(k in I){D.set(k,I[k])}var L=D.toQueryString("cpp");return L }});FSR.Service=new FSR.Class({Implements:[FSR.Events,FSR.Options],options:{},initialize:function(A){this.setOptions(A) },onStateChange:function(A){if(!this.running){return }this.running=false;this.status=0;FSR.$try(function(){this.status=A }.fsr$bind(this));if(this.status==1){this.success()}else{if(this.status==0){this.failure()}else{if(this.status==-1){this.error() }}}},success:function(){this.onSuccess()},onSuccess:function(){this.fsr$fireEvent("complete").fsr$fireEvent("success") },failure:function(){this.onFailure()},onFailure:function(){this.fsr$fireEvent("complete").fsr$fireEvent("failure") },error:function(){this.onError()},onError:function(){this.fsr$fireEvent("complete").fsr$fireEvent("error") },ping:function(){this.running=true;var B=this;var D=this.options.params||{};D.protocol=document.location.protocol; D.uid=FSR.$time();var A=FSR.Hash.toQueryString(D);var C=document.location.protocol+"//"+this.options.host+this.options.path+this.options.url+"?"+A; new FSR.Asset.image(C,{onload:function(E){if(E.width==B.options.success){B.onStateChange(1)}else{B.onStateChange(0) }},onerror:function(){B.onStateChange(-1)},onabort:function(){B.onStateChange(0)}});return this},cancel:function(){if(!this.running){return this }this.running=false;this.fsr$fireEvent("cancel");return this}});FSR.RR=new FSR.Hash({hasRR:function(){if(typeof robotreplay!="undefined"){return true }return false},setOKTransmit:function(){if(this.hasRR()){var A=robotreplay.Session.rr_group_session_id; robotreplay.Log.setOKTransmit();FSR.c().set("mid",A)}},recordEvent:function(A,B){if(this.hasRR()){robotreplay.Log.push(A,B) }},cancelRecord:function(){if(this.hasRR()){robotreplay.Log.cancelRecord()}},getPosition:function(A){if(this.hasRR()){return robotreplay.Dom.getAbsoluteCoords(document.getElementById(A)) }else{return{position:false}}}});FSR.services={survey:{host:"survey.foreseeresults.com",path:"/survey",url:"/display"},check:{host:"controller2.foreseeresults.com",path:"/fsrSurvey",url:"/OTCImg",success:3},event:{host:"events.foreseeresults.com",path:"/rec",url:"/process"},domain:{host:"survey.foreseeresults.com",path:"/survey",url:"/FSRImg",success:3}}; FSR.UnsupportedBrowsers={Explorer:5.5,Safari:2,Firefox:1.4};FSR.SupportedPlatforms={win32:true,mac:true,linux:true,iphone:false,blackberry:false,wince:false,other:false}; FSR.$P=function(){return FSR.properties};FSR.c=function(){return new FSR.Hash.Cookie(FSR.cookieName("fsr.s"),{path:"/",domain:FSR.site.domain||false,secure:FSR.site.secure||false}) };FSR.cookieName=function(A){return A+(FSR.site.cookie?"."+FSR.site.cookie:"")};FSR.log=function(D,C){if(!FSR.$P().events.enabled){return }var E=FSR.c();var A=E.get("sd");var B=FSR.$defined(A)?FSR.surveydefs[A]:FSR.sd;new FSR.RemoteEvent("logit",{host:FSR.services.event.host,path:FSR.services.event.path,url:FSR.services.event.url}).send({cid:FSR.id,rid:E.get("rid")||"",cat:B.name,sec:B.section||"",type:E.get("q")||"",site:FSR.site.name||"",lang:E.get("l")||FSR.$S.locale||"",msg:D,param:C,tms:new Date().getTime(),tmz:new Date().getTimezoneOffset()*60000}) };FSR.popNow=function(A){FSR.pop(A,"now")};FSR.popLater=function(A){FSR.pop(A,"later")};FSR.popImmediate=function(){FSR.pop(100,"now") };FSR.popFeedback=function(){FSR.controller.execute(FSR.controller.popFeedback)};FSR.run=function(){FSR.controller.execute(FSR.controller.run) };FSR.pop=function(C,A,B){FSR.controller.execute(FSR.controller.popAttach,{sp:C,when:A,qualifier:B,invite:false}) };FSR.invite=function(C,A,B){FSR.controller.execute(FSR.controller.popAttach,{sp:C,when:A,qualifier:B,invite:true}) };FSR.close=function(){FSR.controller.cancelTracker()};var ForeSee={CPPS:{fsr$set:function(A,B){FSR.CPPS.set(A,B) }}};FSR.generateid=function(){var A="";A=((new Date())-0)+"_"+Math.round(Math.random()*1000000);return A };FSR.$S={};FSR.$M={load:0,run:0};var fsr$ls=new Date().getTime();FSR.getParameter=function(B){B=B.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"); var A="[\\?&]"+B+"=([^&#]*)";var D=new RegExp(A);var C=D.exec(window.location.href);if(C==null){return"" }else{return C[1]}};FSR.staticLoadScript=function(A){document.write('
    Survey Administration Page

    1. Click 'Clear' to remove all cookies. Make sure the 'Submitted' cookie under the foreseeresults.com domain is also removed.
    2. Enter desired sampling percentage for testing.
    3. Click 'Set'. This will drop a cookie that represents the entered values. It will only affect YOUR SESSION and not other visitors to the site.
    4. Proceed with navigating the website to reach your parameters and receive a survey invitation.
    Notes: Make sure the page you are testing is not listed under the Exclude list inside trigger params file.

    Enter Sampling Percentages:



    Override Pooling
    Override IP Exclude



  • fsroptout.html
    Foresee Survey Opt-out
    Survey Opt-out Page
    Clicking the button below will drop a cookie to prevent you from receiving a ForeSee Results survey.

    The cookie is set to expire after one year.

    However, if you delete this cookie, you will then be eligible to receive the survey invitation again.

  • invite.html
    Foresee Invite
    Thank you for visiting our site!

    You have been selected to take part in a customer satisfaction survey. The feedback obtained from this survey will help us to enhance our website.

    This survey is conducted by an independent company, ForeSee Results.

  • qualifying.html
    Foresee Survey
    Site Logo
    Site Logo
    Thank you for visiting ABC Company!

    In order to determine if you are eligible to participate, please answer the questions on this page and click "Continue" at the bottom.
    Question 1

    Answer 1
    Answer 2
    Question 2

  • tracker.html
    Foresee Survey
    Site Logo
    Site Logo


    Thank you for participating in the survey.

    Please leave this window open as you browse the site. Once you are finished with your site visit, the survey will appear.


  • foresee-admin.css
    div.fsradmin { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #666666; background-color: #ffffff; font-size: 12pt; } div.fsradmin div.header { text-align: center; font-size: 14pt; background: url(/uploads/fe/29/fe2922b4aa18e2adafc4884790c744ac/fsrlogo.gif) no-repeat; height: 81px; vertical-align: middle; } div.fsradmin div.instructions { font-size: 10pt; } div.fsradmin div.override { font-size: 10pt; } div.fsradmin div.body { text-align: left; } div.fsradmin table { text-align: center; } div.fsradmin td { padding: 3px; } div.fsradmin td.names { text-align: right; } div.fsradmin div.footer { text-align: center; font-size: 8pt; } div.fsradmin .clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
  • foresee-dhtml.css
    div.fsrwin { border: 1px solid #ACACAC; } div.fsrwin div { background: #FFFFFF none repeat scroll 0; color: #4D4D4D; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-weight: normal; text-decoration: none; text-align: left; } div.fsrwin td { background: #FFFFFF none repeat scroll 0; color: #4D4D4D; font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-weight: normal; text-decoration: none; text-align: left; vertical-align: top; padding-top: 10px; line-height: 14px; } div.fsrwin h1 { font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-weight: normal; text-decoration: none; } div.fsrwin b { font-family: Arial, Helvetica, Sans-Serif; font-size: 10pt; font-weight: bold; text-decoration: none; } div.fsrwin div.fsr_top { background: #DCDCDC none repeat scroll 0; border-bottom: 1px solid #ACACAC; } div.fsrwin div.fsr_top_ul { background: #DCDCDC none repeat scroll 0; height: 30px; width: 15px; float: left; } div.fsrwin div.fsr_top_ur { background: #DCDCDC none repeat scroll 0; height: 30px; } div.fsrwin h1.fsr_caption { margin: 0px 5px 0px 0px; overflow: hidden; padding: 0; font-weight: bold; color: #555; font-size: 14px; position: relative; top: 4px; left: 5px; float: left; height: 22px; background: none; } div.fsrwin div.fsr_body { padding: 8px 20px 8px 20px; } div.fsrwin div.fsr_closeButtons { text-align: center; padding: 8px 0 8px 0; } div.fsrwin button.fsr_button { font-family: Arial, Helvetica, Sans-Serif; border: 1px solid #999999; cursor: pointer; font-size: 12pt; margin: 2px 8px; padding: 2px 12px; text-decoration: none; text-transform: none; font-weight: normal; width: 180px; float: none; } div.fsrwin button.fsr_accept { background-color: #EEEEEE; color: #000000; font-weight: bold; width: 250px; } div.fsrwin button.fsr_mouseover_accept { background-color: #EE3224; color: #FFFFFF; font-weight: bold; width: 250px; } div.fsrwin button.fsr_decline { background-color: #EEEEEE; color: #000000; width: 150px; } div.fsrwin button.fsr_mouseover_decline { background-color: #DCDCDC; color: #000000; width: 150px; } div.fsrwin div.fsr_closeButton { width: 13px; height: 13px; background: url(/uploads/69/b9/69b98c2be383a01ed981f03bd570ce4a/closebtn.gif) no-repeat; position: absolute; right: 0px; margin: 10px 15px 0px 0px; cursor: pointer; } #fsrinvite { line-height: 14px; } #fsrinvite div.fsri_sitelogo { float: left; width: 130px; height: 70px; } #fsrinvite div.fsri_fsrlogo { float: right; width: 98px; height: 66px; } #fsrinvite div.fsri_body { padding-top: 10px; } #fsrinvite div.fsri_footer { padding-top: 10px; vertical-align: bottom; text-align: center; font-size: 10px; } #fsrminvite td.fsrmi_sitelogo { height: 81px; text-align: left; } #fsrminvite td.fsrmi_fsrlogo { height: 66px; text-align: right; } #fsrcontainer:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } #fsrcontainer { display: inline-block; } /* Hides from IE-mac \*/ * html #fsrcontainer { height: 1%; } #fsrcontainer { display: block; } /* End hide from IE-mac */
  • foresee-qualifier.css
    #fsrqualifier { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: #4D4D4D; background-color: #ffffff; font-size: 10pt; } #fsrqualifier div.fsrq_top_ul { float: left; } #fsrqualifier div.fsrq_top_ur { position: relative; text-align: right; } #fsrqualifier div.fsrq_body { padding-top: 10px; text-align: left; clear: both; } #fsrqualifier div.fsrq_footer { padding-top: 10px; vertical-align: bottom; text-align: center; font-size: 10px; } #fsrcontainer:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } #fsrcontainer { display: inline-block; } /* Hides from IE-mac \*/ * html #fsrcontainer { height: 1%; } #fsrcontainer { display: block; } /* End hide from IE-mac */
  • foresee-tracker.css
    #fsrtracker { font-family: Arial, Helvetica, Sans-Serif; color: #4D4D4D; background-color: #ffffff; font-size: 10pt; } #fsrtracker div.fsrt_top_ul { float: left; } #fsrtracker div.fsrt_top_ur { position: relative; text-align: right; } #fsrtracker div.fsrt_body { padding-top: 10px; text-align: left; clear: both; } #fsrtracker button { font-family: Arial, Helvetica, Sans-Serif; border: 1px solid #999999; cursor: pointer; font-size: 12pt; margin: 2px 8px; padding: 2px 12px; text-decoration: none; text-transform: none; font-weight: normal; float: none; background-color: #EEEEEE; color: #000000; font-weight: bold; width: 200px; } #fsrtracker button.a { background-color: #EE3224; color: #FFFFFF; font-weight: bold; width: 180px; } #fsrtracker div.fsrt_footer { padding-top: 10px; vertical-align: bottom; text-align: center; font-size: 10px; } #fsrcontainer:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } #fsrcontainer { display: inline-block; } /* Hides from IE-mac \*/ * html #fsrcontainer { height: 1%; } #fsrcontainer { display: block; } /* End hide from IE-mac */
  • survey_loading.html
    Foresee Survey

    Survey is loading...Thank you for your patience.

    survey loading

  • tracker_ar.html
    Foresee Survey
    Site Logo
    Site Logo


    شكرا لك للمشاركة في هذا الاستبيان.

    الرجاء ترك هذه النافذة مفتوحة أثناء تصفحك للموقع. سيظهر هذا الاستبيان بعد انتهاء زيارتك لهذا الموقع.


  • tracker_br.html
    Foresee Survey
    Site Logo
    Site Logo


    Obrigado por participar nesta pesquisa.

    Deixe esta janela aberta enquanto estiver visitando o site. Ao concluir sua visita ao site, a pesquisa aparecerá.


  • tracker_cn.html
    Foresee Survey
    Site Logo
    Site Logo


    感谢您参加这项调查。

    请在浏览本网站时不要关闭本视窗。 当您结束浏览时将会看到征询用户意见的提问。


  • tracker_ru.html
    Foresee Survey
    Site Logo
    Site Logo


    Благодарим вас за участие в опросе.

    Пожалуйста, оставьте это окно открытым, перемещаясь по сайту. Когда вы завершите посещение сайта, на экране появится опросник.