//v1.0

//Copyright 2006 Adobe Systems, Inc. All rights reserved.

function AC_AddExtension(src, ext)

{

  if (src.indexOf('?') != -1)

    return src.replace(/\?/, ext+'?'); 

  else

    return src + ext;

}



function AC_Generateobj(objAttrs, params, embedAttrs) 

{ 

  var str = '<object ';

  for (var i in objAttrs)

    str += i + '="' + objAttrs[i] + '" ';

  str += '>';

  for (var i in params)

    str += '<param name="' + i + '" value="' + params[i] + '" /> ';

  str += '<embed ';

  for (var i in embedAttrs)

    str += i + '="' + embedAttrs[i] + '" ';

  str += ' ></embed></object>';



  document.write(str);

}



function AC_FL_RunContent(){

  var ret = 

    AC_GetArgs

    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

     , "application/x-shockwave-flash"

    );

  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

}



function AC_SW_RunContent(){

  var ret = 

    AC_GetArgs

    (  arguments, ".dcr", "src", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"

     , null

    );

  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);

}



function AC_GetArgs(args, ext, srcParamName, classid, mimeType){

  var ret = new Object();

  ret.embedAttrs = new Object();

  ret.params = new Object();

  ret.objAttrs = new Object();

  for (var i=0; i < args.length; i=i+2){

    var currArg = args[i].toLowerCase();    



    switch (currArg){	

      case "classid":

        break;

      case "pluginspage":

        ret.embedAttrs[args[i]] = args[i+1];

        break;

      case "src":

      case "movie":	

        args[i+1] = AC_AddExtension(args[i+1], ext);

        ret.embedAttrs["src"] = args[i+1];

        ret.params[srcParamName] = args[i+1];

        break;

      case "onafterupdate":

      case "onbeforeupdate":

      case "onblur":

      case "oncellchange":

      case "onclick":

      case "ondblClick":

      case "ondrag":

      case "ondragend":

      case "ondragenter":

      case "ondragleave":

      case "ondragover":

      case "ondrop":

      case "onfinish":

      case "onfocus":

      case "onhelp":

      case "onmousedown":

      case "onmouseup":

      case "onmouseover":

      case "onmousemove":

      case "onmouseout":

      case "onkeypress":

      case "onkeydown":

      case "onkeyup":

      case "onload":

      case "onlosecapture":

      case "onpropertychange":

      case "onreadystatechange":

      case "onrowsdelete":

      case "onrowenter":

      case "onrowexit":

      case "onrowsinserted":

      case "onstart":

      case "onscroll":

      case "onbeforeeditfocus":

      case "onactivate":

      case "onbeforedeactivate":

      case "ondeactivate":

      case "type":

      case "codebase":

        ret.objAttrs[args[i]] = args[i+1];

        break;

      case "width":

      case "height":

      case "align":

      case "vspace": 

      case "hspace":

      case "class":

      case "title":

      case "accesskey":

      case "name":

      case "id":

	  case "scale":

	  case "salign":

      case "tabindex":

        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];

        break;

      default:

        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];

    }

  }

  ret.objAttrs["classid"] = classid;

  if (mimeType) ret.embedAttrs["type"] = mimeType;

  return ret;

}

//----------------------------------------------------------------------------------------------------

//-- DIGITAL ROTATING IMAGE script

//----------------------------------------------------------------------------------------------------



/***********************************************

* Ultimate Fade-In Slideshow (v1.51): © Dynamic Drive (http://www.dynamicdrive.com)

* This notice MUST stay intact for legal use

* Visit http://www.dynamicdrive.com/ for this script and 100s more.

***********************************************/

 

var fadeimages=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages[0]=["http://www.sewwhatinc.com/images/digital_flash_1B.jpg", "", ""] //image with link and target syntax

fadeimages[1]=["http://www.sewwhatinc.com/images/digital_flash_2B.jpg", "", ""] //image with link and target syntax

fadeimages[2]=["http://www.sewwhatinc.com/images/digital_flash_3B.jpg", "", ""] //image with link and target syntax

fadeimages[3]=["http://www.sewwhatinc.com/images/digital_flash_4B.jpg", "", ""] //image with link and target syntax

fadeimages[4]=["http://www.sewwhatinc.com/images/digital_flash_1B.jpg", "", ""] //image with link and target syntax



var fadeimages2=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages2[0]=["http://www.sewwhatinc.com/images/tsflash5B.jpg", "", ""] //image with link and target syntax

fadeimages2[1]=["http://www.sewwhatinc.com/images/tsflash2B.jpg", "", ""] //image with link and target syntax

fadeimages2[2]=["http://www.sewwhatinc.com/images/tsflash3B.jpg", "", ""] //image with link and target syntax

fadeimages2[3]=["http://www.sewwhatinc.com/images/tsflash4B.jpg", "", ""] //image with link and target syntax

fadeimages2[4]=["http://www.sewwhatinc.com/images/tsflash1B.jpg", "", ""] //image with link and target syntax

fadeimages2[5]=["http://www.sewwhatinc.com/images/tsflash5B.jpg", "", ""] //image with link and target syntax



var fadeimages3=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages3[0]=["http://www.sewwhatinc.com/images/backdrops_flash_1b.jpg", "", ""] //image with link and target syntax

fadeimages3[1]=["http://www.sewwhatinc.com/images/backdrops_flash_2b.jpg", "", ""] //image with link and target syntax

fadeimages3[2]=["http://www.sewwhatinc.com/images/backdrops_flash_3b.jpg", "", ""] //image with link and target syntax

fadeimages3[3]=["http://www.sewwhatinc.com/images/backdrops_flash_4b.jpg", "", ""] //image with link and target syntax

fadeimages3[4]=["http://www.sewwhatinc.com/images/backdrops_flash_5b.jpg", "", ""] //image with link and target syntax

fadeimages3[5]=["http://www.sewwhatinc.com/images/backdrops_flash_6b.jpg", "", ""] //image with link and target syntax

fadeimages3[6]=["http://www.sewwhatinc.com/images/backdrops_flash_1b.jpg", "", ""] //image with link and target syntax



var fadeimages4=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages4[0]=["http://www.sewwhatinc.com/images/aboutflash1.jpg", "", ""] //image with link and target syntax

fadeimages4[1]=["http://www.sewwhatinc.com/images/aboutflash2.jpg", "", ""] //image with link and target syntax

fadeimages4[2]=["http://www.sewwhatinc.com/images/aboutflash3.jpg", "", ""] //image with link and target syntax

fadeimages4[3]=["http://www.sewwhatinc.com/images/aboutflash4.jpg", "", ""] //image with link and target syntax

fadeimages4[4]=["http://www.sewwhatinc.com/images/aboutflash5.jpg", "", ""] //image with link and target syntax

fadeimages4[5]=["http://www.sewwhatinc.com/images/aboutflash1.jpg", "", ""] //image with link and target syntax



var fadeimages5=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages5[0]=["http://www.sewwhatinc.com/images/productsflash/productsflash2.jpg", "", ""] //image with link and target syntax

fadeimages5[1]=["http://www.sewwhatinc.com/images/productsflash/2_CONTESSA.JPG", "", ""] //image with link and target syntax

fadeimages5[2]=["http://www.sewwhatinc.com/images/productsflash/3_lady_antebellum.jpg", "", ""] //image with link and target syntax

fadeimages5[3]=["http://www.sewwhatinc.com/images/productsflash/4_DWTS.jpg", "", ""] //image with link and target syntax

fadeimages5[4]=["http://www.sewwhatinc.com/images/productsflash/productsflash5.jpg", "", ""] //image with link and target syntax

fadeimages5[5]=["http://www.sewwhatinc.com/images/productsflash/6_IvorySatin.jpg", "", ""] //image with link and target syntax

fadeimages5[6]=["http://www.sewwhatinc.com/images/productsflash/7_LED_Drapes.jpg", "", ""] //image with link and target syntax

fadeimages5[7]=["http://www.sewwhatinc.com/images/productsflash/productsflash2.jpg", "", ""] //image with link and target syntax



var fadeimages6=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages6[0]=["http://www.sewwhatinc.com/images/scenicflash1.jpg", "", ""] //image with link and target syntax

fadeimages6[1]=["http://www.sewwhatinc.com/images/scenicflash2.jpg", "", ""] //image with link and target syntax

fadeimages6[2]=["http://www.sewwhatinc.com/images/scenicflash3.jpg", "", ""] //image with link and target syntax

fadeimages6[3]=["http://www.sewwhatinc.com/images/scenicflash4.jpg", "", ""] //image with link and target syntax

fadeimages6[4]=["http://www.sewwhatinc.com/images/scenicflash5.jpg", "", ""] //image with link and target syntax

fadeimages6[5]=["http://www.sewwhatinc.com/images/scenicflash6.jpg", "", ""] //image with link and target syntax

fadeimages6[6]=["http://www.sewwhatinc.com/images/scenicflash1.jpg", "", ""] //image with link and target syntax



var fadeimages7=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages7[0]=["http://www.sewwhatinc.com/images/LED_flash_01.jpg", "", ""] //image with link and target syntax

fadeimages7[1]=["http://www.sewwhatinc.com/images/LED_flash_02.jpg", "", ""] //image with link and target syntax

fadeimages7[2]=["http://www.sewwhatinc.com/images/LED_flash_03.jpg", "", ""] //image with link and target syntax

fadeimages7[3]=["http://www.sewwhatinc.com/images/LED_flash_04.jpg", "", ""] //image with link and target syntax

fadeimages7[4]=["http://www.sewwhatinc.com/images/LED_flash_01.jpg", "", ""] //image with link and target syntax


var fadeimages8=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages8[0]=["http://www.sewwhatinc.com/images/PD_1.jpg", "", ""] //image with link and target syntax

fadeimages8[1]=["http://www.sewwhatinc.com/images/PD_2.jpg", "", ""] //image with link and target syntax

fadeimages8[2]=["http://www.sewwhatinc.com/images/PD_3.jpg", "", ""] //image with link and target syntax

fadeimages8[3]=["http://www.sewwhatinc.com/images/PD_4.jpg", "", ""] //image with link and target syntax

fadeimages8[4]=["http://www.sewwhatinc.com/images/PD_5.jpg", "", ""] //image with link and target syntax

fadeimages8[5]=["http://www.sewwhatinc.com/images/PD_1.jpg", "", ""] //image with link and target syntax

var fadebgcolor="white"


var fadeimages9=new Array()

//SET IMAGE PATHS. Extend or contract array as needed

fadeimages9[0]=["http://www.sewwhatinc.com/images/GDS_1.jpg", "", ""] //image with link and target syntax

fadeimages9[1]=["http://www.sewwhatinc.com/images/GDS_2.jpg", "", ""] //image with link and target syntax

fadeimages9[2]=["http://www.sewwhatinc.com/images/GDS_3.jpg", "", ""] //image with link and target syntax

fadeimages9[3]=["http://www.sewwhatinc.com/images/GDS_4.jpg", "", ""] //image with link and target syntax

fadeimages9[4]=["http://www.sewwhatinc.com/images/GDS_5.jpg", "", ""] //image with link and target syntax

fadeimages9[5]=["http://www.sewwhatinc.com/images/GDS_1.jpg", "", ""] //image with link and target syntax

var fadebgcolor="white"



////NO need to edit beyond here/////////////

 

var fadearray=new Array() //array to cache fadeshow instances

var fadeclear=new Array() //array to cache corresponding clearinterval pointers

 

var dom=(document.getElementById) //modern dom browsers

var iebrowser=document.all

 

function fadeshow(theimages, fadewidth, fadeheight, borderwidth, delay, pause, onetime, displayorder){

this.flag=0

this.onetime=onetime

this.pausecheck=pause

this.mouseovercheck=0

this.delay=delay

this.degree=10 //initial opacity degree (10%)

this.curimageindex=0

this.nextimageindex=1

fadearray[fadearray.length]=this

this.slideshowid=fadearray.length-1

this.canvasbase="canvas"+this.slideshowid

this.curcanvas=this.canvasbase+"_0"

if (typeof displayorder!="undefined")

theimages.sort(function() {return 0.5 - Math.random();}) //thanks to Mike (aka Mwinter) :)

this.theimages=theimages

this.imageborder=parseInt(borderwidth)

this.postimages=new Array() //preload images

for (p=0;p<theimages.length;p++){

this.postimages[p]=new Image()

this.postimages[p].src=theimages[p][0]

}

 

var fadewidth=fadewidth+this.imageborder*2

var fadeheight=fadeheight+this.imageborder*2

 

if (iebrowser&&dom||dom) //if IE5+ or modern browsers (ie: Firefox)

document.write('<div id="master'+this.slideshowid+'" style="position:relative;width:'+fadewidth+'px;height:'+fadeheight+'px;overflow:hidden;"><div id="'+this.canvasbase+'_0" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div><div id="'+this.canvasbase+'_1" style="position:absolute;width:'+fadewidth+'px;height:'+fadeheight+'px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:'+fadebgcolor+'"></div></div>')

else

document.write('<div><img name="defaultslide'+this.slideshowid+'" src="'+this.postimages[0].src+'"></div>')

 

if (iebrowser&&dom||dom) //if IE5+ or modern browsers such as Firefox

this.startit()

else{

this.curimageindex++

setInterval("fadearray["+this.slideshowid+"].rotateimage()", this.delay)

}

}



function fadepic(obj){

if (obj.degree<100){

obj.degree+=10

if (obj.tempobj.filters&&obj.tempobj.filters[0]){

if (typeof obj.tempobj.filters[0].opacity=="number") //if IE6+

obj.tempobj.filters[0].opacity=obj.degree

else //else if IE5.5-

obj.tempobj.style.filter="alpha(opacity="+obj.degree+")"

}

else if (obj.tempobj.style.MozOpacity)

obj.tempobj.style.MozOpacity=obj.degree/101

else if (obj.tempobj.style.KhtmlOpacity)

obj.tempobj.style.KhtmlOpacity=obj.degree/100

else if (obj.tempobj.style.opacity&&!obj.tempobj.filters)

obj.tempobj.style.opacity=obj.degree/101

}

else{

clearInterval(fadeclear[obj.slideshowid])

obj.nextcanvas=(obj.curcanvas==obj.canvasbase+"_0")? obj.canvasbase+"_0" : obj.canvasbase+"_1"

obj.tempobj=iebrowser? iebrowser[obj.nextcanvas] : document.getElementById(obj.nextcanvas)

if(obj.flag&&obj.onetime)

return;

if(obj.nextimageindex==obj.postimages.length-1)

obj.flag=1

obj.populateslide(obj.tempobj, obj.nextimageindex)

obj.nextimageindex=(obj.nextimageindex<obj.postimages.length-1)? obj.nextimageindex+1 : 0

setTimeout("fadearray["+obj.slideshowid+"].rotateimage()", obj.delay)

}

}

 

fadeshow.prototype.populateslide=function(picobj, picindex){

var slideHTML=""

if (this.theimages[picindex][1]!="") //if associated link exists for image

slideHTML='<a href="'+this.theimages[picindex][1]+'" target="'+this.theimages[picindex][2]+'">'

slideHTML+='<img src="'+this.postimages[picindex].src+'" border="'+this.imageborder+'px">'

if (this.theimages[picindex][1]!="") //if associated link exists for image

slideHTML+='</a>'

picobj.innerHTML=slideHTML

}

 

 

fadeshow.prototype.rotateimage=function(){

if (this.pausecheck==1) //if pause onMouseover enabled, cache object

var cacheobj=this

if (this.mouseovercheck==1)

setTimeout(function(){cacheobj.rotateimage()}, 100)

else if (iebrowser&&dom||dom){

this.resetit()

var crossobj=this.tempobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

crossobj.style.zIndex++

fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50)

this.curcanvas=(this.curcanvas==this.canvasbase+"_0")? this.canvasbase+"_1" : this.canvasbase+"_0"

}

else{

var ns4imgobj=document.images['defaultslide'+this.slideshowid]

ns4imgobj.src=this.postimages[this.curimageindex].src

}

this.curimageindex=(this.curimageindex<this.postimages.length-1)? this.curimageindex+1 : 0

}

 

fadeshow.prototype.resetit=function(){

this.degree=10

var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

if (crossobj.filters&&crossobj.filters[0]){

if (typeof crossobj.filters[0].opacity=="number") //if IE6+

crossobj.filters(0).opacity=this.degree

else //else if IE5.5-

crossobj.style.filter="alpha(opacity="+this.degree+")"

}

else if (crossobj.style.MozOpacity)

crossobj.style.MozOpacity=this.degree/101

else if (crossobj.style.KhtmlOpacity)

crossobj.style.KhtmlOpacity=this.degree/100

else if (crossobj.style.opacity&&!crossobj.filters)

crossobj.style.opacity=this.degree/101

}

 

 

fadeshow.prototype.startit=function(){

var crossobj=iebrowser? iebrowser[this.curcanvas] : document.getElementById(this.curcanvas)

this.populateslide(crossobj, this.curimageindex)

if (this.pausecheck==1){ //IF SLIDESHOW SHOULD PAUSE ONMOUSEOVER

var cacheobj=this

var crossobjcontainer=iebrowser? iebrowser["master"+this.slideshowid] : document.getElementById("master"+this.slideshowid)

crossobjcontainer.onmouseover=function(){cacheobj.mouseovercheck=1}

crossobjcontainer.onmouseout=function(){cacheobj.mouseovercheck=0}

}

this.rotateimage()

}



// second blending image script //

//*****************************************

// Blending Image Slide Show Script- 

// © Dynamic Drive (www.dynamicdrive.com)

// For full source code, visit http://www.dynamicdrive.com/

//*****************************************



//specify interval between slide (in mili seconds)

var slidespeed=3000



//specify images

var slideimages=new Array("images/digital_flash_1.jpg","images/digital_flash_2.jpg","images/digital_flash_3.jpg","images/digital_flash_4.jpg")



//specify corresponding links

var slidelinks=new Array("","","","")



var newwindow=0 //open links in new window? 1=yes, 0=no



var imageholder=new Array()

var ie=document.all

for (i=0;i<slideimages.length;i++){

imageholder[i]=new Image()

imageholder[i].src=slideimages[i]

}



function gotoshow(){

if (newwindow)

window.open(slidelinks[whichlink])

else

window.location=slidelinks[whichlink]

}



/*

Disable right click script II (on images)- By Dynamicdrive.com

For full source, Terms of service, and 100s DTHML scripts

Visit http://www.dynamicdrive.com

*/



var clickmessage="All images Copyrighted, please email for permission to use"



function disableclick(e) {

if (document.all) {

if (event.button==2||event.button==3) {

if (event.srcElement.tagName=="IMG"){

alert(clickmessage);

return false;

}

}

}

else if (document.layers) {

if (e.which == 3) {

alert(clickmessage);

return false;

}

}

else if (document.getElementById){

if (e.which==3&&e.target.tagName=="IMG"){

alert(clickmessage)

return false

}

}

}



function associateimages(){

for(i=0;i<document.images.length;i++)

document.images[i].onmousedown=disableclick;

}



if (document.all)

document.onmousedown=disableclick

else if (document.getElementById)

document.onmouseup=disableclick

else if (document.layers)

associateimages()
