﻿PT.Sites.Schins = {
	onLoad : function (){
		if (get$('fotofader')) {
			var newObject = new PT.Sites.General.Fotoviewer('uploader', 'fotofader', Huge, Big, Tiny);
		}
	},
	route : function(){
		get$('google_map').innerHTML = "";
		var str = '<iframe width="380" height="320" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.nl/maps?f=q&amp;source=s_q&amp;hl=nl&amp;geocode=&amp;q=Spilstraat+5+schins&amp;sll=51.356574,6.055763&amp;sspn=0.010505,0.032938&amp;g=Spilstraat+5&amp;ie=UTF8&amp;cid=16467387761240996066&amp;hq=Spilstraat+5+schins&amp;hnear=&amp;ll=50.850174,5.690918&amp;spn=0.277449,0.561676&amp;z=10&amp;iwloc=A&amp;output=embed"></iframe>';
		get$('google_map').innerHTML = str;
	},
	MM_findObj:function(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
	    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=PT.Sites.Schins.MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	},
	MM_changeProp:function(objName,x,theProp,theValue) { //v6.0
	  var obj = PT.Sites.Schins.MM_findObj(objName);
	  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
	    if (theValue == true || theValue == false)
	      eval("obj."+theProp+"="+theValue);
	    else eval("obj."+theProp+"='"+theValue+"'");
	  }
	},
	menuopen:function(divname, visibility) {
		PT.Sites.Schins.MM_changeProp(divname,'','style.display',visibility,'DIV');
	}
}

PT.Sites.General.RegisterEvent(window, "load", function() {PT.Sites.Schins.onLoad();} );
