var type = "IE";	//Variable used to hold the browser name

var flgOrder = "no";

var flgPricing = "no";

var flgLicensing = "no";

var flgLicensing1 = "no";

var flgLicensing2 = "no";



var mactest=navigator.userAgent.indexOf("Mac")!=-1





if (mactest){

	

	

	var winW = 630, winH = 460;

		

	if (parseInt(navigator.appVersion)>3) {

	 if (navigator.appName=="Netscape") {

	  winW = window.innerWidth;

	  winH = window.innerHeight;

	 }

	 if (navigator.appName.indexOf("Microsoft")!=-1) {

	  winW = document.body.offsetWidth;

	  winH = document.body.offsetHeight;

	 }

	}

		

	

	winH = 800;

	winW = 1080;

	

	window.resizeTo(winW,winH);

	



}

function toggle(object) {

  if (document.getElementById) {



    if (document.getElementById(object).style.visibility == 'visible')

      document.getElementById(object).style.visibility = 'hidden';

    else

      document.getElementById(object).style.visibility = 'visible';

  }



  else if (document.layers && document.layers[object] != null) {

    if (document.layers[object].visibility == 'visible' ||

        document.layers[object].visibility == 'show' )

      document.layers[object].visibility = 'hidden';

    else

      document.layers[object].visibility = 'visible';

  }



  else if (document.all) {

    if (document.all[object].style.visibility == 'visible')

      document.all[object].style.visibility = 'hidden';

    else

      document.all[object].style.visibility = 'visible';

  }



  //return false;

}



function unExpand(){

	move(178,'pricing');

	move(196,'licensing');

	move(214,'licensing1');

	move(232,'licensing2');

	

}



function changePosition(element) {





	if(element == "order"){



		flgPricing = "no";flgLicensing="no";flgLicensing1="no";flgLicensing2="no";



		if(flgOrder == "no"){



			move(260,'pricing');

			move(278,'licensing');

			move(296,'licensing1');

			move(314,'licensing2');

			

			flgOrder = "yes";

			return

		}



		if(flgOrder == "yes"){

			unExpand();

			flgOrder = "no";

			return

		}



	}





	if(element == "pricing"){



		flgOrder = "no";flgLicensing="no";flgLicensing1="no";flgLicensing2="no";



		if(flgPricing == "no"){



			

			move(178,'pricing');

			move(278,'licensing');

			move(296,'licensing1');

			move(314,'licensing2');

			

			flgPricing = "yes";

			return

		}



		if(flgPricing == "yes"){

			unExpand();

			flgPricing = "no";

			return

		}



	}



	if(element == "licensing"){



		flgOrder = "no";flgPricing="no";flgLicensing1="no";flgLicensing2="no";



		if(flgLicensing == "no"){



			

			move(178,'pricing');

			move(196,'licensing');

			move(296,'licensing1');

			move(314,'licensing2');

			

			flgLicensing = "yes";

			return

		}



		if(flgLicensing == "yes"){

			unExpand();

			flgLicensing = "no";

			return

		}



	}

	

	if(element == "licensing1"){

	

		flgOrder = "no";flgPricing="no";flgLicensing="no";flgLicensing2="no";



		if(flgLicensing1 == "no"){





			move(178,'pricing');

			move(196,'licensing');

			move(214,'licensing1');

			move(314,'licensing2');



			flgLicensing1 = "yes";

			return

		}



		if(flgLicensing1 == "yes"){

			unExpand();

			flgLicensing1 = "no";

			return

		}



	}

	

	if(element == "licensing2"){

		

		flgOrder = "no";flgPricing="no";flgLicensing="no";flgLicensing1="no";



		if(flgLicensing2 == "no"){





			move(178,'pricing');

			move(196,'licensing');

			move(214,'licensing1');

			move(232,'licensing2');



			flgLicensing2 = "yes";

			return

		}



		if(flgLicensing2 == "yes"){

			unExpand();

			flgLicensing2 = "no";

			return

		}



	}





}





var DHTML = (document.getElementById || document.all || document.layers);



function getObj(name)

{

 if (document.getElementById)

 {

	   this.obj = document.getElementById(name);

	   this.style = document.getElementById(name).style;

 }

 else if (document.all)

 {

	   this.obj = document.all[name];

	   this.style = document.all[name].style;

 }

 else if (document.layers)

 {

	   this.obj = document.layers[name];

	   this.style = document.layers[name];

 }

}







function move(amount,test)

{

	   var texttop = 0;

	   if (!DHTML) return;

	   var x = new getObj(test);

	   texttop += amount;

	   x.style.top = texttop;

}





function hide(object) {

  if (document.getElementById) {



       document.getElementById(object).style.visibility = 'hidden';

    }



  else if (document.layers && document.layers[object] != null) {

         document.layers[object].visibility = 'hidden';



  }



  else if (document.all) {

       document.all[object].style.visibility = 'hidden';



  }





  return false;

}





function writeLayer(layerID,txt){

    if(document.getElementById){

	  document.getElementById(layerID).innerHTML=txt;

    }else if(document.all){

	  document.all[layerID].innerHTML=txt;

    }else if(document.layers){

	  with(document.layers[layerID].document){

		open();

		write(txt);

		close();

	 }

    }

}



function PopupPic(sPicURL) { 

	window.open("popup.htm"+"?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200");

}




