var newwindow;
var tiqpath = 'http://www.toothiq.net/animations/toothiqpro-animations.aspx';
var defaultsize = 'l';       /* s=small  m=medium  l=large */
var tiqid = '019dc6ba406e4e8c94453cb915bc96b3';     /* Your unique code. Do not modify! */
var anpulldown = '0';  /* 1=on  0=off */

function backlink(mn) {

    /*var menuid = document.body.getElementsByTagName("li");
    for (var i = 0; i < menuid.length; i++) { 
    idd = menuid[i].getAttribute("id"); 
    if ( idd == mn) { menuid[i].setAttribute('className','classbackcolor');
    menuid[i].className = "classbackcolor"; }              
    }*/
    var menuid = document.getElementById(mn);
    menuid.className = "classbackcolor";
    menuid.setAttribute('className', 'classbackcolor');
    //document.getElementById(mn).style.backgroundColor = 'Red';
}

function cng(mn) {
    //alert('ssss');
    document.body.setAttribute("onload", "backlink('" + mn + "')");
}

function getQuerystring(key, default_) {
    if (default_ == null) default_ = "";
    key = key.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
    var regex = new RegExp("[\\?&]" + key + "=([^&#]*)");
    var qs = regex.exec(window.location.href);
    if (qs == null)
        return default_;
    else
        return qs[1];
}

function tiqw(url) {
    newwindow = window.open(tiqpath + '?a=' + url + '&s=' + defaultsize + '&id=' + tiqid + '&pulldown=' + anpulldown, 'toothiqanim', 'status=0,toolbar=0,menubar=0,resizable=1,scrollbars=1,height=530,width=520');
    if (window.focus) { newwindow.focus() }
}
