/*
 * Custom JavaScript for YellaFella.com
 * Tiffany B. Brown, Armchair Media
 * January, 2009
 */

// get all links in the page
var links = document.getElementsByTagName('A');
var i = null;

function deactivateInactive(){
	for(i=0; i < numMovieLinks; i++){
		if(movieNavLinks[i].className == 'inactive'){
			movieNavLinks[i].onmouseover = function(){this.style.cursor = "default"; }
			movieNavLinks[i].onclick = function(){ this.style.outline = "none"; return false;  }
		}	
	}
}
function extwindow(matchingClass){
	for(i=0; i < links.length; i++){
		if(links[i].className.match(matchingClass)){
			links[i].onclick = function(){
				window.open(this.href, 'external', 'resizable=yes,toolbar=yes,scrollbars=yes,width=900,height=650');
				return false;
			}
		}
	}
}
function popup(w,h,matchingClass){
	for(i=0; i < links.length; i++){
		if(links[i].className.match(matchingClass)){
			links[i].onclick = function(){
				window.open(this.href, '_blank', 'resizable=yes,toolbar=no,scrollbars=yes,width='+w+'height='+h);
				return false;
			}
		}
	}
}

var wk1 = document.getElementById('week1');
if(wk1){
	wk1.onmouseover = function(){ this.style.cursor = 'pointer'; }
	wk1.onclick = function(){
		window.open('http://www.redcliffslodge.com/', '_blank', 'resizable=yes,location=yes,toolbar=no,scrollbars=yes,width=800,height=600');
	}
}


extwindow('ext');

if (document.body.id == 'sweepstakes') {
	popup(900, 600, 'sweepspop');
}
popup(800,600,'popup');

		