/* Author:VVI */

// JavaScript Document
$(document).ready(function(){
	$("#slidebtn").click(function(){
		$("#slide-panel").slideToggle("slow");
		$("a#slidebtn").toggleClass('up');
		$(this).text($(this).text() == 'Show Calculator' ? 'Hide Calculator' : 'Show Calculator');
		return false;
	});
	
	if ($('#single').length > 0){
		$("#slide-panel").css('display', 'none');
		$("a#slidebtn").addClass('up');
		$("a#slidebtn").text('Show Calculator');
	}
	
	$('#clients') 
		.after('<div id="nav">') 
		.cycle({ 
			fx:     'fade',
				cleartype: true, 
		cleartypeNoBg: true, 
			speed:  'fast',  
			pager:  '#nav', 
	});
	$('#clients_page') 
		.after('<div id="nav_page">') 
		.cycle({ 
			fx:     'fade', 
				cleartype: true, 
		cleartypeNoBg: true,
			speed:  'fast',  
			pager:  '#nav_page',
			prev: '#slide_prev',
			next: '#slide_next'
			
	});
	$('#clients_page').width('95%');
	$('#clients_page blockquote').width('100%');
	
		
 /* SUBMIT A TESTIMONIAL */
	$("a.lightpop").fancybox({
		'speedIn'		:	100, 
		'speedOut'		:	100,
		'width'				: 600,
		'height'			: 475,
		'autoScale'			: false,
		'type'			: 	'iframe'
	});
	

$('a.videoPOP img').removeAttr('width').removeAttr('height');

/*
	$("a.videoPOP").click(function() {
		$.fancybox({
				'padding'		: 0,
				'transitionIn'	:	'elastic',
				'transitionOut'	:	'elastic',
				'speedIn'		:	600, 
				'speedOut'		:	200,
				'autoScale'		: false,
				'transitionIn'	: 'none',
				'transitionOut'	: 'none',
				'title'			: this.title,
				'width'			: 700,
				'height'		: 400,
				'href'			: this.href,
				'type'			: 'swf',
				'swf'			: {
			   	 'wmode'		: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});

	return false;
});
*/
});







