// JavaScript Document
function refreshWindow() {
	top.window.location.href == top.window.location.href
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function checkForm(thisForm, checkForCreditCard)  {
        bFormError = false;   //Boolean variable to store form state
        bIsValidCard = false; //Boolean variable to store CC state
        strErrorList = "";    //String list of missing/errorsum fields

        if( thisForm.FIRST.value==''  ) {bFormError = true;  strErrorList += "First Name, ";}
        if( thisForm.LAST.value==''   ) {bFormError = true;  strErrorList += "Last Name, ";}
        if( thisForm.ADDRESS.value=='') {bFormError = true;  strErrorList += "Address, ";}
        if( thisForm.CITY.value==''   ) {bFormError = true;  strErrorList += "City, ";}
        if( thisForm.STATE.value==''  ) {bFormError = true;  strErrorList += "State, ";}
        if( thisForm.ZIP.value==''    ) {bFormError = true;  strErrorList += "Zip, ";}
        if( thisForm.PHONE.value==''  ) {bFormError = true;  strErrorList += "Phone, ";}
        if( thisForm.ACCOUNT.value=='') {bFormError = true;  strErrorList += "Credit Card Number, ";}
        if( thisForm.MONTH.value==''  ) {bFormError = true;  strErrorList += "Month, ";}
        if( thisForm.YEAR.value==''   ) {bFormError = true;  strErrorList += "Year ";}
        if( bFormError == true ) {
        alert("I'm sorry, but you had one or more missing or invalid entries.\n"
        +"Please check the following fields: \n\n"
        +strErrorList
        +"\n\n");
        return false;
        }
        //Check for valid Visa
        if (((thisForm.ACCOUNT.value.length == 16) || (thisForm.ACCOUNT.value.length == 13)) &&
        (thisForm.ACCOUNT.value.substring(0,1) == 4))
        bIsValidCard = true;
        //Check for valid MasterCard

                firstdig = thisForm.ACCOUNT.value.substring(0,1);

                seconddig = thisForm.ACCOUNT.value.substring(1,2);

                if ((thisForm.ACCOUNT.value.length == 16) &&

                    (firstdig == 5) && ((seconddig >= 1) &&

                        (seconddig <= 5))

                   )

                        bIsValidCard = true;

                if (bIsValidCard == false){

                        alert("I'm sorry, but you need to enter a valid credit card number.\n");

                        return false;

                }



        return needComments();

} //END function checkForm

function CKquantity(checkString) {
        strNewQuantity = "";    // String Adjusted Item Quantity
        count     = 0;          // Generic Loop Counter

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

                ch = checkString.substring(i, i+1);

                if ((ch >= "0" && ch <= "9") || (ch == '.')) {

                        strNewQuantity += ch;

                }

        }

        if (strNewQuantity.length < 1)

                strNewQuantity = "1";

        return strNewQuantity;
}

function AddToCart(thisForm) {

        iNumberOrdered = 0;  //Integer number of products already ordered
        iNumberOrdered = GetCookie("NumberOrdered");
        iNumberOrdered++;
        if ( iNumberOrdered > 400 )

                alert("I'm Sorry, your cart is full, please proceed to checkout.");

        else {

                dbUpdatedOrder = thisForm.QUANTITY.value + "|"

                                 + thisForm.PRICE.value  + "|"

                                 + thisForm.ID_NUM.value + "|"

                                 + thisForm.NAME.value;
        NewOrder = "Order." + iNumberOrdered;

                SetCookie (NewOrder, dbUpdatedOrder, null, "/");

                SetCookie ("NumberOrdered", iNumberOrdered, null, "/");


                parent.rightFrame.location.href=parent.rightFrame.location.href;

        }

}

function RefreshCart()  {
	parent.rightFrame.location.href=parent.rightFrame.location.href
}

function getCookieVal (offset) {

        var endstr = document.cookie.indexOf (";", offset);

        if (endstr == -1)

                endstr = document.cookie.length;

        return unescape(document.cookie.substring(offset, endstr));

}


function FixCookieDate (date) {

        var base = new Date(0);

        var skew = base.getTime();

        date.setTime (date.getTime() - skew);

}

function GetCookie (name) {

        var arg = name + "=";

        var alen = arg.length;

        var clen = document.cookie.length;

        var i = 0;

        while (i < clen)

                {

                var j = i + alen;

                if (document.cookie.substring(i, j) == arg) return getCookieVal (j);

                i = document.cookie.indexOf(" ", i) + 1;

                if (i == 0) break;

                }



        return null;

}

function SetCookie (name,value,expires,path,domain,secure) {

        document.cookie = name + "=" + escape (value) +

                        ((expires) ? "; expires=" + expires.toGMTString() : "") +

                        ((path) ? "; path=" + path : "") +

                        ((domain) ? "; domain=" + domain : "") +

                        ((secure) ? "; secure" : "");

}


function DeleteCookie (name,path,domain) {

        if (GetCookie(name)) {

                document.cookie = name + "=" +

                                ((path) ? "; path=" + path : "") +

                                ((domain) ? "; domain=" + domain : "") +

                                "; expires=Thu, 01-Jan-70 00:00:01 GMT";

        }

}


function moneyFormat(input) {

        var dollars = Math.floor(input)

        var tmp = new String(input)

        for (var decimalAt = 0; decimalAt < tmp.length; decimalAt++) {

                if (tmp.charAt(decimalAt)==".")

                        break;

        }



        var cents  = "" + Math.round(input * 100)

        cents = cents.substring(cents.length-2, cents.length)

        dollars += ((tmp.charAt(decimalAt+2)=="9")&&(cents=="00"))? 1 : 0;



        return dollars + "." + cents

}


function RemoveFromCart(RemOrder) {


                NumberOrdered = GetCookie("NumberOrdered");

                for(i=RemOrder; i <  NumberOrdered; i++) {

                        NewOrder1 = "Order." + (i+1);

                        NewOrder2 = "Order." + (i);

                        database = GetCookie(NewOrder1);

                        SetCookie (NewOrder2, database, null, "/");

                }

                NewOrder = "Order." + NumberOrdered;

                SetCookie ("NumberOrdered", NumberOrdered-1, null, "/");

                DeleteCookie(NewOrder, "/");

                parent.rightFrame.location.href=parent.rightFrame.location.href;

}

function GetFromCart() {

        NumberOrdered = 0;

        Total=0;

        TOTotal=0;

        TOquantity = " ";

        TOprice = " ";

        TOid_num = " ";

        TOname = " ";

        NumberOrdered = GetCookie("NumberOrdered");

        whattowrite = "";



        for (i = 1; i <= NumberOrdered; i++) {

                NewOrder = "Order." + i;

                database = "";

                database = GetCookie(NewOrder);



                Token0 = database.indexOf("|", 0);

                Token1 = database.indexOf("|", Token0+1);

                Token2 = database.indexOf("|", Token1+1);



                fields = new Array;

                fields[0] = database.substring( 0, Token0 );

                fields[1] = database.substring( Token0+1, Token1 );

                fields[2] = database.substring( Token1+1, Token2 );

                fields[3] = database.substring( Token2+1, database.length );



                Total = Total + (fields[1] * fields[0]);

                TOTotal = moneyFormat(Total);

                whattowrite += "<tr> <td>" + fields[2] + "</td> <br> <td>"

                                + fields[3] + "</td> <br> <td>" + fields[1]

                                <!--+ "</td><td><input type=text size=2 name=\"QUANTITY_"+ i +"\" value=\""

                                <!--+ fields[0] + "\"></td>"

                               <!-- + "<td><input type=button value=\"-\" onClick=\"RemoveFromCart("+i+")\"></td> <br>...<br><br>"-->

                                + "<input type=hidden name=\"ID_"+ i +"\" value=\"" + fields[2] + "\">"

                                + "<input type=hidden name=\"NAME_"+ i +"\" value=\"" + fields[3] + "\">"

                                + "<input type=hidden name=\"PRICE_"+ i +"\" value=\"" + fields[1] + "\">"
								
								+ "<br /><br /><a href=\"#\" class=\"cart\" onmousedown=\"RemoveFromCart("+i+")\" onmouseup=\"RefreshCart()\" >remove</a>"
								+"<br>...<br>";
        }



        document.write(whattowrite);

        document.write("</td></tr><tr><td colspan=2 halign=\"right\"> <br> Total: </td><td>  &euro;");

        document.write(TOTotal);

        document.write("</td><td></td>");

}


function WriteToForm() {

        NumberOrdered = 0;

        Total=0;

        TOTotal=0;

        TOquantity = " ";

        TOprice = " ";

        TOid_num = " ";

        TOname = " ";

        NumberOrdered = GetCookie("NumberOrdered");

        whattowrite = "";



        for (i = 1; i <= NumberOrdered; i++) {

                NewOrder = "Order." + i;

                database = "";

                database = GetCookie(NewOrder);



                Token0 = database.indexOf("|", 0);

                Token1 = database.indexOf("|", Token0+1);

                Token2 = database.indexOf("|", Token1+1);



                fields = new Array;

                fields[0] = database.substring( 0, Token0 );

                fields[1] = database.substring( Token0+1, Token1 );

                fields[2] = database.substring( Token1+1, Token2 );
                fields[3] = database.substring( Token2+1, database.length );
                Total = Total + (fields[1] * fields[0]);

                TOTotal = moneyFormat(Total);
                document.write("<input type=hidden name=\"ID_"+ i +"\" value=\"" + fields[2] + "\">");
                document.write("<input type=hidden name=\"NAME_"+ i +"\" value=\"" + fields[3] + "\">");
                document.write("<input type=hidden name=\"PRICE_"+ i +"\" value=\"" + fields[1] + "\">");
                document.write("<input type=hidden name=\"QUANTITY_"+ i +"\" value=\"" + fields[0] + "\">");

        }

}




ypSimpleScroll.prototype.scrollNorth = function() { this.startScroll(90) }
ypSimpleScroll.prototype.scrollSouth = function() { this.startScroll(270) }
ypSimpleScroll.prototype.scrollWest = function() { this.startScroll(180) }
ypSimpleScroll.prototype.scrollEast = function() { this.startScroll(0) }
ypSimpleScroll.prototype.startScroll = function(deg, speed) {
if (this.loaded)
{
if (this.aniTimer) window.clearTimeout(this.aniTimer)
this.overrideScrollAngle(deg)
this.speed = speed ? speed : this.origSpeed
this.lastTime = (new Date()).getTime() - this.y.minRes
this.aniTimer = window.setTimeout(this.gRef + ".scroll()", this.y.minRes)
}
}
ypSimpleScroll.prototype.endScroll = function() {
if (this.loaded)
{
window.clearTimeout(this.aniTimer)
this.aniTimer = 0;
this.speed = this.origSpeed
}
}
ypSimpleScroll.prototype.overrideScrollAngle = function(deg) {
if (this.loaded)
{
deg = deg % 360
if (deg % 90 == 0) {
var cos = deg == 0 ? 1 : deg == 180 ? -1 : 0
var sin = deg == 90 ? -1 : deg == 270 ? 1 : 0
} else {
var angle = deg * Math.PI / 180
var cos = Math.cos(angle)
var sin = Math.sin(angle)
sin = -sin
}
this.fx = cos / (Math.abs(cos) + Math.abs(sin))
this.fy = sin / (Math.abs(cos) + Math.abs(sin))
this.stopH = deg == 90 || deg == 270 ? this.scrollLeft : deg < 90 || deg > 270 ? this.scrollW : 0
this.stopV = deg == 0 || deg == 180 ? this.scrollTop : deg < 180 ? 0 : this.scrollH
}
}
ypSimpleScroll.prototype.overrideScrollSpeed = function(speed) {
if (this.loaded) this.speed = speed
}
ypSimpleScroll.prototype.scrollTo = function(stopH, stopV, aniLen) {
if (this.loaded)
{
if (stopH != this.scrollLeft || stopV != this.scrollTop) {
if (this.aniTimer) window.clearTimeout(this.aniTimer)
this.lastTime = (new Date()).getTime()
var dx = Math.abs(stopH - this.scrollLeft)
var dy = Math.abs(stopV - this.scrollTop)
var d = Math.sqrt(Math.pow(dx,2) + Math.pow(dy,2))
this.fx = (stopH - this.scrollLeft) / (dx + dy)
this.fy = (stopV - this.scrollTop) / (dx + dy)
this.stopH = stopH
this.stopV = stopV
this.speed = d / aniLen * 1000
window.setTimeout(this.gRef + ".scroll()", this.y.minRes)
}
}
}
ypSimpleScroll.prototype.jumpTo = function(nx, ny) { 
if (this.loaded)
{
nx = Math.min(Math.max(nx, 0), this.scrollW)
ny = Math.min(Math.max(ny, 0), this.scrollH)
this.scrollLeft = nx
this.scrollTop = ny
if (this.y.ns4)this.content.moveTo(-nx, -ny)
else {
this.content.style.left = -nx + "px"
this.content.style.top = -ny + "px"
}
}
}
ypSimpleScroll.minRes = 10
ypSimpleScroll.ie = document.all ? 1 : 0
ypSimpleScroll.ns4 = document.layers ? 1 : 0
ypSimpleScroll.dom = document.getElementById ? 1 : 0
ypSimpleScroll.mac = navigator.platform == "MacPPC"
ypSimpleScroll.mo5 = document.getElementById && !document.all ? 1 : 0
ypSimpleScroll.prototype.scroll = function() {
this.aniTimer = window.setTimeout(this.gRef + ".scroll()", this.y.minRes)
var nt = (new Date()).getTime()
var d = Math.round((nt - this.lastTime) / 1000 * this.speed)
if (d > 0)
{
var nx = d * this.fx + this.scrollLeft
var ny = d * this.fy + this.scrollTop
var xOut = (nx >= this.scrollLeft && nx >= this.stopH) || (nx <= this.scrollLeft && nx <= this.stopH)
var yOut = (ny >= this.scrollTop && ny >= this.stopV) || (ny <= this.scrollTop && ny <= this.stopV)
if (nt - this.lastTime != 0 &&
((this.fx == 0 && this.fy == 0) ||
(this.fy == 0 && xOut) ||
(this.fx == 0 && yOut) ||
(this.fx != 0 && this.fy != 0 && xOut && yOut)))
{
this.jumpTo(this.stopH, this.stopV)
this.endScroll()
}
else {
this.jumpTo(nx, ny)
this.lastTime = nt
}
}
}
function ypSimpleScroll(id, left, top, width, height, speed, contentWidth, initLeft, initTop)
{
var y = this.y = ypSimpleScroll
if (!initLeft) initLeft = 0
if (!initTop) initTop = 0
if (!contentWidth) contentWidth = width
if (document.layers && !y.ns4) history.go(0)
if (y.ie || y.ns4 || y.dom) {
this.loaded = false
this.id = id
this.origSpeed = speed
this.aniTimer = false
this.op = ""
this.lastTime = 0
this.clipH = height
this.clipW = width
this.scrollTop = initTop
this.scrollLeft = initLeft
this.gRef = "ypSimpleScroll_"+id
eval(this.gRef+"=this")
var d = document
d.write('<style type="text/css">')
d.write('#' + this.id + 'Container { left:' + left + 'px; top:' + top + 'px; width:' + width + 'px; height:' + height + 'px; clip:rect(0 ' + width + ' ' + height + ' 0); overflow:hidden; }')
d.write('#' + this.id + 'Container, #' + this.id + 'Content { position:absolute; }')
d.write('#' + this.id + 'Content { left:' + (-initLeft) + 'px; top:' + (-initTop) + 'px; width:' + contentWidth + 'px; }')
d.write('</style>')
}
}
ypSimpleScroll.prototype.load = function() {
var d, lyrId1, lyrId2, srcId
d = document
lyrId1 = this.id + "Container"
lyrId2 = this.id + "Content"
scrId  = this.id + "Scroller"
this.container = this.y.dom ? d.getElementById(lyrId1) : this.y.ie ? d.all[lyrId1] : d.layers[lyrId1]
this.content = obj2 = this.y.ns4 ? this.container.layers[lyrId2] : this.y.ie ? d.all[lyrId2] : d.getElementById(lyrId2)
this.scroller = obj2 = this.y.ns4 ? this.container.layers[scrId] : this.y.ie ? d.all[scrId] : d.getElementById(scrId)
this.contH = this.y.ns4 ? this.content.document.height : this.content.offsetHeight
this.contW = this.y.ns4 ? this.content.document.width  : this.content.offsetWidth
this.docH = Math.max(this.contH, this.clipH)
this.docW = Math.max(this.contW,  this.clipW)
this.scrollH = this.docH - this.clipH
this.scrollW = this.docW - this.clipW
this.loaded = true
this.scrollLeft = Math.max(Math.min(this.scrollLeft, this.scrollW),0)
this.scrollTop = Math.max(Math.min(this.scrollTop, this.scrollH),0)
this.jumpTo(this.scrollLeft, this.scrollTop)
this.contH < this.clipH ? this.scroller.style.display = "none" : this.scroller.style.display = "block"
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}



<!-- scrolling -->

ypSimpleScroll.prototype.scrollNorth = function() { this.startScroll(90) }
ypSimpleScroll.prototype.scrollSouth = function() { this.startScroll(270) }
ypSimpleScroll.prototype.scrollWest = function() { this.startScroll(180) }
ypSimpleScroll.prototype.scrollEast = function() { this.startScroll(0) }
ypSimpleScroll.prototype.startScroll = function(deg, speed) {
if (this.loaded)
{
if (this.aniTimer) window.clearTimeout(this.aniTimer)
this.overrideScrollAngle(deg)
this.speed = speed ? speed : this.origSpeed
this.lastTime = (new Date()).getTime() - this.y.minRes
this.aniTimer = window.setTimeout(this.gRef + ".scroll()", this.y.minRes)
}
}
ypSimpleScroll.prototype.endScroll = function() {
if (this.loaded)
{
window.clearTimeout(this.aniTimer)
this.aniTimer = 0;
this.speed = this.origSpeed
}
}
ypSimpleScroll.prototype.overrideScrollAngle = function(deg) {
if (this.loaded)
{
deg = deg % 360
if (deg % 90 == 0) {
var cos = deg == 0 ? 1 : deg == 180 ? -1 : 0
var sin = deg == 90 ? -1 : deg == 270 ? 1 : 0
} else {
var angle = deg * Math.PI / 180
var cos = Math.cos(angle)
var sin = Math.sin(angle)
sin = -sin
}
this.fx = cos / (Math.abs(cos) + Math.abs(sin))
this.fy = sin / (Math.abs(cos) + Math.abs(sin))
this.stopH = deg == 90 || deg == 270 ? this.scrollLeft : deg < 90 || deg > 270 ? this.scrollW : 0
this.stopV = deg == 0 || deg == 180 ? this.scrollTop : deg < 180 ? 0 : this.scrollH
}
}
ypSimpleScroll.prototype.overrideScrollSpeed = function(speed) {
if (this.loaded) this.speed = speed
}
ypSimpleScroll.prototype.scrollTo = function(stopH, stopV, aniLen) {
if (this.loaded)
{
if (stopH != this.scrollLeft || stopV != this.scrollTop) {
if (this.aniTimer) window.clearTimeout(this.aniTimer)
this.lastTime = (new Date()).getTime()
var dx = Math.abs(stopH - this.scrollLeft)
var dy = Math.abs(stopV - this.scrollTop)
var d = Math.sqrt(Math.pow(dx,2) + Math.pow(dy,2))
this.fx = (stopH - this.scrollLeft) / (dx + dy)
this.fy = (stopV - this.scrollTop) / (dx + dy)
this.stopH = stopH
this.stopV = stopV
this.speed = d / aniLen * 1000
window.setTimeout(this.gRef + ".scroll()", this.y.minRes)
}
}
}
ypSimpleScroll.prototype.jumpTo = function(nx, ny) { 
if (this.loaded)
{
nx = Math.min(Math.max(nx, 0), this.scrollW)
ny = Math.min(Math.max(ny, 0), this.scrollH)
this.scrollLeft = nx
this.scrollTop = ny
if (this.y.ns4)this.content.moveTo(-nx, -ny)
else {
this.content.style.left = -nx + "px"
this.content.style.top = -ny + "px"
}
}
}
ypSimpleScroll.minRes = 10
ypSimpleScroll.ie = document.all ? 1 : 0
ypSimpleScroll.ns4 = document.layers ? 1 : 0
ypSimpleScroll.dom = document.getElementById ? 1 : 0
ypSimpleScroll.mac = navigator.platform == "MacPPC"
ypSimpleScroll.mo5 = document.getElementById && !document.all ? 1 : 0
ypSimpleScroll.prototype.scroll = function() {
this.aniTimer = window.setTimeout(this.gRef + ".scroll()", this.y.minRes)
var nt = (new Date()).getTime()
var d = Math.round((nt - this.lastTime) / 1000 * this.speed)
if (d > 0)
{
var nx = d * this.fx + this.scrollLeft
var ny = d * this.fy + this.scrollTop
var xOut = (nx >= this.scrollLeft && nx >= this.stopH) || (nx <= this.scrollLeft && nx <= this.stopH)
var yOut = (ny >= this.scrollTop && ny >= this.stopV) || (ny <= this.scrollTop && ny <= this.stopV)
if (nt - this.lastTime != 0 &&
((this.fx == 0 && this.fy == 0) ||
(this.fy == 0 && xOut) ||
(this.fx == 0 && yOut) ||
(this.fx != 0 && this.fy != 0 && xOut && yOut)))
{
this.jumpTo(this.stopH, this.stopV)
this.endScroll()
}
else {
this.jumpTo(nx, ny)
this.lastTime = nt
}
}
}
function ypSimpleScroll(id, left, top, width, height, speed, contentWidth, initLeft, initTop)
{
var y = this.y = ypSimpleScroll
if (!initLeft) initLeft = 0
if (!initTop) initTop = 0
if (!contentWidth) contentWidth = width
if (document.layers && !y.ns4) history.go(0)
if (y.ie || y.ns4 || y.dom) {
this.loaded = false
this.id = id
this.origSpeed = speed
this.aniTimer = false
this.op = ""
this.lastTime = 0
this.clipH = height
this.clipW = width
this.scrollTop = initTop
this.scrollLeft = initLeft
this.gRef = "ypSimpleScroll_"+id
eval(this.gRef+"=this")
var d = document
d.write('<style type="text/css">')
d.write('#' + this.id + 'Container { left:' + left + 'px; top:' + top + 'px; width:' + width + 'px; height:' + height + 'px; clip:rect(0 ' + width + ' ' + height + ' 0); overflow:hidden; }')
d.write('#' + this.id + 'Container, #' + this.id + 'Content { position:absolute; }')
d.write('#' + this.id + 'Content { left:' + (-initLeft) + 'px; top:' + (-initTop) + 'px; width:' + contentWidth + 'px; }')
d.write('</style>')
}
}
ypSimpleScroll.prototype.load = function() {
var d, lyrId1, lyrId2
d = document
lyrId1 = this.id + "Container"
lyrId2 = this.id + "Content"
this.container = this.y.dom ? d.getElementById(lyrId1) : this.y.ie ? d.all[lyrId1] : d.layers[lyrId1]
this.content = obj2 = this.y.ns4 ? this.container.layers[lyrId2] : this.y.ie ? d.all[lyrId2] : d.getElementById(lyrId2)
this.docH = Math.max(this.y.ns4 ? this.content.document.height : this.content.offsetHeight, this.clipH)
this.docW = Math.max(this.y.ns4 ? this.content.document.width : this.content.offsetWidth, this.clipW)
this.scrollH = this.docH - this.clipH
this.scrollW = this.docW - this.clipW
this.loaded = true
this.scrollLeft = Math.max(Math.min(this.scrollLeft, this.scrollW),0)
this.scrollTop = Math.max(Math.min(this.scrollTop, this.scrollH),0)
this.jumpTo(this.scrollLeft, this.scrollTop)
}
	var box = new ypSimpleScroll('box', 0, 0, 210, 100, 100);

	function checkFrameSet() {

	if ((frameset_url != '') && (self.location.href == top.window.location.href)) {
		top.window.location.href = frameset_url;
	}
}

