// JavaScript Document
var errors = '';

$(document).ready(function(){
	// Navigation JS
	$('div.btnSubscriberHolder a').click(function() {
		$("div.alertHolder").hide();
		$("div#popup_opacity").hide();
		$("div#popup_block").fadeOut(300, function () { });
	});	
	
	$('img.closePopupImage').click(function() {
		$("div.alertHolder").hide();
		$("div#popup_opacity").hide();
		$("div#popup_block").fadeOut(300, function () { });
	});
});

function show_errors(str_error){
	$("div.alertHolder").show();
	$("div.lightwindowAlertError p.message").html(str_error);	
	$("div#popup_opacity").hide();
	$("div#popup_block").fadeIn(300, function () { });	
}

function openDemoPopup(){
	var leftx = (screen.width/2)-(317/2);
	var topx = (screen.height/2)-(434/2);
	
	window.open('https://pssforex.com/index.php/tradingplatform/demo','','toolbar=0,scrollbars=0,top=0,location=0,status=0,menubar=0,resizable=0,width=317,height=434,top='+topx+',left='+leftx);	
}

function openLiveChatPopup(){
	var leftx = (screen.width/2)-(780/2);
	var topx = (screen.height/2)-(517/2);
	
	window.open('http://pssib.com/index.php/livechat','','toolbar=0,scrollbars=0,top=0,location=0,status=0,menubar=0,resizable=false,width=780,height=517,top='+topx+',left='+leftx);	
}

function popupLiveChat(){
	var leftx = (screen.width/2)-(500/2);
	var topx = (screen.height/2)-(500/2);
	
	window.open('http://pssib.com/pssiblivechat/main/client','','toolbar=0,scrollbars=0,top=0,location=0,status=0,menubar=0,resizable=0,width=500,height=500,top='+topx+',left='+leftx);	
}

function show_light_demoreg(){
	var leftx = (screen.width/2)-(317/2);
	var topx = (screen.height/2)-(434/2);
	
	window.open('https://pssforex.com/index.php/tradingplatform/demo','','toolbar=0,scrollbars=0,top=0,location=0,status=0,menubar=0,resizable=0,width=317,height=434,top='+topx+',left='+leftx);	
}

function show_popup(id){
	$("div#popup_opacity").show();
	$("div.popupwindowContentHolder").show();
	$("div#popup_block").fadeIn(300, function () { });
	
	var title = new Array();
	var content = new Array();
	
	title[0]="Copyright"; 
	title[1]="How can I open an account in Private Scandinavian Sparkasse Investment Bank?"; 
	title[2]="Can anybody have information on my account?"; 
	title[3]="What are Term Deposits?"; 
	title[4]="Who should invest in Term Deposits? "; 
	title[5]="What is an Interest Rate? "; 
	title[6]="What is a Fixed Interest Rate? "; 
	title[7]="What is a Variable Interest Rate? "; 
	title[8]="What is a Floating Interest Rate? "; 
	title[9]="What are CODs? "; 
	title[10]="Why should I Invest in PSS Investment Bank? "; 
	title[11]="What is a Maturity Date? "; 
	title[12]="What happens at Maturity? "; 
	title[13]="Can I withdraw all or part of the funds before maturity? "; 
	title[14]="What is the minimum period for keeping the deposit? "; 
	title[15]="What are my other investment options with PSS Investment Bank? "; 
	
	content[0]="Copyright in the information contained in this website subsists through international treaties and the laws of many countries. It is owned by Private Scandinavian Holding Co., Ltd. unless otherwise stated. You may download a single copy of this document and make a single hard copy, where necessary for its use as a reference. Except as permitted by applicable laws, no part of this publication may be otherwise reproduced, adapted, performed in public or transmitted in any form by any process (graphic, electronic or mechanical, including photocopying, recording, taping or by storage in an information retrieval system) without the specific written consent of Private Scandinavian Holdings Co., Ltd."; 
	
	content[1]="In order to open the account, please go to: emailad@.com.ph. Your form will immediately be sent for review by an account officer. To expedite the processing of your application, we recommend you send a good quality scanned copy of your passport or ID document by email. You will be notified of your account number and you may use the account the same day we receive the scanned copy of your picture ID by email. Following that, we allow up to 21 days for the hard copies of your documents to arrive. To minimize transfer costs, the account opening fee will be deducted from the first deposit you make to your account. As soon as we receive the account opening fee we will send you two copies of the Account Operation Agreement. You should sign both copies, return one by regular mail or courier, and keep the other for your record. Before you open your account, please review our banking fees and other investment options on cards that we can offer."; 

	content[2]="Private Scandinavian Sparkasse Investment Bank accounts are extremely private due to our Culture of Confidentiality. Our staff only has access to the information that is absolutely necessary to process a particular transaction. All the banks we work with are bound by strict privacy and banking secrecy laws. Our staff members are prohibited from divulging or revealing account holder information to anyone without express written consent from the account holder. In many cases, violation of these privacy laws can mean large fines and prison terms for the violating employee."; 
	
	content[3]="Term deposits are deposits held at a financial institution that have a fixed term. These are generally short-term with maturities ranging anywhere from a month to a few years. When a term deposit is purchased, the lender (the customer) understands that the money can only be withdrawn after the term has ended or by giving a predetermined number of days notice. "; 
	
	content[4]="Term deposits are an extremely safe investment and are, therefore, very appealing to conservative, low-risk investors. "; 
	
	content[5]="Interest rate is a monthly effective rate paid (or received, if you are a creditor) on borrowed money, which is expressed as a percentage of the sum borrowed. "; 
	
	content[6]="Fixed interest rate is a loan or mortgage with an interest rate that will remain at a predetermined rate for the entire term of the loan. "; 
	
	content[7]="Variable interest rate is an interest rate that moves up and down based on the changes of an underlying interest rate index. "; 
	
	content[8]="Floating Interest Rate is an interest rate that is allowed to move up and down with the rest of the market or along with an index. This contrasts with a fixed interest rate, in which the interest rate of a debt obligation stays constant for the duration of the agreement. <br><br>A floating interest rate can also be referred to as a variable interest rate because it can vary over the duration of the debt obligation. "; 

	content[9]="COD stands for Certificate of Deposit. A COD is a time deposit similar to a savings account but having a specific, fixed term (often three months, six months, or one to five years) with either a fixed or a variable profit rate and the principal amount to be held to maturity."; 
	
	content[10]="Investment in PSSIB is ideal if you want to invest your money for a fixed period, with the security of a known return. You can deposit for terms as short as 30 days and as long as 3 years based on your requirements."; 
	
	content[11]="Maturity date is the date on which the principal amount of a note, draft, acceptance bond or other debt instrument becomes due and is repaid to the investor and interest payments stop. It is also the termination or due date on which an installment loan must be paid in full.<br><br>The maturity date tells you when to expect to get your principal back and how long to expect to receive interest payments."; 
	
	content[12]="At maturity you can:<br><br> &nbsp; &nbsp; &nbsp; &nbsp; &bull; Automatically re-invest your funds for another term <br> &nbsp; &nbsp; &nbsp; &nbsp; &bull; Add extra funds <br> &nbsp; &nbsp; &nbsp; &nbsp; &bull; Withdraw part or all of the funds"; 
	
	content[13]="If something unexpected happens and you need to access your funds before the end of term, you can withdraw your funds but may incur penalty. "; 
	
	content[14]="If the duration of deposit chosen is above 3 months itself, the deposit should be kept for a minimum of 3 months."; 
	
	content[15]="Depending on your personal investment objectives, you may wish to consider one of our other investment products. We have a range of options to suit every investment need to help you achieve your goals. <br><br>Our investment advisors would be happy to discuss your options with you at your convenience. Please call +46.8.559.22.694 or email us at <a href='mailto:helpdesk@pssib.com'>helpdesk@pssib.com</a> to arrange for an appointment.";
	
	
	$("div.popupwindowDetailsHolder p.title").html(title[id]);
	$("div.popupwindowDetailsHolder p.content").html(content[id]);
}	
function close_popup(){
	$("div#popup_block").fadeOut(300, function () { });
}
