// JavaScript Document

var width = 650;
var height = 380;
var imgAr1 = new Array();
var rImg1 = new Array();
imgAr1[0] = "/1.jpg";
imgAr1[1] = "/2.jpg";
imgAr1[2] = "/3.jpg";
imgAr1[3] = "/4.jpg";
imgAr1[4] = "/5.jpg";

var qantas = "<table width='430' border='0'><tr><td valign='top' width='215'><font size='1'>Qantas site was made as a promotional product for business class. The interface was for business lounge where the user could plan their plane trip on the new A380 planes. Everything could be mapped out from meals, taxis and hotels. </td><td valign='top' width='215'><font size='1'>For more information about this site or to launch please click on the links under the images.</td></table>";
var qantasl = "<a href='qantas/qantas.pdf' target='_blank'>case study (.pdf)</a> / <a href="+String.fromCharCode(34)+"#"+String.fromCharCode(34)+" onclick="+String.fromCharCode(34)+"fb.loadAnchor('qantas/qantas site/index.html', 'width:1000px height:700px scrolling:no innerBorder:3');"+String.fromCharCode(34)+">view site</a>";

var global = "<table width='430' border='0'><tr><td valign='top' width='215'><font size='1'>Global com was a redesign of a fictional site. In this project we are required to redesign a site with the target audience in mind. The project was provided by TAFE SA.</td><td valign='top' width='215'><font size='1'>For more information about this site or to launch please click on the links under the images.</td></table>";
var globall = "<a href='global/Global com_casestudy.pdf' target='_blank'>case study (.pdf)</a> / <a href="+String.fromCharCode(34)+"#"+String.fromCharCode(34)+" onclick="+String.fromCharCode(34)+"fb.loadAnchor('global com/Global Com - website/index.html', 'width:1000px height:550px scrolling:no innerBorder:3');"+String.fromCharCode(34)+">view site</a>";

var bmw = "<table width='430' border='0'><tr><td valign='top' width='215'><font size='1'>BMW site was a promotional specifically designed for their target audience who drove the 325i model car. The site was based on a 'click and slide' game and challenged the user to beat the clock. If the user was in the top 5 players they would be in running for a prize for an upgrade for their car.</td><td valign='top' width='215'><font size='1'>For more information about this site or to launch please click on the links under the images.</td></table>";
var bmwl = "<a href='bmw/casestudy/BMW_report.pdf' target='_blank'>case study (.pdf)</a> / <a href="+String.fromCharCode(34)+"#"+String.fromCharCode(34)+" onclick="+String.fromCharCode(34)+"fb.loadAnchor('bmw/bmw - site/index.html', 'width:1000px height:550px scrolling:no innerBorder:3');"+String.fromCharCode(34)+">view site</a>";


var digital = "<table width='430' border='0'><tr><td valign='top' width='215'><font size='1'>Digital com was a site created to help users choose the right type of camera for them. Included in the site is a comparsion list, FAQ and links to where to buy cameras. </td><td valign='top' width='215'><font size='1'>No case study is availiable for this site. To view the site please click the 'view site' link under the photos.</td></table>";
var digitall = "<a href="+String.fromCharCode(34)+"#"+String.fromCharCode(34)+" onclick="+String.fromCharCode(34)+"fb.loadAnchor('digital.com/index.html', 'width:1024 height:768 scrolling:yes innerBorder:3');"+String.fromCharCode(34)+">view site</a>";

var animation = "<table width='430' border='0' cellpadding='2'><tr><td valign='top' width='215'><font size='1'> Character animation was an animation created that revolved around a nursey rhyme. The nursey rhyme was based on 'three blind mice'.The project was provided by TAFE SA.</td><td valign='top' width='215'><font size='1'>For more information about this site or to launch please click on the links under the images.</td></table>";
var animationl = "<a href='animation/animation.pdf' target='_blank'>case study (.pdf)</a> / <a href="+String.fromCharCode(34)+"#"+String.fromCharCode(34)+" onclick="+String.fromCharCode(34)+"fb.loadAnchor('animation/animation.html', 'width:720px height:576px scrolling:no innerBorder:3');"+String.fromCharCode(34)+">view animation</a>";

var logo = "<table width='430' border='0' cellpadding='2'><tr><td valign='top' width='215'><font size='1'>A display of logo's created for myself and other TAFE projects.</td><td valign='top' width='215'><font size='1'>There are no case studies available for this part of the site.</td></table>";

var graphics = "<table width='430' border='0' cellpadding='2'><tr><td valign='top' width='215'><font size='1'>A display of graphics created over the years. They range from vector to raster files. I enjoy playing around with photoshop and illustrator testing the limits of what they can do. Some projects were provided by TAFE SA.</td><td valign='top' width='215'><font size='1'>There are no case studies available for this part of the site.</td></table>";

var photography = "<table width='430' border='0' cellpadding='2'><tr><td valign='top' width='215'><font size='1'>Photographs of my toy collection. I love how my toys can take a life of their own in photographs.</td><td valign='top' width='215'><font size='1'>There are no case studies available for this part of the site.</td></table>";


for(var j = 0; j < imgAr1.length; j++)
{
		rImg1[j] = new Image();
            rImg1[j].src = imgAr1[j];
}

var slide;
function setting(directory1)
{
	directorys = directory1;
	slide = document.getElementById('pic');
	slide.src = directorys + imgAr1[0];
	slide.setAttribute("width",width);
	slide.setAttribute("height",height);
}

var picture = 0;
function slideshow(){
	if(picture < imgAr1.length-1){
		picture=picture+1;
		slide.src = directorys + imgAr1[picture];
	}
}

function prev(){
	if(picture > 0 ){
		picture=picture-1;
		slide.src = directorys + imgAr1[picture];
	}
}

function gotoslide(slidevar, newHTML, newHTML2){
		directorys = slidevar;
		slide.src = directorys + imgAr1[0];
		picture = 0;
	var oldHTML = document.getElementById('txt').innerHTML;
	document.getElementById('txt').innerHTML = newHTML;
		document.getElementById('txt2').innerHTML = newHTML2;
}


function start(){
		slide.src = directorys + imgAr1[0];
		picture = 0;
}

function end(){
		slide.src = directorys + imgAr1[imgAr1.length-1];
		picture = imgAr1.length-1
}

