// JavaScript Document

hs.graphicsDir = '/images/dv7/hs/';
hs.outlineType = 'rounded-white';
hs.wrapperClassName = 'draggable-header';
hs.showCredits = false;

document.write('<style type="text/css" class="load">html, body { display: none }</style>');

$(document).ready(function () {
	
	$('style.load').remove();
	$('div.dot_body div.dot_page div.tab_body div.topper').css({'min-height': '600px', 'height': 'auto !important', 'height': '600px'});
	var path = location.pathname.substring(1);
	$('div.dot_body div.dot_page div.dot_navtabs ul li ul li a.active').css({'font-weight': 'normal'});
	if ( path == 'ssl/quickssl-premium.php' || path == 'ssl/true-businessid.php' || path == 'ssl/true-businessid-ev.php' || path == 'ssl/true-businessid-wildcard.php' ) {
		$('div.dot_navtabs ul li + li a:first').addClass('active');
		$('div.dot_navtabs ul li + li + li + li ul:first').hide();
	} else {
		$('div.dot_navtabs ul ul').hide();
	}
	
	$('div.dot_navtabs ul li + li a:first').attr('href','javascript:void(0)').addClass('ex_geo');
	
	$('a.ex_geo').click( function() {
		if ($(this).next('ul').is(':hidden')) {
			$(this).next('ul').slideDown();
			$('a.ex_vs').next('ul').slideUp();
		} else {
			$(this).next('ul').slideUp();
		}
	});

	$('input[type=submit]').hover(
		function () {
			$(this).addClass('hover');
		},
		function () {
			$(this).removeClass('hover');
	});
	
	$('table.light').attr({cellspacing: '0', cellpadding: '0'});
	$('table.light:first').before(
		'<p class="fs_change">Font Size <a href="javascript:void(0)" class="font1 active">A</a> <a href="javascript:void(0)" class="font2">A</a> <a href="javascript:void(0)" class="font3">A</a></p>'
	);
	$('p.fs_change a').click ( function() {
		if ($(this).hasClass('font1')) {
			var fonts = '9px';
		}
		if ($(this).hasClass('font2')) {
			var fonts = '13px';
		}
		if ($(this).hasClass('font3')) {
			var fonts = '18px';
		}
		$('p.fs_change a').removeClass('active');
		$(this).addClass('active');
		$('table.light tr td').animate({ fontSize: fonts});
	});
	$('table.light tr:first-child').addClass('row1');
	$('table.light tr th:first-child').addClass('col1');
	$('table.light tr th:last-child').addClass('col4');
	$('table.light tr td:last-child').addClass('col4');
	
	$('div.security div.col2 div.price ul').after('<a href="javascript:void(0)" class="more">SSL WebServer Wildcard +</a><ul class="more"><li><input type="radio" name="f0_service" id="yearwild" value="WILD" /><label for="yearwild">12 months Just $959.99/yr.</label></li><li><input type="radio" name="f0_service" id="year2wild" value="WILD /><label for="year2wild">24 months Just $1599.99</label></li></ul>');
	$('div.security div.col2 div.price ul.more').hide();
	$('div.security div.col2 div.price a.more').click( function() {
		if ( $(this).next().is(':hidden') ) {
			$(this).next().slideDown('fast');
		} else {
			$(this).next().slideUp('fast');
		}
		return false;
	});
	
	$('a.hsajax').click( function() {
		thisTitle = $(this).attr('title');
		return hs.htmlExpand(this, { objectType: 'ajax', width: 445, height: 210, headingText: thisTitle} );
	});
	
});
