/* cufon replaces */
if (typeof(Cufon) == 'function' ) {
	Cufon.replace("#maincontent h1");
	Cufon.replace("#maincontent h2");
	Cufon.replace("#maincontent h3.sifr");
	Cufon.replace("#maincontent div.productsbanner p,#maincontent div.servicesbanner p,#maincontent div.solutionsbanner p,#maincontent div.resourcesbanner p,#maincontent div.onpremisebanner p,#maincontent div.nocpmfeesbanner p,#maincontent div.partnersbanner p,#maincontent div.companybanner p,#maincontent div.productsbannersmall p,#maincontent div.productsbannersmallblue p,#maincontent div.productsbannersmallorange p,#maincontent div.productsbannersmallpurple p,#maincontent div.productsbannersmallgreen p,#maincontent div.productsbannersmblue p,#maincontent div.solutionsbannersmall p,#maincontent div.solutionsbannersmallgreen p,#maincontent div.solutionsbannersmallblue p,#maincontent div.solutionsbannersmallorange p,#maincontent div.servicesbanner p,#maincontent div.servicesbannersmall p");
}
$(document).ready(function() {
	$("a[rel*=external]").attr("target","_blank");
	$("a[rel*=popup2min]").bind("click", function(e){
		window.open($(this).attr("href"),'_blank','width=750,height=480,resizable=no,scrollbars=0,menubar=0,toolbar=0,location=0,directories=0,status=0');
		e.preventDefault();
	});
	$("a[rel*=popupbyclass]").bind("click",function(e){size = $(this).attr("class").replace('size-', '').split('x'); popup(size[0],size[1],$(this).attr('href')); e.preventDefault();});
	$("a.enlarge").bind("click",function(e){popup(615, 425, $(this).attr('href'));e.preventDefault();});
	$("a.diagram").bind("click",function(e){popup(625, 405, $(this).attr('href'));e.preventDefault();});
	$("a.demopopSMS").bind("click",function(e){popup(935, 715, $(this).attr('href'));e.preventDefault();});
	$("a.demopopupMTA").bind("click",function(e){popup(890, 650, $(this).attr('href'));e.preventDefault();});
	$("a.demopopup2mintour").bind("click",function(e){popup(750, 480, $(this).attr('href'));e.preventDefault();});
	
});
function isEmail(e) { if (e.length > 5){return true;}else{alert('Please enter your email address.');return false}};
function popup(w, h, url) {window.open(url,"_blank",'width='+w+',height='+h+',scrollbars=no,status=no,menubar=no,location=no,resizable=yes');}
