

function height(){
widsim="none"
wid =screen.width
wids = wid
if(wids > 1100){document.write('<style type="text/css"> @import url("styles12.css") ; </style>')}
else if(wids < 900){document.write('<style type="text/css"> @import url("styles8.css") ; </style>')}
}

var ss=0, ssno=00, ssno2,sst
function sstimer()
{
ss=ss+1
if (ss>35){ss=0}
ssno2=ssno+ss
document.getElementById('imid').src="images/slideshow/" +ssno2+".jpg"
// SMP timer increased from 2000 to 5000
clearTimeout(sst); sst=setTimeout("sstimer()",5000)
}

function menum(){
md='t'
drmenu1 = '<div class="inlin"><a class ="text"  href="index1.html"  target="_top" >Home</a></div> <div id ="menugalery'
drmenu2 ='" class ="list"; onmouseover = showmenudropdown(); onmouseout = hidemenudropdown();> <div class="list menushow1"><a class ="text" href="page_weddings.html" target="_top" >Galleries</a></div> <div id= "menudropdown'
drmenu3 = '" class ="list drop show2" ><div class ="list"><a class ="text" href="page_weddings.html" target="_top"> Weddings&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></div><div class ="list"><a class ="text" href="page_portraits.html" target="_top" >Portraits &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></div><div class ="list"><a class ="text" href="page_landscape.html" target="_top">Landscape &nbsp;&nbsp;&nbsp;</a></div><div class ="list"><a class ="text" href="page_commercial.html" target="_top" >Commercial </a></div><div class ="list"><a class ="text" href="page_art.html" target="_top" >Art &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a> </div></div> </div><div class="inlin"><a class ="text" href="info.html"  target="_top">Information</a></div> <div class="inlin"><a class ="text" href="contact.html"  target="_top">Contact</a></div>'
//<div class="inlinlast"><a class ="text" href="http://www.page29.co.uk" target="_top">Page29</a></div> '


document.write(drmenu1)
document.write('t')
document.write(drmenu2)
document.write('t')
document.write(drmenu3)

document.write('<div id="menfot">')
document.write(drmenu1)
document.write('b')
document.write(drmenu2)
document.write('b')
document.write(drmenu3)
document.write('</div>')
}

function galmenon(){
document.getElementById('menu3').style.visibility= "visible";
document.getElementById('menu2').style.visibility= "hidden"
document.getElementById('galerymenuetable').style.visibility= "hidden";
document.getElementById('dispquote').style.visibility= "visible";
document.getElementById('showbigim').style.visibility= "hidden";
document.getElementById('infomation').style.visibility= "hidden";
//document.getElementById('menuh').style.visibility= "hidden";
}


function galmenoff(){
//document.getElementById('menu3').style.visibility= "hidden";
//document.getElementById('menu2').style.visibility= "visible";
//document.getElementById('galerymenuetable').style.visibility= "visible";
//document.getElementById('menup1').style.display= "none";
//document.getElementById('menui1').style.display= "list-item";
//document.getElementById('infomation').style.visibility= "hidden";
//document.getElementById('dispquote').style.visibility= "visible";
return false;
}

var swh = 600, sww = 800, spw = 800, sph = 600, addimgid, dirname, dirname2, disadd, imn, imn2

function showbig(imn,dirname){
dirname2 = dirname;
imn2 = imn*1
document.getElementById('dispquote').style.visibility= "hidden";
document.getElementById('nextprev').style.visibility= "visible";
document.getElementById('showbigim').style.visibility= "hidden";
document.getElementById('sblable').style.visibility= "visible";

sww = 538
swh = 441
swr = sww/swh
spw = sizew[imn]
sph = sizeh[imn]
spr=spw/sph
imnm = Math.abs(imn)
spr = (sizew[imnm]/sizeh[imnm])
//disadd = document.getElementById('disimg3');

while(document.getElementById('showbigim').firstChild){document.getElementById('showbigim').removeChild(document.getElementById('showbigim').firstChild);}

var addimg = document.createElement('img');

addimg.setAttribute('id', 'disimg3');
addimg.setAttribute('src', 'images/'+ dirname + '/'+imn+'.jpg');
document.getElementById("showbigim").appendChild(addimg);


disadd = document.getElementById('disimg3');
spw = swh * spr
heighform = Math.floor(sww/spr)+"px"

if(spr<swr ){  
	disadd.style.width= swh*spr+"px"; 
	disadd.style.height=swh+"px";	
	spw = swh * spr
	disadd.style.top="0px" ;
	disadd.style.marginTop="0px";
	disadd.style.left= sww/2+"px" ;
	disadd.style.marginLeft=-spw/2+"px";
}
else{disadd.style.height= heighform;  disadd.style.width= sww+"px"; 
	sph = sww / spr
	disadd.style.left="0"+"px" ;disadd.style.marginLeft="0"+"px";
	disadd.style.top=swh-sph+"px"
		if (sph<340 ) {disadd.style.top = "126px"}
}
document.getElementById('disimg3').src='images/'+ dirname + '/'+imn+".jpg"

document.getElementById('showbigim').style.visibility= "visible";
return false;
}
function prev(){
imn2--
if(imn2<1){imn2=12}

imn2 ="0"+imn2.toString()
imn3= (imn2.length)
imn4=imn2.substring(imn3-2, imn3 )
showbig(imn4, dirname2)
}

function back(){
document.getElementById('dispquote').style.visibility= "visible";
document.getElementById('nextprev').style.visibility= "hidden";
document.getElementById('showbigim').style.visibility= "hidden";
document.getElementById('sblable').style.visibility= "hidden";
}
function next(){

imn2++
if(imn2>12){imn2=1}

imn2 ="0"+imn2.toString()
imn3= (imn2.length)
imn4=imn2.substring(imn3-2, imn3 )
showbig(imn4, dirname2)
}


function showtxt(){
dispquote.style.visibility= "hidden";
showbigim.style.visibility= "hidden";
infomation.style.visibility= "visible";
galerymenuetable.style.visibility= "hidden";
//menu2.style.visibility= "hidden";
menui1.style.display= "none";
menup1.style.display= "list-item";
//menuon1.style.display= "none";
//menu0ff1.style.display= "none";
return false;
}

function showemail(){
m1="@"
m2="mailto: "
m6="photography."
m5="co.uk"
n7= "contact"
n3 = "fisher-"


document.write('you can send an e-mail to:-   ')
document.write('<a href= "'+ m2) 
document.write(n7+m1)
document.write(n3+m6)
document.write(m5+'">')
document.write(n7+m1+n3+m6+m5)
document.write('</a>' )
}

function showemail29(){
m1="@"
m2="mailto: "
m6="29."
m5="co.uk"
n7= "info"
n3 = "page"


document.write('you can send an e-mail to:-   ')
document.write('<a href= "'+ m2) 
document.write(n7+m1)
document.write(n3+m6)
document.write(m5+'">')
document.write(n7+m1+n3+m6+m5)
document.write('</a>' )
}

function showmenudropdown(){
document.getElementById('menudropdownt').style.visibility= "visible";
document.getElementById('menudropdownb').style.visibility= "visible";
}

function hidemenudropdown(){
document.getElementById('menudropdownt').style.visibility= "hidden";
document.getElementById('menudropdownb').style.visibility= "hidden";
}
