// JavaScript Document

sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

/* not needed for search bgs/buttons... 
(function() { var f = document.getElementById('frmSearch'); 
if (f && f.keywords) { var keywords = f.keywords; var n = navigator; var l = location; 
if (n.platform == 'Win32') { keywords.style.cssText = 'border: 1px solid #bcc5c1;'; } 
var b = function() { if (keywords.value == '') { keywords.style.background = '#ffffff url(\x2Fwp-content\x2Fthemes\x2Fikanos\x2Fimages\x2Fsearch_bg.gif) left no-repeat'; } }; 
var f = function() { keywords.style.background = '#ffffff'; }; 
keywords.onfocus = f; keywords.onblur = b; if (!/[&?]keywords=[^&]/.test(l.search)) { b(); } } })(); 
*/

var imgEffect = {
	_divID : 'order',
		
	_configList : null,
	
	_configIndex : 0,
	
	_timeOut : 5000,
	
	init : function() {
		imgEffect._configList = new Array();
		imgEffect._configList[0] = '-199';
		imgEffect._configList[1] = '15';
		
		window.setTimeout('imgEffect._callBack()', imgEffect._timeOut);
	},
	
	_callBack : function() {
		var curDiv = document.getElementById(imgEffect._divID);
		if(imgEffect._configList[imgEffect._configIndex] == null) imgEffect._configIndex = 0;
		var curConfig = imgEffect._configList[imgEffect._configIndex];
		imgEffect._configIndex++;
		
		curDiv.style.left = curConfig+'px';
		
		window.setTimeout('imgEffect._callBack()', imgEffect._timeOut);
	}
};


/* Custom Pop-up Windows */
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
