// Bidz Script Starter

// New Arrivals Initializer

function newArrivalsInit() {
	sp = new Spry.Widget.SlidingPanels("ticker");
	sp.sizeReset($('#ticker').getWidth());
}

// Initializing variables, objects and functions

var sp;

// This function correctly parses an XML string to a DOM document on both IE and non-IE browsers.
function parseXMLString(xmlString) 
{ 
    var xmlDoc = null; 

    if( ! window.DOMParser ) 
    { 
        // the xml string cannot be directly manipulated by browsers  
        // such as Internet Explorer because they rely on an external  
        // DOM parsing framework... 
        // create and load an XML document object through the DOM  
        // ActiveXObject that it can deal with 
        xmlDoc = new ActiveXObject( "Microsoft.XMLDOM" ); 
        xmlDoc.async = false; 
        xmlDoc.loadXML( xmlString ); 
    } 
    else 
    { 
        // the current browser is capable of creating its own DOM parser 
        parser = new DOMParser(); 
        xmlDoc = parser.parseFromString( xmlString, "text/xml" ) ; 
    } 

    return xmlDoc; 
}

