// JavaScript Document

var t;

function sendMail()
{
	var obj = document.getElementById('email');
	if(obj.value ==""){
		alert("Please enter your E-mail address");
		obj.focus();
		return false;
	}
}

function changeImage(f)
	{
	var obj = document.getElementById('picture');
	var img;
	if(f==1){
		img = 'images/prepress.jpg';
		document.getElementById('arrow').style.left = '14px';
	} else if(f==2){
		img = 'images/press.jpg';
		document.getElementById('arrow').style.left = '274px';
	} else if(f==3){
		img = 'images/postpress.jpg';
		document.getElementById('arrow').style.left = '548px';
	}
		obj.style.backgroundImage = 'url('+img+')';
		
	}
	
	
	

var gradientshadow={}
gradientshadow.depth=6 //Depth of shadow in pixels
gradientshadow.containers=[]

gradientshadow.create=function(){
var a = document.all ? document.all : document.getElementsByTagName('*')
for (var i = 0;i < a.length;i++) {
	if (a[i].className == "shadow") {
		for (var x=0; x<gradientshadow.depth; x++){
			var newSd = document.createElement("DIV")
			newSd.className = "shadow_inner"
			newSd.id="shadow"+gradientshadow.containers.length+"_"+x //Each shadow DIV has an id of "shadowL_X" (L=index of target element, X=index of shadow (depth) 
			if (a[i].getAttribute("rel"))
				newSd.style.background = a[i].getAttribute("rel")
			else
				newSd.style.background = "black" //default shadow color if none specified
			document.body.appendChild(newSd)
		}
	gradientshadow.containers[gradientshadow.containers.length]=a[i]
	}
}
gradientshadow.position()
window.onresize=function(){
	gradientshadow.position()
}
}

gradientshadow.position=function(){
if (gradientshadow.containers.length>0){
	for (var i=0; i<gradientshadow.containers.length; i++){
		for (var x=0; x<gradientshadow.depth; x++){
  		var shadowdiv=document.getElementById("shadow"+i+"_"+x)
			shadowdiv.style.width = gradientshadow.containers[i].offsetWidth + "px"
			shadowdiv.style.height = gradientshadow.containers[i].offsetHeight + "px"
			shadowdiv.style.left = gradientshadow.containers[i].offsetLeft + x + "px"
			shadowdiv.style.top = gradientshadow.containers[i].offsetTop + x + "px"
			shadowdiv.style.zIndex = -30
		}
	}
}
}

if (window.addEventListener)
window.addEventListener("load", gradientshadow.create, false)
else if (window.attachEvent)
window.attachEvent("onload", gradientshadow.create)
else if (document.getElementById)
window.onload=gradientshadow.create

function changeit (f,g,h)
	{
		t=h;
	document.getElementById('vr1').style.left="-100px";
	document.getElementById('vr2').style.left="-100px";
	document.getElementById('vr3').style.left="-100px";
	document.getElementById('vr4').style.left="-100px";
	document.getElementById('vr5').style.left="-100px";
	
	document.getElementById('vr_title1').style.display="none";
	document.getElementById('vr_title2').style.display="none";
	document.getElementById('vr_title3').style.display="none";
	document.getElementById('vr_title4').style.display="none";
	document.getElementById('vr_title5').style.display="none";

	document.getElementById('mov').innerHTML = '<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="300" width="400">'+ '<param name="src" value='+f+'>'+'<param name="autoplay" value="true">'+'<param name="type" value="video/quicktime" height="300" width="400">'+'<embed src='+f+' height="300" width="400" autoplay="true" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/">'+'</object>';
	document.getElementById(g).style.left="0";
	document.getElementById(h).style.display="block";
	}
	
function vt_titles(x)
	{
	document.getElementById('vr_title1').style.display="none";
	document.getElementById('vr_title2').style.display="none";
	document.getElementById('vr_title3').style.display="none";
	document.getElementById('vr_title4').style.display="none";
	document.getElementById('vr_title5').style.display="none";

	document.getElementById(x).style.display="block";
	document.getElementById(t).style.display="block";
	}

function hide(y)
	{
	document.getElementById(y).style.display="none";
	document.getElementById(t).style.display="block";
	}