﻿
/*------------------Home Page--------------------------*/ 
function change_option(sender)
{
 document.getElementById('lnk_signup').style.display="block";
  if (sender == 'free')
  {
   document.getElementById('top_home_div').style.height="79px";
   document.getElementById('left_home_div').style.background = document.getElementById('hid_free1').style.background;
   document.getElementById('bottom_home_div').style.background = document.getElementById('hid_free2').style.background;
   document.getElementById('bottom_home_div').innerHTML ="<div id='left_text_div'><p class='home_titles'>iFloat free plan</p><p>All you can talk to USA, Canada and UK with a free number for receiving unlimited free calls. Packed with features for a low fee.</p></div><div id='right_text_div'><p class='home_titles'>Plan Summary</p><ul class='yellow_bullet'><li>Unlimited calls to USA, Canada and UK Landline</li><li>Free Number Included from Over 50 Countries</li><li>Free Incoming Calls</li><li>Free 15 features included at No Charge</li></ul><ul class='left_ul' id='free_sub_ul'><li><a href='plans/plans_free.aspx'>more details</a></li><li style='padding-right:0px;'>&nbsp;</li></ul></div>";
   document.getElementById('hid_plan').value="r_free1";
   }
  if (sender == '1000')
  {
   document.getElementById('top_home_div').style.height="80px";
   document.getElementById('left_home_div').style.background = document.getElementById('hid_10001').style.background;
   document.getElementById('bottom_home_div').style.background = document.getElementById('hid_10002').style.background;
   document.getElementById('bottom_home_div').innerHTML = "<div id='left_text_div'><p class='home_titles'>iFloat 1000 plan</p><p>1000 minutes included to 15 countries worldwide, that is less than $0.035 a minute! Great entry package for a low monthly fee.</p></div><!--left_text_div--><div id='right_text_div'><p class='home_titles'>Plan Summary</p><ul class='white_bullet'><li>Over 16 hours of talk time to more than 15 countries</li><li>Free Number Included from Over 50 Countries</li><li>Free Incoming Calls</li><li>Free 15 features included at No Charge</li><li>Free Hardware</li></ul><ul class='left_ul' id='p1000_sub_ul'><li><a href='plans/plans_1000.aspx'>more details</a></li><li style='padding-right:0px;'>&nbsp;</li></ul></div>";
   document.getElementById('lnk_signup').style.marginTop="-22px";
   document.getElementById('hid_plan').value="r_10001";
   }
  if (sender == '1500')
  {
   document.getElementById('top_home_div').style.height="79px";
   document.getElementById('left_home_div').style.background = document.getElementById('hid_15001').style.background;
   document.getElementById('bottom_home_div').style.background = document.getElementById('hid_15002').style.background;
   document.getElementById('bottom_home_div').innerHTML ="<div id='left_text_div'><p class='home_titles'>iFloat 1500 plan</p><p>1500 minutes included to 30 countries worldwide, more countries and more minutes for lower rate per minute.</p></div><!--left_text_div--><div id='right_text_div'><p class='home_titles'>Plan Summary</p><ul class='white_bullet'><li>25 hours of talk time to more than 30 Countries</li><li>Free Number Included from Over 50 Countries</li><li>Free Incoming Calls</li><li>Free 15 features included at No Charge</li><li>Free Hardware</li><li>Special Limited Time Offer: Free Mobile VoIP!</li></ul><ul class='left_ul' id='p1500_sub_ul'><li><a href='plans/plans_1500.aspx'>more details</a></li><li style='padding-right:0px;'>&nbsp;</li></ul></div>";
   document.getElementById('lnk_signup').style.marginTop="-21px";
   document.getElementById('hid_plan').value="r_15001";
   }
  if (sender == '2000')
  {
   document.getElementById('top_home_div').style.height="80px";
   document.getElementById('left_home_div').style.background = document.getElementById('hid_20001').style.background;
   document.getElementById('bottom_home_div').style.background = document.getElementById('hid_20002').style.background;
   document.getElementById('bottom_home_div').innerHTML = "<div id='left_text_div'><p class='home_titles'>iFloat 2000 plan</p><p>2000 minutes included to 60 countries worldwide, lowest rate per minute</p></div><div id='right_text_div'><p class='home_titles'>Plan Summary</p><ul class='white_bullet'><li>Over 30 hours of talk time to more than 60 Countries</li><li>Free Number Included from Over 50 Countries</li><li>Free Incoming Calls</li><li>Free 15 features included at No Charge</li><li>Free Hardware</li><li>Special Limited Time Offer: Free Mobile VoIP & iFloat Office!</li></ul><ul class='left_ul' id='p2000_sub_ul'><li><a href='plans/plans_2000.aspx'>more details</a></li><li style='padding-right:0px;'>&nbsp;</li></ul></div>";
   document.getElementById('top_home_div').style.width="543";
   document.getElementById('top_home_div').style.marginLeft="1px";
   document.getElementById('lnk_signup').style.marginTop="-22px";
   document.getElementById('hid_plan').value="r_20001";
   }
   if (sender == 'me')
  {
   document.getElementById('left_home_div').style.background = document.getElementById('hid_me1').style.background;
   document.getElementById('bottom_home_div').style.background = document.getElementById('hid_me2').style.background;
   document.getElementById('top_home_div').style.height="78px";
   document.getElementById('bottom_home_div').innerHTML ="<div id='left_text_div'><p class='home_titles'>iFloat ME plan</p><p>500 minutes included to all Middle East destination (landline and mobile), that’s less than 15 cents a minute!</p></div><div id='right_text_div'><p class='home_titles'>Plan Summary</p><ul class='white_bullet'><li>Unrivaled quality of calls</li><li>Free numbers available including Bahrain and Jordan</li><li>Free Incoming Calls</li><li>Free 15 features included at No Charge</li><li>Free Hardware</li></ul><ul class='left_ul' id='me_sub_ul'><li><a href='plans/plans_me.aspx'>more details</a></li><li style='padding-right:0px;'>&nbsp;</li></ul></div>";
   document.getElementById('top_home_div').style.width="543";
   document.getElementById('top_home_div').style.marginLeft="1px";
   document.getElementById('lnk_signup').style.marginTop="-20px";
   document.getElementById('hid_plan').value="r_east1";
   }
   document.getElementById('go_sign').style.display = "none";
} 

function change_back()
{
   document.getElementById('hid_me1').style.background = "transparent url('images/home_me.gif') 7px top no-repeat";
   document.getElementById('hid_me2').style.background = "transparent url('images/home_dark_red_back.gif') left 1px no-repeat";
   document.getElementById('hid_20001').style.background = "transparent url('images/home_2000.gif') 13px top no-repeat";
   document.getElementById('hid_20002').style.background = "transparent url('images/home_dark_blue_back.gif') left 1px no-repeat";
   document.getElementById('hid_15001').style.background = "transparent url('images/home_1500.gif') 16px top no-repeat";
   document.getElementById('hid_15002').style.background = "transparent url('images/home_dark_pink_back.gif') left 1px no-repeat";
   document.getElementById('hid_10001').style.background = "transparent url('images/home_1000.gif') 15px top no-repeat";
   document.getElementById('hid_10002').style.background = "transparent url('images/home_dark_purple_back.gif') left 1px no-repeat";
   document.getElementById('hid_free1').style.background = "transparent url('images/home_free.gif') 14px top no-repeat";
    document.getElementById('hid_free2').style.background = "transparent url('images/home_dark_yellow_back.gif') left 1px no-repeat";
   /* document.getElementById('left_home_div').style.background = "transparent url('images/signup_home.jpg') 16px top no-repeat";
    document.getElementById('bottom_home_div').style.background ="transparent url('images/home_dark_grey_back.gif') left top no-repeat";
    document.getElementById('bottom_home_div').innerHTML="<div id='home_left_text_div'><p class='home_titles'>New Feature: iFloat Mobile</p><p>iFloat Mobile allows you to use your mobile phone to make international calls and save money on the move, regardless of who your mobile operator is!</p></div><div id='home_right_text_div'><p class='home_titles'>iFloat Travel Access Numbers</p><p>Travelling anywhere?  Use any of our access numbers in over 40 countries to dial into. Just enter your pin or send an SMS and we’ll call you back!</p></div>";
    */
}

/*-----------------------Features Page-----------------------*/
function show_info(sender)
{
    for (i=1;i<19;i++)
      {
      str1='li_' + i;
      document.getElementById(str1).style.color = "#808285";
      }
    if (sender <14)
    { 
      document.getElementById('optional_features_info').style.visibility = "hidden";
      document.getElementById('included_features_info').style.visibility = "visible";
      document.getElementById('included_features_info').focus
    }
    else
    {
      document.getElementById('included_features_info').style.visibility = "hidden";
      document.getElementById('optional_features_info').style.visibility = "visible";
      document.getElementById('optional_features_info').style.zIndex = "1";
      document.getElementById('optional_features_info').style.marginTop="-115px";
    }
    if(sender == 1)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(1);'></a><p>Know who is calling you before you answer the phone. When your phone rings, the name and phone number of the person calling you will show in your Caller ID enabled phone display.</p>";
        document.getElementById('li_1').style.color = "#FAA634";
    }
    if(sender == 2)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(2);'></a><p>If you are on the phone when another call comes in, a tone will sound, enabling you to answer the second call. If you choose not to answer the second call, it will be forwarded (if forwarding is enabled) otherwise it will be answered by voicemail (if enabled).</p>";
        document.getElementById('li_2').style.color = "#FAA634";
    }
    if(sender == 3)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(3);'></a><p>You can send incoming calls to any phone number you choose, even International numbers. You can forward the call if your line is busy, on no answer or if your line is turned off.</p>";
        document.getElementById('li_3').style.color = "#FAA634";
    }
    if(sender == 4)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(4);'></a><p>Now you can manage your voicemail messages easily in three different ways. Take control and listen to voicemail via the online website, your email inbox or any phone.</p>";
        document.getElementById('li_4').style.color = "#FAA634";
    }
    if(sender == 5)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(5);'></a><p>The caller ID block gives you privacy protection if you need it.  Even if the called party has caller ID, your number will not show up.  You can choose to block caller ID per call or permanently.</p>";
        document.getElementById('li_5').style.color = "#FAA634";
    }
    if(sender == 6)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(6);'></a><p>With Call Return you can simply call back the last number who called you. Missed more than one call? Get a complete Call History or Missed Calls listing from the online account.  You can dial *69 from your phone to call the last missed call.</p>";
        document.getElementById('li_6').style.color = "#FAA634";
    }
    if(sender == 7)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(7);'></a><p>When the Do Not Disturb feature is enabled, all incoming calls will be routed directly to your voicemail (if enabled) and your phone will not ring.</p>";
        document.getElementById('li_7').style.color = "#FAA634";
    }
    if(sender == 8)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(8);'></a><p>Use your online account to setup up to twenty speed dials which allow you to quickly dial a short number to reach your most dialed numbers.</p>";
        document.getElementById('li_8').style.color = "#FAA634";
    }
    if(sender == 9)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(9);'></a><p>If you want to avoid others in an office or home from dialing international numbers, you can simply disable international calls when needed.</p>";
        document.getElementById('li_9').style.color = "#FAA634";
    }
    if(sender == 10)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(10);'></a><p>Have the system place a reminder call or a callback call to you and your desired party - all triggered over the internet</p>";
        document.getElementById('li_10').style.color = "#FAA634";
    }
    if(sender == 11)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(11);'></a><p>Running out of credit on your mobile? Just send an SMS to the IPFloat SMS callback number and you will automatically be called back to enter the desired destination you wish to reach</p>";
        document.getElementById('li_11').style.color = "#FAA634";
    }        
    if(sender == 12)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(12);'></a><p>Anywhere, anytime worldwide free calls to all iFloat subscribers.  Build your own free calling network with friends, colleagues and family.</p>";
        document.getElementById('li_12').style.color = "#FAA634";
    }
    if(sender == 13)
    {
        document.getElementById('included_features_info').innerHTML="<a id='close_link'onclick='close_info(13);'></a><p>Everything you need for your IPFloat service at the tip of your fingertips. Your online account gives you access to all your feature settings, call history and billing information. </p>";
        document.getElementById('li_13').style.color = "#FAA634";
    }
    if(sender == 14)
    {
        document.getElementById('optional_features_info').innerHTML="<a id='close_link'onclick='close_info(14);'></a><p>No need for internet to make VoIP calls anymore, use your mobile/cell phone to dial one of our global access numbers to make low cost international calls.  Now you can make VoIP calls anywhere anytime!</p>";
        document.getElementById('li_14').style.color = "#FAA634";
    }
    if(sender == 15)
    {
        document.getElementById('optional_features_info').innerHTML="<a id='close_link'onclick='close_info(15);'></a><p>With global coverage iFloat brings you every state and city coverage so you can have a local number exactly where you need it. </p>";
        document.getElementById('li_15').style.color = "#FAA634";
    }
    if(sender == 16)
    {
        document.getElementById('optional_features_info').innerHTML="<a id='close_link'onclick='close_info(16);'></a><p>Extending the local number concept globally, you can now have a local numbers in over 40 countries worldwide, making your presence felt and heard all around. Convenient and cost effective for some, and business critical for others.</p>";
        document.getElementById('li_16').style.color = "#FAA634";
    }
    if(sender == 17)
    {
        document.getElementById('optional_features_info').innerHTML="<a id='close_link'onclick='close_info(17);'></a><p>Need to provide your customers with free calling as part of your service offering, IPFloat offers Toll Free numbers across the globe, giving your business the presence required to compete locally and value your customers and making them feel you are there for them.</p>";
        document.getElementById('li_17').style.color = "#FAA634";
    }
    if(sender == 18)
    {
        document.getElementById('optional_features_info').innerHTML="<a id='close_link'onclick='close_info(18);'></a><p>Who needs a PBX, or expensive equipment anymore, with iFloat office, you get all the features you need to give an image of a corporation to those calling you, with auto-attendant, voicemail, extensions and much more.  You can run a virtual office worldwide.</p>";
        document.getElementById('li_18').style.color = "#FAA634";
    }
    
}

function close_info(closed)
{  
    var str = 'li_' + closed;
    if (closed > 13)
    {
        document.getElementById('optional_features_info').style.visibility = "hidden";
    }
    else
    {
        document.getElementById('included_features_info').style.visibility = "hidden";
    }
    document.getElementById(str).style.color="#808285";

}

function show_ans(obj_ans)
  {
   var ans_id = obj_ans.id;
   hide_ans(ans_id.substring(5));
   ans_id = "ans_" + ans_id.substring(5);
   if(document.getElementById(ans_id).style.display == "none" || document.getElementById(ans_id).style.display == "")
     {
       document.getElementById(ans_id).style.display = "block";
     }
   else
     {
      document.getElementById(ans_id).style.display = "none";
     }
  }
  
function hide_ans(ans_num)
  {
   var ans = ans_num*1;
   var ans_id = "";
   for (i=1;i<=14;i++)
      {
       if(ans != i)
         {
          ans_id = "ans_" + i;
          document.getElementById(ans_id).style.display = "none";
         }
      }
  }



