/****************************************
 * Newhost
 * Global JavaScript
 ****************************************/

// Start closure to prevent namespace conflicts
;(function($) {
		   
// Perform initial setup tasks when DOM is ready
$(document).ready( function() {
							
							
$('area.selectme').each(function(){
var thsid = $(this).attr('id');								 
var html =  Path + '_box-' + thsid + '.php';


switch (thsid)
{
  case 'web-hosting':         show=true; thsw = 200; thsh = 250; ax=5; ay=6; ttip = 'topMiddle';
                    break;
  case 'advanced-solutions': show=true; thsw = 200; thsh = 250; ax=40; ay=3; ttip = 'topMiddle';
                    break;
  case 'reseller': show=true; thsw = 220; thsh = 250; ax=20; ay=7; ttip = 'topLeft';
                    break;
  default: show=false; thsw = 200; ax=0; ay=0;
}

if(show==true) {
	
$(this).qtip({
      // Simply use an HTML img tag within the HTML string
      content:{ url: html , prerender: true},
	  position: {
            corner: {
               target: 'bottomLeft',
               tooltip: 'leftTop'
            },
			
		 adjust: { x: ax, y: ay } 

           
         },
		 
	 style: { 
	  width: thsw,
      padding: 5,
      background: '#f3f3f3',
      color: 'black',
      textAlign: 'center',
      border: {
         width: 6,
         radius: 4,
         color: '#e0e0e0'
      },
      tip: ttip,
      name: 'light' 
   },
   
   show: {
            effect: {
			   
               type: 'fold',
               length: 100
            }
         },
	  hide: {
            fixed: true , delay: 200 ,// Make it fixed so it can be hovered over
			effect: {
               type: 'fold',
               length: 100
            }
         }
   });
}

})


	
	
});
	
})(jQuery);

