function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}


function changebulletblurb(blurb)
{

switch(blurb)
{
case 1:

  document.getElementById('bulletblurb').innerHTML = "<img src=\"\/images\/biconecommerce.jpg\" Alt=\"eCommerce\" Border=\"0\" Width=\"60\" Height=\"60\" align=\"right\">IDC specializes in eCommerce solutions. This means we can help you setup your online shopping environment with ease and have you selling your products quickly.<BR><BR>Our Commerce system is designed so that you can spend more time running your store rather than learning how to.";
  break;    
case 2:
   document.getElementById('bulletblurb').innerHTML = "<img src=\"\/images\/biconsecure.jpg\" Alt=\"eCommerce\" Border=\"0\" Width=\"60\" Height=\"60\" align=\"right\">Experienced in extensive database integration, IDC is ready to meet any data storage need. From online training to eCommerce and data search, we can do it all.<BR><BR>We offer 128 bit Secure Socket Layer encryption for all sensitive online data transfer.";
  break;
case 3:
   document.getElementById('bulletblurb').innerHTML = "<img src=\"\/images\/biconseo.jpg\" Alt=\"eCommerce\" Border=\"0\" Width=\"60\" Height=\"60\" align=\"right\">Search Engine Optimization is probably the most important part of your website. Without good SEO, you risk being lost in an ocean of sites.<BR><BR>With over 10 years of experience, IDC can help connect you with your target audience.";
  break;
 case 4:
   document.getElementById('bulletblurb').innerHTML = "<img src=\"\/images\/biconhosting.jpg\" Alt=\"eCommerce\" Border=\"0\" Width=\"60\" Height=\"60\" align=\"right\">Power your Web site with performance Web hosting. With full support for popular applications and languages such as MS Access, MS SQL, ASP, ASP.net and VBScript. <BR><BR>Our servers are housed in an environmentally controlled data center with redundant data backup and emergency power generators.";
  break;
case 5:
   document.getElementById('bulletblurb').innerHTML = "<img src=\"\/images\/biconchat.jpg\" Alt=\"eCommerce\" Border=\"0\" Width=\"60\" Height=\"60\" align=\"right\">In 2008, IDC released SurferMonitor, a hosted live chat and visitor tracking solution designed to assist you in offering unmatched customer support to your website visitors. SurferMonitor offers exclusive features not found with any other CSR service.<BR><BR>Check out <a href=\"http:\/\/www.SurferMonitor.com\" Target=\"_blank\">SurferMonitor.com</a> for a free demo.";
  break;
case 6:
   document.getElementById('bulletblurb').innerHTML = "<img src=\"\/images\/bicongraphic.jpg\" Alt=\"eCommerce\" Border=\"0\" Width=\"60\" Height=\"60\" align=\"right\">With an eye for design, IDC can work with your ideas, your current designs or we can come up with a look to suit you perfectly from scratch.<BR><BR>From custom logo creation for print to graphics and photography for the web, we're ready to meet all your graphic design needs.";
  break;
case 7:
   document.getElementById('bulletblurb').innerHTML = "<img src=\"\/images\/biconcc.jpg\" Alt=\"eCommerce\" Border=\"0\" Width=\"60\" Height=\"60\" align=\"right\">IDC specializes in eCommerce solutions. This means we can help you setup your online shopping environment with ease and get you selling your products quickly.<BR><BR>Our Commerce system is designed so that you can spend more time running your store than learning how to.";
  break;
default:
   document.getElementById('bulletblurb').innerHTML = "IDC offers innovative web development integrating cutting edge technology and proven graphical layout to bring you the best in E-commerce, multimedia, graphics and design. Combine our skilled design team with our powerful hosting services and you have everything you need to establish and maintain your successful presence on the web.";
}
}

function showHelpHint(str)
{
if (str.length==0)
  { 
  document.getElementById("txtHint").innerHTML="";
  document.getElementById("txtHint").className="txtHint";
  return;
  }
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="gethelphint.idc";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
if (xmlHttp.responseText != ""){
document.getElementById("txtHint").className="txtHintUsed";
}
else{
document.getElementById("txtHint").className="txtHint";
}
}
}

function returnDefaultHelp() {
document.helpguide.txtkey.value="Type your question or keyword";
}




var refreshNews = 0;

function showIDCNews(newsID) 
{
if (newsID.length==0)
  { 
  document.getElementById("homecontentnews").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="getidcnews.idc";
url=url+"?q="+newsID;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateNewsChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
//var refreshNews = setInterval('showIDCNews(" + newsID + ")', 8000);
//refreshNews;
}

function stateNewsChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("homecontentnews").innerHTML=xmlHttp.responseText;
}
}






function showGuideDetail(theID) 
{
clearInterval(refreshNews);
if (theID.length==0)
  { 
  document.getElementById("homecontentnews").innerHTML="";
  return;
  }
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="gethelpanswer.idc";
url=url+"?q="+theID;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateAnswerChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateAnswerChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("homecontentnews").innerHTML=xmlHttp.responseText;
}
}







function closeGuideAnswer() {
refreshNews = showIDCNews(0) ;
document.getElementById("txtHint").innerHTML="";
document.getElementById("txtHint").className="txtHint";
}

function returnDefaultHelp() {
document.helpguide.txtkey.value="Type your question or keyword";
}


function setfocus() {
	document.helpguide.txtkey.focus();
}

function init() {
	refreshNews = showIDCNews(0) ;
}