var Names=new Array;
Names[1]="MITROFAN";
Names[2]="JULIAN";
Names[3]="ALEXANDER";
Names[4]="PHILIPP";
Names[5]="ANGELINA";


testP=parent.document.location.search;
Swho=testP.substring(1,2);
Swhat=testP.substring(3,4);
if(!Swho)Swho=1;
if(!Swhat)Swhat='0';

function goInfo(where)
{
parent.document.location="index1.html?"+Swho+"a"+where;
}

var pstring='';

function runSlideShow()
{
if(Swhat==1){alert('Please, select page with images.'); return false;}
howmushstep=0;
Ads= new Array();
for(i=0;i<parent.mainFrame.document.slide.incs.length;i++)
{
if(parent.mainFrame.document.slide.incs[i].checked)
{
howmushstep++;
pstring = pstring + parent.mainFrame.document.slide.incs[i].value + "-";
}
}
if(howmushstep>1)
{
pstring = 'slideshow.html?'+Swho+"a"+Swhat+pstring;
nwin=window.open(pstring,'nwin','fullscreen=0,channelmode=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,width=700,height=700,top=0,left=0'); nwin.focus();
}
else
{
alert('Please, select two or more images for slide show.')
}
pstring='';
}

function selectAllEl()
{
if(Swhat==1){alert('Please, select page with images.'); return false;}
for(i=0;i<parent.mainFrame.document.slide.incs.length;i++)
{
parent.mainFrame.document.slide.incs[i].checked='yes';
}
}

function clearAllEl()
{
if(Swhat==1){alert('Please, select page with images.'); return false;}
for(i=0;i<parent.mainFrame.document.slide.incs.length;i++)
{
parent.mainFrame.document.slide.incs[i].checked='';
}
}

