// JavaScript Document

//-----------------------------------------------------------------------------------------------------------BEGIN FUNCTION
//----------------------------------cross-browser method to return client/user window size
function windowSize(){ //CURRENT ERROR - IS MEASURING DOCUMENT BODY, NEEDS TO CAPTURE WINDOW.
    var w, h;
	if(document.innerWidth){w=document.innerWidth;}
	else if(document.documentElement.clientWidth){w=document.documentElement.clientWidth;}
	else if(document.body){w=document.body.clientWidth;}
	
	if(document.innerHeight){h=document.innerHeight;}
	else if(document.documentElement.clientHeight){h=document.documentElement.clientHeight;}
	else if(document.body){h=document.body.clientHeight;}
	
	return {w:w, h:h}
}//----------------------------------------------------------------------------------------------------------END OF FUNCTION

//-----------------------------------------------------------------------------------------------------------BEGIN FUNCTION
function addToFavs(){
	if ((navigator.appName == "Microsoft Internet Explorer")&&(parseInt(navigator.appVersion) >= 4)) { //FOR IE BROWSERS OVER V4
   		document.write('<a href="javascript:window.external.AddFavorite(\'http://www.codelifter.com\',\'Better-Fishing.com | Free Tips, Pics, Videos and Reviews\');" onMouseOver="window.status=\'Better-Fishing.com\'; return true;" onMouseOut="window.status=\'Better-Fishing.com\'; return true;">Bookmark this Site</a>');
	}else{ //ALL OTHER BROWSERS
  		 document.write('Bookmark this Site (Ctrl+D)');
	} 
}//----------------------------------------------------------------------------------------------------------END OF FUNCTION