/* JavaScript for opening profile windows */

var iframe = new Array;
iframe[0]="info/ilf_gallery2/pk00.html" ;
iframe[1]="info/ilf_gallery2/pk01.html" ;
iframe[2]="info/ilf_gallery2/pk02.html" ;
iframe[3]="info/ilf_gallery2/pk03.html" ;
var ran = Math.round(Math.random()*(iframe.length-1));
iframe=iframe[ran];


var WO1, WO2, WO3, WO4, WO5, WO6;
function wopenA(){
	WO1=window.open("","window1","width=510,height=172,left=30,top=100,scrollbars=no,toolbar=no");
	WO1.focus();
}
function wopenB(){
	WO2=window.open("","window2","width=270,height=500,left=0,top=20,scrollbars=auto,toolbar=no");
	WO2.focus();
}
function wopenC(){
	WO3=window.open("","window3","width=450,height=500,left=0,top=20,scrollbars=yes,toolbar=no");
	WO3.focus();
}
function wopenD(){
	WO4=window.open("","window4","width=500,height=300,left=0,top=20,scrollbars=no,toolbar=no");
	WO4.focus();
}
function openwinmedia(){
	var WO5;
	WO5=window.open("","winmedia","width=500,height=480,left=30,top=100,scrollbars=yes,toolbar=no");
	WO5.focus();
}
function wopenE(){
	var WO6;
	WO5=window.open("","window5","width=420,height=500,left=30,top=100,scrollbars=yes,toolbar=no");
	WO5.focus();
}
function wopenF(){
	var WO7;
	WO6=window.open("","window6","width=580,height=650,left=0,top=0,scrollbars=no,toolbar=no");
	WO6.focus();
}
function wopenG(){
	var WO8;
	WO7=window.open("","window7","width=max,height=max,left=0,top=0,scrollbars=yes,toolbar=no");
	WO7.focus();
}
function wopenH(){
	var WO9;
	WO8=window.open("","window8","width=800,height=600,left=0,top=0,scrollbars=no,toolbar=no");
	WO8.focus();
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(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=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function leftclick(){
	alert("zzzzzzzzzz");
	location.reload();
}

var tex = "yyyyyyyyyyyyyyyyyyyyy";
if (document.all || document.getElementById || document.layers){
	if (document.layers)
		document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=mod;
}
function mod(e){
	if (document.all)
		var arc = event.srcElement.name;
	else if (document.getElementById || document.layers)
		var arc = e.target.name;
	if (arc == "movie") {
		if (navigator.appName == "Microsoft Internet Explorer" && (event.button == 1 || event.button == 3) || navigator.appName == "Netscape" && (e.which == 1 || e.which == 3)){
			alert(tex);
			return false;
		}
		else if (navigator.userAgent.indexOf("Mac")!=-1)
			return false;
	}
}
