/*  ----------------------------------  */
/*  --  GraphicPrintSource website  --  */
/*  --                              --  */
/*  --       JanaScript Routines    --  */ 
/*  ----------------------------------  */

var bookTitles=new Array()
bookTitles[0]="aboutUs";
bookTitles[1]="tShirtInspiration";
bookTitles[2]="printInspiration";
bookTitles[3]="graphicInspiration";
bookTitles[4]="babyPrints";
bookTitles[5]="malePrints";
bookTitles[6]="vintagePrints";
bookTitles[7]="outdoorGraphics";
bookTitles[8]="decorativeGraphics";
bookTitles[9]="ornamentalPrint";
bookTitles[10]="globalEthnics";
bookTitles[11]="paintedGraphics";
bookTitles[12]="tropicalPrints";
bookTitles[13]="ecoInspirations";
bookTitles[14]="none"
bookTitles[15]="kidsInspirations"
bookTitles[16]="summerGraphicInspiration";
bookTitles[17]="kidsPrints";
bookTitles[18]="graphicInspiration2";
// var currentBook=0;

function layoutThumbs (numvar) {
	currentBook=numvar
document.getElementById("imageBox").innerHTML = "<table width=\"457\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td rowspan=\"6\"><img src=\"pages/"+bookTitles[currentBook]+"/cover1.jpg\" id=\"mainCover\"\" /></td></tr><tr><td valign=\"top\"><img src=\"pages/"+bookTitles[currentBook]+"/thumb1.jpg\" align=\"left\" id=\"image1\" onMouseOver=\"hoverThumb(1)\" onMouseOut=\"outThumb(1)\" onMouseDown=\"changeCover(1)\" /></td></tr><tr><td valign=\"top\"><img src=\"pages/"+bookTitles[currentBook]+"/thumb2.jpg\" align=\"left\" id=\"image2\" onMouseOver=\"hoverThumb(2)\" onMouseOut=\"outThumb(2)\" onMouseDown=\"changeCover(2)\" /></td></tr><tr><td><img src=\"pages/"+bookTitles[currentBook]+"/thumb3.jpg\" align=\"left\" id=\"image3\" onMouseOver=\"hoverThumb(3)\" onMouseOut=\"outThumb(3)\" onMouseDown=\"changeCover(3)\" /></td></tr><tr><td valign=\"bottom\"><img src=\"pages/"+bookTitles[currentBook]+"/thumb4.jpg\" align=\"left\" id=\"image4\" onMouseOver=\"hoverThumb(4)\" onMouseOut=\"outThumb(4)\" onMouseDown=\"changeCover(4)\" /></td></tr><tr><td valign=\"bottom\"><img src=\"pages/"+bookTitles[currentBook]+"/thumb5.jpg\" align=\"left\" id=\"image5\" onMouseOver=\"hoverThumb(5)\" onMouseOut=\"outThumb(5)\" onMouseDown=\"changeCover(5)\" /></td></tr></table>"
}

function changeText (clickFlag) {
if (clickFlag==1) {
currentBook=12;
document.getElementById("dynamicContent").innerHTML = "<div style=\"background-image:url('pages/all/headerBg.gif');background-repeat:repeat-x;height:19px;width:275px;left:-19px;position:relative;\"><img src=\"pages/tropicalPrints/headertext.gif\" align=\"left\" /></div><b>Transport your designs to warmer climates with this bright and exciting collection of tropical prints, taking inspiration from tropical fruit, flowers and birds, the relaxing pages are full of rich and beautiful colours with prints that look good enough to eat!</b><br /><br />Motivated by Hawaiian Luaus and tropical island sunshine, watermelons and pineapples to the hibiscus flower and palm frond, the prints in this book will suit a range of fashion and lifestyle products for men, women and children, from swimwear, and resort style clothing to homewares and linen.<br /><br />All the elements in the book can be accessed with ease on the fully vectorised CD.";
setupThumbs(currentBook);
currentPage=12;
return currentPage;
}

if (clickFlag==2) {
currentPage=10;
document.getElementById("dynamicContent").innerHTML = "<div style=\"background-image:url('pages/all/headerBg.gif');background-repeat:repeat-x;height:19px;width:275px;left:-19px;position:relative;\"><img src=\"pages/"+bookTitles[currentPage]+"/headertext.gif\" align=\"left\" /></div><b>A versatile collection of all over prints, the Global Ethnic book provides a selection of print ideas with the ability to create thousands of inspirations and styles to suit your requirements. </b><br /><br />This collection of usable prints will inspire not only fashion and fabric designs, but also home wares, accessories, jewellery, wallpaper, upholstery and bedding creations.<br /><br />Page after page is dedicated to prints influenced by diverse cultures from across the globe. With decorative African and Arabic tribal connotations, many have a hand drawn aesthetic, ready to inspire your future designs.<br /><br />All the elements in the book can be accessed with ease on the fully vectorised CD.";
setupThumbs(currentPage);
currentPage=10;
return currentPage;
}

if (clickFlag==3) {
currentPage=11;
document.getElementById("dynamicContent").innerHTML = "<div style=\"background-image:url('pages/all/headerBg.gif');background-repeat:repeat-x;height:19px;width:275px;left:-19px;position:relative;\"><img src=\"pages/"+bookTitles[currentPage]+"/headertext.gif\" align=\"left\" /></div><b>An array of bespoke hand drawn mixed media designs, providing thousands of ideas, inspirations and design options.</b><br /><br />The selection of beautifully crafted graphics and prints offer their use for t-shirt placements, or can be deconstructed to create further design ideas for fashion and interiors. Inspiration ranges from flora and fauna to tropical travel destinations, and even music and traditional tattoos.<br /><br />A variety of techniques, including various hand drawn and painting effects, culminate in this innovative, bespoke collection of fully useable prints.<br /><br />All the elements in the book can be accessed with ease on the fully vectorised CD.";
setupThumbs(currentPage);
currentPage=11;
return currentPage;
}

if (clickFlag==4) {
currentPage=15;
document.getElementById("dynamicContent").innerHTML = "<div style=\"background-image:url('pages/all/headerBg.gif');background-repeat:repeat-x;height:19px;width:275px;left:-19px;position:relative;\"><img src=\"pages/"+bookTitles[currentPage]+"/headertext.gif\" align=\"left\" /></div><b>An assortment of graphic and print designs motivated by the younger generation, Kids Inspiration provides hundreds of design ideas for both boys and girls aged from toddler to tween. </b><br /><br />For the active little boy who loves everything from the outdoors, monsters and car racing to jungle animals and punk rock, Kids Inspiration has the design answer! And for our precious little girls, from surfer chick to sports fan, pretty butterflies and tropical florals to the wild child inside, Kids Inspiration delivers! <br /><br />All the elements in the book can be accessed with ease on the fully vectorised CD.";
setupThumbs(currentPage);
currentPage=13;
return currentPage;
}

if (clickFlag==5) {
currentPage=16;
document.getElementById("dynamicContent").innerHTML = "<div style=\"background-image:url('pages/all/headerBg.gif');background-repeat:repeat-x;height:19px;width:255px;left:-19px;position:relative;\"><img src=\"pages/"+bookTitles[currentPage]+"/headertext.gif\" align=\"left\" /></div><b>Whether surfing, sunshine, palm trees, the outdoors or tropical climates remind you of summer, this inspired range of seasonal graphic designs will brighten up your t-shirt and associated apparel ranges for those long, hot summer days ahead.</b><br />Using a variety of influences and techniques from vintage to retro modern, the diversity of graphics and individual elements will suit a wide range of ages and both genders.  You can't help but be transported to the surfing shores of Waikiki beach, the romantic sunsets on Malibu sands, or the party scene at Copacabana.  Summer is permanently at your fingertips within the pages of Summer Tee's.</p><p>All the elements in the book can be accessed with ease on the fully vectorised CD.</p>";
setupThumbs(currentPage);
currentPage=16;
return currentPage;
}

if (clickFlag==6) {
currentPage=17;
document.getElementById("dynamicContent").innerHTML = "<div style=\"background-image:url('pages/all/headerBg.gif');background-repeat:repeat-x;height:19px;width:255px;left:-19px;position:relative;\"><img src=\"pages/"+bookTitles[currentPage]+"/headertext.gif\" align=\"left\" /></div><p><b>An assortment of print designs motivated by the younger generation, Kids Prints offers instant all-over print solutions which can be applied to fashion fabrics or any printable surface such as cards, paper and home furnishings for both boys and girls aged from toddler to tween.</b></p><p>The prints are created using timeless elements that can be re-coloured according to taste, rearranged to make new designs or simply used to drive the imagination of the purchaser.</p><p>There are 144 stunning pages of patterns which are supplied on the accompanying CD as editable scaleable vector art. The Illustrator 7 files can be opened in most vector based drawing packages.</p>";
setupThumbs(currentPage);
currentPage=17;
return currentPage;
}

if (clickFlag==7) {
currentPage=18;
document.getElementById("dynamicContent").innerHTML = "<div style=\"background-image:url('pages/all/headerBg.gif');background-repeat:repeat-x;height:19px;width:255px;left:-19px;position:relative;\"><img src=\"pages/"+bookTitles[currentPage]+"/headertext.gif\" align=\"left\" /></div><p><b>Graphic Inspiration has been compiled by a talented team of artists who specialize in creating highly desirable commercial imagery with hand drawn appeal.</b></p><p>This superb book contains hundreds of high quality placements for use in menswear and on a wide variety of printable merchandise. This 144 page image library covers a diverse range of illustrative genres including: botanical, tattoos, exotic holidays & destinations, rock and roll, advertising, Wild West, nightlife, sport and surfing.</p><p>Every placement page is supplied on the accompanying CD, in Illustrator 7 (ai) format. The editable files can be opened in most vector based drawing packages.</p>";
setupThumbs(currentPage);
currentPage=18;
return currentPage;
}

}

function setupThumbs(book) {
	changeFrontpage(book);
	for (x=0;x<=4;x++){
		y=x+1;
		document.getElementById("image"+y).src="pages/"+bookTitles[book]+"/thumb"+y+".jpg";
	}
	currentBook=book;
	return currentBook;
}
function changeFrontpage (n) {
document.getElementById("mainCover").src="pages/"+bookTitles[n]+"/cover1.jpg";
}
function changeCover (n) {
document.getElementById("mainCover").src="pages/"+bookTitles[currentBook]+"/cover"+n+".jpg";
}
function hoverThumb (n) {
document.getElementById("image"+n).src="pages/"+bookTitles[currentBook]+"/thumb"+n+"Over.jpg"
}
function outThumb(n){
document.getElementById("image"+n).src="pages/"+bookTitles[currentBook]+"/thumb"+n+".jpg"
}

// nasty dreamweaver functions
		function MM_swapImgRestore() { //v3.0
		  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
		}
		function MM_preloadImages() { //v3.0
		  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
		    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
		    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
		}
		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 MM_swapImage() { //v3.0
		  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
		   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
		}

