﻿/* <![CDATA[ */
function setColumnHeights() 
{
    var leftColumn = document.getElementById('left');
    var rightColumn = document.getElementById('right');

    if (leftColumn.offsetHeight > rightColumn.offsetHeight) {
        rightColumn.style.height =
                leftColumn.offsetHeight + 'px';
    }
    
    if (rightColumn.offsetHeight > leftColumn.offsetHeight) {
        leftColumn.style.height =
                rightColumn.offsetHeight - 70 + 'px';
    }
}

function pressLink(nameOfClickedLink)
{
    clearAllLinkBackgrounds();
	document.getElementById(nameOfClickedLink).style.background='#ff9999 url(images/press-bullet.gif) no-repeat';
	document.getElementById(nameOfClickedLink).style.color = '#000';

	if (nameOfClickedLink=='pregnancy2011link')
	{
	    document.getElementById('pressTitle').innerHTML = 'Pregnancy &amp; Newborn';
	    document.getElementById('pressSubtitle').innerHTML = '"The Dog Days of Summer"<br />August 2011';
	    document.getElementById('pressQuote').innerHTML = '"Prepare pup for the newest family member by playing these infant noise recordings [from the Dogmom Productions CD] prior to your bundle\'s arrival."<br /><br />"[The Dogmom Productions bodysuit is] perfect for any newbie whose big sibling just so happens to be of the four-legged variety."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-pregnancy2011.jpg'; 
	}	
	else if (nameOfClickedLink=='babytalklink')
	{
	    document.getElementById('pressTitle').innerHTML = 'Babytalk';
	    document.getElementById('pressSubtitle').innerHTML = '"Fido, Meet Baby" by Sabrina James<br />August 2010';
	    document.getElementById('pressQuote').innerHTML = '"Desensitize him to sounds: Dogs become excitable when they hear a baby cry. Play him a CD of baby sounds as often as possible; try <em>The Sounds of Baby</em>."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-babytalk.jpg'; 
	}	
	else if (nameOfClickedLink=='pregnancy2010link')
	{
	    document.getElementById('pressTitle').innerHTML = 'Pregnancy';
	    document.getElementById('pressSubtitle').innerHTML = '"Mommy Blips: We Love These!"<br />July/August 2010';
	    document.getElementById('pressQuote').innerHTML = '"Train pup for your new pet: <em>The Sounds of Baby</em>"';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-pregnancy2010.jpg'; 
	}	
	else if (nameOfClickedLink=='thebarklink')
	{
	    document.getElementById('pressTitle').innerHTML = 'The Bark';
	    document.getElementById('pressSubtitle').innerHTML = 'by Claudia Kawczynska, Editor<br />Spring 2004';
	    document.getElementById('pressQuote').innerHTML = '"They followed all the steps suggested to them by professionals to prepare the dogs - but one that they hadn\'t primed them for were the sounds made by the newborn."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-thebark.jpg'; 
	}
	else if (nameOfClickedLink=='cookielink')
	{
	    document.getElementById('pressTitle').innerHTML = 'Cookie';
	    document.getElementById('pressSubtitle').innerHTML = '"The Dethroned Dog" by Rory Evans<br />March/April 2007';
	    document.getElementById('pressQuote').innerHTML = '"According to trainers, one of the best ways to acclimate your dog to the new household dynamic is through newborn-simulating sensory stimulation in the months before the due date. For instance, play your dog a CD like The Sounds of Baby, which emulates infant noises, from toy squeaking to screeching..."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-cookie.jpg';    	
	}
	else if (nameOfClickedLink=='moderndoglink')
	{
	    document.getElementById('pressTitle').innerHTML = 'Modern Dog';
	    document.getElementById('pressSubtitle').innerHTML = '"Making Room For Baby" by Heather Hudson<br />Spring 2005';
	    document.getElementById('pressQuote').innerHTML = '"...provoking baby sounds and stimulating toy noises to arouse your pet’s curiosity and develop his patience..."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-moderndog.jpg';    	
	}
	else if (nameOfClickedLink=='torontodogslink')
	{
	    document.getElementById('pressTitle').innerHTML = 'TorontoDogs.com';
	    document.getElementById('pressSubtitle').innerHTML = '"CD Review"<br />Spring 2005';
	    document.getElementById('pressQuote').innerHTML = '"We recommend it to any family that is expanding to include more of the human variety..."';
	    document.getElementById('pressReadArticle').style.display = 'inline';
	    document.getElementById('pressReadArticle').href = 'http://www.torontodogs.com/equipment.htm';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-torontodogs.jpg';    	
	}
	else if (nameOfClickedLink=='aminalwellnesslink')
	{
	    document.getElementById('pressTitle').innerHTML = 'Animal Wellness';
	    document.getElementById('pressSubtitle').innerHTML = '"Preparing Your Companion For A New Baby" by Jenifer Vickery<br />November 2004';
	    document.getElementById('pressQuote').innerHTML = '"Play The Sounds of Baby quietly through the day. After a few weeks, turn up the volume, especially when your dog is doing something he particularly enjoys, such as eating, playing or being given a new bone. This will help him make a positive association with the noises."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-animalwellness.jpg';    	
	}
	else if (nameOfClickedLink=='herbivorelink')
	{
	    document.getElementById('pressTitle').innerHTML = 'Herbivore';
	    document.getElementById('pressSubtitle').innerHTML = '"CD Review"<br />April 2004';
	    document.getElementById('pressQuote').innerHTML = '"...Track one intrigues with adorable cooing, track two provokes with a bit of crying and toy sounds, and by track three my dog was running around, looking for the abandoned baby and knocking the speakers over. But if you introduce the tracks slowly, increase the volume gradually, and reassure your hairy friend, then The Sounds of Baby is an amazing tool that prepares both pet and person alike. "';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-herbivore.jpg';    	
	}
	else if (nameOfClickedLink=='urbanbabylink')
	{
	    document.getElementById('pressTitle').innerHTML = 'UrbanBaby.com';
	    document.getElementById('pressSubtitle').innerHTML = '"Bone to Pick"<br />August 2004';
	    document.getElementById('pressQuote').innerHTML = '"Be the first at your neighborhood dog run to boast about how well-adjusted Fido is to your new little bundle, all thanks to an ‘audio desensitization recording designed to help Mans Best Friend make the transition to being Babys Best Friend..." ';
	    document.getElementById('pressReadArticle').style.display = 'inline';
	    document.getElementById('pressReadArticle').href = 'http://archive.urbanbaby.com/ub_daily/newyork/ub_daily/083004daily.htm';
	    document.getElementById('pressViewArticle').style.display = 'none';	    
	}
	else if (nameOfClickedLink=='cbsearlyshowlink')
	{
	    document.getElementById('pressTitle').innerHTML = 'CBS Early Show';
	    document.getElementById('pressSubtitle').innerHTML = '"When Baby Meets Pet" by resident veterinarian Debbye Turner<br />December 13, 2003';
	    document.getElementById('pressQuote').innerHTML = '"Get a CD called ‘The Sounds of Baby’ that plays a collection of typical baby noises. Playing this from time to time might make the arrival of the baby with its squalls and cries less frightening..."';
	    document.getElementById('pressReadArticle').style.display = 'inline';
	    document.getElementById('pressReadArticle').href = 'http://www.cbsnews.com/stories/2003/12/12/earlyshow/contributors/debbyeturner/main588271.shtml';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-cbsearlyshow.jpg';    	
	}
	else if (nameOfClickedLink=='encorelink')
	{
	    document.getElementById('pressTitle').innerHTML = 'Encore';
	    document.getElementById('pressSubtitle').innerHTML = 'May 2003';
	    document.getElementById('pressQuote').innerHTML = '"Most Innovative Idea of the Week...mother and animal adorer Abbie Sinclair has recorded a compilation of sounds that will adjust your four-legged baby to the new one."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'none';
	}
	else if (nameOfClickedLink=='creatureteacherslink')
	{
	    document.getElementById('pressTitle').innerHTML = 'CreatureTeachers.com';
	    document.getElementById('pressSubtitle').innerHTML = 'by Nikole Gipps, Animal Behaviorist<br />January 2007';
	    document.getElementById('pressQuote').innerHTML = '"I have used this CD both with my own dogs, and with many of my clients who were preparing for their own children. The range of sounds and increasing intensity makes this product better than others I’ve encountered on the market, as the CD is specifically designed to prepare your animals with the least amount of stress possible…"';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'none';
	}
	else if (nameOfClickedLink=='naturalfamilyonlinelink')
	{
	    document.getElementById('pressTitle').innerHTML = 'NaturalFamilyOnline.com';
	    document.getElementById('pressSubtitle').innerHTML = '"What We Are Buying" by Gratton Fran<br />December 2006';
	    document.getElementById('pressQuote').innerHTML = '"Makes a great and unusual gift for dog lovers who are expecting, as a sudden appearance of a new baby, apart from being the miracle that it is, does have the ability to bring quite a bit of chaos into any household."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'none';
	}
	else if (nameOfClickedLink=='babygadgetlink')
	{
	    document.getElementById('pressTitle').innerHTML = 'BabyGadget.com';
	    document.getElementById('pressSubtitle').innerHTML = '"Sounds of Baby CD for Dogs" by Gabriel Poma Traynor, Editor<br />April 2006';
	    document.getElementById('pressQuote').innerHTML = '"Makes a great and unusual gift for dog lovers who are expecting, as a sudden appearance of a new baby, apart from being the miracle that it is, does have the ability to bring quite a bit of chaos into any household."';
	    document.getElementById('pressReadArticle').style.display = 'inline';
        document.getElementById('pressReadArticle').href = 'http://www.babygadget.net/2006/04/sounds_of_baby_cd_for_dogs.php';
	    document.getElementById('pressViewArticle').style.display = 'inline';
	    document.getElementById('pressViewArticle').href = 'images/popup-babygadget.jpg';    	
	}
	else if (nameOfClickedLink=='epregnancylink')
	{
	    document.getElementById('pressTitle').innerHTML = 'ePregnancy';
	    document.getElementById('pressSubtitle').innerHTML = '"New Baby Petiquette"<br />August 2004';
	    document.getElementById('pressQuote').innerHTML = '"Bringing home a new baby turns life upside down for everyone in the household, including your pet...its best to start preparing them for babys arrival early on....Play tapes of babies cooing and crying....The Sounds of Baby is perfect for this."';
	    document.getElementById('pressReadArticle').style.display = 'none';
	    document.getElementById('pressViewArticle').style.display = 'none';	
	}

}

function clearAllLinkBackgrounds()
{
    document.getElementById('pregnancy2011link').style.background='';
	document.getElementById('pregnancy2011link').style.color = '';	
    document.getElementById('babytalklink').style.background='';
	document.getElementById('babytalklink').style.color = '';	
    document.getElementById('pregnancy2010link').style.background='';
	document.getElementById('pregnancy2010link').style.color = '';	
    document.getElementById('thebarklink').style.background='';
	document.getElementById('thebarklink').style.color = '';	
    document.getElementById('cookielink').style.background='';
	document.getElementById('cookielink').style.color = '';		
    document.getElementById('moderndoglink').style.background='';
	document.getElementById('moderndoglink').style.color = '';
    document.getElementById('torontodogslink').style.background='';
	document.getElementById('torontodogslink').style.color = '';
    document.getElementById('aminalwellnesslink').style.background='';
	document.getElementById('aminalwellnesslink').style.color = '';
    document.getElementById('herbivorelink').style.background='';
	document.getElementById('herbivorelink').style.color = '';
    document.getElementById('urbanbabylink').style.background='';
	document.getElementById('urbanbabylink').style.color = '';
    document.getElementById('cbsearlyshowlink').style.background='';
	document.getElementById('cbsearlyshowlink').style.color = '';
    document.getElementById('encorelink').style.background='';
	document.getElementById('encorelink').style.color = '';
    document.getElementById('creatureteacherslink').style.background='';
	document.getElementById('creatureteacherslink').style.color = '';
    document.getElementById('naturalfamilyonlinelink').style.background='';
	document.getElementById('naturalfamilyonlinelink').style.color = '';
    document.getElementById('babygadgetlink').style.background='';
	document.getElementById('babygadgetlink').style.color = '';
    document.getElementById('epregnancylink').style.background='';
	document.getElementById('epregnancylink').style.color = '';
}

function products()
{
    var url = location.href;
    var item = url.substring(url.indexOf("?item=")+6);
    
    if(item=="soundsofbabycd"){
        document.getElementById('soundsofbabycd-selected').className='selected';
        document.getElementById('soundsofbabycd').style.display='';
    }
    else if(item=="galaxy"){
        document.getElementById('galaxy-selected').className='selected';
        document.getElementById('galaxy').style.display='';
    }
    else if(item=="ultraviolet"){
        document.getElementById('ultraviolet-selected').className='selected';
        document.getElementById('ultraviolet').style.display='';        
    }
    else{
        document.getElementById('product-selection').style.display='';
        document.getElementById('product-selection-right').style.display='none';
    }
}

/* ]]> */
