﻿// curvyCorners
//----------------------------------------------------
  curvyCorners.addEvent(window, 'load', initCorners);

  function initCorners() {
    var settings = {
      tl: { radius: 7 },
      tr: { radius: 7 },
      bl: { radius: 7 },
      br: { radius: 7 },
      antiAlias: true
    }
    curvyCorners(settings, "#side_container");
  }



// qtip
//----------------------------------------------------
//tip_01
$(document).ready(function() {
    $('#tip_01 a[href]').qtip({
        content : '<img src="images/pict_tips_01.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'rightMiddle',
                tooltip: 'leftMiddle'
            }
        },
        style: {
            tip: 'leftMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_02
$(document).ready(function() {
    $('#tip_02 a[href]').qtip({
        content : '<img src="images/pict_tips_02.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'rightMiddle',
                tooltip: 'leftTop'
            }
        },
        style: {
            tip: 'leftTop',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_03
$(document).ready(function() {
    $('#tip_03 a[href]').qtip({
        content : '<img src="images/pict_tips_03.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'leftMiddle',
                tooltip: 'rightMiddle'
            }
        },
        style: {
            tip: 'rightMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_04
$(document).ready(function() {
    $('#tip_04 a[href]').qtip({
        content : '<img src="images/pict_tips_04.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'rightMiddle',
                tooltip: 'leftMiddle'
            }
        },
        style: {
            tip: 'leftMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_05
$(document).ready(function() {
    $('#tip_05 a[href]').qtip({
        content : '<img src="images/pict_tips_05.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'topMiddle',
                tooltip: 'bottomMiddle'
            }
        },
        style: {
            tip: 'bottomMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_06
$(document).ready(function() {
    $('#tip_06 a[href]').qtip({
        content : '<img src="images/pict_tips_06.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'leftMiddle',
                tooltip: 'rightMiddle'
            }
        },
        style: {
            tip: 'rightMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_07
$(document).ready(function() {
    $('#tip_07 a[href]').qtip({
        content : '<img src="images/pict_tips_07.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'rightMiddle',
                tooltip: 'leftMiddle'
            }
        },
        style: {
            tip: 'leftMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_08
$(document).ready(function() {
    $('#tip_08 a[href]').qtip({
        content : '<img src="images/pict_tips_08.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'bottomMiddle',
                tooltip: 'topMiddle'
            }
        },
        style: {
            tip: 'topMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_09
$(document).ready(function() {
    $('#tip_09 a[href]').qtip({
        content : '<img src="images/pict_tips_09.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'bottomMiddle',
                tooltip: 'topMiddle'
            }
        },
        style: {
            tip: 'topMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});

//tip_10
$(document).ready(function() {
    $('#tip_10 a[href]').qtip({
        content : '<img src="images/pict_tips_10.png" width="262" height="254" alt="demo" />',
        position: {
            corner: {
                target: 'rightMiddle',
                tooltip: 'leftMiddle'
            }
        },
        style: {
            tip: 'leftMiddle',
						width: '270px',
						padding: '5px 0',
            background: '#FFF',
            color: 'black',
            textAlign: 'center',
            border: {
                width: 1,
                radius: 5,
                color: '#CCC'
            }
        }
    });
});
