﻿function TermsConditionsIM() {
    if (screen.Width <= "800")
        var height = "450"; 						// define the popup's height for 800*600 resolution;
    else
        var height = "580"; 						// define the popup's height;
    var width = "500"; 							    // define the popup's width;
    var top = (screen.availHeight - height) / 2; 	// define the popup's vertical position on screen;
    var left = (screen.availWidth - width) / 2; 	// define the popup's horizontal position on screen;
    var send = window.open("/common/sc/termsconditions.aspx", "terms", "width=" + width + ",height=" + height + ",toolbar=no,scrollbars=yes,status=no,resizable=no,top=" + top + ",left=" + left);
    send.focus();
}



$(document).ready(function() {
    // hack for FireFox
    if ($.browser.mozilla) {
        $("ul#immenusolutionslist").css('top', '-4px');
    }

//    // Solutions Sub Menu
//    $('li.immenusolutions a').mouseover(function() {
//        $('ul#immenusolutionslist').slideDown('fast');
//    });

//    $('ul#immenusolutionslist').mouseleave(function() {
//        $('ul#immenusolutionslist').slideUp('fast');
//    });
});


function showIMdocument(url) {
    if (GetCookie(".ASPXUSERDEMO") != null) {
        overlayIframe(url, 900, 600);
    }
    else {
        OpenPopup("/interactive-marketing/login.aspx?ReturnUrl=" + encodeURIComponent(url), 800, 500, true, true, true);
    }
}
