if(window.event + "" == "undefined") event = null;
function showMenu(){return false};
function mout(){return false};
function dummyObject() {this.mout=mout};
oM = new dummyObject();


// CALL TO CORRECT DIRECTORY BELOW
var imgdir = "../images/";
var sitedir = "";
var securedir = "";
var homedir = "../";

if(window.homepage)
{
imgdir="images/";
sitedir="site/";
securedir="site/";
homedir="";
}
else if(window.absolutepage)
{
imgdir="http://www.gardencitystatebank.com/images/"
sitedir="http://www.gardencitystatebank.com/site/"
securedir="http://www.gardencitystatebank.com/site/"
homedir="http://www.gardencitystatebank.com/"
}
else if(window.securepage)
{
imgdir="https://www.gardencitystatebank.com/images/"
sitedir="http://www.gardencitystatebank.com/site/"
securedir="https://www.gardencitystatebank.com/site/"
homedir="http://www.gardencitystatebank.com/"
}

/**
 * showWarning(url) shows third party speed bump.
 */
function showWarning(url,target){
	if(!target)
		{
			target="_blank";
		}
		
	var content = new Array();
	
	var index = 0;
	
	content[index++] = "<h2>Third Party Site Disclaimer</h2><br />By accessing the noted link you will be leaving Garden City State Bank's website and entering a website hosted by another party. Garden City State Bank is not endorsing or guaranteeing the products, information or recommendations provided by this site.  Garden City State Bank has not approved this as a reliable partner site. Garden City State Bank is not liable for any failure of products or services advertised on these sites.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of Garden City State Bank's website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may provide less security than those of Garden City State Bank.";
	
	content[index++] = "<br /><br /><br />";
	
	content[index++] = "<div align=\"center\"><a href='"+url+"' onclick=\"document.getElementById('ex_dis').style.display = 'none'\" target='"+target+"'>Continue</a>  <a href=\"javascript:void('0');\" onclick=\"document.getElementById('ex_dis').style.display = 'none'\">Decline</a></div></div>";  
	
	document.getElementById("ex_dis").innerHTML = content.join("");
	
	document.getElementById("ex_dis").style.display = "block";
	
	scrollTo(0, 0);

}

 

document.write('<div id="ex_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

 

function comingSoon(link){

var content = new Array();

	var index = 0;
	
	
	
	content[index++] = "<h2>Coming Soon</h2><br />You have attempted to access " + link + " on Garden City State Bank's website.  This page is currently being developed.  Please check back soon for this online feature.";
	
	content[index++] = "<br /><br /><br />";
	
	content[index++] = "<div align=\"center\"><a href=\"#\" onclick=\"document.getElementById('cs_dis').style.display = 'none'\">Close</a>  </div></div>";  
	
	document.getElementById("cs_dis").innerHTML = content.join("");
	
	document.getElementById("cs_dis").style.display = "block";
	
	scrollTo(0, 0);

}

 

document.write('<div id="cs_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');

 

function showEmailWarning(email){


	var content = new Array();
	
	var index = 0;
	
	content[index++] = "<h2>Email Security Warning</h2><br /><p>E-mail messages sent over the Internet are not secure. Please do not include any account or personal information such as social security numbers in the message.</p>";
	
	content[index++] = "<br /><br /><br />";
	
	content[index++] = "<div align=\"center\"><a href=\"mailto:"+ email +"\" onclick=\"document.getElementById('email_dis').style.display = 'none'\">Continue</a>  <a href=\"#\" onclick=\"document.getElementById('email_dis').style.display = 'none'\">Decline</a></div></div>";  
	
	document.getElementById("email_dis").innerHTML = content.join("");
	
	document.getElementById("email_dis").style.display = "block";
	
	scrollTo(0, 0);

}

 

document.write('<div id="email_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');


function showMortDis(){


	var content = new Array();
	
	var index = 0;
	
	content[index++] = "<div style=\"text-align: center;\">";
	content[index++] = "<strong>U. S. Department of Housing and Urban Development<br />";
	content[index++] = "EQUAL HOUSING OPPORTUNITY<br />";
	content[index++] = "We Do Business in Accordance With the Federal Fair<br />";
	content[index++] = "Housing Law</strong><br />";
	content[index++] = "(The Fair Housing Amendments Act of 1988)<br /><br />";
	content[index++] = "<strong>It is illegal to Discriminate Against Any Person ";
	content[index++] = "Because of Race, Color, Religion, Sex, ";
	content[index++] = "Handicap, Familial Status, or National Origin</strong></div>";
	content[index++] = "<ul>";
	content[index++] = "<li>In the sale or rental of housing or residential lots</li>";
	content[index++] = "<li>In advertising the sale or rental of housing</li>";
	content[index++] = "<li>In the financing of housing</li>";
	content[index++] = "<li>In the provision of real estate brokerage services</li>";
	content[index++] = "<li>In the appraisal of housing</li>";
	content[index++] = "<li>Blockbusting is also illegal</li>";
	content[index++] = "<li>U. S. Department of Housing and Urban Development</li>";
	content[index++] = "</ul>";
	content[index++] = "<strong>Anyone who feels he or she has been discriminated against may file a complaint of housing discrimination:<br />";
	content[index++] = "1-800-669-9777 (Toll Free)<br />";
	content[index++] = "1-800-927-9275 (TTY)<br /><br />";
	content[index++] = "U.S. Department of Housing and Urban Development ";
	content[index++] = "Assistant Secretary for Fair Housing and<br />";
	content[index++] = "Equal Opportunity<br />";
	content[index++] = "Washington, D.C. 20410";
	
	content[index++] = "<div align=\"center\"><a href=\"#\" onclick=\"document.getElementById('mort_dis').style.display = 'none'\">Continue</a>  <a href=\"javascript:history.go(-1);\" onclick=\"document.getElementById('mort_dis').style.display = 'none'\">Decline</a></div></div>";  
	
	document.getElementById("mort_dis").innerHTML = content.join("");
	
	document.getElementById("mort_dis").style.display = "block";
	
	scrollTo(0, 0);

}

document.write('<div id="mort_dis" style="background-color: #ffffff; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; font-weight: normal; color: #000000; text-align: left; position:absolute; top:125px; left:300px; border: thin solid #1A448E; padding: 15px; display: none; z-index: 3000; width:350px;"></div>');


/**
 * opens the given online form
 */
function openApp(appName) {
	
	document.location.href = "https://www.gardencitystatebank.com/Forms/OnlineForm.cgi?form=" + appName + "&onweb=true";
	
}

/**
 * open a window, can be used for demo
 */
function openWindow(url, width, height) {
	
	var features = "toolbar=no,menubar=no,location=no,scrollbars=yes,width=" + width + ",height=" + height;
	
	var _win = window.open(url, "demowindow", features);
	//var _win = window.open(url, 'newWin', features);
	//var _win = window.open(url, "demo-window");
	
	return;
}

var fiName = "Garden City State Bank";

function showWarning2(lk, desc, target, msg){
	desc = (desc) ? desc : "Third Party Site";
	target = (target) ? target : "_blank";
	msg = (msg) ? msg : 0;
	
	var messages = new Array(6);
    messages[0] = '<h2 style="text-align:center">Third Party Site Disclaimer</h2><p>By accessing the noted link you will be leaving '+fiName+'\'s website and entering a website hosted by another party. '+fiName+' is not endorsing or guaranteeing the products, information or recommendations provided by this site.  '+fiName+' has not approved this as a reliable partner site. '+fiName+' is not liable for any failure of products or services advertised on these sites.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of '+fiName+'\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may provide less security than those of '+fiName+'.</p>';
    messages[1] = '<h2 style="text-align:center">Third Party Site Disclaimer</h2><p>By accessing the noted link you will be leaving '+fiName+'\'s website and entering a website hosted by another party. '+fiName+' is not endorsing or guaranteeing the products, information or recommendations provided by this site.  '+fiName+' has not approved this as a reliable partner site. '+fiName+' is not liable for any failure of products or services advertised on these sites.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of '+fiName+'\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may provide less security than those of '+fiName+'.</p>';
    messages[2] = '<h2 style="text-align:center">Third Party Site Disclaimer</h2><p>By accessing the noted link you will be leaving '+fiName+'\'s website and entering a website hosted by another party. '+fiName+' is not endorsing or guaranteeing the products, information or recommendations provided by this site.  '+fiName+' has not approved this as a reliable partner site. '+fiName+' is not liable for any failure of products or services advertised on these sites.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of '+fiName+'\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may provide less security than those of '+fiName+'.</p>';
    messages[3] = '<h2 style="text-align:center">Third Party Site Disclaimer</h2><p>By accessing the noted link you will be leaving '+fiName+'\'s website and entering a website hosted by another party. '+fiName+' is not endorsing or guaranteeing the products, information or recommendations provided by this site.  '+fiName+' has not approved this as a reliable partner site. '+fiName+' is not liable for any failure of products or services advertised on these sites.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of '+fiName+'\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may provide less security than those of '+fiName+'.</p>';
    messages[4] = '<h2 style="text-align:center">Third Party Site Disclaimer</h2><p>By accessing the noted link you will be leaving '+fiName+'\'s website and entering a website hosted by another party. '+fiName+' is not endorsing or guaranteeing the products, information or recommendations provided by this site.  '+fiName+' has not approved this as a reliable partner site. '+fiName+' is not liable for any failure of products or services advertised on these sites.  Please be advised that you will no longer be subject to, or under the protection of, the privacy and security policies of '+fiName+'\'s website. We encourage you to read and evaluate the privacy and security policies of the site you are entering, which may provide less security than those of '+fiName+'.</p>';
    messages[5] = '<h2 style="text-align:center">E-mail Disclaimer</h2><p>WARNING: E-mail is an unsecure method of communication.  Any information contained in your message could be viewed by a third party.  Sensitive information such as passwords or social security numbers should be omitted from e-mail messages.</p>';

	var content = new Array();
	var index = 0;
	content[index++] = messages[msg];
	content[index++] = '<br /><br /><br />';
	content[index++] = '<div align="center"><a href="'+lk+'" target="'+target+'" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Continue</a>&#160;&#160;<a href="javascript:void(\'0\');" onclick="document.getElementById(\'ex_dis\').style.display = \'none\'">Decline</a></div></div>';	
	document.getElementById("ex_dis").innerHTML = content.join("");
	document.getElementById("ex_dis").style.display = "block";
	scrollTo(0,0);
}
