// Cufon
Cufon.replace('h1', {hover:true})('h2:not(.nocufon)',{hover: true})('h3')('#homeServices .homeServiceItem h2')('#homeFeatures h1.homeSlogan')('.homeServiceItem ul li strong a',{hover: true})('.homeServiceItem ul li .price')('#innerFooter h3')('h1.landingTitle')('p.landingServiceDesc')('#landingInfo h2',{hover: true})('.keyFeatures')('.plansTable .plan div .price')('#profileBox #profileTop h2')('.ui-dialog-titlebar')('.headAction',{hover: true});

/*
$(document).ready(function() {
	$("#featuresBoxContent #sideMenu").tabs();

	str = window.location.toString();
	var arr = str.split('#');
	$("#sideMenu").tabs('select', arr[1]); // switch to tab   

	$(".ajaxdialog").click(function (event) {
		event.preventDefault();
		$("#dialog").destroy;
		$("#dialogcontainer").html("<div id=\"dialog\"></div>");
		$("#dialog").load($(this).attr("href"));
		$("#dialog").dialog({
			autoOpen:false,
			bgiframe: false,
			closeOnEscape: true,
			resizable: false,
			position: 'center',
			draggable: true,
			height: 500,
			width: 650,
			title:$(this).attr("title"),
			modal: true
		});
	});
});
*/

$(document).ready(function() {    
	$("#featuresBoxContent #sideMenu").tabs();

	str = window.location.toString();
	var arr = str.split('#');
	$("#sideMenu").tabs('select', arr[1]); // switch to tab   
                               
    var $dialog = $('<div id="dialog"></div>')
        .dialog({
              autoOpen:false,
              bigframe: false,
              closeOnEscape: true,
              resizable: false,
              position: 'center',
              height: 460,
              width: 650,
              title:$(this).attr("title"),
              modal: true
        });
    
    $(".ajaxdialog").click(function (event) {
    event.preventDefault();
    $dialog.load($(this).attr("href"));
	$dialog.dialog("option","title", $(this).attr("title") );
	$dialog.dialog('open');    

    });
  
  });
  
$(function() {
    $("#vpsTabs").tabs({
        select: function(event, ui) {
            $("#vpsSlider").slider("value", ui.index);
        }
    });
    $("#vpsSlider").slider({
        orientation:'vertical',
        animate: 'true',
        animate: 'slow',
        min: 0,
        max: $("#vpsTabs").tabs("length") - 1,
        slide: function(event, ui) {
            $("#vpsTabs").tabs("select", ui.value);
        }
    });
});

function multihos5email(dept) {
	var emailHost = "multihos5.com";
	var email = "<a href=" + "mail" + "to:" + dept + "@" + emailHost + " title=\"" + dept + "\">" + dept + "@" + emailHost + "</a>";
	return email;
}

function multihos5emailtext(mail,text) {
	var emailHost = "multihos5.com";
	var email = "<a href=" + "mail" + "to:" + mail + "@" + emailHost + " title=\"" + text + "\">" + text + "</a>";
	return email;
}

/*
function wsa_include_js(){
	var wsa_host = (("https:" == document.location.protocol) ? "https://" : "http://");
	var js = document.createElement('script');
	js.setAttribute('language', 'javascript');
	js.setAttribute('type', 'text/javascript');
	js.setAttribute('src',wsa_host + 'www.webmultihosalive8.com/15/Visitor/vTracker_v2.asp?webmultihosid=6&groupid=15');
	document.getElementsByTagName('head').item(0).appendChild(js);
}
if (window.attachEvent) {window.attachEvent('onload', wsa_include_js);}
else if (window.addEventListener) {window.addEventListener('load', wsa_include_js, false);}
else {document.addEventListener('load', wsa_include_js, false);}
*/
