$(document).ready(function(){$('a, span, div, p, dt, h3, input, img').tooltip({track:true,delay:0,showURL:false});});$(document).ready(function(){$("table.zebra tr:nth-child(even)").addClass("even");$("table.zebra tr:nth-child(odd)").addClass("odd");$("table.zebra-grey tr:nth-child(even)").addClass("even");$("table.zebra-grey tr:nth-child(odd)").addClass("odd");});$(document).ready(function(){$('.toggled').hide();$('.toggler').click(function(){if($(this).next('.toggled').is(":hidden"))
{$(this).addClass("active");$(this).next('.toggled').slideDown("fast");}else{$(this).removeClass("active");$(this).next('.toggled').slideUp("fast");}});});$(document).ready(function(){$(".modalsublink1").colorbox({iframe:true});$(".modallink1").colorbox({width:"900px",height:"310px",inline:true,href:"#modalbox1"});$(".modallink2").colorbox({width:"900px",height:"530px",inline:true,href:"#modalbox2"});});$(document).ready(function(){$('input[type="text"],input[type="password"],textarea').addClass("idleField");$('input[type="text"],input[type="password"],textarea').focus(function(){$(this).removeClass("idleField").addClass("focusField");});$('input[type="text"],input[type="password"],textarea').blur(function(){$(this).removeClass("focusField").addClass("idleField");});});$(document).ready(function(){$('a.slide').slide();});function goToByScroll(id){$('html,body').animate({scrollTop:$("#"+id).offset().top},'400');}
$(document).ready(function(){$("#blackberrynotice").css("display","none");$("#custfield_4").change(function(){var $EXAccts=$("#custfield_4")[0].selectedIndex+1;var $BBAccts=$("#custfield_7")[0].selectedIndex;if(($EXAccts)>=($BBAccts))
{$("#service_config_button").removeAttr("disabled");$("#custfieldwrap_4").removeClass("custfielderror");$("#custfieldwrap_7").removeClass("custfielderror");}
else if($EXAccts<$BBAccts)
{$("#service_config_button").attr("disabled","disabled");$("#custfieldwrap_4").addClass("custfielderror");$("#custfieldwrap_7").addClass("custfielderror");$.fn.colorbox({width:"600px",height:"270px",inline:true,href:"#modalbox3"});}
else
{$("#service_config_button").removeAttr("disabled");$("#custfieldwrap_4").removeClass("custfielderror");$("#custfieldwrap_7").removeClass("custfielderror");}});});$(document).ready(function(){$("#blackberrynotice").css("display","none");$("#custfield_7").change(function(){var $BBAccts=$("#custfield_7")[0].selectedIndex;var $EXAccts=$("#custfield_4")[0].selectedIndex+1;if(($EXAccts)>=($BBAccts))
{$("#service_config_button").removeAttr("disabled");$("#custfieldwrap_4").removeClass("custfielderror");$("#custfieldwrap_7").removeClass("custfielderror");}
else if($EXAccts<$BBAccts)
{$("#service_config_button").attr("disabled","disabled");$("#custfieldwrap_4").addClass("custfielderror");$("#custfieldwrap_7").addClass("custfielderror");$.fn.colorbox({width:"600px",height:"270px",inline:true,href:"#modalbox3"});}
else
{$("#service_config_button").removeAttr("disabled");$("#custfieldwrap_4").removeClass("custfielderror");$("#custfieldwrap_7").removeClass("custfielderror");}});});$(function(){$('#cartempty').click(function(){var msg='<h3>Are you sure you want to empty all items from your shopping cart?</h3>';$.prompt(msg,{buttons:{Ok:true,Cancel:false},prefix:'modalconfirm',opacity:0.8,overlayspeed:'fast',top:'30%',focus:1,callback:function(v,m,f){if(v==true){window.location='cart.php?a=empty';}
else{return false;}}}).children('#modalconfirm').corner();return false;});});function removeItem(type,num){var msg='<h3>Are you sure you want to remove this service from your shopping cart?</h3>';$.prompt(msg,{buttons:{Ok:true,Cancel:false},prefix:'modalconfirm',opacity:0.8,overlayspeed:'fast',top:'30%',focus:1,callback:function(v,m,f){if(v==true){window.location='cart.php?a=remove&r='+type+'&i='+num;}
else{return false;}}}).children('#modalconfirm').corner();return false;};
