
<!-- ************************************ -->
<!-- samadams.com // javascript functions -->
<!-- ************************************ -->

var preLoaded = false;
var loadedImages = new Array();

//var macintosh = navigator.userAgent.indexOf('Mac') > 0;
//var browser;
//var isSupportedFlash;
//var supportedFlashVersion = 6;

function preload(){
	if(document.images){
		for (var i = 0; i< arguments.length; i++){
			//alert(arguments[i] + '_over');
			self[arguments[i] + '_over'] = new Image();
			self[arguments[i] + '_over'].src = '/_img/' + arguments[i] + '_over.gif';
			self[arguments[i] + '_off'] = new Image();
			self[arguments[i] + '_off'].src = '/_img/' + arguments[i] + '.gif';
		}
	}
	
	preLoaded = true;
}

function preloader(){
	if(document.images){
		for (i=0;i<preloader.arguments.length;i++){
			loadedImages[i]=new Image();
			loadedImages[i].src=preloader.arguments[i];
		}	
	}
}
	
function rollover(src, state){
	if (document.images && self[src + '_' + state]){
		document.images[src].src = self[src + '_' + state].src;
	}
}
function rollover_dl(src, state){
	if (document.images){
		state = state == 'off' ? '' : '_'+state;
		document.images[src].src = '_img/btn_download_here_2' + state +'.gif';
	}
}
function pop(url, title, width, height){
	window.open(url, title, "toolbar=no,location=no,status=yes,menubar=no,scrollbars=yes,width="+width+",height="+height+",resizable=no" );
}

function popUp(url, title, width, height){	
	var args = "width=" + width + "," + "height=" + height + "," + "location=0,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0";
	var myPop = window.open(url, title, args);
	myPop.focus();
}

function popUpAndScroll(url, title, width, height){	
	var args = "width=" + width + "," + "height=" + height + "," + "location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0";
	var myPop = window.open(url, title, args);
	myPop.focus();
}

function popTour(url, title, width, height){
	var args = "width=" + width + "," + "height=" + height + "," + "location=0,menubar=1,resizable=0,scrollbars=1,status=0,titlebar=1,toolbar=0";
	var myPop = window.open(url, title, args);
	myPop.focus();
}

function crossPop(){
	// ie 5.2 mac, subtract 17px;
	// safari mac, 
	
}

function swapImage(srcImg, swapImg){
	
}
