// JavaScript Document
/*
function setIframe() {
	var videoTracking = document.getElementById('adTrack').innerHTML = '<iframe src="/wp-content/themes/cbswatch/tracking.php" style="border:none;width:1px;height:1px;" marginheight="0" marginwidth="0" frameborder="0"></iframe>';
}*/

 $(document).ready(function(){
	$('#videoWrapper').bind('click', function() {
		setTimeout(setIframe,2000);
	});
	
		$('#post-9748').bind('click', function() {
													  alert('lalala');
		setTimeout(setIframe,2000);
	});
	
	
  	$('#moreFeaturedArticles').hide();
	$('#seeMore').click(function() {
		$('#moreFeaturedArticles').slideToggle();
		$('#seeMore').toggleClass('down');
	});
	
	$('#lrg_photoWrapper').cycle({
			fx:     'fade', 
			speed:  'fast', 
			timeout: 0, 
			pager:  '#thumbContainer' ,
			 pagerAnchorBuilder: function(idx, slide) { 
			 return '#thumbContainer a:eq(' + idx + ')'; 
			 }

		});
	$('#blog_archiveContent').hide();
	$('#b_archive').click( function() {
   		$('#blog_archiveContent').show();
		$('#blog_catContent').hide();
			$("#b_archive").addClass("archive_on");
			$("#b_cat").addClass("cat_off");
   });
	
	$('#b_cat').click( function() {
   		$('#blog_catContent').show();
		$('#blog_archiveContent').hide();
			$("#b_archive").removeClass("archive_on");
			$("#b_cat").removeClass("cat_off");
			$("#b_cat").addClass("cat_on");
			$("#b_archive").addClass("archive_off");
   });
	$("#FirstName").attr("maxlength","8");
	$("#MiddleInitial").attr("maxlength","1");
	$("#LastName").attr("maxlength","18");
	$("#Company").attr("maxlength","30");
	$("#Address2").attr("maxlength","25");
	$("#City").attr("maxlength","16");
	$("#PostalCode").attr("maxlength","8");
	$("#Email").attr("maxlength","50");
	
	/*$(function() { 
			   $("#Name19").click(function(){ 
					$(this).data("origWidth", 
					$("#Name19" option).css("width")).css("width", "auto");   //$(this)
					alert($("#Name19" option).css("width"));
				}) 
			   .mouseout(function(){ $(this).css("width", 
				$(this).data("origWidth")); }); });*/
 });

