﻿// JScript File

var zoomfactor=0.1 //Enter factor (0.05=5%)
//  function BrowserDetect(){
//    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
//        var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
//        if (ieversion>=8)
//            alert("You're using IE8 or above")
//        else if (ieversion>=7)
//            alert("You're using IE7.x")
//        else if (ieversion>=6)
//            alert("You're using IE6.x")
//        else if (ieversion>=5)
//            alert("You're using IE5.x")
//     else if (/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)){ //test for Firefox/x.x or Firefox x.x (ignoring remaining digits);
//        var ffversion=new Number(RegExp.$1) // capture x.x portion and store as a number
//        if (ffversion>=3)
//            alert("You're using FF 3.x or above")
//        else if (ffversion>=2)
//            alert("You're using FF 2.x")
//        else if (ffversion>=1)
//            alert("You're using FF 1.x")
//    }



 
    function U_zoom_mouseover(){
         Ultimate.style.zoom='105%'; 
         Ultimate.style.top='-2%';       
  
    }
        function U_zoom_mouseout(){
          Ultimate.style.zoom='normal'; 
          Ultimate.style.top='0%';

    }
        function S_zoom_mouseover(){
          Simple.style.zoom='105%'; 
          Simple.style.top='-4%';
          var a='SINGLE';
          var b='$9.95';
          S.style.background='url(images/Header1.jpg) left top no-repeat';
          Sh2.innerHTML=a;
          Sh21.innerHTML=b;
         
//          Sli1.innerHTML='Prepare free. Pay only if you print or e-file.';
//          Sli2.innerHTML='Get your biggest refund.';
//          Sli3.innerHTML='Guaranteed accuracy.';

    }
        function S_zoom_mouseout(){
          Simple.style.zoom='normal'; 
          Simple.style.top='0%';
          
          
        
    }
        function D_zoom_mouseover(){
         // Deluxe.style.zoom='105%'; 
         //Deluxe.style.top='-2%';
         var a='DELUXE';
         var b='$9.95';
     Sh2.innerHTML=a;
          Sh21.innerHTML=b;
       
//          Sli1.innerHTML='Prepare free. Pay only if you print or e-file.';
//          Sli2.innerHTML='Get your biggest refund.';
//          Sli3.innerHTML='Guaranteed accuracy.';
    }
        function D_zoom_mouseout(){
          Deluxe.style.zoom='normal'; 
          Deluxe.style.top='0%';
      
    }
     function P_zoom_mouseover(){
          Premier.style.zoom='105%'; 
      Premier.style.top='-2%';
    }
        function P_zoom_mouseout(){
          Premier.style.zoom='normal'; 
          Premier.style.top='0%';
      
    }
     function B_zoom_mouseover(){
          Business.style.zoom='105%'; 
      Business.style.top='-2%';
    }
        function B_zoom_mouseout(){
          Business.style.zoom='normal'; 
          Business.style.top='0%';
      
    }

function zoomhelper()
{
	//if ((parseInt(whatcache.style.width)>10 || parseInt(whatcache.style.height)>10) && (parseInt(whatcache.style.width)<300 || parseInt(whatcache.style.height) < 300 ))
	if ((parseInt(whatcache.style.height)>10) && (parseInt(whatcache.style.height) < 350 ))
	{
		//whatcache.style.width=parseInt(whatcache.style.width)+parseInt(whatcache.style.width)*zoomfactor*prefix
		//alert(whatcache.style.width)
		whatcache.style.height=parseInt(whatcache.style.height)+parseInt(whatcache.style.height)*zoomfactor*prefix
		//alert(whatcache.style.height)
	}
}

function zoom(originalW, originalH, what, state)
{
	if (!document.all&&!document.getElementById)
		return
	//whatcache=eval("document."+what)
	whatcache=document.getElementById('myimage')
	prefix=(state=="in")? 1 : -1
	if (whatcache.style.width==""||state=="restore")
	{
	//	whatcache.style.width=originalW+"px"
		whatcache.style.height=originalH+"px"
		if (state=="restore")
			return
	}
	else
	{
		zoomhelper()
	}
	beginzoom=setInterval("zoomhelper()",10)
}

function clearzoom()
{
	if (window.beginzoom)
		clearInterval(beginzoom)
}

