function url() 
{
var quoteUrl = document.URL;
alert(quoteUrl);
}

/******************** IMAGE REFRESH **********************/
<!--
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = '/Images/marketing_image_gaming.jpg'
theImages[1] = '/Images/marketing_image-AIRCRAFT.jpg'
theImages[2] = '/Images/marketing_image-train.jpg'
theImages[3] = '/Images/marketing_image_ship.jpg'

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
    preBuffer[i] = new Image()
    preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));

function showImage(){
    document.write('<img border="0" src="'+theImages[whichImage]+'">');
        
}
function runSlideShow() {
    if (document.all) {
    document.images.SlideShow.style.filter="blendTrans(duration=2)";
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
    document.images.SlideShow.filters.blendTrans.Apply();
    }
    document.images.SlideShow.src = preLoad[j].src;
    if (document.all) {
    document.images.SlideShow.filters.blendTrans.Play();
    }
    j = j + 1;
    if (j > (p - 1)) j = 0;
    t = setTimeout('runSlideShow()', slideShowSpeed);
}

//-->


/*********************** SLIDESHOW **********************/

var slideShowSpeed = 8000
var crossFadeDuration = 3
var Pic = new Array(), Alt = new Array(), theLinks = new Array();

Pic[1] = '/Images/ICP_banner_PCIE-Q350.jpg';
Pic[2] = '/Images/ICP_banner_POC-3174.jpg';
Pic[3] = '/Images/ICP_banner_PICO-ITX.jpg';
Pic[4] = '/Images/ICP_banner_PAC-54GH.jpg';
Pic[5] = '/Images/ICP_banner_PCIE-9652.jpg';
Pic[6] = '/Images/ICP_banner_KINO-9455.jpg';
Pic[7] = '/Images/ICP-banner-9453.jpg';


Alt[1] = 'PCIE-Q350';
Alt[2] = 'POC-3174';
Alt[3] = 'PICO-ITX';
Alt[4] = 'PAC-54GH';
Alt[5] = 'PCIE-9652';
Alt[6] = 'KINO-9455';
Alt[7] = 'NANO-9453';
    
var t
var j = 1
var p = Pic.length
var current

var preLoad = new Array();
for (i = 1; i <= p; i++){
    preLoad[i] = new Image()
    preLoad[i].src = Pic[i]
}

function runSlideShow(){
    if (document.all){
        document.images.SlideShow.style.filter="blendTrans(duration=2)"
        document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
        document.images.SlideShow.filters.blendTrans.Apply()      
    }
    document.images.SlideShow.src = preLoad[j].src
    document.images.SlideShow.alt = (Alt[j] || "");
    if (document.all){
        document.images.SlideShow.filters.blendTrans.Play()
    }
    current = j
    j = j + 1
    if (j >= p) j=1
    
    t = setTimeout('runSlideShow()', slideShowSpeed)
}

function slidelink(){
    if (current==1)	// the current number is already incremented to the next number at runslideshow()
    
window.location="/products/single_board_computers/picmg_13/core_2_duo-quad/pcie-q350.html"

else if (current==2)

window.location="/products/LCD_products/medical_panel_PC/poc_3174.html"

else if (current==3)

window.location="/products/single_board_computers/motherboard/small_form_factor/EPIA-PX.html"

else if (current==4)
    
window.location="/products/chassis/compact_wallmount_chassis/PAC_54GH.html"

else if (current==5)
    
window.location="/products/single_board_computers/picmg_13/core_2_duo-quad/pcie_9652.html"

else if (current==6)
    
window.location="/products/single_board_computers/motherboard/mini_itx/kino-9455.html"

else if (current==7)
    
window.location="/products/single_board_computers/epic/nano_9453.html"

}	
        
/******************** ICPA MENU ***************************/

function show(which){
    if (document.getElementById && document.createTextNode){
        m=document.getElementById("menu");
        trig=m.getElementsByTagName("div").item(which).style.display;
        if (trig=="inline") trig="none";
        else if (trig=="" || trig=="none") trig="inline";
        m.getElementsByTagName("div").item(which).style.display=trig;

        w=document.getElementById("arrow" + (which));  
    
        var x=new Array(w);
        
        var imgMenuOpen = new Image(); // for down-arrow image
        var imgMenuShut = new Image(); // for up-arrow image
        imgMenuOpen.src = "/images/arrow_up.gif";
        imgMenuShut.src = "/images/arrow_down.gif";
    
        for (var k=0; k<=PL_Length; k++)
        {
            if (trig=="none")
            {
                x[k].src = imgMenuShut.src;
    
            }
            else
            {
                x[k].src = imgMenuOpen.src;

            }
        }
    }
} 

function handleEvent(aEvent){ 
    // if aEvent is null, means the Internet Explorer event model, 
    // so get window.event. 
    var myEvent = aEvent ? aEvent : window.event; 
} 


function onPageLoad(){ 
    document.getElementById("myDiv").onclick = handleEvent; 
} 

var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var enableanchorlink=0 //Enable or disable the anchor link when clicked on? (1=e, 0=d)
var hidemenu_onclick=1 //hide menu when user clicks within menu? (1=yes, 0=no)
var horizontaloffset=0 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie5=document.all
var ns6=document.getElementById&&!document.all

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function showhide(obj, e, visible, hidden){
if (ie5||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie5 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth+(horizontaloffset*2) //no space to the right of page? Move menu over to the left
}
else{
var topedge=ie5 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie5 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function dropdownmenu(obj, e, dropmenuID){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
if (typeof dropmenuobj!="undefined") //hide previous menu
dropmenuobj.style.visibility="hidden"
clearhidemenu()
if (ie5||ns6){
obj.onmouseout=delayhidemenu
dropmenuobj=document.getElementById(dropmenuID)
if (hidemenu_onclick) dropmenuobj.onclick=function(){dropmenuobj.style.visibility='hidden'}
dropmenuobj.onmouseover=clearhidemenu
dropmenuobj.onmouseout=ie5? function(){ dynamichide(event)} : function(event){ dynamichide(event)}
showhide(dropmenuobj.style, e, "visible", "hidden")
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}
return clickreturnvalue()
}

function clickreturnvalue(){
if ((ie5||ns6) && !enableanchorlink) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie5&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function delayhidemenu(){
delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

/******************CSS TAB NAV*************************/
var tabText = [ 'FEATURES','SPECIFICATIONS','ORDERING INFO'];

function drawTabs() {
    document.write("<div id=navigation>");
    for (var x = 0; x < tabText.length; x++) {
        document.write("<a href='javascript:switchTab("+x+")' id='tablink"+x+"'><span id='span"+x+"'>"+tabText[x]+"</span></a>");
    }
    document.write("</div>");
document.getElementById("tablink0").style.color = "#1DAA1E";
    document.getElementById("tablink0").style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
document.getElementById("tablink0").style.padding = "0px 0px 0px 8px";
    document.getElementById("span0").style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
document.getElementById("span0").style.padding = "0px 8px 0px 0px";
}
function switchTab(tab) {
    for (var x = 0; x < tabText.length; x++) {
        if (x != tab)
            document.getElementById("currentTabInfo"+x).style.display = "none";
            document.getElementById("tablink"+x).style.color = "#FFFFFF";
            document.getElementById("tablink"+x).style.background = "#1DAA1E url(/images/tabLeft75.gif) left top no-repeat";
            
            document.getElementById("span"+x).style.background = "url(/images/tabRight75.gif) no-repeat right top";

    }
    document.getElementById("currentTabInfo"+tab).style.display = "inline";
    document.getElementById("tablink"+tab).style.color = "#1DAA1E";
    document.getElementById("tablink"+tab).style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
    
    document.getElementById("span"+tab).style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
}

/******************CSS TAB NAV CHASSIS*****************/
var tabTextChassis = ['FEATURES','SPECIFICATIONS','BACKPLANE','POWER','ORDER'];

function drawTabsChassis() {
    document.write("<div id=navigation>");
    for (var x = 0; x < tabTextChassis.length; x++) {
        document.write("<a href='javascript:switchTabChassis("+x+")' id='tablink"+x+"'><span id='span"+x+"'>"+tabTextChassis[x]+"</span></a>");
            }
    document.write("</div>");
document.getElementById("tablink0").style.color = "#1DAA1E";
    document.getElementById("tablink0").style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
document.getElementById("tablink0").style.padding = "0px 0px 0px 8px";
    document.getElementById("span0").style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
document.getElementById("span0").style.padding = "0px 8px 0px 0px";
}
function switchTabChassis(tab) {
    for (var x = 0; x < tabTextChassis.length; x++) {
        if (x != tab)
            document.getElementById("currentTabInfo"+x).style.display = "none";
            document.getElementById("tablink"+x).style.color = "#FFFFFF";
            document.getElementById("tablink"+x).style.background = "#1DAA1E url(/images/tabLeft75.gif) left top no-repeat";
            
            document.getElementById("span"+x).style.background = "url(/images/tabRight75.gif) no-repeat right top";

    }
    document.getElementById("currentTabInfo"+tab).style.display = "inline";
    document.getElementById("tablink"+tab).style.color = "#1DAA1E";
    document.getElementById("tablink"+tab).style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
    
    document.getElementById("span"+tab).style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
}

/**********CSS TAB NAV CHASSIS MOTHERBORAD*******/
var tabTextChassisMotherboard = ['FEATURES','SPECIFICATION','MOTHERBOARD','POWER','ORDER'];

function drawTabsChassisMotherboard() {
    document.write("<div id=navigation>");
    for (var x = 0; x < tabTextChassisMotherboard.length; x++) {
        document.write("<a href='javascript:switchTabChassisMotherboard("+x+")' id='tablink"+x+"'><span id='span"+x+"'>"+tabTextChassisMotherboard[x]+"</span></a>");
            }
    document.write("</div>");
document.getElementById("tablink0").style.color = "#1DAA1E";
    document.getElementById("tablink0").style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
document.getElementById("tablink0").style.padding = "0px 0px 0px 8px";
    document.getElementById("span0").style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
document.getElementById("span0").style.padding = "0px 8px 0px 0px";
}
function switchTabChassisMotherboard(tab) {
    for (var x = 0; x < tabTextChassisMotherboard.length; x++) {
        if (x != tab)
            document.getElementById("currentTabInfo"+x).style.display = "none";
            document.getElementById("tablink"+x).style.color = "#FFFFFF";
            document.getElementById("tablink"+x).style.background = "#1DAA1E url(/images/tabLeft75.gif) left top no-repeat";
            
            document.getElementById("span"+x).style.background = "url(/images/tabRight75.gif) no-repeat right top";

    }
    document.getElementById("currentTabInfo"+tab).style.display = "inline";
    document.getElementById("tablink"+tab).style.color = "#1DAA1E";
    document.getElementById("tablink"+tab).style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
    
    document.getElementById("span"+tab).style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
}


/******************CSS TAB2 NAV*************************/
var tabText2 = [ 'FEATURES','SPECIFICATIONS','ORDERING INFO'];

function drawTabs2() {
    document.write("<div id=navigation>");
    for (var x = 0; x < tabText2.length; x++) {
        document.write("<a href='javascript:switchTab2("+x+")' id='tablink2"+x+"'><span id='span2"+x+"'>"+tabText2[x]+"</span></a>");
    }
    document.write("</div>");
document.getElementById("tablink20").style.color = "#1DAA1E";
    document.getElementById("tablink20").style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
document.getElementById("tablink20").style.padding = "0px 0px 0px 8px";
    document.getElementById("span20").style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
document.getElementById("span20").style.padding = "0px 8px 0px 0px";
}
function switchTab2(tab) {
    for (var x = 0; x < tabText2.length; x++) {
        if (x != tab)
            document.getElementById("currentTabInfo2"+x).style.display = "none";
            document.getElementById("tablink2"+x).style.color = "#FFFFFF";
            document.getElementById("tablink2"+x).style.background = "#1DAA1E url(/images/tabLeft75.gif) left top no-repeat";
            
            document.getElementById("span2"+x).style.background = "url(/images/tabRight75.gif) no-repeat right top";

    }
    document.getElementById("currentTabInfo2"+tab).style.display = "inline";
    document.getElementById("tablink2"+tab).style.color = "#1DAA1E";
    document.getElementById("tablink2"+tab).style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
    
    document.getElementById("span2"+tab).style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
}

/******************CSS TAB3 NAV*************************/
var tabText3 = [ 'FEATURES','SPECIFICATIONS','ORDERING INFO'];

function drawTabs3() {
    document.write("<div id=navigation>");
    for (var x = 0; x < tabText.length; x++) {
        document.write("<a href='javascript:switchTab3("+x+")' id='tablink3"+x+"'><span id='span3"+x+"'>"+tabText3[x]+"</span></a>");
    }
    document.write("</div>");
document.getElementById("tablink30").style.color = "#1DAA1E";
    document.getElementById("tablink30").style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
document.getElementById("tablink30").style.padding = "0px 0px 0px 8px";
    document.getElementById("span30").style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
document.getElementById("span30").style.padding = "0px 8px 0px 0px";
}
function switchTab3(tab) {
    for (var x = 0; x < tabText3.length; x++) {
        if (x != tab)
            document.getElementById("currentTabInfo3"+x).style.display = "none";
            document.getElementById("tablink3"+x).style.color = "#FFFFFF";
            document.getElementById("tablink3"+x).style.background = "#1DAA1E url(/images/tabLeft75.gif) left top no-repeat";
            
            document.getElementById("span3"+x).style.background = "url(/images/tabRight75.gif) no-repeat right top";

    }
    document.getElementById("currentTabInfo3"+tab).style.display = "inline";
    document.getElementById("tablink3"+tab).style.color = "#1DAA1E";
    document.getElementById("tablink3"+tab).style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
    
    document.getElementById("span3"+tab).style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
}

/******************CSS TAB4 NAV*************************/
var tabText4 = [ 'FEATURES','SPECIFICATIONS','ORDERING INFO'];

function drawTabs4() {
    document.write("<div id=navigation>");
    for (var x = 0; x < tabText.length; x++) {
        document.write("<a href='javascript:switchTab4("+x+")' id='tablink4"+x+"'><span id='span4"+x+"'>"+tabText4[x]+"</span></a>");
    }
    document.write("</div>");
document.getElementById("tablink40").style.color = "#1DAA1E";
    document.getElementById("tablink40").style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
document.getElementById("tablink40").style.padding = "0px 0px 0px 8px";
    document.getElementById("span40").style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
document.getElementById("span40").style.padding = "0px 8px 0px 0px";
}
function switchTab4(tab) {
    for (var x = 0; x < tabText4.length; x++) {
        if (x != tab)
            document.getElementById("currentTabInfo4"+x).style.display = "none";
            document.getElementById("tablink4"+x).style.color = "#FFFFFF";
            document.getElementById("tablink4"+x).style.background = "#1DAA1E url(/images/tabLeft75.gif) left top no-repeat";
            
            document.getElementById("span4"+x).style.background = "url(/images/tabRight75.gif) no-repeat right top";

    }
    document.getElementById("currentTabInfo4"+tab).style.display = "inline";
    document.getElementById("tablink4"+tab).style.color = "#1DAA1E";
    document.getElementById("tablink4"+tab).style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
    
    document.getElementById("span4"+tab).style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
}

/***********SBC Systems Multiple Product Links**********/

function sbcSystemProductLinks(sbcSystems) {
    document.write("<div id=sbcSystem>");
    for (var x = 0; x < sbcSystems.length; x++) {
        document.write("&nbsp;&nbsp;&nbsp;&nbsp;<a href='javascript:switchProduct1("+x+")' id='sbcSystemlink"+x+"'><span id='spanSystem"+x+"'>"+sbcSystems[x]+"</span></a>&nbsp;&nbsp;&nbsp;&nbsp;");
    }
document.write("</div>");
document.getElementById("sbcSystemlink0").style.background = "#EFEFEF";
}

function switchProduct1(sbcSystem) {
    for (var x = 0; x < sbcSystems.length; x++) {
        if (x != sbcSystem)
            document.getElementById("sbcSystemProduct"+x).style.display = "none";
document.getElementById("sbcSystemlink"+x).style.background = "#FFFFFF";
    }
    document.getElementById("sbcSystemProduct"+sbcSystem).style.display = "inline";
document.getElementById("sbcSystemlink"+sbcSystem).style.background = "#EFEFEF";
}

/******************CSS TAB NAV DC TO DC*****************/
var tabTextDcToDc = ['FEATURES','SPECS','PIN ASSIGNMENTS','ORDER INFO'];

function drawTabsDcToDc() {
    document.write("<div id=navigation>");
    for (var x = 0; x < tabTextDcToDc.length; x++) {
        document.write("<a href='javascript:switchTabDcToDc("+x+")' id='tablink"+x+"'><span id='span"+x+"'>"+tabTextDcToDc[x]+"</span></a>");
            }
    document.write("</div>");
document.getElementById("tablink0").style.color = "#1DAA1E";
    document.getElementById("tablink0").style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
document.getElementById("tablink0").style.padding = "0px 0px 0px 8px";
    document.getElementById("span0").style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
document.getElementById("span0").style.padding = "0px 8px 0px 0px";
}
function switchTabDcToDc(tab) {
    for (var x = 0; x < tabTextChassis.length; x++) {
        if (x != tab)
            document.getElementById("currentTabInfo"+x).style.display = "none";
            document.getElementById("tablink"+x).style.color = "#FFFFFF";
            document.getElementById("tablink"+x).style.background = "#1DAA1E url(/images/tabLeft75.gif) left top no-repeat";
            
            document.getElementById("span"+x).style.background = "url(/images/tabRight75.gif) no-repeat right top";

    }
    document.getElementById("currentTabInfo"+tab).style.display = "inline";
    document.getElementById("tablink"+tab).style.color = "#1DAA1E";
    document.getElementById("tablink"+tab).style.background = "#F5F5E6 url(/images/tabLeft75_on.gif) left top no-repeat";
    
    document.getElementById("span"+tab).style.background = "url(/images/tabRight75_on.gif) no-repeat right top";
}