//* viewer window popup (C) undabo studios 2005
<!--- hide script from old browsers


function openviewer(image,name,features) { //v2.0
	newWindow = window.open("../scripts/viewer.php?load=" + image,name,features)
	newWindow.document.close()
	if (parseInt(navigator.appVersion.charAt(0)) > 2) {
	newWindow.focus()
	}
}

function BoxContainerOpen() { 
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' id='BorderBox'><tr><td align='left' valign='top' width='11' height='11'><img src='../image/box_gtl.gif' width='11' height='11'></td><td background='../image/box_gt.gif'></td><td align='right' valign='top' width='11' height='11'><img src='../image/box_gtr.gif' width='11' height='11'></td></tr><tr><td background='../image/box_gl.gif'></td><td><table width='100%' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'><tr><td><table border='0' cellspacing='0' cellpadding='0'><tr><td>")
}

function BoxContainerClose() { 
	document.write("</td></tr></table></td></tr></table></td><td background='../image/box_gr.gif'></td></tr><tr> <td valign='bottom' align='left' width='11' height='11'><img src='../image/box_gbl.gif' width='11' height='11'></td><td background='../image/box_gb.gif'></td><td align='right' valign='bottom' width='11' height='11'><img src='../image/box_gbr.gif' width='11' height='11'></td></tr></table>")
}


function VideoContainerOpen() { 
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' id='BorderBox'><tr><td align='left' valign='top' width='11' height='11'><img src='../image/box_gtl.gif' width='11' height='11'></td><td background='../image/box_gt.gif'></td><td align='right' valign='top' width='11' height='11'><img src='../image/box_gtr.gif' width='11' height='11'></td></tr><tr><td background='../image/box_gl.gif'></td><td><table width='100%' border='0' cellspacing='0' cellpadding='5' align='center' bgcolor='#FFFFFF'><tr><td><table width='100%' border='0' cellspacing='0' cellpadding='0' id='SplitBox' ><tr><td align='left' valign='middle' width='25' height='25'><img src='../image/icon_quicktime_large.gif' width='50' height='46'></td><td><div align='right'><table border='0' cellspacing='0' cellpadding='2'><tr><td>")
}

function VideoContainerClose() { 
	document.write("</td></tr></table></div></td></tr></table></td></tr></table></td><td background='../image/box_gr.gif'></td></tr><tr> <td valign='bottom' align='left' width='11' height='11'><img src='../image/box_gbl.gif' width='11' height='11'></td><td background='../image/box_gb.gif'></td><td align='right' valign='bottom' width='11' height='11'><img src='../image/box_gbr.gif' width='11' height='11'></td></tr></table>")
}


function VideoContainerBreak() { 
	document.write("</td></tr><tr><td>&nbsp;</td></tr><tr><td>")
}

function writevideolinkORIGINAL(URL,description,size,other) {
	if ((URL.search(/http/i)) == 0)   { 
	} else 
	if (URL == "undabo_reel_300x240.mp4") { 
	URL = "../showreel/" + URL
	} else {
	URL = "../news/" + URL
	}
	if (other == undefined ){
	other = ""
	document.write ("<a href='" + URL + "' class='articletext' target='" + URL + "'><img src='../image/icon_play.gif' height='12' width='12' border='0' valign='absmiddle'></td><td width='100'><a href='" + URL + "' class='articletext' target='" + URL + "'>Movie Download - </a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + description + "</b>&nbsp;</a></td><td width='60'><a href='" + URL + "' class='articletext' target='" + URL + "'>(" + size + ")</a><br></td></tr><tr><td>")	
	} else {
	document.write ("<a href='" + URL + "' class='articletext' target='" + URL + "'><img src='../image/icon_play.gif' height='12' width='12' border='0' valign='absmiddle'></td><td width='100'><a href='" + URL + "' class='articletext' target='" + URL + "'>Movie Download - </a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + description + "</b>&nbsp;</a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + other + "</b>&nbsp;</a></td><td width='60'><a href='" + URL + "' class='articletext' target='" + URL + "'>(" + size + ")</a><br></td></tr><tr><td>")	
	}
}


function writevideolink2(URL,description,size,other) {
	if (other == undefined ){
	other = ""
	document.write ("<a href='" + URL + "' class='articletext' target='" + URL + "'><img src='../image/icon_play.gif' height='12' width='12' border='0' valign='absmiddle'></td><td width='100'><a href='" + URL + "' class='articletext' target='" + URL + "'>Movie Download - </a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + description + "</b>&nbsp;</a></td><td width='60'><a href='" + URL + "' class='articletext' target='" + URL + "'>(" + size + ")</a><br></td></tr><tr><td>")	
	} else {
	document.write ("<a href='" + URL + "' class='articletext' target='" + URL + "'><img src='../image/icon_play.gif' height='12' width='12' border='0' valign='absmiddle'></td><td width='100'><a href='" + URL + "' class='articletext' target='" + URL + "'>Movie Download - </a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + description + "</b>&nbsp;</a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + other + "</b>&nbsp;</a></td><td width='60'><a href='" + URL + "' class='articletext' target='" + URL + "'>(" + size + ")</a><br></td></tr><tr><td>")	
	}
}

function podVideoContainerOpen(title,thumb) { 
	if (thumb == undefined ){
	thumb = "../image/icon_articlecontinue.gif"
	}
	if (title == undefined ){
	title = "Tile"
	}
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'><tr><td><span class='articletitle'>" + title + "</span><hr><table width='100%' border='0' cellspacing='0' cellpadding='0' id='SplitBox' ><tr><td align='left' valign='top' width='100' height='42'><img src='" + thumb + "' height='42' width='75'></td><td><div align='right'><table border='0' cellspacing='0' cellpadding='2' width='100%'><tr class='tablehighlight'><td width='10'>")
}
function podVideoContainerClose() { 
	document.write("</td></tr></table></td></tr></table></div><hr></td></tr></table>")
}

function DownloadContainerOpen(title,thumb) { 
	if (thumb == undefined ){
	thumb = "../image/icon_articlecontinue.gif"
	}
	if (title == undefined ){
	title = "Tile"
	}
	document.write("<table width='100%' border='0' cellspacing='0' cellpadding='0' align='center' bgcolor='#FFFFFF'><tr><td><span class='articletitle'>" + title + "</span><hr><table width='100%' border='0' cellspacing='0' cellpadding='0' id='SplitBox' ><tr><td align='left' valign='top' width='160' height='25'><img src='" + thumb + "' border='1'></td><td><div align='right'><table border='0' cellspacing='0' cellpadding='2'><tr class='tablehighlight'><td width='10'>")
}
function writelink(URL,description,size,other) {
	var Icon
	URL = "../" + URL
	if (description == "PSD") {
	Icon = "../image/icon_psd.gif"}
else
	if (description == "EPS") {
	Icon = "../image/icon_eps.gif"}
	else {
	Icon = "../image/icon_articlecontinue.gif"}

	if (other == undefined ){
	other = ""
	document.write ("<a href='" + URL + "' class='articletext' target='" + URL + "'><img src='" + Icon + "' border='0' valign='absmiddle'></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'>Download </a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + description + "</b>&nbsp;</a></td><td width='60'><a href='" + URL + "' class='articletext' target='" + URL + "'>(" + size + ")</a><br></td></tr><tr><td>")
	} else {
	document.write ("<a href='" + URL + "' class='articletext' target='" + URL + "'><img src='" + Icon + "' border='0' valign='absmiddle'></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'>Download </a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + description + "</b>&nbsp;</a></td><td><a href='" + URL + "' class='articletext' target='" + URL + "'><b>" + other + "</b>&nbsp;</a></td><td width='60'><a href='" + URL + "' class='articletext' target='" + URL + "'>(" + size + ")</a><br></td></tr><tr><td>")	
	}
}
function DownloadContainerClose() { 
	document.write("</td></tr></table></td></tr></table></div><hr></td></tr></table>")
}


function writevideolink(URL,description,size,other) { //v3.0 
if (URL == "Undabo_SimonBrown_Reel.mp4") {   
	URL = "../simonbrown/" + URL
	} else 
if ((URL.search(/jankaslawik/i)) == 0)   { 
	URL = "../jankaslawik/" + URL
	} else 
if ((URL.search(/martinashford/i)) == 0)   { 
	URL = "../martinashford/" + URL
	} else 
if ((URL.search(/mark/i)) == 0)   {
	URL = "../markkessler/" + URL
	} else {
	URL = "" + URL
	}
	if (other == undefined ){
	other = ""
	document.write ("<a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'><img src='../image/icon_play.gif' height='12' width='12' border='0' valign='absmiddle'></td><td width='100'><a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'>Movie Viewer - </a></td><td><a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'><b>" + description + " -</b></a></td><td width='65'><a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'><div align='right'>(" + size + ")</div></a></td></tr><tr><td>")	
	} else {
	document.write ("<a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'><img src='../image/icon_play.gif' height='12' width='12' border='0' valign='absmiddle'></td><td width='100'><a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'>Movie Viewer - </a></td><td><a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'><b>" + description + " -</b></a></td><td><a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'><b>" + other + "</b>&nbsp;</a></td><td width='65'><a href='#' class='articletext' onClick='openmovieviewer(&quot;" + URL + "&quot; , &quot;" + description + "&quot; , &quot;" + description + "&quot;)'><div align='right'>(" + size + ")</div></a></td></tr><tr><td>")	
	}
}


function openmovieviewer(movie,name,size) { //v2.0
	fsmode = "no"
	if (size == "Large") { 
	wsize = "640"
	hsize = "500"
	size = "width=" + wsize + ",height=" + hsize
	frame = "WIDTH='100%' HEIGHT='100%'"
	} else
	if (size == "Small") { 
	wsize = "320"
	hsize = "320"
	size = "width=" + wsize + ",height=" + hsize 
	frame = "WIDTH='100%' HEIGHT='100%'"
	} 
  	else {
	wsize = "320"
	hsize = "290"
	size = "width=" + wsize + ",height=" + hsize 
	frame = "WIDTH='100%' HEIGHT='100%'"
	}
	var displaywidth = screen.width
	var displayheight = screen.height
	newWindow = window.open("../scripts/movieviewer.php?load=" + movie + "&size=" + size + "&fsmode=" + fsmode,name,size + ",channelmode=no,directories=no,location=no,menubar=no,resizable=no,scrollbars=no,status=no,titlebar=no,toolbar=no,top=" + ((displayheight / 2) - (hsize / 2)) + ",left=" + ((displaywidth / 2) - (wsize / 2)) + ",fullscreen=" + fsmode)
	newWindow.document.close()
	if (parseInt(navigator.appVersion.charAt(0)) > 2) {
	newWindow.focus()

	}
}

// end hiding from old browsers -->

