/*******************************************************************/
/*                                                                 */
/*                                                                 */
/*    JAVASCRIPT DOCUMENT DEVELOPED BY IVAN ALEKSIC				   */
/*    IMPLEMENTEK INTERNET CONSULTING GROUP	- BELGRADE - SERBIA	   */
/*    IVAN@IMPLEMENTEK.COM - WWW.IMPLEMENTEK.COM				   */
/*                                                                 */
/*    Copyright National Payment Network - CALIFORNIA - USA		   */
/*                                                                 */
/*    Revision 1.0 - September 11. 2008. - Ivan					   */
/*    Revision 1.1 - September 12. 2008. - Ivan					   */
/*                                                                 */
/*                                                                 */
/*******************************************************************/

// Buttons over class change
function switchOver(el) {
    el.className = 'buttonhover';
	return false;
}
function switchOut(el) {
    el.className = 'button';
	return false;
}

// Splash navigation over class change
var splashSwitchElements = new Array('spl1','spl2','spl3','spl4','spl5');
var splashSwitchClasses = ['current', ''];
function sS(el) {
    var elm = document.getElementById(el);    
    for(var i=0; i<splashSwitchElements.length; i++) {
        var el2 = document.getElementById(splashSwitchElements[i]);
        el2.className = splashSwitchClasses[1];
	}
    elm.className = splashSwitchClasses[0];
    return false;
}

// Splash content animation
var myDummyVarOne = "";
function doSplash(obj) {
	if(document.getElementById(obj).style.display == 'none') {
		$(obj).appear({ from: 0, to: 1, duration: 0.7 });
	}
	if(myDummyVarOne != "" && myDummyVarOne != obj) {
		document.getElementById(myDummyVarOne).style.display = 'none';
		document.getElementById('splashshow').className = 'loaderoff';
	}
	myDummyVarOne = obj;
}

// Management team biography slider
var myDummyVarTwo = "";
function doBiography(obj) {
	if(document.getElementById(obj).style.display == 'none') {
		$(obj).blindDown({ duration: 0.3 });
	} else {
		$(obj).blindUp({ duration: 0.3 });
	}

	if(myDummyVarTwo != "" && myDummyVarTwo != obj) {
		$(myDummyVarTwo).blindUp({ duration: 0.3 });
	}

	myDummyVarTwo = obj;
}
var bioSwitchElements = new Array('bio1','bio2','bio3','bio4','bio5');
var bioSwitchClasses = ['current', ''];
function bS(el) {
    var elm = document.getElementById(el);     
    for(var i=0; i<bioSwitchElements.length;i++) {
        var el2 = document.getElementById(bioSwitchElements[i]);
        el2.className = bioSwitchClasses[1];
	}
    elm.className = bioSwitchClasses[0];
    return false;
}

// Banners hover
function bannerOver(el) {
    new Effect.Opacity(el, { from: 0.4, to: 1, duration: 0.3 });
}
function bannerOut(el) {
    new Effect.Opacity(el, { from: 0.7, to: 0.4, duration: 0.1 });
}
