/* --------------------------------- */
/* SOPHIAKNOWS: JAVASCRIPT */
/* --------------------------------- */
/* IMAGE ROLLOVER/SWAP */
/* --------------------------------- */
/* Created: 2002-01-15 */
/* Issued: 2002-01-15 */
/* Modified: 2004-12-17 */
/* Copyright (c) 2001-2004 */
/* Tony Pisarra, SophiaKnows */
/* --------------------------------- */
/* --------------------------------- */
// ROLLOVER: SWAP IMAGE
function swap_image(n,s) {
document.images[n].src=s;
var argv=swap_image.arguments;
if(argv[2] && argv[3] && document.getElementById) {
element=document.getElementById(argv[2]);
element.innerHTML=argv[3];
}
}
// ROLLOVER: PRELOAD
function preload(list) {
var newsource=new Array();
for(p=0;p<list.lenght;p++) {
newsource[i]=new Image();
newsource[i].src=list[i];
}
}
// ROLLOVER: AUTOLOAD
function AutoLoad() {
var hits=0;
var linkedimages=new Array();
for(i=0;i<document.links.length;i++) {
if(document.links[i].href.toLowerCase().search(/\\.[gjp][ipn][fge]g?/)>-1) {
hits++;
linkedimages[hits]=document.links[i].href;
}
}
preload(linkedimages);
}


/*  This script and many more are available free online at */
/*  The JavaScript Source!! http://javascript.internet.com */
/*  husenko@yahoo.co.in */
// ENLARGE & SHRINK IMAGES ON PRODUCT DETAILS PAGE
function enlargeImage1(){
big3.height="755"
}
function dropImage1(){
big3.height="453"
}
function bigger(){
//big3.width="575"
}
function smaller(){
//big3.width="350"
}
function bigger2(){
med3.width="575"
}
function smaller2(){
med3.width="350"
}
/* Expand and Contract Text for Product detail template */
function expanddescription(thistag, tag) {
styleObj=document.getElementById(thistag).style;
if (styleObj.display=='none')
{
styleObj.display='';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/desc_minus.png height=30 width=130 alt=contact>";
}
else {
styleObj.display='none';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/desc_plus.png height=30 width=130 alt=contact>";
}
}
function expandaboutus(thistag, tag) {
styleObj=document.getElementById(thistag).style;
if (styleObj.display=='none')
{
styleObj.display='';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/aboutus_minus.png height=30 width=130 alt=contact>";
}
else {
styleObj.display='none';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/aboutus_plus.png height=30 width=130 alt=contact>";
}
}
function expandcontact(thistag, tag) {
styleObj=document.getElementById(thistag).style;
if (styleObj.display=='none')
{
styleObj.display='';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/contact_minus.png height=30 width=130 alt=contact>";
}
else {
styleObj.display='none';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/contact_plus.png height=30 width=130 alt=contact>";
}
}
function expandpayment(thistag, tag) {
styleObj=document.getElementById(thistag).style;
if (styleObj.display=='none')
{
styleObj.display='';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/payment_minus.png height=30 width=130 alt=contact>";
}
else {
styleObj.display='none';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/payment_plus.png height=30 width=130 alt=contact>";
}
}
function expandshipping(thistag, tag) {
styleObj=document.getElementById(thistag).style;
if (styleObj.display=='none')
{
styleObj.display='';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/shipping_minus.png height=30 width=130 alt=contact>";
}
else {
styleObj.display='none';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/shipping_plus.png height=30 width=130 alt=contact>";
}
}
function expandtaxes(thistag, tag) {
styleObj=document.getElementById(thistag).style;
if (styleObj.display=='none')
{
styleObj.display='';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/taxes_minus.png height=30 width=130 alt=contact>";
}
else {
styleObj.display='none';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/taxes_plus.png height=30 width=130 alt=contact>";
}
}
function expandwarranty(thistag, tag) {
styleObj=document.getElementById(thistag).style;
if (styleObj.display=='none')
{
styleObj.display='';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/warranty_minus.png height=30 width=130 alt=contact>";
}
else {
styleObj.display='none';
tag.innerHTML = "<img src=http://www.pacificempirestore.com/images/warranty_plus.png height=30 width=130 alt=contact>";
}
}
// SLIDER SCRIPT
animatedcollapse.addDiv('about', 'fade=1,height=200px')
animatedcollapse.addDiv('shipping', 'fade=1,height=1090px')
animatedcollapse.addDiv('payment', 'fade=1,height=825px')
animatedcollapse.addDiv('taxes', 'fade=1,height=200px')
animatedcollapse.addDiv('warranty', 'fade=1,height=260px')
animatedcollapse.addDiv('contact', 'fade=1,height=260px')

animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
}
animatedcollapse.init()