$(document).ready(function() {
//The clean way.
var build_link = function(rel,href, bodystr,divstr) {
return ' '+bodystr+' '+divstr;
}
var str = "";
var bodystr = "";
var divstr = "";
var orderStatus = " ";//need empty space for minicart link.
orderStatus+='My Cart: ';
bodystr+='
';
bodystr+=orderStatus;
bodystr+="0 Items - ";
bodystr+='$0.00';
bodystr+='
';
str += build_link('http://www1.lexmark.com/US/en/common/include/minicart.jsp?allproducts=null','http://www1.lexmark.com/US/en/cart/cart.jsp',bodystr,divstr);
if(str == 'null' || str == ''){
$('#cart-ul').hide();
} else {
$('#cart-ul').html(str); }
var build_link2 = function(href, str2) {
return '
'+str2+' ';
}
var build_oth = function(msg) {
return ' '+msg+' ';
}
var str2 = "";
str2 += build_link2("http://www1.lexmark.com/US/en/login/ssolandingpage.jsp","Sign-in");
str2 += build_link2("http://www1.lexmark.com/US/en/account/accountsummary.jsp","My Account");
str2 += build_link2("http://www1.lexmark.com/US/en/search/trackorder.jsp","Order Status");
str2 += build_link2("http://www1.lexmark.com/en_US/orders/order-help.shtml","Order Help");
if(str2 == 'null' || str2 == ''){
$('#header-ul').hide();
} else {
$('#header-ul').html(str2);
}
var count = 0;
var build_link3 = function(href,localeValue,str3,selectedLocale) {
if (count == 0){
if(localeValue == selectedLocale){
return ''+str3+'';
}else{
return ' '+str3+' ';
}
}else{
if(localeValue == selectedLocale){
return '| '+str3+'';
}else{
return ' | '+str3+' ';
}
}
}
var str3 = "";
var str5 = "";
if(str3 == 'null' || str3 == ''){
$('#country-language').hide();
} else {
$('#country-language').html(str3);
}
var str4 = "";
str4 += '
';
if(str4 == 'null' || str4 == ''){
$('#pencil').hide();
} else {
$('#pencil-unit').html(str4);
}
if(str5 == 'null' || str5 == ''){
$('#logout-form').hide();
}
else {
$('#logout-form').html(str5);
}
},1);