/**
 * @fronth used to detect the browser and fix required images
 *
 */
var backImage = new Array(); // don't change this
backImage[0] = "img/dialog_green.gif";
backImage[1] = "img/dialog_blue.gif";
backImage[2] = "img/dialog_gray.gif";
backImage[3] = "img/dialog_orange.gif";
backImage[4] = "img/dialog_yellow.gif";

/**
 * @fronth used to detect the browser and fix required images
 *
 */
var mypics = new Array(); // don't change this
mypics[0] = "img/left_heart0.jpg";
mypics[1] = "img/left_heart1.jpg";
mypics[2] = "img/left_heart2.jpg";
mypics[3] = "img/left_heart3.jpg";
mypics[4] = "img/left_heart4.jpg";
mypics[5] = "img/left_heart5.jpg";
mypics[6] = "img/left_heart8.jpg";
mypics[7] = "img/left_heart9.jpg";
mypics[8] = "img/left_heart10.jpg";


/**
 * @Index pages to detect the
 * callback presentation
 */
var v_callback=false;

/**
 * @fronth used to detect the browser and
 * fix required images
 *
 */
function fronth(){
    var browser=navigator.appName;
    var b_version=navigator.appVersion;
    var version=parseFloat(b_version);
    var fronts = new Array();
    fronts[0] = "img/ie_frontpage.png";
    fronts[1] = "img/skype.png";
    // Detect Browser and apply required actions
    if(browser=="Microsoft Internet Explorer"){
            document.getElementById( 'jony1' ).style.backgroundImage='url(' + fronts[0] + ')';
            document.getElementById( 'jony2' ).style.backgroundImage='url(' + fronts[0] + ')';
            document.getElementById( 'jony3' ).style.backgroundImage='url(' + fronts[0] + ')';
    }else if(browser=="Netscape"){
            //alert("Netscape");
    }else if(browser=="Opera"){
            //alert("Opera");
    }
}


/**
 * @fpcfoon used to detect the browser and
 * fix required images
 *
 */
function fpcfoon(){
    var browser=navigator.appName;
    var b_version=navigator.appVersion;
    var version=parseFloat(b_version);
    var fronts = new Array();
    //fronts[0] = "img/ie_frontpage.png";
    //fronts[1] = "img/skype.png";
    // Detect Browser and apply required actions
    if(browser=="Microsoft Internet Explorer"){

    }else if(browser=="Netscape"){
            alert("Please use Microsoft Internet Explorer");
    }else if(browser=="Opera"){
            alert("Please use Microsoft Internet Explorer");
    }
}



/**
 * @fWindow used to detect the browser
 * W/H for resize page
 */
function fWindow(){
    if ((screen.width>=1280) && (screen.height>=1024))
    {
     //window.location="index.php";
    }
    else
    {
      //window.location="index.php";
    }
}


/**
 * @timedCount used to force background image
 * changing the background
 */
var c=0
var t
function timedCount(){
    //document.getElementById('txt').value=c;
    changeLEFTBG(c);
    c=c+1;
    t=setTimeout("timedCount()",20000);
}

/**
 * @changeBGImage used to force background image
 * changing the background
 */
function changeBGImage(whichImage){
	document.getElementById( 'tblright' ).style.backgroundImage='url(' + backImage[whichImage] + ')';
}

/**
 * @changeLEFTBG used to force background image
 * changing the background
 */
function changeLEFTBG(whichImage){
	//setTimeout(pageincrement(), 5000);
	randomnumber = Math.floor( Math.random() * mypics.length );
	document.getElementById( 'tblleft' ).style.backgroundImage='url(' + mypics[randomnumber] + ')';
}

/**
 * @hidelaptop used to force background image
 * changing the background
 */
function hidelaptop(theTable)
{
      obj = document.getElementsByTagName('div');
       for (i=0; i<obj.length; i++)
     {
            if (obj[i].id == theTable)
            obj[i].style.display = 'none';
     }
}

/**
 * @showlaptop used to force background image
 * changing the background
 */
function showlaptop(theTable)
{
     obj = document.getElementsByTagName('div');
       for (i=0; i<obj.length; i++)
     {
            if (obj[i].id == theTable)
          obj[i].style.display = 'block';
     }
}

/**
 * @overlay used to force background image
 * changing the background
 */
function overlay()
{
xyz = document.getElementById("overlay");
xyz.style.visibility = (xyz.style.visibility == "visible") ? "hidden" : "visible";
}

/**
 * @signup1 used to force background image
 * changing the background
 */
function signup1()
{
xyz = document.getElementById("signup1");
xyz.style.visibility = (xyz.style.visibility == "visible") ? "hidden" : "visible";
}


/**
 * @signup1 used to force background image
 * changing the background
 */
function calldemo()
{
xyz = document.getElementById("calldemo");
xyz.style.visibility = (xyz.style.visibility == "visible") ? "hidden" : "visible";

	if(xyz.style.visibility == "visible"){      
		document.getElementById("call1").Play();
	}else{     
		document.getElementById("call1").StopPlay();
	}

}

/**
 * @signup1 used to force background image
 * changing the background
 */
function carddemo()
{
xyz = document.getElementById("carddemo");
xyz.style.visibility = (xyz.style.visibility == "visible") ? "hidden" : "visible";

	if(xyz.style.visibility == "visible"){  
		
		document.getElementById("crd").Play();
	}else{    
		
		document.getElementById("crd").StopPlay();
	}


}


