function MailW(ur, nam) {
popWin = window.open(ur, nam, 'scrollbars,resizable,width=750,height=700,left=5,top=5')
}
function openWindow(url, name) {
popupWin = window.open(url, name, 'scrollbars,resizable,width=500,height=500,left=5,top=5')
}

function Kiosk() {
if (document.all) {
var newWin = window.open(location.href, "newWin", "fullscreen,scrollbars");
}}

var url="http://maxmagnusnorman.com/artist_blog/"
var title="Max Magnus artist blog"
function Ab(){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}

//rensa ruta

function R(V) {
if(V.value.substring(0,1) == "Y")
{V.value = '';}
return false;
}

// G.JS

function IdN(n, d) {
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=IdN(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n); 
return x;
}

function VG() {
var i,p,v,obj,args=VG.arguments;
for (i=0; i<(args.length-2); i+=3) 
if ((obj=IdN(args[i]))!=null) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'visible':v;}
obj.visibility=v; }
}

function OnTop() {
if (top.location != location) top.location.href = location.href;
}

function Glidin(A, B) {
var i,j,tmLn,props,keyFrm,Q,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
if (document.P == null) SeK();
tmLn = document.P[A];
if (B == null) { B = ++tmLn.ID; firstTime=true;}
if (B == tmLn.ID) {
setTimeout('Glidin("'+A+'",'+B+')',tmLn.delay);
fNew = ++tmLn.curFrame;
for (i=0; i<tmLn.length; i++) {
Q = tmLn[i];
 if (Q.obj) {
numKeyFr = Q.keyFrames.length; firstKeyFr = Q.keyFrames[0];
if (fNew >= firstKeyFr && fNew <= Q.keyFrames[numKeyFr-1]) {
keyFrm=1;
for (j=0; j<Q.L.length; j++) {
props = Q.L[j]; 
if (numKeyFr != props.length) {
if (props.prop2 == null) Q.obj[props.prop] = props[fNew-firstKeyFr];
else Q.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
} else {
while (keyFrm<numKeyFr && fNew>=Q.keyFrames[keyFrm]) keyFrm++;
if (firstTime || fNew==Q.keyFrames[keyFrm-1]) {
if (props.prop2 == null) Q.obj[props.prop] = props[keyFrm-1];
else Q.obj[props.prop2][props.prop] = props[keyFrm-1];
} } } }
}
} }
}

function SeK() {

var ns = navigator.appName == "Netscape";
var ns4 = (ns && parseInt(navigator.appVersion) == 4);
var ns5 = (ns && parseInt(navigator.appVersion) > 4);
document.P = new Array(1);
document.P[0] = new Array(2);
document.P["Ja"] = document.P[0];
document.P[0].MM_Name = "Ja";
document.P[0].fps = 15;
 
document.P[0][0] = new String("Q");
document.P[0][0].slot = 1;
if (ns4)
document.P[0][0].obj = document["pryl"];
else if (ns5)
document.P[0][0].obj = document.getElementById("pryl");
else
document.P[0][0].obj = document.all ? document.all["pryl"] : null;
document.P[0][0].keyFrames = new Array(1, 40, 100, 15);
document.P[0][0].L = new Array(3);
if (ns5)
document.P[0][0].L[0] = new Array("-200px","-140px","-110px","-80px","-50px","-20px","0px","20px","40px","60px","50px","40px","30px","20px","0px");
else
document.P[0][0].L[0] = new Array(-200,-140,-110,-80,-50,-20,0,20,40,60,50,40,30,20,0);
document.P[0][0].L[0].prop = "left";
if (ns5)
document.P[0][0].L[1] = new Array("-300px","-300px","-300px","-245px","-205px","-165px","-135px","-105px","-85px","-65px","-45px","-25px","-15px","-5px","0px");
else
document.P[0][0].L[1] = new Array(-300,-300,-300,-245,-205,-165,-135,-105,-85,-65,-45,-25,-15,-5,0);
document.P[0][0].L[1].prop = "top";
if (!ns4) {
document.P[0][0].L[0].prop2 = "style";
document.P[0][0].L[1].prop2 = "style";
}
document.P[0][0].L[2] = new Array("visible","visible","visible","visible");
document.P[0][0].L[2].prop = "visibility";
if (!ns4)
document.P[0][0].L[2].prop2 = "style";

document.P[0][1] = new String("Q");
document.P[0][1].slot = 2;
if (ns4)

document.P[0][1].obj = document["vertikal"];
else if (ns5)
document.P[0][1].obj = document.getElementById("vertikal");
else
document.P[0][1].obj = document.all ? document.all["vertikal"] : null;
document.P[0][1].keyFrames = new Array(1, 40, 100, 16);
document.P[0][1].L = new Array(3);
if (ns5)
document.P[0][1].L[0] = new Array("-180px","-170px","-160px","-140px","-115px","-80px","-50px","-30px","-21px","-15px","-10px","-6px","0px","5px","10px","15px");
else
document.P[0][1].L[0] = new Array(-180,-170,-160,-140,-115,-80,-50,-30,-21,-15,-10,-6,0,5,10,15);
document.P[0][1].L[0].prop = "left";
if (ns5)
document.P[0][1].L[1] = new Array("-300px","-300px","-300px","-245px","-205px","-165px","-135px","-105px","-85px","-65px","-45px","-25px","-15px","-5px","0px","5px");
else
document.P[0][1].L[1] = new Array(-300,-300,-300,-245,-205,-165,-135,-105,-85,-65,-45,-25,-15,-5,0,5);
document.P[0][1].L[1].prop = "top";
if (!ns4) {
document.P[0][1].L[0].prop2 = "style";
document.P[0][1].L[1].prop2 = "style";
}
document.P[0][1].L[2] = new Array("visible","visible","visible","visible");
document.P[0][1].L[2].prop = "visibility";
if (!ns4)
document.P[0][1].L[2].prop2 = "style";

for (i=0; i<document.P.length; i++) {
document.P[i].ID = null;
document.P[i].curFrame = 0;
document.P[i].delay = 1000/document.P[i].fps;
}}


// NP.JS

function openW(ur,nam,Dw,Dh,Dx,Dy){

Dw = (screen.width) ? (screen.width-Dx)/2 : 0;
//Dh = (screen.height) ? (screen.height-Dy)/2 : 0;
Dh=50;

//new window adapts its size to fit screen (c) Max Magnus Norman
Br = new Object()

Br.scr = screen;

MY=(Br.scr)?Br.scr.height:0
MX =(Br.scr)?Br.scr.width:0
if (Dx > MX){
Dx=(MX-30);
}
if (Dy > MY){
Dy=(MY-50);
}
popupW = window.open(ur,nam,"',width="+Dx+",height="+Dy+",left="+Dw+",top="+Dh+",resizable=1,scrollbars=1'")
}






