document.DWO = new Array();function PageOnload() {StartList();}

/****/
/* GALLERY */
/****/

function CreateWatermark(){try{var title=document.getElementById("Watermark").getElementsByTagName("IMG")[0].alt;document.getElementById("Watermark").innerHTML+='<img src="http://www.downwindoutdoors.com/assets/images/blank_pixel.gif" border="0" alt="'+title+'" title="'+title+'" class="ImageWatermark"/>';}catch(e){}}
var dwoPhotoGallery=function(){var that={};var bodyId='#sipg';that.init=function(urlPrev,urlNext){$(document).ready(function(){CreateWatermark();initPhotoArrows(urlPrev,urlNext);});};initPhotoArrows=function(urlPrev,urlNext){$('#Image').arrowNav({prevUrl:urlPrev,nextUrl:urlNext,showArrows:false,arrowHeight:126,arrowWidth:48});};return that;};

/****/
/* NAVBAR */
/****/

function StartList(){if(document.all&&document.getElementById){navRoot=document.getElementById("DWONav");for(i=0;i<navRoot.childNodes.length;i++){node=navRoot.childNodes[i];if(node.nodeName=="LI"){node.onmouseover=function(){this.className+=" Over";}
node.onmouseout=function(){this.className=this.className.replace(" Over","");}}}}}

/****/
/* CAROUSEL - IMAGE */
/****/

var mycarousel_itemList_tout = [
	{ src: 'youtube.jpg', title:'YouTube Channel', url: 'http://www.youtube.com/user/DownWindOutdoors' },
	{ src: 'reese-outdoors.jpg', title:'Reese Outdoor Products', url: 'http://www.reeselanyards.com/' },
	{ src: 'videos.jpg', title:'Videos', url: 'http://www.downwindoutdoors.com/gallery/videos/' },
	{ src: 'crack-calls.jpg', title:'Crack Calls', url: 'http://www.crackpredatorcalls.com/' },
	{ src: 'wildlife-energy-drink.jpg', title:'WildLife Energy Drink', url: 'http://www.wildlifeenergy.com/' },
	{ src: 'south-fork.jpg', title:'South Fork Outfitting', url: 'http://www.southforkhunts.com/' },
	{ src: 'woodhaven.jpg', title:'WoodHaven Custom Calls', url: 'http://www.woodhavencustomcalls.com/' },
	{ src: 'mojo.jpg', title:'MOJO Outdoors', url: 'http://www.mojooutdoors.com/' },
	{ src: 'north-american-hunting-club.jpg', title:'North American Hunting Club', url: 'http://www.huntingclub.com/' },	
	{ src: 'facebook.jpg', title:'FaceBook', url: 'http://www.facebook.com/DownWindOutdoors' }
];function randOrd(){return(Math.round(Math.random())-0.5);}
mycarousel_itemList_tout.sort(randOrd);function mycarousel_itemVisibleInCallback_tout(carousel,item,i,state,evt){var idx=carousel.index(i,mycarousel_itemList_tout.length);carousel.add(i,mycarousel_getItemHTML_tout(mycarousel_itemList_tout[idx-1]));};function mycarousel_itemVisibleOutCallback_tout(carousel,item,i,state,evt){carousel.remove(i);};function mycarousel_initCallback_tout(carousel){carousel.clip.hover(function(){carousel.stopAuto();},function(){carousel.startAuto();});};function mycarousel_getItemHTML_tout(item){var linkTarget=' target="_blank" rel="nofollow"';if((item.url).charAt(0)=="/"){linkTarget='';}return'<a href="'+item.url+'"'+linkTarget+'><img src="http://www.downwindoutdoors.com/assets/images/carousel/'+item.src+'" border="0" alt="'+item.title+'" title="'+item.title+'" width="190" height="118"/></a>';};jQuery(document).ready(function(){{setTimeout('mycarousel_generate()',0);}});function mycarousel_generate(){jQuery('#mycarousel_tout').jcarousel({auto:15,wrap:'circular',scroll:5,itemVisibleInCallback:{onBeforeAnimation:mycarousel_itemVisibleInCallback_tout},itemVisibleOutCallback:{onAfterAnimation:mycarousel_itemVisibleOutCallback_tout},initCallback:mycarousel_initCallback_tout});}

/****/
/* CONTACT-VIDEO SIGNUP POPUP */
/****/

var popupWindow=null;function popup(mypage,myname,w,h,pos,infocus){if(pos=='random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}else{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';popupWindow=window.open('',myname,settings);if(infocus=='front'){popupWindow.focus();popupWindow.location=mypage;}if(infocus=='back'){popupWindow.blur();popupWindow.location=mypage;popupWindow.blur();}}

/****/
/* PICTURE AND VIDEO NUMBERS */
/****/

PredatorVideos='20';TurkeyVideos='2';TrailCamVideos='1';PredatorPictures='33';TurkeyPictures='10';MobilePictures='31';DeerPictures='11';TrailCamPictures='30';FanPictures='29';function printMobileNumberPictures(){document.write(MobilePictures);}function printPredatorNumberPictures(){document.write(PredatorPictures);}function printTurkeyNumberPictures(){document.write(TurkeyPictures);}function printDeerNumberPictures(){document.write(DeerPictures);}function printTrailCamPictures(){document.write(TrailCamPictures);}function printFanNumberPictures(){document.write(FanPictures);}function printPredatorNumberVideos(){document.write(PredatorVideos);}function printTurkeyNumberVideos(){document.write(TurkeyVideos);}function printTrailCamVideos(){document.write(TrailCamVideos);}

/****/
/* SIDE BAR ADS */
/****/
	
function random_imglink160x600() {     
var myimages = [         
	{image: "http://www.downwindoutdoors.com/assets/ads/160x600/facebook-ad-160x600.jpg", url: "http://www.facebook.com/DownWindOutdoors", title: "Like us on Facebook"},
	{image: "http://www.downwindoutdoors.com/assets/ads/160x600/twitter-ad-160x600.jpg", url: "http://twitter.com/#!/dwosnipers", title: "Follow us on Twitter"},
	{image: "http://www.downwindoutdoors.com/assets/ads/160x600/dwo-signature-series-ad-160x600.jpg", url: "http://www.downwindoutdoors.com/shopping/calls/dwo-signature-series.html", title: "DWO Signature Series Calls"},
	{image: "http://www.downwindoutdoors.com/assets/ads/160x600/youtube-ad-160x600.jpg", url: "http://www.youtube.com/user/DownWindOutdoors", title: "Subscribe to our YouTube Channel"}    
	];var ry=Math.floor(Math.random()*myimages.length);var randomImage=myimages[ry];var randomImageLink='<a href="'+randomImage.url+'" target="_blank" title="'+randomImage.title+'"><img src="'+randomImage.image+'" height="600" width="160" /></a>';document.getElementById("adBanner600").innerHTML=randomImageLink;}

/****/
/* VIDEO HOME NEXT-PREVIOUS */
/****/

var DWO_videolist = {

/*'opening-week-trio': { videoid:'opening-week-trio', fullname:'Opening Week Trio', 'nextid': 'turkey-chaser', 'previd': 'instant-dog', 'file': 'http://www.downwindoutdoors.com/gallery/videos/turkey-hunts/turkey-videos/eastern-turkey-hunting-turkey-chaser.html' },
	
'turkey-chaser': { videoid:'turkey-chaser', fullname:'Turkey Chaser', 'nextid': 'perfect-setup', 'previd': 'opening-week-trio', 'file': 'http://www.downwindoutdoors.com/gallery/videos/turkey-hunts/turkey-videos/eastern-turkey-hunting-turkey-chaser.html' },*/

'invitation-only': { videoid:'invitation-only', fullname:'Invitation Only', 'nextid': 'close-enough', 'previd': 'instant-dog', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-invitation-only' },

'close-enough': { videoid:'close-enough', fullname:'Close Enough', 'nextid': 'threes-company', 'previd': 'howled-out', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-close-enough' },

'threes-company': { videoid:'threes-company', fullname:'Three\'s Company', 'nextid': 'opening-debut', 'previd': 'close-enough', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-threes-company' },

'opening-debut': { videoid:'opening-debut', fullname:'Opening Debut', 'nextid': 'perfect-setup', 'previd': 'threes-company', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-opening-debut' },

'perfect-setup': { videoid:'perfect-setup', fullname:'Perfect Setup', 'nextid': 'deja-vu', 'previd': 'opening-debut', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-perfect-setup' },

'deja-vu': { videoid:'deja-vu', fullname:'Deja Vu', 'nextid': 'you-gunna-shoot-im', 'previd': 'perfect-setup', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-deja-vu' },

'you-gunna-shoot-im': { videoid:'you-gunna-shoot-im', fullname:'Gunna Shoot im?', 'nextid': 'plain-white-sheet', 'previd': 'deja-vu', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-you-gunna-shoot-im' },

'plain-white-sheet': { videoid:'plain-white-sheet', fullname:'Plain White Sheet', 'nextid': 'let-the-excuses-begin', 'previd': 'you-gunna-shoot-im', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-plain-white-sheet' },

'let-the-excuses-begin': { videoid:'let-the-excuses-begin', fullname:'Excuses', 'nextid': 'best-of-the-oldies-vol-1', 'previd': 'plain-white-sheet', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-let-the-excuses-begin' },

'best-of-the-oldies-vol-1': { videoid:'best-of-the-oldies-vol-1', fullname:'Oldies Vol. 1', 'nextid': 'mrs-coyote', 'previd': 'let-the-excuses-begin', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-best-of-the-oldies-vol-1' },
	
'mrs-coyote': { videoid:'mrs-coyote', fullname:'Mrs. Coyote', 'nextid': 'on-fire', 'previd': 'best-of-the-oldies-vol-1', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-mrs-coyote' },

'on-fire': { videoid:'on-fire', fullname:'On Fire!', 'nextid': 'siren-serenade', 'previd': 'mrs-coyote', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-on-fire' },

'siren-serenade': { videoid:'siren-serenade', fullname:'Siren Serenade', 'nextid': 'eagle-eye-andy', 'previd': 'on-fire', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-siren-serenade' },

'eagle-eye-andy': { videoid:'eagle-eye-andy', fullname:'Eagle Eye Andy', 'nextid': 'send-it', 'previd': 'siren-serenade', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-eagle-eye-andy' },

'send-it': { videoid:'send-it', fullname:'Send It', 'nextid': 'the-sneak', 'previd': 'eagle-eye-andy', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-send-it' },	

'the-sneak': { videoid:'the-sneak', fullname:'The Sneak', 'nextid': 'instant-dog', 'previd': 'send-it', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-the-sneak' },

'instant-dog': { videoid:'instant-dog', fullname:'Instant Dog', 'nextid': 'invitation-only', 'previd': 'the-sneak', 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-instant-dog' }};

function DWO_changeNextVideo( videoId ) {var myImageID = ( videoId );var Box1 = '';Box1 += '<div class="Box">';Box1 += '	<h2>' + DWO_videolist[ DWO_videolist[ myImageID ][ 'nextid' ] ][ 'fullname' ] + '</h2>';Box1 += '	<div><img src="http://www.downwindoutdoors.com/assets/images/home-content/next/' + ( DWO_videolist[ myImageID ][ 'nextid' ] ) + '.jpg" border="0" alt="' + DWO_videolist[ DWO_videolist[ myImageID ][ 'nextid' ] ][ 'fullname' ] + '" title="' + DWO_videolist[ DWO_videolist[ myImageID ][ 'nextid' ] ][ 'fullname' ] + '"width="234" height="141"/></div>';Box1 += '	<div class="Overlay"><a href="' + ( DWO_videolist[ DWO_videolist[ myImageID ][ 'nextid' ] ][ 'file' ] ) + '.html"><img src="/assets/images/next_buttons.png"/></a></div>';Box1 += '	<ul>';Box1 += '		<li class="Item0"><a href="javascript:void(0);" onclick="DWO_changeNextVideo(\'' + DWO_videolist[ myImageID ][ 'previd' ] + '\');">&#160;</a></li>';Box1 += '		<li class="Item1"><a href="javascript:void(0);" onclick="DWO_changeNextVideo(\'' + DWO_videolist[ myImageID ][ 'nextid' ] + '\');">&#160;</a></li>';Box1 += '	</ul>';Box1 += '</div>';document.getElementById('Box1').innerHTML = Box1;}

/****/
/* CAROUSEL - VIDEO */
/****/

var DWO_videoinfo = {
'eastern-coyote-hunting-howled-out': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-howled-out', 'src':'howled-out', 'title': 'Coyote Hunting', 'description': 'Howled Out' },
'eastern-coyote-hunting-invitation-only': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-invitation-only', 'src':'invitation-only', 'title': 'Coyote Hunting', 'description': 'Invitation Only' },
'eastern-coyote-hunting-close-enough': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-close-enough', 'src':'close-enough', 'title': 'Coyote Hunting', 'description': 'Close Enough' },
'eastern-coyote-hunting-threes-company': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-threes-company', 'src': 'threes-company', 'title': 'Coyote Hunting', 'description': 'Three\'s Company' },	
'eastern-turkey-hunting-opening-week-trio': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/turkey-hunts/turkey-videos/eastern-turkey-hunting-opening-week-trio', 'src': 'opening-week-trio', 'title': 'Turkey Hunting', 'description': 'Opening Week Trio' },
'eastern-turkey-hunting-turkey-chaser': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/turkey-hunts/turkey-videos/eastern-turkey-hunting-turkey-chaser', 'src': 'turkey-chaser', 'title': 'Turkey Hunting', 'description': 'Turkey Chaser' },	
'eastern-coyote-hunting-you-gunna-shoot-im': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-you-gunna-shoot-im', 'src': 'you-gunna-shoot-im', 'title': 'Coyote Hunting', 'description': 'You Gunna Shoot im?' },	
'eastern-coyote-hunting-the-sneak': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-the-sneak', 'src': 'the-sneak', 'title': 'Coyote Hunting', 'description': 'The Sneak' },	
'eastern-coyote-hunting-the-aimer': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-the-aimer', 'src': 'the-aimer', 'title': 'Coyote Hunting', 'description': 'The Aimer' },	
'eastern-coyote-hunting-siren-serenade': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-siren-serenade', 'src': 'siren-serenade', 'title': 'Coyote Hunting', 'description': 'Siren Serenade' },
'eastern-coyote-hunting-plain-white-sheet': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-plain-white-sheet', 'src': 'plain-white-sheet', 'title': 'Coyote Hunting', 'description': 'Plain White Sheet' },
'eastern-coyote-hunting-mrs-coyote': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-mrs-coyote', 'src': 'mrs-coyote', 'title': 'Coyote Hunting', 'description': 'Mrs. Coyote' },
'eastern-coyote-hunting-instant-dog': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-instant-dog', 'src': 'instant-dog', 'title': 'Coyote Hunting', 'description': 'Instant Dog' },
'eastern-coyote-hunting-eagle-eye-andy': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-eagle-eye-andy', 'src': 'eagle-eye-andy', 'title': 'Coyote Hunting', 'description': 'Eagle Eye Andy' },
'eastern-coyote-hunting-deja-vu': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-deja-vu', 'src': 'deja-vu', 'title': 'Coyote Hunting', 'description': 'Deja Vu' },
'eastern-coyote-hunting-shy-dog': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-camera-shy-dog', 'src': 'camera-shy-dog', 'title': 'Coyote Hunting', 'description': 'Camera Shy Dog' },	
'eastern-coyote-hunting-best-of-the-oldies-vol-1': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-best-of-the-oldies-vol-1', 'src': 'best-of-the-oldies-vol-1', 'title': 'Coyote Hunting', 'description': 'Best of the Oldies Vol. 1' },
'eastern-coyote-hunting-on-fire': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-on-fire', 'src': 'on-fire', 'title': 'Coyote Hunting', 'description': 'On Fire' },
'eastern-coyote-hunting-send-it': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-send-it', 'src': 'send-it', 'title': 'Coyote Hunting', 'description': 'Send It' },
'eastern-coyote-hunting-perfect-setup': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-perfect-setup', 'src': 'perfect-setup', 'title': 'Coyote Hunting', 'description': 'Perfect Setup' },
'eastern-coyote-hunting-opening-debut': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-opening-debut', 'src': 'opening-debut', 'title': 'Coyote Hunting', 'description': 'Opening Debut' },
'eastern-coyote-hunting-let-the-excuses-begin': { 'file': 'http://www.downwindoutdoors.com/gallery/videos/predator-hunts/predator-videos/eastern-coyote-hunting-let-the-excuses-begin', 'src': 'let-the-excuses-begin', 'title': 'Coyote Hunting', 'description': 'Let the Excuses Begin'}};

var DWO_allVideoList=new Array();jQuery.each(DWO_videoinfo,function(key,value){DWO_allVideoList.push(key);});function mycarousel_itemVisibleInCallback_botvideo(carousel,item,i,state,evt){var idx=carousel.index(i,DWO_allVideoList.length);carousel.add(i,mycarousel_getItemHTML(DWO_videoinfo[DWO_allVideoList[idx-1]]));};function mycarousel_itemVisibleOutCallback_botvideo(carousel,item,i,state,evt){carousel.remove(i);};function mycarousel_initCallback_botvideo(carousel){carousel.clip.hover(function(){carousel.stopAuto();},function(){carousel.startAuto();});};function mycarousel_getItemHTML(item){return'<a href="'+item.file+'.html"><img src="http://www.downwindoutdoors.com/gallery/videos/thumbs/'+item.src+'.jpg" border="0" alt="'+item.title+' '+item.description+'" width="100" height="100" /><dl><dt>'+item.title+'</dt><dd>'+item.description+'</dd></dl></a>';};function mycarousel_getItemEmpty(item){return'';};jQuery(document).ready(function(){jQuery('#mycarousel_botvideo').jcarousel({scroll:6,auto:15,wrap:'circular',itemVisibleInCallback:{onBeforeAnimation:mycarousel_itemVisibleInCallback_botvideo},itemVisibleOutCallback:{onAfterAnimation:mycarousel_itemVisibleOutCallback_botvideo},initCallback:mycarousel_initCallback_botvideo});});
