
var speed = 20;
iens6 = document.all||document.getElementById;
ns4 = document.layers;

if (navigator.userAgent.indexOf('Mac',0) == -1) {
	document.write ("<link rel=stylesheet type='text/css' href='/miami\/11/scripts/pc.css'>");
} else {
	document.write ("<link rel=stylesheet type='text/css' href='/miami\/11/scripts/mac.css'>");
} 

function MM_openBrWindow(theURL,winName,features) { //v2.0
 window.open(theURL,winName,features);
}




function newwindow(where) {
                window.open(where+".html", "enlarge", "alwaysRaised=yes,height=720,width=272,hotkeys=no,left=0,top=0,screenX=0,screenY=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=yes");
}

function newindow(where) {
                window.open(where+".html", "enlarge", "alwaysRaised=yes,height=550,width=550,hotkeys=no,left=0,top=0,screenX=0,screenY=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
}

function newAindow(where) {
                window.open(where+".html", "enlarge", "alwaysRaised=yes,height=610,width=610,hotkeys=no,left=0,top=0,screenX=0,screenY=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=yes");
}

function newscene(where) {
                window.open(where+".html", "enlarge", "alwaysRaised=yes,height=300,width=550,hotkeys=no,left=0,top=0,screenX=0,screenY=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
}

function newVideo(where) {
                window.open("video.html", "enlarge", "alwaysRaised=yes,height=500,width=500,hotkeys=no,left=0,top=0,screenX=0,screenY=0,location=no,menubar=no,resizable=no,scrollbars=no,status=no,toolbar=no");
}



function nunet_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=nunet_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function nunet_swapImage() { //v3.0
  var i,j=0,x,a=nunet_swapImage.arguments; document.nunet_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=nunet_findObj(a[i]))!=null){document.nunet_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function nunet_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.nunet_p) d.nunet_p=new Array();
    var i,j=d.nunet_p.length,a=nunet_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.nunet_p[j]=new Image; d.nunet_p[j++].src=a[i];}}
}

function nunet_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function nunet_swapImgRestore() { //v3.0
  var i,x,a=document.nunet_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function nunet_initTimelines() {
    var ns = navigator.appName == "Netscape";
    document.nunet_Time = new Array(1);
    document.nunet_Time[0] = new Array(0);
    document.nunet_Time["Timeline1"] = document.nunet_Time[0];
    document.nunet_Time[0].nunet_Name = "Timeline1";
    document.nunet_Time[0].fps = 8;
    document.nunet_Time[0].lastFrame = 0;
    for (i=0; i<document.nunet_Time.length; i++) {
        document.nunet_Time[i].ID = null;
        document.nunet_Time[i].curFrame = 0;
        document.nunet_Time[i].delay = 1000/document.nunet_Time[i].fps;
    }
}


function sponsorship()
{
document.write("<CENTER><IMG SRC=\'\/miami\/11\/images/sponsorgrid.gif\' border=0  width=990 height=92 alt=\'\'USEMAP=\'\#sponsors_Map\'><\/CENTER>");
document.write(" <MAP NAME=\'sponsors_Map\'> ");
document.write("<area shape=\'rect\' alt=\'GETTY IMAGES\' coords=\'870,5,935,82\' href=\'\/miami\/11\/sponsors\/gettyimages\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'CALIFORNIA APPAREL NEWS\' coords=\'800,5,865,83\' href=\'\/miami\/11\/sponsors\/apparel_news\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'OCEAN DRIVE MAGAZINE\' coords=\'665,12,720,83\' href=\'\/miami\/11\/sponsors\/oceandrive\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'THE RALEIGH\' coords=\'410,3,450,89\' href=\'\/miami\/11\/sponsors\/raleigh_hotel\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'MAKE UP FOR EVER\' coords=\'220,2,260,88\' href=\'\/miami\/11\/sponsors\/makeupforever\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'CLARISONIC\' coords=\'275,2,330,88\' href=\'\/miami\/11\/sponsors\/clarisonics\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'TRESEMM\&Eacute\;\' coords=\'345,2,400,88\' href=\'\/miami\/11\/sponsors\/tresemme\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'AMERICAN EXPRESS\' coords=\'80,0,135,68\' href=\'\/miami\/11\/sponsors\/ax\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'DHL\' coords=\'145,0,205,78\' href=\'\/miami\/11\/sponsors\/dhl\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'MERCEDES-BENZ\' coords=\'0,0,75,85\' href=\'\/miami\/11\/sponsors\/mercedes-benz\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'RUFFINO\' coords=\'460,5,510,83\' href=\'\/miami\/11\/sponsors\/ruffino\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'MIAMI.com\' coords=\'730,0,790,78\' href=\'\/miami\/11\/sponsors\/miami.com\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'SHERRY-LEHMANN\' coords=\'515,0,590,68\' href=\'\/miami\/11\/sponsors\/sherry-lehmann\/\' target=\'_blank\'>")
document.write("<area shape=\'rect\' alt=\'SMARTWATER\' coords=\'595,0,655,68\' href=\'\/miami\/11\/sponsors\/smartwater\/\' target=\'_blank\'>");
document.write("<area shape=\'rect\' alt=\'an IMG event\' coords=\'940,2,990,82\' href=\'\/miami\/11\/about_us\/\' target=\'_blank\'>");
document.write(" <\/MAP> ");

}


function movedown() {
	if (window.moveupvar) clearTimeout(moveupvar)
	if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
	crossobj.style.top=parseInt(crossobj.style.top)-speed
	else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
	crossobj.top-=speed
	movedownvar=setTimeout("movedown()",100)
}

function moveup() {
	if (window.movedownvar) clearTimeout(movedownvar)
		if (iens6&&parseInt(crossobj.style.top)<=0)
	crossobj.style.top=parseInt(crossobj.style.top)+speed
	else if (ns4&&crossobj.top<=0)
	crossobj.top+=speed
	moveupvar=setTimeout("moveup()",100)
}

function stopscroll() {
if (window.moveupvar) clearTimeout(moveupvar)
if (window.movedownvar) clearTimeout(movedownvar)
}

function movetop() {
	stopscroll()
	if (iens6)
	crossobj.style.top=0
	else if (ns4)
	crossobj.top=0
}

function getcontent_height() {
	if (iens6)
	contentheight=crossobj.offsetHeight
	else if (ns4)
	document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height






// end script




