// JavaScript Document

// URLs for the Tools
var win2Opts = 'resizable=no,status=n0,menubar=no,scrollbars=YEs,width=400,height=400';
var winOpts = 'resizable=no,status=no,menubar=no,scrollbars=yes,width=900,height=700';
//var server = "http://localhost/jen-cook-new/";
var server = "http://www.jen-cook.com/";


// Swimwear url's
var swimGallery1 = server + "images/swimwear/gallery1/gallery.php";
var swimGallery2 = server + "images/swimwear/gallery2/gallery.php";
var swimGallery3 = server + "images/swimwear/gallery3/gallery.php";
var swimGallery4 = server + "images/swimwear/gallery4/gallery.php";
var swimGallery5 = server + "images/swimwear/gallery5/gallery.php";
var swimGallery6 = server + "images/swimwear/gallery6/gallery.php";
var swimGallery7 = server + "images/swimwear/gallery7/gallery.php";
var swimGallery8 = server + "images/swimwear/gallery8/gallery.php";
var swimGallery9 = server + "images/swimwear/gallery9/gallery.php";
var swimGallery10 = server + "images/swimwear/gallery10/gallery.php";
var swimGallery11 = server + "images/swimwear/gallery11/gallery.php";
var swimGallery12 = server + "images/swimwear/gallery12/gallery.php";
var swimGallery13 = server + "images/swimwear/gallery13/gallery.php";
var swimGallery14 = server + "images/swimwear/gallery14/gallery.php";
var swimGallery15 = server + "images/swimwear/gallery15/gallery.php";
var swimGallery16 = server + "images/swimwear/gallery16/gallery.php";
var swimGallery17 = server + "images/swimwear/gallery17/gallery.php";
var swimGallery18 = server + "images/swimwear/gallery18/gallery.php";

// Candid url's
var canGallery1 = server + "images/candid/gallery1/gallery.php";
var canGallery2 = server + "images/candid/gallery2/gallery.php";
var canGallery3 = server + "images/candid/gallery3/gallery.php";
var canGallery4 = server + "images/candid/gallery4/gallery.php";
var canGallery5 = server + "images/candid/gallery5/gallery.php";
var canGallery6 = server + "images/candid/gallery6/gallery.php";
var canGallery7 = server + "images/candid/gallery7/gallery.php";
var canGallery8 = server + "images/candid/gallery8/gallery.php";
var canGallery9 = server + "images/candid/gallery9/gallery.php";
var canGallery10 = server + "images/candid/gallery10/gallery.php";
var canGallery11 = server + "images/candid/gallery11/gallery.php";
var canGallery12 = server + "images/candid/gallery12/gallery.php";
var canGallery13 = server + "images/candid/gallery13/gallery.php";
var canGallery14 = server + "images/candid/gallery14/gallery.php";
var canGallery15 = server + "images/candid/gallery15/gallery.php";
var canGallery16 = server + "images/candid/gallery16/gallery.php";
var canGallery17 = server + "images/candid/gallery17/gallery.php";
var canGallery18 = server + "images/candid/gallery18/gallery.php";

// lingerie url's
var linGallery1 = server + "images/lingerie/gallery1/gallery.php";
var linGallery2 = server + "images/lingerie/gallery2/gallery.php";
var linGallery3 = server + "images/lingerie/gallery3/gallery.php";
var linGallery4 = server + "images/lingerie/gallery4/gallery.php";
var linGallery5 = server + "images/lingerie/gallery5/gallery.php";
var linGallery6 = server + "images/lingerie/gallery6/gallery.php";
var linGallery7 = server + "images/lingerie/gallery7/gallery.php";
var linGallery8 = server + "images/lingerie/gallery8/gallery.php";
var linGallery9 = server + "images/lingerie/gallery9/gallery.php";
var linGallery10 = server + "images/lingerie/gallery10/gallery.php";
var linGallery11 = server + "images/lingerie/gallery11/gallery.php";
var linGallery12 = server + "images/lingerie/gallery12/gallery.php";
var linGallery13 = server + "images/lingerie/gallery13/gallery.php";
var linGallery14 = server + "images/lingerie/gallery14/gallery.php";
var linGallery15 = server + "images/lingerie/gallery15/gallery.php";
var linGallery16 = server + "images/lingerie/gallery16/gallery.php";
var linGallery17 = server + "images/lingerie/gallery17/gallery.php";
var linGallery18 = server + "images/lingerie/gallery18/gallery.php";

// miscellaneous url's
var misGallery1 = server + "images/miscellaneous/gallery1/gallery.php";
var misGallery2 = server + "images/miscellaneous/gallery2/gallery.php";
var misGallery3 = server + "images/miscellaneous/gallery3/gallery.php";
var misGallery4 = server + "images/miscellaneous/gallery4/gallery.php";
var misGallery5 = server + "images/miscellaneous/gallery5/gallery.php";
var misGallery6 = server + "images/miscellaneous/gallery6/gallery.php";
var misGallery7 = server + "images/miscellaneous/gallery7/gallery.php";
var misGallery8 = server + "images/miscellaneous/gallery8/gallery.php";
var misGallery9 = server + "images/miscellaneous/gallery9/gallery.php";
var misGallery10 = server + "images/miscellaneous/gallery10/gallery.php";
var misGallery11 = server + "images/miscellaneous/gallery11/gallery.php";
var misGallery12 = server + "images/miscellaneous/gallery12/gallery.php";
var misGallery13 = server + "images/miscellaneous/gallery13/gallery.php";
var misGallery14 = server + "images/miscellaneous/gallery14/gallery.php";
var misGallery15 = server + "images/miscellaneous/gallery15/gallery.php";
var misGallery16 = server + "images/miscellaneous/gallery16/gallery.php";
var misGallery17 = server + "images/miscellaneous/gallery17/gallery.php";
var misGallery18 = server + "images/miscellaneous/gallery18/gallery.php";

//Miscellaneous
function openmisGallery1() {
	window.open(misGallery1,"Miscellaneous",winOpts); 
} 
function openmisGallery2() {
	window.open(misGallery2,"Miscellaneous",winOpts); 
} 
function openmisGallery3() {
	window.open(misGallery3,"Miscellaneous",winOpts); 
} 
function openmisGallery4() {
	window.open(misGallery4,"Miscellaneous",winOpts); 
} 
function openmisGallery5() {
	window.open(misGallery5,"Miscellaneous",winOpts); 
} 
function openmisGallery6() {
	window.open(misGallery6,"Miscellaneous",winOpts); 
} 
function openmisGallery7() {
	window.open(misGallery7,"Miscellaneous",winOpts); 
} 
function openmisGallery8() {
	window.open(misGallery8,"Miscellaneous",winOpts); 
} 
function openmisGallery9() {
	window.open(misGallery9,"Miscellaneous",winOpts); 
} 
function openmisGallery10() {
	window.open(misGallery10,"Miscellaneous",winOpts); 
} 
function openmisGallery11() {
	window.open(misGallery11,"Miscellaneous",winOpts); 
} 
function openmisGallery12() {
	window.open(misGallery12,"Miscellaneous",winOpts); 
} 
function openmisGallery13() {
	window.open(misGallery13,"Miscellaneous",winOpts); 
} 
function openmisGallery14() {
	window.open(misGallery14,"Miscellaneous",winOpts); 
} 
function openmisGallery15() {
	window.open(misGallery15,"Miscellaneous",winOpts); 
} 
function openmisGallery16() {
	window.open(misGallery16,"Miscellaneous",winOpts); 
} 
function openmisGallery17() {
	window.open(misGallery17,"Miscellaneous",winOpts); 
} 
function openmisGallery18() {
	window.open(misGallery18,"Miscellaneous",winOpts); 
} 


// Lingerie
function openlinGallery1() {
	window.open(linGallery1,"lingerie",winOpts); 
} 
function openlinGallery2() {
	window.open(linGallery2,"lingerie",winOpts); 
} 
function openlinGallery3() {
	window.open(linGallery3,"lingerie",winOpts); 
} 
function openlinGallery4() {
	window.open(linGallery4,"lingerie",winOpts); 
} 
function openlinGallery5() {
	window.open(linGallery5,"lingerie",winOpts); 
} 
function openlinGallery6() {
	window.open(linGallery6,"lingerie",winOpts); 
} 
function openlinGallery7() {
	window.open(linGallery7,"lingerie",winOpts); 
} 
function openlinGallery8() {
	window.open(linGallery8,"lingerie",winOpts); 
} 
function openlinGallery9() {
	window.open(linGallery9,"lingerie",winOpts); 
} 
function openlinGallery10() {
	window.open(linGallery10,"lingerie",winOpts); 
} 
function openlinGallery11() {
	window.open(linGallery11,"lingerie",winOpts); 
} 
function openlinGallery12() {
	window.open(linGallery12,"lingerie",winOpts); 
} 
function openlinGallery13() {
	window.open(linGallery13,"lingerie",winOpts); 
} 
function openlinGallery14() {
	window.open(linGallery14,"lingerie",winOpts); 
} 
function openlinGallery15() {
	window.open(linGallery15,"lingerie",winOpts); 
} 
function openlinGallery16() {
	window.open(linGallery16,"lingerie",winOpts); 
} 
function openlinGallery17() {
	window.open(linGallery17,"lingerie",winOpts); 
} 
function openlinGallery18() {
	window.open(linGallery18,"lingerie",winOpts); 
} 



// Candid
function opencanGallery1() {
	window.open(canGallery1,"Candid",winOpts); 
} 
function opencanGallery2() {
	window.open(canGallery2,"Candid",winOpts); 
} 
function opencanGallery3() {
	window.open(canGallery3,"Candid",winOpts); 
} 
function opencanGallery4() {
	window.open(canGallery4,"Candid",winOpts); 
} 
function opencanGallery5() {
	window.open(canGallery5,"Candid",winOpts); 
} 
function opencanGallery6() {
	window.open(canGallery6,"Candid",winOpts); 
} 
function opencanGallery7() {
	window.open(canGallery7,"Candid",winOpts); 
} 
function opencanGallery8() {
	window.open(canGallery8,"Candid",winOpts); 
} 
function opencanGallery9() {
	window.open(canGallery9,"Candid",winOpts); 
} 
function opencanGallery10() {
	window.open(canGallery10,"Candid",winOpts); 
} 
function opencanGallery11() {
	window.open(canGallery11,"Candid",winOpts); 
} 
function opencanGallery12() {
	window.open(canGallery12,"Candid",winOpts); 
} 
function opencanGallery13() {
	window.open(canGallery13,"Candid",winOpts); 
} 
function opencanGallery14() {
	window.open(canGallery14,"Candid",winOpts); 
} 
function opencanGallery15() {
	window.open(canGallery15,"Candid",winOpts); 
} 
function opencanGallery16() {
	window.open(canGallery16,"Candid",winOpts); 
} 
function opencanGallery17() {
	window.open(canGallery17,"Candid",winOpts); 
} 
function opencanGallery18() {
	window.open(canGallery18,"Candid",winOpts); 
}



// swimwear
function openswimGallery1() {
	window.open(swimGallery1,"swim",winOpts); 
} 
function openswimGallery2() {
	window.open(swimGallery2,"swim",winOpts); 
} 
function openswimGallery3() {
	window.open(swimGallery3,"swim",winOpts); 
} 
function openswimGallery4() {
	window.open(swimGallery4,"swim",winOpts); 
} 
function openswimGallery5() {
	window.open(swimGallery5,"swim",winOpts); 
} 
function openswimGallery6() {
	window.open(swimGallery6,"swim",winOpts); 
} 
function openswimGallery7() {
	window.open(swimGallery7,"swim",winOpts); 
} 
function openswimGallery8() {
	window.open(swimGallery8,"swim",winOpts); 
} 
function openswimGallery9() {
	window.open(swimGallery9,"swim",winOpts); 
} 
function openswimGallery10() {
	window.open(swimGallery10,"swim",winOpts); 
} 
function openswimGallery11() {
	window.open(swimGallery11,"swim",winOpts); 
} 
function openswimGallery12() {
	window.open(swimGallery12,"swim",winOpts); 
} 
function openswimGallery13() {
	window.open(swimGallery13,"swim",winOpts); 
} 
function openswimGallery14() {
	window.open(swimGallery14,"swim",winOpts); 
} 
function openswimGallery15() {
	window.open(swimGallery15,"swim",winOpts); 
} 
function openswimGallery16() {
	window.open(swimGallery16,"swim",winOpts); 
} 
function openswimGallery17() {
	window.open(swimGallery17,"swim",winOpts); 
} 
function openswimGallery18() {
	window.open(swimGallery18,"swim",winOpts); 
} 
// JavaScript Document

var popbackground="#272D36" //specify backcolor or background image for pop window
var windowtitle="Jen-Cook.com Store"  //pop window title
var paypal="'https://www.paypal.com/cart/add=1&business=jen%40jen-cook.com&item_name=autographed+8x10+of+Jen+Cook"
var paypalend="&amount=12.50','cartwin','width=600,height=400,scrollbars,location,resizable,status'"
var title="Personally Autographed 8X10"
function detectexist(obj){
return (typeof obj !="undefined")
}

function popimage(imgpath, popwidth, popheight, textdescription){

function getpos(){
leftpos=(detectexist(window.screenCenter))? screenCenter+document.body.clientWidth/2-popwidth/2 : detectexist(window.screenX)? screenX+innerWidth/2-popwidth/2 : 0
toppos=(detectexist(window.screenMiddle))? screenMiddle+document.body.clientHeight/2-popheight/2 : detectexist(window.screenY)? screenY+innerHeight/2-popheight/2 : 0
if (window.opera){
leftpos-=screenCenter
toppos-=screenMiddle
}
}

getpos()
var winattributes='width='+popwidth+',height='+popheight+',resizable=yes,left='+leftpos+',top='+toppos
var bodyattribute=(popbackground.indexOf(".")!=-1)? 'background="'+popbackground+'"' : 'bgcolor="'+popbackground+'"'
if (typeof popwin=="undefined" || popwin.closed)
popwin=window.open("","",winattributes)
else{
//getpos() //uncomment these 2 lines if you wish subsequent popups to be centered too
//popwin.moveTo(leftpos, toppos)
popwin.resizeTo(popwidth, popheight+30)
}
popwin.document.open()
popwin.document.write('<html><title>'+windowtitle+'</title><body '+bodyattribute+'><font face="ArialArial, Helvetica, sans-serif"><img src="images/autograph.gif"><br><img src="'+imgpath+'" style="margin-bottom: 0.5em"><br><a href="#" onClick="window.open('+paypal+''+textdescription+''+paypalend+');"><img src="images/addtomycart.gif" border="0"></a><br><br><img src="images/paypal.gif"></body></html>')
popwin.document.close()
popwin.focus()
}




