Ginnie Mae supports America’s Veterans by attracting the global capital that enables VA loan programs.
renderSlider();
function renderSlider(){
var sliderContainer_SlideoTransitions = [
[{b:5500,d:3000,o:-1,r:240,e:{r:2}}],
[{b:-1,d:1,o:-1,c:{x:51.0,t:-51.0}},{b:0,d:1000,o:1,c:{x:-51.0,t:51.0},e:{o:7,c:{x:7,t:7}}}],
[{b:-1,d:1,o:-1,sX:9,sY:9},{b:1000,d:1000,o:1,sX:-9,sY:-9,e:{sX:2,sY:2}}],
[{b:-1,d:1,o:-1,r:-180,sX:9,sY:9},{b:2000,d:1000,o:1,r:180,sX:-9,sY:-9,e:{r:2,sX:2,sY:2}}],
[{b:-1,d:1,o:-1},{b:3000,d:2000,y:180,o:1,e:{y:16}}],
[{b:-1,d:1,o:-1,r:-150},{b:7500,d:1600,o:1,r:150,e:{r:3}}],
[{b:10000,d:2000,x:-379,e:{x:7}}],
[{b:10000,d:2000,x:-379,e:{x:7}}],
[{b:-1,d:1,o:-1,r:288,sX:9,sY:9},{b:9100,d:900,x:-1400,y:-660,o:1,r:-288,sX:-9,sY:-9,e:{r:6}},{b:10000,d:1600,x:-200,o:-1,e:{x:16}}]
];
var sliderContainer_options = {
$AutoPlay: true,
$SlideDuration: 5000,
$SlideEasing: $Jease$.$OutQuint,
$CaptionSliderOptions: {
$Class: $JssorCaptionSlideo$,
$Transitions: sliderContainer_SlideoTransitions
},
$ArrowNavigatorOptions: {
$Class: $JssorArrowNavigator$
},
$BulletNavigatorOptions: {
$Class: $JssorBulletNavigator$
}
};
$(".items-container").show();
var sliderContainer_slider = new $JssorSlider$("sliderContainer", sliderContainer_options);
function ScaleSlider() {
var refSize = document.body.clientWidth;
if (refSize) {
refSize = Math.max(refSize, 900);
refSize = Math.min(refSize, 1920);
sliderContainer_slider.$ScaleWidth(refSize);
var myScale = 1;
jQuery('#sliderContainer').children('div').each(function () {
var wrapperStyle = jQuery(this).attr('style');
if( wrapperStyle != null){
if (wrapperStyle.indexOf("scale(") >= 0)
{
wrapperStyle = wrapperStyle.split("scale(")[1];
myScale = wrapperStyle.split(");")[0];
}
var myElement =document.getElementById('gm-logo');
var rect = myElement.getBoundingClientRect();
var leftPosition = rect.left / myScale;
jQuery('.item-title').css("left",leftPosition);
jQuery('.item-description').css("left",leftPosition);
}
});
var dotLeftPosition = (refSize/2)/myScale;
var dotNum = jQuery(".nav-bullets div").length;
if(dotNum != null & dotNum != 0)
{
dotLeftPosition = dotLeftPosition - (( dotNum * 26 )/2);
}
jQuery('.nav-bullets').css("left",dotLeftPosition);
}
else {
window.setTimeout(ScaleSlider, 30);
}
}
ScaleSlider();
// $(window).bind("load", ScaleSlider);
// $(window).bind("resize", ScaleSlider);
// $(window).bind("orientationchange", ScaleSlider);
var resizeTimer;
jQuery(window).load(function() {
//alert('in load');
clearTimeout(resizeTimer);
resizeTimer = setTimeout(ScaleSlider, 100);
});
jQuery(window).resize(function() {
//alert('resize');
clearTimeout(resizeTimer);
resizeTimer = setTimeout(ScaleSlider, 100);
});
/*
jQuery(window).orientationchange(function() {
alert('orientationchange');
clearTimeout(resizeTimer);
resizeTimer = setTimeout(ScaleSlider, 100);
});*/
}
//end render slider