﻿function OpenPage(url) {
    
    windowprops = "width=450,height=320,top=0,left=0,resizable=no,toolbar=no,scrollbars=no,location=no,menubar=no,status=no";
    gameWnd = window.open(url, "Terms", windowprops);
    if (gameWnd != null)
        gameWnd.focus();
    else
        alert('window is blocked by popup blocker');
}


var allTestimonials = [{ "Author": "<span class=\"author\"> Yakov Lifshits, VP Marketing, MaxiForex.ru<\/span>", "Text": "The ability to fully control marketing activities and instantly calculate ROI for every campaign separately is a key to our ability to surpass marketing targets" }, { "Author": "<span class=\"author\"> Nigel Raymond, COO, UFX Bank<\/span>", "Text": "Thanks to ParagonEX's  SaaS approach, we commenced operations within 4 weeks, with minimal IT costs, resulting in a much shorter time to market" }, { "Author": "<span class=\"author\"> Ilya Badaev, VP R&D, ParagonEX<\/span>", "Text": "The system was designed to support massive growth in numbers of users and withstand trading bursts of up to 10 times the normal rates" }, { "Author": "<span class=\"author\"> Cedrick Toledano, CTO, ParagonEX<\/span>", "Text": "It is our goal to make sure we deliver our clients a comprehensive end-to-end solution, providing management with a clear over view of the operation at any given moment"}];
var i = 0;

//
// homepage
//
function PlayTestimonials() {
    var timer = setTimeout("ShowTestimonial()", 10000);
}

function ShowTestimonial() {

    //$('#testimonialsInner').fadeOut('fast');

    if (i == allTestimonials.length) {
        i = 0;
    }
    var el = document.getElementById('testimonialsInner');

    el.innerHTML = "&#8220; " + allTestimonials[i].Text + " &#8221;" + allTestimonials[i].Author;
    
    
    //$('#testimonialsInner').show();
    i++;
    PlayTestimonials();
}

function PlayTestimonials1() {
    var timer = setTimeout("ShowTestimonial1()", 10000);
}


//
// common
//
function ShowTestimonial1() {

    
    if (i == allTestimonials.length) {
        i = 0;
    }
    var el = document.getElementById('testimonialsInner1');

    el.innerHTML = "&#8220; " + allTestimonials[i].Text + " &#8221;<br /><br />" + allTestimonials[i].Author;
   
  
    i++;
    PlayTestimonials1();
}


