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];}
}

//function for opening popup browser windows
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}














/*
 Pleas leave this notice.
 DHTML tip message version 1.2 copyright Essam Gamal 2003 (http://migoicons.tripod.com, migoicons@hotmail.com)
 All modifications are done in the style.js you should not modify this file.  Created on : 06/03/2003
 Script featured on and can be found at Dynamic Drive (http://www.dynamicdrive.com)
*/ 
var ua = navigator.userAgent
var ps = navigator.productSub 
var dom = (document.getElementById)? 1:0
var ie4 = (document.all&&!dom)? 1:0
var ie5 = (document.all&&dom)? 1:0
var nn4 =(navigator.appName.toLowerCase() == "netscape" && parseInt(navigator.appVersion) == 4)
var nn6 = (dom&&!ie5)? 1:0
var sNav = (nn4||nn6||ie4||ie5)? 1:0
var cssFilters = ((ua.indexOf("MSIE 5.5")>=0||ua.indexOf("MSIE 6")>=0)&&ua.indexOf("Opera")<0)? 1:0
var Style=[],Text=[],Count=0,sbw=0,move=0,hs="",mx,my,scl,sct,ww,wh,obj,sl,st,ih,iw,vl,hl,sv,evlh,evlw,tbody
var HideTip = "eval(obj+sv+hl+';'+obj+sl+'=0;'+obj+st+'=-800')"
var doc_root = ((ie5&&ua.indexOf("Opera")<0||ie4)&&document.compatMode=="CSS1Compat")? "document.documentElement":"document.body"
var PX = (nn6)? "px" :"" 
Style[0]=["white","black","#000099","#ffffff","","","","","","","left","","","",100,"",2,2,10,10,"","","","",""]

if(sNav) {
	window.onresize = ReloadTip
	document.onmousemove = MoveTip
	if(nn4) document.captureEvents(Event.MOUSEMOVE) 
}	
if(nn4||nn6) {
	mx = "e.pageX"
	my = "e.pageY"
	scl = "window.pageXOffset"
	sct = "window.pageYOffset"	
	if(nn4) {
		obj = "document.TipLayer."
		sl = "left"
		st = "top"
		ih = "clip.height"
		iw = "clip.width"
		vl = "'show'"
		hl = "'hide'"
		sv = "visibility="
	}
	else obj = "document.getElementById('TipLayer')."
} 
if(ie4||ie5) {
	obj = "TipLayer."
	mx = "event.x"
	my = "event.y"
	scl = "eval(doc_root).scrollLeft"
	sct = "eval(doc_root).scrollTop"
	if(ie5) {
		mx = mx+"+"+scl 
		my = my+"+"+sct
	}
}
if(ie4||dom){
	sl = "style.left"
	st = "style.top"
	ih = "offsetHeight"
	iw = "offsetWidth"
	vl = "'visible'"
	hl = "'hidden'"
	sv = "style.visibility="
}
if(ie4||ie5||ps>=20020823) {
	ww = "eval(doc_root).clientWidth"
	wh = "eval(doc_root).clientHeight"
}	 
else { 
	ww = "window.innerWidth"
	wh = "window.innerHeight"
	evlh = eval(wh)
	evlw = eval(ww)
	sbw=-15
}	













var ie = document.all ? 1 : 0
var ns = document.layers ? 1 : 0
if(ns){doc = "document."; sty = ""}
if(ie){doc = "document.all."; sty = ".style"}
var initialize = 0
var Ex, Ey, topColor, subColor, ContentInfo
if(ie){
Ex = "event.x"
Ey = "event.y"
topColor = "#545E5E"
subColor = "#F1F4F5"
}
if(ns){
Ex = "e.pageX"
Ey = "e.pageY"
window.captureEvents(Event.MOUSEMOVE)
window.onmousemove=overhere

topColor = "#545E5E"
subColor = "#F1F4F5"
}
function MoveToolTip(layerName, FromTop, FromLeft, e){
if(ie){eval(doc + layerName + sty + ".top = "  + (eval(my)-100 + document.body.scrollTop))}
if(ns){eval(doc + layerName + sty + ".top = "  +  eval(Ex))}
eval(doc + layerName + sty + ".left = " + (eval(FromLeft) + 15))
}
function ReplaceContent(layerName){
if(ie){document.all[layerName].innerHTML = ContentInfo}
if(ns){
with(document.layers[layerName].document) 
{ 
   open(); 
   write(ContentInfo); 
   close(); 
}
}
}
function Activate(){initialize=1}
function deActivate(){initialize=0}
function overhere(e){
if(initialize){
MoveToolTip("ToolTip", Ey, Ex, e)
eval(doc + "ToolTip" + sty + ".visibility = 'visible'")
}
else{
MoveToolTip("ToolTip", 0, 0)
eval(doc + "ToolTip" + sty + ".visibility = 'hidden'")
}
}
function EnterContent(layerName, TTitle, TContent){
ContentInfo = '<table border="0" height="72" width="125" cellspacing="0" cellpadding="0">'+
'<tr><td valign="top" background="images/tool_tip_back.gif" align="center" style="padding-top:2px;">'+
	'<table width="119" height="56" border="0" cellspacing="0" cellpadding="0"   bgcolor="white">'+
		'<tr><td>'+
			'<table border="0"cellspacing="0" cellpadding="0" align="center"  bgcolor="white">'+
				'<tr><td align="center">'+
					'<span class="tooltiptitle">'+TTitle+'</span>'+
				'</td></tr>'+
			'</table>'+
		'</td></tr>'+
		'<tr><td>'+
			'<table border="0"cellpadding="0" cellspacing="0" align="center">'+
				'<tr><td>'+
					'<font class="tooltipcontent">'+TContent+'</font>'+
				'</td></tr>'+
			'</table>'+
		'</td></tr>'+
		'<tr><td align="center" >'+
		'<table border="0" cellspacing="0" cellpadding="0">'+
			'<tr><td align="center" class="green_arrow_no_link"><span class="green_arrow_no_link">&nbsp;&nbsp;click for details&nbsp;&nbsp;</span><img src="images/spacer.gif" width="2" height="1"></td>'+						
				'<td><img src="images/arrow_green_right.gif"></td>'+
			'</tr>'+
		'</table>'+
		'</td></tr>'+
	'</table>'+
'</td></tr>'+
'</table>';
ReplaceContent(layerName)
}



function EnterContent2(layerName, TContent,TTitle,TImage){
ContentInfo = '<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="300">'+
	'<tr>'+
		'<TD BGCOLOR="#B33C13" WIDTH="2" HEIGHT="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		'<TD BGCOLOR="#B33C13" WIDTH="13" HEIGHT="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		'<TD BGCOLOR="#B33C13" width="271"><IMG SRC="images/spacer.gif" WIDTH="1" HEIGHT="1"></TD>'+
		'<TD BGCOLOR="#B33C13" WIDTH="2" HEIGHT="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		'<TD WIDTH="2" HEIGHT="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
	'</tr>'+
	'<tr>'+
		'<TD BGCOLOR="#B33C13" WIDTH="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		
		'<TD colspan="2" bgcolor="white" class="gray_small" style="padding:10px;">';
			if(TImage.length > 5){
					ContentInfo =ContentInfo+'<img src=assets/apt_img/s_'+unescape(TImage)+' align="left" hspace=2 vspace=2 style=padding-right:10px;>';
			}
			ContentInfo =ContentInfo+'<span class="tooltiptitle">'+unescape(TTitle)+'&nbsp;</span><br>'+
			
			'<span >'+unescape(TContent)+'</span>'+
			
				
			
		'</TD>'+
		
		
		'<TD BGCOLOR="#B33C13" WIDTH="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="1"></TD>'+
		'<TD BGCOLOR="#816B5A" WIDTH="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
	'</tr>'+

	'<tr>'+
		'<TD BGCOLOR="#B33C13" height="2" width="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		'<TD width="13"><IMG SRC="images/bg_pop1.gif" HEIGHT="2" width="13"></TD>'+
		'<TD BGCOLOR="#B33C13"><IMG SRC="images/spacer.gif" WIDTH="271" HEIGHT="2"></TD>'+
		'<TD BGCOLOR="#B33C13" width="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		'<TD BGCOLOR="#816B5A" width="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
	'</tr>'+
	'<tr>'+
		'<TD WIDTH="2" HEIGHT="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		'<TD width="13"><IMG SRC="images/bg_pop2.gif" HEIGHT="2" width="13"></TD>'+
		'<TD BGCOLOR="#816B5A"><IMG SRC="images/spacer.gif" WIDTH="271" HEIGHT="2"></TD>'+
		'<TD BGCOLOR="#816B5A" WIDTH="2" HEIGHT="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
		'<TD BGCOLOR="#816B5A" WIDTH="2" HEIGHT="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="2"></TD>'+
	'</tr>'+
	'<tr>'+
		'<TD width="2" height="11"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="11"></TD>'+
		'<TD width="13"><IMG SRC="images/bg_pop3.gif" HEIGHT="11" width="13"></TD>'+
		'<TD><IMG SRC="images/spacer.gif" WIDTH="271" HEIGHT="1"></TD>'+
		'<TD  width="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="11"></TD>'+
		'<TD  width="2"><IMG SRC="images/spacer.gif" WIDTH="2" HEIGHT="11"></TD>'+
	'</tr>'+
'</TABLE>';

ReplaceContent(layerName)
}














function applyCssFilter(){
	if(cssFilters&&FiltersEnabled) { 
		var dx = " progid:DXImageTransform.Microsoft."
		TipLayer.style.filter = "revealTrans()"+dx+"Fade(Overlap=1.00 enabled=0)"+dx+"Inset(enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=in enabled=0)"+dx+"Iris(irisstyle=PLUS,motion=out enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=in enabled=0)"+dx+"Iris(irisstyle=DIAMOND,motion=out enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=in enabled=0)"+dx+"Iris(irisstyle=CROSS,motion=out enabled=0)"+dx+"Iris(irisstyle=STAR,motion=in enabled=0)"+dx+"Iris(irisstyle=STAR,motion=out enabled=0)"+dx+"RadialWipe(wipestyle=CLOCK enabled=0)"+dx+"RadialWipe(wipestyle=WEDGE enabled=0)"+dx+"RadialWipe(wipestyle=RADIAL enabled=0)"+dx+"Pixelate(MaxSquare=35,enabled=0)"+dx+"Slide(slidestyle=HIDE,Bands=25 enabled=0)"+dx+"Slide(slidestyle=PUSH,Bands=25 enabled=0)"+dx+"Slide(slidestyle=SWAP,Bands=25 enabled=0)"+dx+"Spiral(GridSizeX=16,GridSizeY=16 enabled=0)"+dx+"Stretch(stretchstyle=HIDE enabled=0)"+dx+"Stretch(stretchstyle=PUSH enabled=0)"+dx+"Stretch(stretchstyle=SPIN enabled=0)"+dx+"Wheel(spokes=16 enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=0,motion=reverse enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=forward enabled=0)"+dx+"GradientWipe(GradientSize=1.00,wipestyle=1,motion=reverse enabled=0)"+dx+"Zigzag(GridSizeX=8,GridSizeY=8 enabled=0)"+dx+"Alpha(enabled=0)"+dx+"Dropshadow(OffX=3,OffY=3,Positive=true,enabled=0)"+dx+"Shadow(strength=3,direction=135,enabled=0)"
	}
}

function stm(t,s) {
  if(sNav) {
  	if(t.length<2||s.length<25) {
		var ErrorNotice = "DHTML TIP MESSAGE VERSION 1.2 ERROR NOTICE.\n"
		if(t.length<2&&s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array and Text Array of this tip.\nTheir should be 25 entries in every Style Array even though empty and 2 in every Text Array. You defined only "+s.length+" entries in the Style Array and "+t.length+" entry in the Text Array. This tip won't be viewed to avoid errors")
		else if(t.length<2) alert(ErrorNotice+"It looks like you removed an entry or more from the Text Array of this tip.\nTheir should be 2 entries in every Text Array. You defined only "+t.length+" entry. This tip won't be viewed to avoid errors.")
		else if(s.length<25) alert(ErrorNotice+"It looks like you removed an entry or more from the Style Array of this tip.\nTheir should be 25 entries in every Style Array even though empty. You defined only "+s.length+" entries. This tip won't be viewed to avoid errors.")
 	}
  	else {
		var txt="<TABLE height='17' border='0' cellpadding= 0 CELLSPACING='0'><TR><TD style='font: bold 9px verdana, arial, serif;  color: white;' bgcolor='#0D860D' NOWRAP>&nbsp;" + t +"&nbsp;</TD></TR></TABLE></TD></TR></TABLE>"
		if(nn4) {
			with(eval(obj+"document")) {
				open()
				write(txt)
				close()
			}
		}
		else eval(obj+"innerHTML=txt")
		tbody = {
			Pos:s[10].toLowerCase(), 
			Xpos:s[18],
			Ypos:s[19], 
			Transition:s[20],
			Duration:s[21], 
			Alpha:s[22],
			ShadowType:s[23].toLowerCase(),
			ShadowColor:s[24],
			Width:parseInt(eval(obj+iw)+3+sbw)
		}
		if(ie4) { 
			TipLayer.style.width = s[14]
	 		tbody.Width = s[14]
		}
		Count=0	
		move=1
 	 }
  }
}

function MoveTip(e) {
	if(move) {
		var X,Y,MouseX = eval(mx),MouseY = eval(my); tbody.Height = parseInt(eval(obj+ih)+3)
		tbody.wiw = parseInt(eval(ww+"+"+scl)); tbody.wih = parseInt(eval(wh+"+"+sct))
		X=MouseX-tbody.Width-tbody.Xpos; Y=MouseY+tbody.Ypos-40; 
		if(tbody.wiw<tbody.Width+X) X = tbody.wiw-tbody.Width
		if(tbody.wih<tbody.Height+Y+sbw) {
			if(tbody.Pos=="float"||tbody.Pos=="fixed") Y = tbody.wih-tbody.Height-sbw
			else Y = MouseY-tbody.Height
		}
		if(X<0) X=0 
		eval(obj+sl+"=X+PX;"+obj+st+"=Y+PX")
		ViewTip()
	}
}

function ViewTip() {
  	Count++
	if(Count == 1) {
 		eval(obj+sv+vl)
		if(hs == "sticky") move=0
  	}
}

function stickyhide() {
	eval(HideTip)
}

function ReloadTip() {
	 if(nn4&&(evlw!=eval(ww)||evlh!=eval(wh))) location.reload()
	 else if(hs == "sticky") eval(HideTip)
}

function htm() {
	if(sNav) {
		if(hs!="keep") {
			move=0; 
			if(hs!="sticky") eval(HideTip)
		}	
	} 
}










//preload images
	        //SET STEP FOR EVERY ONE OF THE 3 PICTURES
			var step= new Array()
			step[1] = 1;
			step[2] = 1;
			step[3] = 1;
			step[4] = 1;

	        //SET WHICHIMAGE FOR EVERY ONE OF THE 3 PICTURES
			var whichimage= new Array()
			whichimage[1] = 1;
			whichimage[2] = 1;
			whichimage[3] = 1;
			whichimage[4] = 1;
			//=================================================================

			//SET LINKS, TITLES, DESCRIPTIONS AND PRELOAD PICTURES OF MAIN PIC #1
			
			

			function slideit(num_images){
				if (!document.images) { return; }
				for (var i=1;i <= num_images; i++){
					slide = eval("document.images.pic" + i);
				  //	slide.height=180;
				  //	slide.width=200;

					if (document.all) { slide.filters.blendTrans.apply(); }

					slide.src=eval("shirtImg"+i+"["+(step[i]-1)+"].src")

					if (document.all) slide.filters.blendTrans.play()

					whichimage[i] = step[i]
					
					steps = eval("pic"+ i + ".length");
					if (step[i] < steps) {
						step[i]++;
					} else {
						step[i] = 1;
					}
				}
				setTimeout("slideit("+num_images+")",6000);
			}
			
			
			
			
//-->



