/*=======================================
//###################################
// SolidNetwork, Inc - EastSolid.com
//
// Source Copyright 2004-2006 SolidNetwork, Inc
// Unauthorized reproduction is not allowed
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
// 
//###################################
//=======================================
*/

/*
* ###############################################
* VPS AJAX Drop Down Text
* ###############################################
*/

function populate_more_vps() {
        $('showhide').value = $('show').value;
      }
      function doOptionhide() {
        populate_more_vps();
        Element.hide('optionhide');
        Element.show('optionshow');
        new Effect.Opacity('show',{from: 1.0, to: 1.0})
        new Effect.BlindDown('morevps');
       
      }
      function doOptionshow() {
        Element.hide('optionshow');
        Element.show('optionhide');
        new Effect.Opacity('show',{from: 1.0, to: 1.0})
        new Effect.BlindUp('morevps');
      }

/*
* ###############################################
* New Window
* ###############################################
*/

var win=null;
function NewWindowBar(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";win=window.open(mypage,myname,settings);
win.focus();}

/*
* ###############################################
* Fix IE problems with PNG
* ###############################################
*/

function correctPNG() 
   {
   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='image');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }
window.attachEvent("onload", correctPNG);

