/*NOTES ---------------------------------

misc javascript

UPDATE INFO ------------------------

Revision number: 1.0.0
Last updated: 31.03.2010
Last update made by: Michael Andrew (michael@hazardmedia.co.nz)

*/





$(document).ready(function(){

	
	Cufon.replace('#footer h2, #right-col h2, #right-col h3, #footer h3.widget-title, blockquote, #navigation li a', {
		fontFamily: 'Helvetica Neue Light',
		hover: true
	});
	
	//stop cufon from being applied to large image header replacements
		$('h1').map(function(){
			if(!$(this).attr('class')){
				Cufon.replace($(this), {
					fontFamily: 'Univers Ultra Condensed',
					hover: true
				});
			}else if($(this).hasClass('archive-title')){
				Cufon.replace($(this), {
					fontFamily: 'Univers Ultra Condensed',
					hover: true
				});
			}else if($(this).hasClass('category-title')){
				Cufon.replace($(this), {
					fontFamily: 'Univers Ultra Condensed',
					hover: true
				});
			}else if($(this).hasClass('search-title')){
				Cufon.replace($(this), {
					fontFamily: 'Univers Ultra Condensed',
					hover: true
				});
			}
			
			
		});

	

	
	
	Cufon.replace('#respond h3, #left-col table caption', {
		fontFamily: 'Univers Ultra Condensed',
		hover: true
	});
	
	var flashvars = {};
	var params = {};
		params.wmode = "transparent";
		params.flashvars = "criticaldays=7&date=Sat Sep 11 2010 06:30:00 PM";
	var attributes = {};
		attributes.id = "countdown-widget-flash";
		swfobject.embedSWF("http://zombielarp.co.nz/wp-content/themes/zombielarp/_assets/_swf/countdown.swf", "countdown-widget-flash", "465", "449", "10.0.0", false, flashvars, params, attributes);
	
	
	$('table.sortable').dataTable();
	
	




//alert('loading flash');
	
	//load countdown
/*	$("#countdown-widget").flashembed( { 
  		src: 'http://zombielarp.co.nz/wp-content/themes/zombielarp/_assets/_swf/countdown.swf', 
  		version: [10,0,0,0],
		width: 465,
		height: 449,
		wmode: 'transparent'	
  });*/
	//load intro text anim
	/*$("#intro-text").flashembed( { 
		src: '_assets/_swf/intro-flash.swf', 
		version: [10,0,0,0],
		width: 380,
		height: 172,
		wmode: 'transparent' 	
	});*/
	

	
});

