  var x=100
  var spaces="                                                                                    "
  var QNum=0 
  var Blinking;
  var BlinkBanner;
  var blinknum=0
  var blinktxtnum=0
  var ieLoc=0
  var WinStatus
  

function ViewStatusMsg(txtmsg){

    x=x-1;

     window.status=spaces.slice(0,x)+txtmsg+spaces.slice(0,100-x);
     if (x<2){
        window.clearInterval(WinStatus);
     }

  }


function SetStatusMsg(){

    Interval=window.setInterval("ViewStatusMsg()",30);
  
}

function toYellow(obj){

 if (document.all){
 obj.style.color="yellow";
 }
 else{
 alert("hello to Yellow");
 document.getElementById(obj).style.color="yellow"
 }
}



function toGreen(obj){

 if (document.all){
 obj.style.color="#42C242";
 }
 else{
 alert("hello to Green");
 document.getElementById(obj).style.color="#42C242"
 }
}



function toWhite(obj){
 if (document.all){obj.style.color="white";return;}else{document.getElementById('obj').style.color="white"}
}

function toGrey(obj){
   if (document.all){obj.style.color="#222222";return;}else{document.getElementById('obj').style.color="#222222"}
}
  


function BlinkNow(){

  blinknum++
 
  if (blinknum==1 && ieLoc>0) {
      Qs.style.color="#000080"
    
    
  }    
  
 
}
    

function ChangeQs(){
    
    QNum++
    if (QNum>11) QNum=1
 if (document.all){
   var QsObj= Qs
 }else{
   var QsObj= document.getElementById('Qs')
 }  
 
  if (ieLoc>0){
    
    if (QNum==1) {
         QsObj.style.color="#000080"
         QsObj.innerText="Are you thinking about getting a new website?";
    }     
    if (QNum==2) {
         QsObj.style.color="#000080"
         QsObj.innerText="Would you like to make your existing website more dynamic?";
    }     
    if (QNum==3) {
         QsObj.style.color="#000080"
         QsObj.innerText="Are you dissatisfied with your current site maintenance?";
    }     
  
    if (QNum==6) {
      clearInterval(BlinkBanner)
      
    }  


    if (QNum==6){
         QsObj.style.color="#000080"
         QsObj.innerText="Is there anything we can help you with?";
         Blinking=setInterval("BlinkNow()",300)
    }


   if (QNum==6 && ieLoc<0) {
      x=100
      WinStatus=setInterval("ViewStatusMsg('If you are not sure how to get the flash plugin, please email me')",1)
   }

 } 

 if (ieLoc<0){

  
    if (QNum==1) {
         theText='<center><font color="#00FF00" face="Verdana,arial,sans-serif" size="3"><b><i>Are you thinking about getting a new website?</i></b></font><br>';
                  WriteIt(theText);
    }     
    if (QNum==2) {
         theText='<center><font color="#FFFF00" face="Verdana,arial,sans-serif" size="3"><b><i>Would you like to make your existing website more dynamic?</i></b></font><br>';
                  WriteIt(theText);
    }     
    if (QNum==3) {
         theText='<center><font color="#FF00FF" face="Verdana,arial,sans-serif" size="3"><b><i>Are you dissatisfied with your current site maintenance?</i></b></font><br>';
         WriteIt(theText);
    }     

   // if (QNum==4){
   //      theText='<center><font color="#FFA809" face="Verdana,arial,sans-serif" size="3"><b><i>Downloading the Flash Player will only take 2 minutes</i></b></font><br>';
   //      WriteIt(theText);
   // }
    
    if (QNum==6){
         theText='<center><font color="red" face="Verdana,arial,sans-serif" size="3"><b><i>Is there anything we can help you with?</i></b></font><br>';
         WriteIt(theText);
         
    }
  
   if (QNum==20 && ieLoc<0) {
      x=100
      WinStatus=setInterval("ViewStatusMsg('get in touch now')",1)
   }
   
   
 }
}


function Init(){
    var AppVer
    AppVer=window.navigator.userAgent;
    ieLoc=AppVer.indexOf("MSIE");
    
    QNum=0
    
    setInterval("ChangeQs()",3000)
}    
    
function WriteIt(t){
    document.QsLayer.document.open();
    document.QsLayer.document.write(t);
    document.QsLayer.document.close();
}        

function StopFunctions(){
    clearInterval(Blinking)
    clearInterval(WinStatus)
    clearInterval(BlinkBanner)
}    



var ieLoc=0


