
/*!
 * Generic Javascript onload function.
 */

Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('h4');
Cufon.replace('h5');
Cufon.replace('.navList', {hover: true});
Cufon.replace('.cufonIntro');
Cufon.replace('.contentForm label');
Cufon.replace('.inputHint');
Cufon.replace('.yellowPuppyFont');
Cufon.replace('.bigListNumber');
Cufon.replace('.highlightText');
Cufon.replace('#registerPuppyTabs #puppyTabs li');
Cufon.replace('body#myPuppyLanding ul#dogpawList li');
Cufon.replace('#productTabs');
Cufon.replace('.yafnet td.header1');
Cufon.replace('.yafnet td.header2', {hover: true});
Cufon.replace('.yafnet a.yafcssbigbutton');

function popup(url, name){
	window.open(url, name,'width=500, height=300, status=0, toolbar=0, menubar=0, location=0, scrollbars=1, resizable=0');
}
function popupFeedback(url, name){
	window.open(url, name,'width=700, height=600, status=0, toolbar=0, menubar=0, location=0, scrollbars=1, resizable=0');
}

$(function(){	
	$("#productDetails .subContent").each (function() {
		$(this).hide();
	});
	
	if( $("#productDetails .subContent").get(0) ){
		$('#'+$("#productDetails .subContent").get(0).id.toString()).show();
	}
	
	$('#productTabs li a').click(function(){
		$("#productDetails .subContent").each (function() {
			$(this).hide();
		});
		$(this).parent().siblings().children().removeClass('active');
		var content = "#"+$(this).get(0).id.substring($(this).parent().get(0).id.length, $(this).get(0).id.length-3).toString();
		$(content).show();
		$(this).addClass('active');
	});
	
});

/*!
* EOF;
*/ 
