		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 change_image() {
			var tmp;
			tmp = MM_findObj('ourwork_img');
			tmp.src = src[counter];
			tmp.alt = caption[counter];
			tmp = MM_findObj('ourwork_caption');
			tmp.innerHTML = caption[counter];
			if (counter++ >= caption.length-1)
				counter = 0;
			setTimeout("change_image()", 5000);
		}
		
		function change_splash_image() {
			var img1, tmp, t;
			img_splash = new Array();
			img_splash.push('assets/images/cg_header_2.jpg');
			/*
			img_splash.push('assets/images/dmb_sunrise_1000.jpg');
			img_splash.push('assets/images/dmb_sunset_1000.jpg');
			
			img_splash.push('assets/images/CG www home01.jpg');
			img_splash.push('assets/images/CG www home02.jpg');
			img_splash.push('assets/images/CG www home03.jpg');
			img_splash.push('assets/images/CG www home05.jpg');
			img_splash.push('assets/images/CG www home06.jpg');
			img_splash.push('assets/images/CG www home07.jpg');
			img_splash.push('assets/images/CG www home08.jpg');
			img_splash.push('assets/images/CG www home09.jpg');
			img_splash.push('assets/images/CG www home10.jpg');
			img_splash.push('assets/images/CG www home11.jpg');
			img_splash.push('assets/images/CG www home12.jpg');
			img_splash.push('assets/images/CG www home13.jpg');
			img_splash.push('assets/images/CG www home14.jpg');
			*/

			//img_splash.push('assets/images/dmb_cmy_1000.jpg');
			t = Math.floor(Math.random() * img_splash.length);
			tmp = MM_findObj('splash-image-cg');
			tmp.style.backgroundImage = 'url('+img_splash[t]+')';
		}
		var message="";

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
