/***** www.oysterfunds.com *****/

/***** DHTMLabel.js ****/

/************************************/
/* copyright (c) Label Technologies */
/* All rights reserved         v1.1 */
/********************************BS**/
var doc=document,agt=navigator.userAgent;lay=doc.layers,ie4=doc.all,dom=doc.getElementById,ope=agt.match(/Opera/g);mac=agt.match(/mac/gi)

function getE(id,parentLay){
 lay=doc.layers;
 if(lay){arrLay=(parentLay?parentLay:self).document.layers;if(arrLay[id]){return arrLay[id];}for(i=0;i<arrLay.length;) return (getE(id,arrLay[i++]));}
 if(ie4)return doc.all[id];
 if(dom)return doc.getElementById(id);
}
function createE(id){
 if(lay){doc.layers[id]=new Layer(0);eval("document."+id+"=doc.layers[id]");}
 else{if(typeof doc.createElement!='undefined'){html="<div id='"+id+"' style=\"position:absolute\">&nbsp;</div>";
 oDiv=doc.createElement("DIV");if(oDiv){/*oDiv.innerHTML=html;*/oDiv.id=id;oDiv.style.position="absolute";doc.body.appendChild(oDiv);}
 else if(typeof doc.body.insertAdjacentHTML!='undefined')doc.body.insertAdjacentHTML("BeforeEnd",html);}}}
function writeHTML(e,h){
  if(lay){docLay=e.document;docLay.write(h);docLay.close();}
  if(typeof e.innerHTML!='undefined'){e.innerHTML=h;}}
function showE(e){lay?e.visibility='show':e.style.visibility='visible';}
function hideE(e){lay?e.visibility='hide':e.style.visibility='hidden';}

function setZ(e,z){lay?e.zIndex=z:e.style.zIndex=z;}
function getZ(e){return lay?e.zIndex:e.style.zIndex;}

function setX(e,x){lay?e.left=x:(ope?e.style.pixelLeft=x:e.style.left=x);}
function getX(e){
 if(lay)return(e.left);
 if(ie4||ope)return(e.style.pixelLeft);
 if(dom)return(parseInt(e.style.left));
 return -1;}
function setY(e,y){lay?e.top=y:(ope?e.style.pixelTop=y:e.style.top=y);}
function getY(e){
 if(lay)return(e.top);
 if(ie4||ope)return(e.style.pixelTop);
 if(dom)return(parseInt(e.style.top));
 return -1;}
function setW(e,w){lay?e.offsetWidth=w:(ope?e.style.pixelWidth=w:e.style.width=w);}
function getW(e){
 if(lay){if(e.width)return(e.width);if(e.clip)return(e.clip.right-e.clip.left);}
 if (ie4||ope){if(e.style.pixelWidth)return(e.style.pixelWidth);return(e.clientWidth);}
 if(e.style.width)return(parseInt(e.style.width));return(e.offsetWidth);}
function setH(e,h){lay?e.clip.height=h:(ope?e.style.pixelHeight=h:e.style.height=h);}
function getH(e){
 if(lay){if(e.height)return(e.height);if(e.clip)return(e.clip.bottom-e.clip.top);}
 if(ope){return e.style.pixelHeight;}
 if(ie4){return e.clientHeight;}
 if (e.style.height)return(parseInt(e.style.height));return(e.offsetHeight);}
function setClip(e,t,r,b,l) {
 if(lay){e.clip.top=t;e.clip.right=r;e.clip.bottom=b;e.clip.left=l;}
 else e.style.clip='rect('+t+' '+r+' '+b+' '+l+')';}

function getPageX(e) {return lay?e.pageX:e.offsetLeft;}
function getPageY(e) {return lay?e.pageY:e.offsetTop;}
function getPageW(){
 if(lay)return(document.width);
 if(dom&&!ie4)return(document.body.offsetWidth);
 return(document.body.scrollWidth);}
function getPageH(){
 if(lay)return(document.height);
 if(dom&&!ie4)return(document.body.offsetHeight); 
 return(document.body.scrollHeight);}
function getPageScrollX(){return lay?window.pageXOffset:document.body.scrollLeft;}
function getPageScrollY(){return lay?window.pageYOffset:document.body.scrollTop;}
function Scroller(e, x, y, w, h){
 setX(e,x);setY(e,y);setW(e,w);this.element=e;this.fullHeight=getH(e);
 this.clipX=0;this.clipY=0;this.clipWidth=w;this.clipHeight=h;setClip(e,0,w,h,0);
 this.moveUp=scroller_up;this.moveDown=scroller_down;showE(e);
 //if(!this.fullHeight)alert("Scroller creation failed");
 }
function scroller_up(step) {
 var cy=this.clipY;if(cy-step<0)step=cy;if(step<=0)return;
 var e=this.element,cx=this.clipX,ch=this.clipHeight;
 cy-=step;this.clipY=cy;setY(e,getY(e)+step);
 setClip(e,cy,cx+this.clipWidth,cy+ch,cx);}
function scroller_down(step){
 var h=this.fullHeight,cy=this.clipY,ch=this.clipHeight;
 if(h-cy-step<ch)step=h-cy-ch;if(step<=0)return;
 var e=this.element,cx=this.clipX;cy+=step;this.clipY=cy;setY(e,getY(e)-step);
 setClip(e,cy,cx+this.clipWidth,cy+ch,cx);}
function getI(id){
 if (lay)return findI(id, doc);
 if (ie4)return document.all[id];
 if(dom)return doc.getElementById(id);}
function findI(id, d){
 var i,img;
 for(i=0;i<d.images.length;i++)if(d.images[i].name==id)return d.images[i];
 for (i=0;i<d.layers.length;i++)if((img=findI(id,d.layers[i].document))!= null){img.container = d.layers[i];return img;}}
function getIPageX(im){
 var x,obj;
 if(lay)return (im.container)?(im.container.pageX+im.x):im.x;
 if(ie4||dom){x=0;obj=im;
  while(obj.offsetParent){x+=obj.offsetLeft;obj=obj.offsetParent;}
  return x+obj.offsetLeft;}}
function getIPageY(im){
 lay=doc.layers;
 var y, obj;
 if(lay)return (im.container)?(im.container.pageY+im.y):im.y;
 if(ie4||dom){y=0;obj=im;
  while(obj.offsetParent){y+=obj.offsetTop;obj=obj.offsetParent;}
  return y+obj.offsetTop;}}
 
    
    function checkSize(){
      var imgleft=getI("imgleft");
       var yl=getIPageY(imgleft);
      var imgright=getI("imgright");
      var yr=getIPageY(imgright);
      var sizeleft=getI("sizeleft");
      var sizeright=getI("sizeright");
      if( yl<yr ){
        setH(sizeleft, 218+yr-yl);
      }
      else{
        setH(sizeright, 218+yl-yr);
      }
      var divleft=getE("divleft");
      var divright=getE("divright");
      divleft.style.visibility="visible";
      divright.style.visibility="visible";
    }


/***** flashdetector.js ****/

var g_bolUseVBDetection = false;


function detectFlash(intVersion) {
  var intDetectedVersion=0;
  var objPluginFlash=navigator.plugins["Shockwave Flash"];
  if(objPluginFlash) {
  	var strFlashDesc = objPluginFlash.description;
  	intDetectedVersion = parseInt(strFlashDesc.charAt(strFlashDesc.indexOf(".") - 1));
	}
  bolFlash=(intDetectedVersion>=intVersion);
  if(!bolFlash && g_bolUseVBDetection) {
	  intDetectedVersion=(detectActiveXControl('ShockwaveFlash.ShockwaveFlash.2'))?2:0;
	  intDetectedVersion=(detectActiveXControl('ShockwaveFlash.ShockwaveFlash.3'))?3:intDetectedVersion;
	  intDetectedVersion=(detectActiveXControl('ShockwaveFlash.ShockwaveFlash.4'))?4:intDetectedVersion;
	  intDetectedVersion=(detectActiveXControl('ShockwaveFlash.ShockwaveFlash.5'))?5:intDetectedVersion;
	  intDetectedVersion=(detectActiveXControl('ShockwaveFlash.ShockwaveFlash.6'))?6:intDetectedVersion;
	  intDetectedVersion=(detectActiveXControl('ShockwaveFlash.ShockwaveFlash.7'))?7:intDetectedVersion;
    bolFlash=(intDetectedVersion>=intVersion);
  }
  return bolFlash;
}

if ((navigator.userAgent.indexOf('MSIE') != -1) && (navigator.userAgent.indexOf('Win') != -1)) {
  document.writeln('<script language="VBscript">');
  document.writeln('g_bolUseVBDetection = False');
  document.writeln('If ScriptEngineMajorVersion >= 2 then');
  document.writeln('  g_bolUseVBDetection = True');
  document.writeln('End If');
  document.writeln('Function detectActiveXControl(activeXControlName)');
  document.writeln('  on error resume next');
  document.writeln('  detectActiveXControl = False');
  document.writeln('  If g_bolUseVBDetection Then');
  document.writeln('     detectActiveXControl = IsObject(CreateObject(activeXControlName))');
  document.writeln('  End If');
  document.writeln('End Function');
  document.writeln('</scr' + 'ipt>');
}

function insertFlash(strSrc,intH,intW,strBgC,strID,strAltImg) {
  if (g_bolFlashOK){
//    document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
//    document.write('width="'+intW+'" height="'+intH+'" name="'+strID+'" ID="'+strID+'"> ');
//    document.write('<PARAM name="Movie" value="'+strSrc+'"> ');
//    document.write('<PARAM name="quality" value="high"> ');
//    document.write('<PARAM name="play" value="true"> ');
//    document.write('<PARAM name="bgcolor" value="'+strBgC+'">');
    if(!lay)document.write('<div style="position:relative;top:0;left:0;">');
    document.write('<EMBED src="'+strSrc+'" width="'+intW+'" ');
    document.write('height="'+intH+'" quality="high" ');
    document.write('bgcolor="'+strBgC+'" name="+strId+" type="application/x-shockwave-flash" ');
    document.write('pluginspage="http://www.macromedia.com/go/getflashplayer">');
    if(!lay)document.write('</div>');
//    document.write('</OBJECT>');
  } else {
    document.write('<IMG src="'+strAltImg+'" width="'+intW+'" ');
    document.write('height="'+intH+'" alt="">');
  }
}


/***** inline ****/




      function checkCountry(urlNode){
         if( document.getCountry != null && document.getCountry.country.value=="denied" ){
        alert("");
        }
        else if( document.getCountry != null && document.getCountry.country.value=="" 
        	|| document.getCountry != null && document.getCountry.client_type.value==""){
          alert("Please fill all the Required Fields");
          
        }    /*
        else if( document.getCountry != null && getCountry.country.value=="DE" && getCountry.client_type.value!="Investisseur institutionnel" ){
        alert("");
        }      */  
        else document.location=urlNode; 
      }
      
      function hasCountry(){
        if( document.getCountry != null && (document.getCountry.country.value=="" 
        		|| document.getCountry.country.value== "denied" 
        		|| document.getCountry.client_type.value=="") ){
          alert("Please fill all the Required Fields");
          return false;
          
        }
        else return true;
      }
      
      
      function viewFund(){
        var f=document.forms["selectFund"];
        f=f.selectFund;
        var url=f.options[f.selectedIndex].value;
        if( url ) document.location=url;
      }
      
     function load() {
document.getElementById("divContent").style.visibility="visible";
resize();
if(typeof(init)=="function") init();

    }

    function resize(){
    
      var divContent=document.getElementById("divContent");
      if(window.document.documentElement.clientHeight) 
        divContent.style.height=(document.documentElement.clientHeight-113)+"px";
      else {
      	if (window.document.offsetHeight)
      		divContent.style.height=(window.document.offsetHeight-113)+"px";
      }
    }
    
    
    function preparePrint(){
      printpage=window.open("/banque-SYZ-bank/disclaimer-form/index.lbl","printpage","width=700,height=500,status=0");
      while(printpage.document.body==null){
      }
      printpage.document.body.style=null;
    }
    
    function showPopup(url,name,intWidth, intHeight,intTop, intLeft){
      oWindow=window.open(url,name, "toolbar=0,directories=0,menubar=0,scrollbars=0,resizable=0, width="+intWidth+",height="+intHeight+",top="+intTop+",left="+intLeft);
    }
    
    function changeCountry(){ 
    	if( document.getCountry != null) {
      	if (document.getCountry.country.value!="" && document.getCountry.client_type.value!="") {
      		/*if (document.getCountry.country.value=="DE" && document.getCountry.client_type.value!="Investisseur institutionnel") {
      			return;	
      		}
      		else {*/
      			document.getCountry.submit();
      		//}
      	}
    	}
    }
    
